:root {
    /* Brand Colors for CometEnergy */
    --color-bg-dark: #050505; 
    --color-primary-blue: #1769FF; 
    --color-text-light: #F5F5F7;
    --color-text-muted: #A1A1A6;
    
    --font-primary: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: var(--font-primary); 
    color: var(--color-text-light); 
    background: transparent; /* Lets the subtle WebGL shine through */
    line-height: 1.6; 
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
img { max-width: 100%; display: block; border-radius: 8px; }
a { text-decoration: none; color: inherit; }

/* ==========================================================================
   HEADER / NAVBAR 
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    background-color: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1600px; 
    margin: 0 auto;
    padding: 0 4rem;
    height: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.logo { 
    font-size: 1.4rem; 
    font-weight: 700; 
    letter-spacing: 0.05em; 
    color: var(--color-text-light);
    text-transform: uppercase;
}
.logo span { color: var(--color-primary-blue); }

.nav-links-container {
    display: flex;
    gap: 3rem;
    position: relative; 
    height: 100%;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    z-index: 1001; 
}

/* ==========================================================================
   ANIMATED UNDERLINE 
   ========================================================================== */
.nav-link, .footer-link {
    position: relative;
    display: inline-block; 
    padding-bottom: 4px; 
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.nav-link::after, .footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;           
    height: 1.5px;        
    background-color: var(--color-text-light); 
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

.nav-link:hover, .footer-link:hover, .nav-link.active { color: var(--color-text-light); }
.nav-link:hover::after, .footer-link:hover::after, .nav-link.active::after { width: 100%; }

/* ==========================================================================
   HERO SECTION 
   ========================================================================== */
/* FIXED: Removed flexbox centering so the layout stacks naturally and never overlaps the footer */
.page-wrapper {
    min-height: 100vh;
    display: block; 
    padding-top: 200px; /* Pushes the content down below the header */
    padding-bottom: 100px; /* Protects it from hitting the footer */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw + 1rem, 3.8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.btn-primary {
    display: inline-flex;
    padding: 1rem 2.5rem;
    background: var(--color-primary-blue);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: #0d52d6; }

.reveal { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.2s; }

/* ==========================================================================
   SERVICES & ABOUT US
   ========================================================================== */
/* ==========================================================================
   SERVICES & ABOUT US (LIQUID GLASS UPGRADE)
   ========================================================================== */
.services-section { padding-bottom: 6rem; width: 100%; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; margin-top: 3rem; }

.service-card { 
    position: relative;
    background: rgba(255, 255, 255, 0.015); /* Extremely sheer base */
    
    /* The AndroidLiquidGlass Refraction Effect */
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    
    padding: 2.5rem 2rem; 
    border-radius: 20px; /* Slightly rounder to feel like surface tension */
    border: 1px solid rgba(255, 255, 255, 0.08); 
    
    /* 3D Edge Lighting (Top highlight, bottom shadow) */
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15), 
        inset 0 -1px 1px rgba(0, 0, 0, 0.25),      
        0 8px 32px rgba(0, 0, 0, 0.4);             
    
    overflow: hidden; /* Contains the liquid shine inside the box */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.6s ease, 
                box-shadow 0.6s ease; 
    z-index: 1;
}

/* The Liquid Shine / Glare Layer */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -150%; /* Starts hidden off-screen */
    width: 60%; 
    height: 100%;
    /* Creates a soft, angled beam of light */
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1; 
    pointer-events: none;
}

/* Fluid Hover Interaction */
.service-card:hover { 
    transform: translateY(-8px) scale(1.02); /* Slight organic lift & expansion */
    border-color: rgba(23, 105, 255, 0.3); /* Brand blue edge glow */
    
    /* Ambient blue glow underneath the box */
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.2), 
        inset 0 -1px 2px rgba(0, 0, 0, 0.3), 
        0 16px 40px rgba(23, 105, 255, 0.15); 
}

/* Trigger the glare to wash across the glass on hover */
.service-card:hover::before {
    left: 200%;
}

.service-card h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--color-text-light); }
.service-card p { color: var(--color-text-muted); font-size: 0.95rem; }
/* ==========================================================================
   SPLIT CONTACT PAGE
   ========================================================================== */
