﻿:root {
    --primary-color: #2eb85c; /* Gullcom Green - More green */
    --tech-blue: #4a86e8; /* Gullcom Blue */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--tech-blue));
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center { text-align: center; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-12 { margin-bottom: 5rem; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-sm {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(74, 134, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 134, 232, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: #fff;
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

.btn-primary-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    background: var(--gradient-primary);
    color: #fff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    color: #fff;
    font-weight: 500;
}

.nav-list a:hover, .nav-list a.active {
    color: #fff;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* margin-left: 2rem; Removed as it's now handled by header-left gap */
    color: var(--text-secondary);
    font-size: 0.9rem; /* Smaller font for toggle */
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0;
    transition: color 0.3s;
    font-size: inherit;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 134, 232, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    transform: translateY(-50%);
}

/* Sections General */
.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Solutions Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--tech-blue);
    background: rgba(30, 41, 59, 0.9);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.card-hover:hover .card-icon {
    background: var(--gradient-primary);
    color: #fff;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
}

/* About Grid */
.about-grid {
    display: grid;
    gap: 2rem;
}

.about-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: 0.3s;
}

.about-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.about-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.about-content p {
    color: var(--text-secondary);
}

/* Pillars List */
.pillars-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pillar-card {
    background: linear-gradient(90deg, rgba(30,41,59,0.8) 0%, rgba(15,23,42,0) 100%);
    padding: 2rem;
    border-left: 4px solid var(--tech-blue);
    border-radius: 0 12px 12px 0;
}

.pillar-card h3 {
    margin-bottom: 0.5rem;
}

.pillar-card p {
    color: var(--text-secondary);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.value-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: #ffffff;
}

.value-icon svg {
    width: 48px;
    height: 48px;
}

.value-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Banner */
.banner {
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    color: #fff;
}

.banner h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none; /* Mobile menu logic to be added in JS */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        text-align: center;
        width: 100%;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
    }

    .btn-primary {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* Custom Cursor */
body, a, button, input, textarea, select {
    cursor: none;
}

.cursor-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    transition: width 0.3s, height 0.3s;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(163, 209, 84, 0.5); /* Primary color with opacity */
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 9998;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

/* Cursor Hover State */
body.hovering .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(74, 134, 232, 0.1); /* Tech blue tint */
    border: 2px solid var(--tech-blue); /* Force solid blue border */
}


/* Sidebars */
.sidebar-left, .sidebar-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sidebar-left {
    left: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-left.visible {
    opacity: 1;
    pointer-events: all;
}

.sidebar-right {
    right: 2rem;
}

.sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-left .sidebar-text {
    transform: rotate(180deg); /* Reading upwards */
}

.sidebar-line {
    width: 1px;
    height: 60px;
    background-color: var(--text-secondary);
    display: block;
}

.back-to-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover .sidebar-text {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-icons a {
    color: var(--text-secondary);
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

@media (max-width: 1024px) {
    /* Sidebars visible on mobile as requested */
    /* .sidebar-left, .sidebar-right {
        display: none;
    } */
}


/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    z-index: 10000;
    display: none; /* Hidden by default, shown by JS */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline-sm {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-sm:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}


/* Pillars Staggered (Stairs) Layout */
.pillars-stairs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
    width: 100%;
}

.pillar-card {
    background-color: #0d1b2a;
    border-left: 4px solid var(--tech-blue);
    padding: 1.5rem 2rem;
    border-radius: 4px;
    width: 600px; /* Base width */
    max-width: 90%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    align-items: center;
}

.pillar-content {
    flex: 1;
}

.pillar-card:hover {
    transform: translateY(-5px) translateX(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.pillar-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #fff; /* Title in White as requested */
    font-weight: 600;
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Staggered margins to create the steps effect */
.pillar-card:nth-child(1) {
    align-self: flex-start;
    margin-left: 0;
}

.pillar-card:nth-child(2) {
    margin-left: 10%;
}

.pillar-card:nth-child(3) {
    margin-left: 20%;
}

.pillar-card:nth-child(4) {
    margin-left: 30%;
}

@media (max-width: 768px) {
    .pillars-stairs {
        align-items: center;
    }
    
    .pillar-card {
        width: 100%;
        margin-left: 0 !important; /* Reset margins on mobile */
    }
}


/* Mission Grid (Quem Somos Redesign) */
.mission-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

.mission-card {
    background-color: var(--bg-darker); /* Darker background */
    border: 1px solid rgba(255,255,255,0.05); /* Slight border */
    border-radius: 8px; /* Slightly more rounded */
    padding: 2rem;
    display: flex;
    align-items: flex-start; /* Align number to top */
    gap: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.1);
}

.mission-number {
    font-size: 5rem; /* Very large number */
    font-weight: 800;
    color: rgba(255,255,255,0.05); /* Very faint white */
    line-height: 0.8;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.mission-content {
    position: relative;
    z-index: 1;
    padding-left: 4rem; /* Space for the number if we want overlap, or just layout */
}

/* Let's try layout from image: Number is large on the left, but content is next to it */
.mission-card {
    align-items: center;
}

.mission-number {
    position: static;
    transform: none;
    color: rgba(255,255,255,0.05);
    /* If we want it really big and faint like watermark? Image shows simpler: 
       Large, Dark Grey/Faint Number on Left. Content on right. */
    opacity: 1;
    color: #1a2333; /* Dark blue-greyish number */
}

.mission-content h4 {
    font-size: 1.5rem;
    color: var(--primary-color); /* Green title as requested */
    margin-bottom: 0.5rem;
}

.mission-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Custom Cursor */
.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%); /* Center the dot */
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(46, 184, 92, 0.5); /* Semi-transparent primary */
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%); /* Center the outline */
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

body.hovering .cursor-dot {
    opacity: 0;
}

body.hovering .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(46, 184, 92, 0.1);
    border-color: transparent;
}

/* Commitment Grid (Manual Responsiveness Fix) */
.commitment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.commitment-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 1024px) {
    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        /* Add padding to sidebar sides to avoid overlap */
        padding-left: 3rem; 
        padding-right: 3rem;
    }

    .commitment-img-wrapper {
        order: -1; 
    }
    
    .commitment-img {
        height: auto;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .commitment-grid {
        padding-left: 2rem; 
        padding-right: 2rem;
        gap: 1.5rem;
    }

    .mission-number {
        display: none;
    }

    .mission-content {
        padding-left: 0;
    }

    /* Footer padding to avoid sidebar overlap */
    .footer .container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}
