:root {
    --bg-dark: #121B23;
    --accent-start: #C8DF92;
    --accent-end: #9DD9DE;
    --text-white: #E2E2E2;
    --header-height: 100px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Work Sans', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Funnel Display', sans-serif;
}

/* Container Width Override */
.container-custom {
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.container-menu {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.float-slow { animation: float 6s ease-in-out infinite; }
.float-medium { animation: float 4s ease-in-out infinite; }
.float-fast { animation: float 3s ease-in-out infinite; }

/* Hero Bottom Mask */
.hero-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    pointer-events: none;
    z-index: 5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f161d;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Gradient Text Helper */
.text-gradient {
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-icon {
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Gradient Button Helper */
.btn-standard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px; /* Adjusted to 36px */
    min-width: 160px; /* Adjusted width */
    padding: 0 20px;
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    border-radius: 9999px;
    color: #121B23;
    font-weight: 600;
    font-size: 14px; /* Adjusted font size */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-shadow: none !important;
}
.btn-standard:hover {
    transform: translateY(-2px);
    box-shadow: none !important; /* Removed shadow */
}

/* Glass Panel Helper */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Accordion Styles */
.accordion-container {
    width: 100%;
}

.accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.accordion[open] {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion-number {
    color: var(--accent-start);
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 0.1em;
    opacity: 0.5;
    transition: all 0.3s;
}

.accordion[open] .accordion-number,
.accordion:hover .accordion-number {
    opacity: 1;
    color: #DAFF73;
}

.accordion-title {
    color: #F3F4F6;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-family: 'Syne', sans-serif;
    transition: color 0.3s ease;
}

.accordion:hover .accordion-title {
    color: #DAFF73; /* Cor de destaque ao passar o mouse */
}

@media (max-width: 768px) {
    .accordion-title {
        font-size: 24px;
    }
}

.accordion-tags {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .accordion-tags {
        display: none;
    }
}

.tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9CA3AF;
    transition: all 0.3s ease;
}

.accordion:hover .tag,
.accordion[open] .tag {
    color: #DAFF73;
    border-color: rgba(218, 255, 115, 0.2);
    background: rgba(218, 255, 115, 0.05);
}

.accordion-icon {
    font-size: 32px;
    color: var(--accent-start);
    transition: transform 0.3s;
}

.accordion[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 32px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    animation: fadeInPanel 0.5s ease forwards;
}

@media (min-width: 768px) {
    .accordion-content {
        grid-template-columns: 2fr 1fr;
    }
}

.content-main h4 {
    color: white;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.content-main h4 span {
    color: var(--accent-start);
    font-size: 18px;
}

.content-description {
    color: #9CA3AF;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #9CA3AF;
}

.feature-item span {
    color: var(--accent-start);
    font-size: 18px;
}

.content-sidebar {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.content-sidebar::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 100%;
    height: 160%;
    background-color: #2c343b;
    -webkit-mask-image: url('../images/icone_risian_10.svg');
    mask-image: url('../images/icone_risian_10.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center right;
    mask-position: center right;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.content-sidebar > * {
    position: relative;
    z-index: 1;
}

.sidebar-title {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-start);
    margin-bottom: 24px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.tech-item {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-item span {
    color: white;
    opacity: 0.6;
}

.sidebar-button {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Neutral Button for Accordion */
.btn-accordion-neutral {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 44px; /* Reduced height */
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-accordion-neutral:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}


/* Bento Grid Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
    grid-auto-rows: 350px; /* Fixed height for mobile cards */
    padding-bottom: 3rem; /* Add spacing at the bottom for mobile footer separation */
}

/* Ensure images cover the card properly on mobile */
.project-card img {
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px; /* Base height for tablet/desktop */
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        /* grid-auto-rows is inherited/overridden if needed, but 280px is good base */
    }
    
    /* Bento Spans only active on Desktop */
    .bento-col-2 {
        grid-column: span 2;
    }
    .bento-row-2 {
        grid-row: span 2;
    }
}

.project-card {
    position: relative;
    border-radius: 15px; /* Required 15px */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255,255,255,0.05);
    height: 100%;
    background-color: #1A2632; /* card color */
}

/* Highlight Hover Effect (Spotlight) */
.projects-grid:hover .project-card {
    opacity: 0.4;
    filter: blur(2px);
    transform: scale(0.98);
}

.projects-grid .project-card:hover {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.02);
    z-index: 10;
    border-color: var(--accent-start);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}

/* Mobile-First Project Card Content Visibility */
.project-card .absolute {
    /* Mobile defaults: Always visible, dark gradient background */
    transform: translateY(0) !important;
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    padding-bottom: 20px;
}

.project-card p {
    /* Always visible on mobile */
    opacity: 1 !important;
    transition: none !important;
}

@media (min-width: 1024px) {
    /* Desktop Hover Effects (Restore original behavior) */
    .project-card .absolute {
        transform: translateY(1rem) !important; /* Matches translate-y-4 */
        background: transparent; /* Remove gradient if not needed or keep it for readability */
        padding-bottom: 2rem; /* Restore original padding */
    }
    
    .project-card:hover .absolute {
        transform: translateY(0) !important;
    }
    
    .project-card p {
        opacity: 0 !important;
        transition: opacity 0.3s ease 0.1s !important;
    }
    
    .project-card:hover p {
        opacity: 1 !important;
    }
}

/* Glass Tag */
.project-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    z-index: 20;
    pointer-events: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Services Slider Styles - Deprecated in favor of Tailwind classes in HTML */
/* .service-tab-btn, .service-content-panel rules removed to prevent conflicts */


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Mobile Menu Custom Animation */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Space between lines */
    width: 60px; /* Requested 60px */
    height: 60px; /* Requested 60px */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px; /* Padding to keep lines reasonably sized inside */
    z-index: 50;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

.hamburger-line {
    display: block;
    width: 40px; /* Fixed width for lines inside the 60px button */
    height: 3px; /* Slightly thicker */
    background-color: #E2E2E2;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    transform-origin: right;
}

.mobile-menu-btn:hover .hamburger-line {
    background-color: #DAFF73; /* Green on hover */
    transform: scale(1.05); /* Subtle scale instead of disappearing animation */
}

/* Staggered Delays for "One leaves, another enters" effect in loop */
.mobile-menu-btn .line-1 { animation-delay: 0s; }
.mobile-menu-btn .line-2 { animation-delay: 0.2s; }
.mobile-menu-btn .line-3 { animation-delay: 0.4s; }

/* Keyframes for Line Construction Swap */
@keyframes line-cycle {
    0% {
        transform: scaleX(1);
        transform-origin: right;
    }
    20% {
        transform: scaleX(0);
        transform-origin: right;
    }
    21% {
        transform: scaleX(0);
        transform-origin: left;
    }
    40% {
        transform: scaleX(1);
        transform-origin: left;
    }
    100% {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Keyframes for Arrow Construction Swap */
@keyframes arrow-cycle {
    0% {
        transform: scaleX(1);
        transform-origin: right;
    }
    40% {
        transform: scaleX(0);
        transform-origin: right;
    }
    41% {
        transform: scaleX(0);
        transform-origin: left;
    }
    100% {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Mobile Menu Button Open State (morph to X) */
.mobile-menu-btn.open .hamburger-line {
    animation: none;
}
.mobile-menu-btn.open .line-1 {
    transform: translateY(7px) rotate(45deg);
    transform-origin: center;
}
.mobile-menu-btn.open .line-2 {
    opacity: 0;
}
.mobile-menu-btn.open .line-3 {
    transform: translateY(-7px) rotate(-45deg);
    transform-origin: center;
}

.arrow-cycle-anim {
    animation: arrow-cycle 0.6s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.group:hover .icon-animate-line {
    animation: arrow-cycle 0.6s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.nav-initial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px; /* Fixed height 110px */
    z-index: 50;
    transition: all 0.5s ease;
    background: #0B0F14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-initial.hidden-nav {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px; /* Fixed height 110px */
    z-index: 50;
    background: rgba(11, 15, 20, 0.7); /* Glass effect base */
    backdrop-filter: blur(12px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-fixed.visible {
    transform: translateY(0);
}

.container-menu-custom {
    max-width: 1670px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 150px; /* Menu (120px) + 30px space */
    padding-bottom: 104px; /* Adjusted to make gap exactly 200px with services py-24 (96px) */
    display: block; /* Removed flex/align-items to prevent vertical centering spacing */
    /* min-height: 100vh; Removed to allow services to be closer */
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Let clicks pass through to content */
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Utility for spacing */
@property --cta-angle {
  syntax: '<angle>';
  initial-value: 90deg;
  inherits: false;
}

.section-padding {
    padding-top: 75px;
    padding-bottom: 75px;
}

/* Arrow Slide Animation (Line Construction Effect) */
@keyframes arrowSlideIn {
    0% {
        transform: translateX(-20px) scaleX(0);
        opacity: 0;
    }
    40% {
        transform: translateX(0) scaleX(0.5);
        opacity: 0.5;
    }
    100% {
        transform: translateX(0) scaleX(1);
        opacity: 1;
    }
}

/* Hero CTA Button (Same as Header CTA) */
.btn-cta {
    --cta-angle: 90deg;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 40px !important; /* Adjusted to 40px */
    padding-left: 20px !important;
    padding-right: 4px !important;
    background: linear-gradient(var(--cta-angle), var(--accent-start), var(--accent-end)) !important;
    border-radius: 8px !important;
    color: #121B23 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: transform 0.3s ease, --cta-angle 0.5s ease !important;
    text-decoration: none !important;
    min-width: 160px !important;
    box-shadow: none !important; /* Removed shadow */
}

.btn-cta:hover {
    transform: translateY(-2px) !important;
    --cta-angle: 270deg !important;
    box-shadow: none !important; /* Removed shadow */
}

.btn-cta .icon-box {
    width: 32px !important; /* Slightly larger icon box */
    height: 32px !important;
    background: #121B23 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 12px !important;
    transition: transform 0.3s ease !important;
    overflow: hidden !important; /* Required for slide animation */
}

.btn-cta:hover .icon-box {
    transform: translateX(2px) !important;
}

.btn-cta .icon-box i {
    color: var(--accent-start) !important;
    font-size: 14px !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.btn-cta:hover .icon-box i {
    animation: arrowSlideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

/* Header CTA Button - Updated Specs */
.btn-header-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* Icon aligned to right */
    height: 48px !important; /* Fixed height 48px */
    padding-left: 24px !important; /* More space on left for text */
    padding-right: 6px !important; /* Space for icon on right */
    background: #DAFF73 !important; /* Solid color #DAFF73 */
    border-radius: 40px !important; /* Pill shape implies rounded */
    color: #0B0F14 !important; /* Dark text */
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: transform 0.3s ease !important;
    text-decoration: none !important;
    min-width: 170px !important; /* Reduced width */
    box-shadow: none !important;
    gap: 12px !important; /* Gap between text and icon */
}

.btn-header-cta:hover {
    transform: translateY(-2px) !important;
}

.btn-header-cta .icon-box {
    width: 36px !important;
    height: 36px !important;
    background: #0B0F14 !important; /* Dark circle #0B0F14 */
    border-radius: 50% !important; /* Circle */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 0 !important; /* Removed margin, using gap */
    overflow: hidden !important;
}

.btn-header-cta .icon-box i {
    color: #DAFF73 !important; /* Contrast icon color */
    font-size: 16px !important;
    display: block !important;
}

.btn-header-cta:hover .icon-box i {
    animation: arrowSlideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

/* Social Icons in Header */
.header-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s ease;
}

.header-social-icon:hover {
    background: #DAFF73;
    color: #0B0F14;
    transform: translateY(-2px);
}

/* Menu Links Hover Highlight */
.nav-link:hover {
    color: #DAFF73 !important;
}

/* Mobile Menu Links Hover Highlight */
.mobile-nav-link:hover {
    color: #DAFF73 !important;
}

/* Green Social Icons Filter */
.social-icon-green img {
    filter: brightness(0) saturate(100%) invert(88%) sepia(18%) saturate(934%) hue-rotate(39deg) brightness(94%) contrast(89%); /* Approx #C8DF92 */
}

.social-icon-green i {
    color: var(--accent-start) !important;
}

/* Heart Pulse Animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.heart-pulse {
    animation: heartBeat 1.5s infinite;
    display: inline-block;
    color: #ef4444; /* Red */
    vertical-align: middle;
}

/* Hero Floating Boxes */
.floating-box {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4); /* Darker background with black */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.box-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-start);
    font-size: 20px;
}

.box-content {
    display: flex;
    flex-direction: column;
}

.box-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.box-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Floating Box Positions - Managed in hero.css */
