/* ==========================================================================
   GID ECOSYSTEM HERO BANNER - V3 Full True Dark Mode
   ========================================================================== */

/* Layout & Structure */
/* New unified background system for both Hero and Results */
#gid-main-top-wrapper {
    background-color: #0c111a;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.45) 0%, transparent 85%);
}

.gid-eco-section-wrapper {
    padding-top: 130px; /* Increased from 110px for top breathing room */
    padding-bottom: 60px; /* Added breathing room at the bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    
    /* TRUE FULL-WIDTH DARK BACKGROUND IS NOW DELEGATED TO THE WRAPPER */
    background: transparent; 
    position: relative;
    /* overflow: hidden removed to prevent clipping the absolute canvas if placed inside, but canvas will be moved out */
}

/* ULTRA-PREMIUM AMBIENT BACKGROUND GLOWS */
.gid-ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(220px); /* Massive blur for organic mesh gradient effect */
    z-index: 0; /* Stays STRICTLY behind all components */
    pointer-events: none; /* Prevents blocking clicks on the animation */
}

.glow-orange {
    width: 55vw;
    height: 700px;
    background-color: #f17619; /* Gid Orange */
    top: 50px;
    left: -200px;
    opacity: 0.04; /* Extremely subtle */
}

.glow-blue {
    width: 65vw;
    height: 800px;
    background-color: #0ea5e9; /* Premium Sky Blue / Slate */
    bottom: -150px;
    right: -250px;
    opacity: 0.035; /* Even more subtle */
}

/* ANTIGRAVITY POINT CLOUD CANVAS: 2025 Premium AI Data Swarm */
.gid-antigravity-layer {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits beneath the frosted glass card (z-index 5) for 3D depth */
    pointer-events: none; /* Mouse events pass through to hero section for coordinates */
    
    /* Radial Mask: dynamic center to track the 'G' element exactly via JS variable */
    mask-image: radial-gradient(circle at 50% var(--mask-center-y, 50%), rgba(0,0,0,0) 0%, rgba(0,0,0,0) 80px, rgba(0,0,0,0.1) 150px, rgba(0,0,0,1) 350px, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 95%);
    -webkit-mask-image: radial-gradient(circle at 50% var(--mask-center-y, 50%), rgba(0,0,0,0) 0%, rgba(0,0,0,0) 80px, rgba(0,0,0,0.1) 150px, rgba(0,0,0,1) 350px, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 95%);
    opacity: 0.95;
}

/* Hide the old white-mode background orbs specifically in this section */
.gid-eco-section-wrapper .hero-background {
    display: none !important;
}

/* Header Text (True Dark Mode Setup) */
.gid-eco-header {
    text-align: center;
    margin-bottom: 2rem; /* Tightened from 3.5rem to save vertical height */
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
    margin-top: -10px; /* Slight optical adjustment */
}

.gid-eco-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gid-eco-main-title {
    font-size: 2.6rem; /* Scaled down from 3rem */
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.1;
}

/* Elegant Title Separator */
.gid-eco-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0; /* Tightened from 22px to save space */
    width: 100%;
}

.gid-eco-separator .sep-line {
    width: 110px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.gid-eco-separator .sep-knot {
    position: relative;
    width: 28px;
    height: 14px;
    margin: 0 12px;
}

.gid-eco-separator .diamond {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
}

.gid-eco-separator .diamond-left {
    left: 4px;
}

.gid-eco-separator .diamond-right {
    right: 4px;
}

/* Elegant Subtitle */
.gid-eco-subtitle {
    font-size: 1.25rem; /* Shrunk from 1.4rem */
    font-weight: 500;
    color: #f17619; /* Gid Orange as requested */
    margin: 0;
    letter-spacing: 0.04em;
    font-family: 'Inter', -apple-system, sans-serif;
    text-shadow: none; /* No smokey blur */
}

/* Footer Paragraph */
.gid-eco-footer {
    text-align: center;
    margin-top: 1.5rem; 
    margin-bottom: 0; /* Handled by section wrapper padding-bottom now */
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 20px;
}

.gid-eco-footer-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem; /* Scaled down slightly */
    line-height: 1.5;
    color: #e2e8f0; 
    font-weight: 400;
}

.gid-eco-footer-text .footer-line1 {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.3rem; /* Scaled down */
}

.gid-eco-footer-text .footer-line2 {
    color: #94a3b8;
    opacity: 0.9;
}

