/* ========================================
   Grace Igaratá - Premium Landing Page
   ======================================== */

/* CSS Variables - Design System */
:root {
    /* Colors - Vegetation Theme (Single Green) */
    --color-primary: #1a4d2e;
    --color-primary-light: #1a4d2e;
    --color-primary-dark: #1a4d2e;
    --color-secondary: #d4af37;
    --color-accent: #1a4d2e;
    --color-bg-dark: #0a1612;
    --color-bg-medium: #1a4d2e;
    --color-bg-light: #f8f9fa;
    --color-text-light: #ffffff;
    --color-text-dark: #1a1a1a;
    --color-text-muted: #d4af37;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    margin: 0 auto var(--spacing-md);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero-vegetation.jpg') center/cover no-repeat fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.4), rgba(15, 40, 24, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text-light);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    50% {
        text-shadow: 0 4px 20px rgba(212, 175, 55, 0.4), 0 0 30px rgba(212, 175, 55, 0.2);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-secondary), #c9a227);
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #e0c04a, var(--color-secondary));
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-light);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-text-light);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {

    0%,
    100% {
        opacity: 0;
        top: 8px;
    }

    50% {
        opacity: 1;
        top: 16px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-text strong {
    color: var(--color-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    perspective: 1000px;
}

.feature-item {
    background: white;
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(26, 77, 46, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--spacing-md);
    transition: all 0.4s ease;
    display: inline-block;
    color: var(--color-primary);
    stroke-width: 1.5;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15) translateY(-5px);
    color: var(--color-secondary);
}

.progress-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: var(--color-primary);
    flex-shrink: 0;
    stroke-width: 2;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    transition: color 0.3s;
}

.feature-item:hover h4 {
    color: var(--color-secondary);
}

.feature-item p {
    font-size: 0.95rem;
    color: #777;
    margin: 0;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.about-image:hover::after {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* ========================================
   DISTANCE TABLE SECTION
   ======================================== */
.distance-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-text-light);
}

.distance-section .section-title {
    color: var(--color-text-light);
}

.distance-table-wrapper {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
}

.distance-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-heading);
}

.distance-table thead th {
    padding: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.distance-table tbody td {
    padding: var(--spacing-md);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transport-icon {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
}

.transport-icon svg {
    color: var(--color-secondary);
}

/* ========================================
   CONSTRUCTION CAROUSEL SECTION
   ======================================== */
.construction-section {
    padding: var(--spacing-xl) 0;
    background: #ffffff;
    color: var(--color-text-dark);
}

.construction-section .section-title {
    color: var(--color-primary);
}

.construction-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.slide-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: 0 0 16px 16px;
}

.slide-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.progress-items {
    display: grid;
    gap: var(--spacing-md);
}

.progress-item {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-sm);
    border-radius: 8px;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.progress-icon {
    font-size: 1.5rem;
}

.progress-bar {
    position: relative;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    border-radius: 12px;
    transition: width 1s ease-out;
}

.progress-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--color-secondary);
    width: 32px;
    border-radius: 6px;
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.map-filter {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.map-filter:hover {
    background: var(--color-primary-light);
    color: white;
    transform: translateY(-2px);
}

.map-filter.active {
    background: var(--color-primary);
    color: white;
}

.filter-icon {
    font-size: 1.2rem;
}

.interactive-map {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-text-light);
}

.contact-section .section-title {
    color: var(--color-text-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.15);
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-secondary), #c9a227);
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.info-icon {
    font-size: 2rem;
}

.info-text h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.info-text p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: var(--spacing-md);
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    text-align: center;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .distance-table {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), #d4af37);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ========================================
   FLOATING PARTICLES
   ======================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ========================================
   ENHANCED DISTANCE TABLE
   ======================================== */
.distance-table tbody td {
    padding: var(--spacing-md);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.distance-table tbody td:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

.distance-number {
    display: inline-block;
    transition: transform 0.3s ease;
}

.distance-table tbody td:hover .distance-number {
    transform: scale(1.2);
    color: var(--color-secondary);
}

/* ========================================
   SECTION TRANSITIONS
   ======================================== */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.8s;
}

section:hover::before {
    left: 100%;
}

.filter-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: inline-block;
    stroke-width: 2;
}

.map-filter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item {
    cursor: pointer;
    position: relative;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--color-secondary);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.feature-item:hover::after {
    width: 80%;
}

/* ========================================
   ANIMATED SECTION TITLES
   ======================================== */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-secondary);
    transition: width 0.6s ease;
}

.section-header:hover .section-title::after {
    width: 100%;
}

/* ========================================
   PROGRESS BAR ANIMATION
   ======================================== */
.progress-fill {
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ========================================
   BUTTON PULSE EFFECT
   ======================================== */
.cta-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(212, 175, 55, 0.8);
    }
}

/* ========================================
   MAP FILTER ANIMATIONS
   ======================================== */
.map-filter {
    position: relative;
    overflow: hidden;
}