.pt-navbar { padding-top: 160px; } /* Increased top padding */
.contact-split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; max-width: 1400px; margin: 0 auto; padding: 0 4rem 6rem 4rem; width: 100%; }
.contact-heading { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 4rem; color: var(--color-text-light); }
/* ==========================================================================
   SPLIT CONTACT PAGE (LIQUID GLASS UPGRADE)
   ========================================================================== */
.minimal-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    max-width: 100%; 
    
    /* Liquid Glass Container Effects */
    background: rgba(255, 255, 255, 0.015); 
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    padding: 3rem; 
    border-radius: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    
    /* 3D Edge Lighting */
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.15), 
        inset 0 -1px 1px rgba(0, 0, 0, 0.25),      
        0 8px 32px rgba(0, 0, 0, 0.4); 
}

/* Ensure it stays responsive on smaller screens */
@media (max-width: 992px) {
    .minimal-form {
        padding: 2rem 1.5rem; /* Slightly tighter padding for phones */
    }
}
.input-wrapper { position: relative; width: 100%; }
.minimal-input { 
    width: 100%; 
    display: block; /* FIX: Removes the invisible baseline gap causing the double line */
    background: transparent; 
    border: none; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
    color: var(--color-text-light); 
    padding: 1rem 0; 
    font-family: inherit; 
    font-size: 1.05rem; 
    outline: none; 
    transition: opacity 0.3s ease; 
}

.input-line { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background-color: var(--color-primary-blue); transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); pointer-events: none; }
.minimal-input:focus ~ .input-line { width: 100%; }
textarea.minimal-input { resize: none; }