/* The Glassmorphism Card (Darker than the background) */
.gid-eco-banner-wrapper {
    width: 100%;
    padding: 0 2vw; /* Breathing room */
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.gid-eco-card {
    width: 100%;
    max-width: 1600px;
    
    /* Deep space radial gradient for the 'rond' look */
    background: radial-gradient(circle at 50% 50%, rgba(17, 24, 39, 0.7) 0%, rgba(10, 14, 23, 0.1) 100%);
    /* Filter removed so the point cloud underneath stays perfectly crisp and visible */
    border: none;
    border-radius: 40px;
    
    /* Massive blending shadows to perfectly erase the edge. Converted to 80% opaque RGBA (instead of 100% solid hex) so the particles can cast 'très légèrement' their light through it */
    box-shadow: 
        inset 0 0 120px 40px rgba(10, 14, 23, 0.8),
        0 0 120px 40px rgba(10, 14, 23, 0.85);
    position: relative;
}

/* Ambient inner glow for the top of the card */
.gid-eco-ambient-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(241,118,25,0.4), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.gid-eco-container {
    position: relative;
    width: 100%;
    height: 480px; /* Compressed perfectly for a single screen view */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Nodes - Slightly raised glass from the black card */
.gid-eco-node {
    position: absolute;
    background: rgba(30, 41, 59, 0.5); /* Slate grey glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0 24px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    min-width: max-content;
    transform: translate(-50%, -50%); /* Crucial for geometrical alignment */
    transform-origin: center center;
}

/* Active State (Expanded) */
.gid-eco-node.active {
    height: auto;
    min-height: 80px;
    padding: 16px 28px;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 20px 40px rgba(241, 118, 25, 0.15), 0 10px 20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(241, 118, 25, 0.5);
    transform: translate(-50%, -50%) scale(1.05); /* Scales accurately from true center */
    z-index: 20;
}

/* Hover State */
.gid-eco-node:hover:not(.active) {
    transform: translate(-50%, calc(-50% - 3px)); /* Hover lift without breaking absolute center bounds */
    background: rgba(51, 65, 85, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Node Text Styles - Crisp White/Grey */
.gid-eco-node-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #f8fafc;
    letter-spacing: 0.02em;
    transition: color 0.4s ease;
}

.gid-eco-node.active .gid-eco-node-title {
    color: #f17619;
    margin-bottom: 6px;
    font-weight: 600;
}

.gid-eco-node-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 400;
    opacity: 0;
    height: 0;
    transition: all 0.5s ease;
    max-width: 240px;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
}

.gid-eco-node.active .gid-eco-node-desc {
    opacity: 1;
    height: auto;
}

/* The "G" Center Node - Pure Light */
.gid-eco-center {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: 15;
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: -2px;
    transform: translate(-50%, -50%); /* Critical for 100% precise origin */
    transform-origin: center center;
}

/* When Gid is processing (Glowing Orange) */
.gid-eco-center.processing {
    background: rgba(241, 118, 25, 0.2);
    border-color: rgba(241, 118, 25, 0.8);
    box-shadow: 0 0 100px rgba(241, 118, 25, 0.6), 0 0 40px rgba(241, 118, 25, 0.4), inset 0 0 40px rgba(241, 118, 25, 0.3);
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
}

/* SVG Canvas & Lines - Dark Mode */
.gid-eco-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gid-eco-line {
    stroke: rgba(255, 255, 255, 0.08); /* Subtle track */
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    transition: stroke 0.6s ease, stroke-width 0.6s ease;
}

.gid-eco-line.active {
    stroke: rgba(241, 118, 25, 0.4); /* Glow track */
    stroke-width: 2.5;
    stroke-dasharray: none;
}

/* Pulses - Softer glowing dots */
.gid-eco-pulse {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 20px 4px #f17619, 0 0 10px 2px #ffffff;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

/* Organic Floating */
@keyframes gidFloat {
    0% { transform: translate(-50%, -50%) translateY(0px) rotate(0deg); }
    50% { transform: translate(-50%, -50%) translateY(-12px) rotate(1deg); }
    100% { transform: translate(-50%, -50%) translateY(0px) rotate(0deg); }
}

/* Responsive Scaling */
@media (max-width: 1200px) {
    .gid-eco-main-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .gid-eco-center { width: 80px; height: 80px; font-size: 2.5rem; }
    .gid-eco-node { padding: 0 20px; height: 48px; font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .gid-eco-section-wrapper { 
        padding-top: 85px; /* Pushes the title 15px safely below the 70px fixed white navbar! */
    }
    
    .gid-eco-header {
        margin-bottom: 5px; 
        margin-top: 0px;
    }

    .gid-eco-container {
        height: 430px; /* Safe bounds to comfortably house the 5-row miniature grid without footer overlapping! */
        min-height: auto;
        margin-top: 0px; 
        margin-bottom: 25px; /* Hard barrier pushing the footer completely out of the way */ 
    }

    .gid-eco-node {
        min-width: unset;
        width: 105px; /* Super small bubbles */
        white-space: normal;
        text-align: center;
        height: auto;
        min-height: 28px;
        padding: 2px 4px;
        border-radius: 8px;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .gid-eco-node-title { font-size: 0.55rem; }
    
    .gid-eco-node.active {
        min-height: 32px;
        padding: 4px 5px;
        width: 120px; 
        transform: translate(-50%, -50%) scale(1.05);
        background: #0f172a; 
        border: 1px solid rgba(241, 118, 25, 0.4);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(241, 118, 25, 0.2);
        z-index: 50; 
    }
    .gid-eco-node-desc { 
        font-size: 0.48rem; /* Extremely tiny, fits everything easily */
        max-width: 110px; 
        margin-top: 2px; 
        line-height: 1.1;
    }

    .gid-eco-main-title {
        font-size: 1.35rem; 
    }

    .gid-eco-subtitle {
        font-size: 0.75rem; 
    }

    .gid-eco-separator {
        margin: 8px 0;
    }

    .gid-eco-center {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .gid-eco-footer {
        margin-top: 20px; /* Pushes text securely down */
        position: relative;
        z-index: 10; /* Ensures it stays readable */
    }

    .gid-eco-footer-text {
        font-size: 0.75rem;
        padding: 0 15px;
        line-height: 1.25;
    }

    .gid-eco-main-title {
        font-size: 1.35rem; 
    }

    .gid-eco-subtitle {
        font-size: 0.75rem; 
    }

    .gid-eco-separator {
        margin: 8px 0;
    }

    .gid-eco-center {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .gid-eco-footer-text .footer-line1 {
        font-size: 0.95rem;
    }

    /* Adjust ambient antigravity background for mobile - clear center around G */
    .gid-antigravity-layer {
        mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50px, rgba(0,0,0,1) 200px, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50px, rgba(0,0,0,1) 200px, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    }
}