.map-filter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(26, 77, 46, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.map-filter:hover::before {
    width: 200px;
    height: 200px;
}

/* ========================================
   CONTACT FORM ENHANCEMENTS
   ======================================== */
.form-group input:focus,
.form-group textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.submit-button {
    position: relative;
    overflow: hidden;
}

.submit-button::after {
    content: '→';
    position: absolute;
    right: 20px;
    opacity: 0;
    transition: all 0.3s;
}

.submit-button:hover::after {
    opacity: 1;
    right: 15px;
}

/* ========================================
   NAVIGATION HEADER (Atlantis Style)
   ======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.02);
    /* Almost fully transparent */
    backdrop-filter: blur(20px) saturate(180%);
    /* Strong matte/glass effect */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle line */
}

.main-header.scrolled {
    background: rgba(26, 77, 46, 0.95);
    /* Semi-solid green to maintain leaf color over white */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.7rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: var(--color-secondary);
}

/* Hero section adjustment for fixed header */
.hero {
    margin-top: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 77, 46, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        align-items: flex-start;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ========================================
   RESPONSIVE TABLE STYLES
   ======================================== */

/* ========================================
   RESPONSIVE TABLE STYLES
   ======================================== */

.distance-table-container {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: none;
    transition: transform 0.3s ease;
}

.distance-table-container:hover {
    transform: translateY(-5px);
}

.distance-table {
    width: 100%;
    border-collapse: collapse;
    color: #333;
}

/* Dark Theme for Distance Table */
.distance-table-container.dark-theme {
    position: relative;
    background-image: url('images/bosque.png');
    /* Use the forest image */
    background-size: cover;
    background-position: center;
    color: #fff;
    border-radius: 20px;
    /* Slightly more rounded */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.distance-table-container.dark-theme .table-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    /* Dark overlay */
    z-index: 1;
}

.distance-table-container.dark-theme .distance-table {
    position: relative;
    z-index: 2;
    color: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

.distance-table-container.dark-theme thead {
    background: transparent;
    border-bottom: none;
}

.distance-table-container.dark-theme th {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 2rem 1rem;
    text-transform: capitalize;
    /* "Campinas", not "CAMPINAS" */
    border-bottom: none;
    letter-spacing: normal;
}

.distance-table-container.dark-theme td {
    color: #fff;
    border-bottom: none;
    font-size: 1.2rem;
    padding: 1rem;
}

/* Transport Icons */
.distance-table-container.dark-theme .transport-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle separator */
}

.distance-table-container.dark-theme .transport-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

/* Dotted Line at Bottom */
.table-dotted-line {
    position: absolute;
    bottom: 20px;
    left: 5%;
    width: 90%;
    height: 1px;
    border-bottom: 2px dotted rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.distance-table td,
.distance-table th {
    text-align: center;
}

text-align: center;
font-size: 1.1rem;
transition: all 0.3s ease;
}

/* ========================================
   INTERACTIVE PROJECT IMAGE
   ======================================== */
/* ========================================
   ABOUT SECTION - FULL WIDTH LAYOUT
   ======================================== */
.about-container-full {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text-full-width {
    text-align: center;
    /* Centered for balance, or left if preferred */
    max-width: 900px;
    margin: 0 auto;
}

.about-text-full-width h3 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.about-text-full-width p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

.card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-weight: 600;
    text-align: center;
}

.features-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns for full width */
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .about-gallery-grid {
        grid-template-columns: 1fr;
    }

    .features-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid-row {
        grid-template-columns: 1fr;
    }
}

.interactive-project-card:hover .hover-img {
    opacity: 1;
    transform: scale(1);
}

.interaction-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 77, 46, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.interactive-project-card:hover .interaction-hint {
    opacity: 0;
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .interactive-project-card {
        aspect-ratio: 16/9;
        /* Wider on mobile */
    }
}

/* Icon styling in table */
.distance-table .transport-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
    /* White instead of yellow */
}

.distance-table .transport-icon svg {
    stroke: #fff;
    /* White icon stroke */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

@media (max-width: 768px) {

    .distance-table th,
    .distance-table td {
        white-space: nowrap;
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* ========================================
   ABOUT SECTION ENHANCEMENTS with Image
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text {
    text-align: left;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.about-image:hover .featured-image {
    transform: scale(1.05);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 77, 46, 0.4), transparent);
    pointer-events: none;
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   CONSTRUCTION CARD ENHANCEMENTS (Light Bg)
   ======================================== */
.slide-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(26, 77, 46, 0.2);
    /* Reinforced border */
}

.slide-info h3 {
    color: var(--color-primary);
}

.progress-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Added border to items */
}

.progress-header {
    color: var(--color-text-dark);
}

.progress-bar {
    background: #e0e0e0;
}

.carousel-btn {
    display: none !important;
    /* Remove arrows */
}

.carousel-btn:hover {
    background: var(--color-secondary);
    color: white;
}

/* ========================================
   CONSTRUCTION CARD ENHANCEMENTS (Light Bg)
   ======================================== */
.slide-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.slide-info h3 {
    color: var(--color-primary);
}

.progress-item {
    background: rgba(0, 0, 0, 0.03);
}

.progress-header {
    color: var(--color-text-dark);
}

.progress-bar {
    background: #e0e0e0;
}

.carousel-btn {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: var(--color-secondary);
    color: white;
}