.btn-pill { align-self: flex-start; background-color: rgba(255, 255, 255, 0.1); color: var(--color-text-light); border: none; padding: 0.8rem 2.5rem; border-radius: 50px; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; margin-top: 1rem; }
.btn-pill:hover { background-color: var(--color-primary-blue); color: #FFF; }

.contact-image-wrapper { margin-bottom: 2rem; overflow: hidden; border-radius: 4px; }
.contact-image { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; filter: grayscale(80%) contrast(1.2); }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.info-block { display: flex; flex-direction: column; gap: 0.3rem; }
.info-label { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 500; }
.info-link { font-size: 0.95rem; color: var(--color-text-light); transition: color 0.3s ease; }
.info-link:hover { color: var(--color-primary-blue); }

/* ==========================================================================
   GIANT ATOMS-STYLE FOOTER
   ========================================================================== */
/* FIXED: Restored solid background so the giant text is highly readable */
.atoms-footer { 
    background-color: var(--color-bg-dark); 
    padding: 6rem 0 4rem 0; 
    width: 100%; 
    overflow: hidden; 
    position: relative;
    z-index: 10; 
}
.footer-container { max-width: 1600px; margin: 0 auto; padding: 0 4rem; }
.footer-divider { border: none; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-bottom: 2rem; }
.giant-brand-wrapper { width: 100%; display: flex; justify-content: center; margin-bottom: 1.5rem; }
.giant-brand { font-size: clamp(3rem, 12vw, 15rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.02em; color: var(--color-text-light); text-transform: uppercase; white-space: nowrap; }
.giant-brand span { color: var(--color-primary-blue); }
.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; padding-top: 1rem; font-size: 0.9rem; font-weight: 500; color: var(--color-text-muted); }
.footer-copy { white-space: nowrap; }

/* ==========================================================================
   FIXED MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 992px) {
    .container, .footer-container { padding: 0 1.5rem; }
    .nav-container { padding: 0 1.5rem; }
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }
    /* Forces long email addresses to wrap on smaller screens */
.info-link {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: inline-block;
    max-width: 100%;
}

    /* Mobile Menu Overlay */
    .nav-links-container {
        position: fixed;
        top: 90px; 
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: #050505; 
        flex-direction: column;
        justify-content: flex-start; 
        align-items: flex-start; 
        padding: 1rem 1.5rem 4rem 1.5rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links-container.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        position: relative;
        font-size: 1.1rem; 
        font-weight: 600;
        padding: 1.2rem 0;
        margin-bottom: 0;
        color: var(--color-text-light);
        width: 100%; 
        display: block; 
        border-bottom: none; 
        text-align: left;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0; 
        height: 1px;
        background-color: rgba(255, 255, 255, 0.15); 
        transition: width 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .nav-links-container.active .nav-link:nth-child(1)::before { width: 100%; transition-delay: 0.1s; }
    .nav-links-container.active .nav-link:nth-child(2)::before { width: 100%; transition-delay: 0.2s; }
    .nav-links-container.active .nav-link:nth-child(3)::before { width: 100%; transition-delay: 0.3s; }
    .nav-links-container.active .nav-link:nth-child(4)::before { width: 100%; transition-delay: 0.4s; }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0; 
        left: 0;
        width: 0; 
        height: 2px; 
        background-color: var(--color-text-light);
        transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 2; 
    }

    .nav-link:hover::after, .nav-link.active::after { width: 100%; }

    .hero-title { font-size: 2.2rem; word-wrap: break-word; hyphens: auto; }
    .hero-container { grid-template-columns: 1fr; text-align: left; }
    .hero-subtitle { margin: 0 0 2.5rem 0; }
    
    .page-wrapper { padding-top: 140px; padding-bottom: 60px; }
    
    /* ==========================================================================
       MOBILE RESPONSIVE FIXES (CONTACT & FOOTER)
       ========================================================================== */
    
   /* 1. Prevent Giant Text from Breaking the Screen */
    .contact-heading { 
        font-size: 2.2rem; 
        word-wrap: break-word; 
        hyphens: auto; 
        margin-bottom: 2rem;
    }
    
    /* 2. Collapse the 2-Column Grid into a Single Stack */
    /* 2. Re-order specific blocks on mobile */
    .contact-split-section { 
        display: flex; /* Switch to flexbox for precise vertical ordering */
        flex-direction: column; 
        padding: 0 1.5rem 2rem 1.5rem; 
        gap: 2.5rem; 
    }

    /* "Dissolves" the right column wrapper on mobile so we can move its children independently */
    .contact-right {
        display: contents; 
    }

    /* Explicit Mobile Ordering */
    .contact-image-wrapper {
        order: 1; /* Pushes the Image to the very top */
    }

    .contact-left {
        order: 2; /* Keeps the Heading and Form in the middle */
    }

    /* 4. Match the Reference Layout: 2-Column Info Grid */
    .contact-info-grid { 
        order: 3; /* Drops the Contact Info perfectly below the form */
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); 
        gap: 1.5rem; 
        margin-top: 0; /* Removing extra top margin since flex 'gap' handles spacing */
    }
    
    /* 3. Fix the Form Overflow */
    .minimal-form { 
        max-width: 100%; 
        padding: 1.5rem; 
        border-radius: 12px; 
    }

    /* 4. Match the Reference Layout: Stack Contact Info and Footer Links */
    /* 4. Match the Reference Layout: 2-Column Info Grid */
    /* 4. Match the Reference Layout: 2-Column Info Grid */
    .contact-info-grid { 
        display: grid;
        /* FIX: minmax(0, 1fr) overrides the grid's refusal to shrink, allowing word-wrap to trigger */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); 
        gap: 1.5rem; 
        margin-top: 2rem;
    }
    
    /* 5. Fix Footer Links to a Horizontal Row */
    .footer-bottom-row { 
        display: flex;
        flex-direction: row; /* Forces links onto a single line */
        flex-wrap: wrap; 
        justify-content: space-between; /* Spreads them out evenly */
        align-items: center; 
        gap: 0.5rem; 
    }

    /* Shrink footer text slightly on mobile so it all fits on one line */
    .footer-bottom-row span, .footer-bottom-row a {
        font-size: 0.75rem;
    }
}
/* ==========================================================================
   ABOUT US LAYOUT FIX
   ========================================================================== */
.about-split {
    align-items: center; /* Perfectly centers the text and image vertically */
}

/* Removes the extra spacing underneath the image on the About page */
.about-split .contact-image-wrapper {
    margin-bottom: 0;
}