



/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --cld-neon: #00cad8;
    --cld-dark-glass: rgba(11, 15, 25, 0.85);
    --cld-light-glass: rgba(255, 255, 255, 0.85);
    --cld-blur: blur(12px);
    --cld-radius: 50px;
    --cld-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.cld-header *, .cld-mobile-overlay * { box-sizing: border-box; }

body { margin: 0; padding: 0; }

/* =========================================
   2. HEADER STRUCTURE (FIXED: Removing White Bar)
   ========================================= */
.cld-header {
    position: fixed !important; /* CRITICAL FIX: Floats header over content */
    top: 25px; 
    left: 0; 
    width: 100%;
    z-index: 999; 
    padding: 0 15px;
    pointer-events: none;
    transition: top 0.5s var(--cld-ease);
    font-family: 'Inter', sans-serif; 
}

.cld-spacer-main {
    padding: 60px 0;

}

.cld-capsule {
    pointer-events: auto;
    /* Default State: Transparent Glass */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    border-radius: var(--cld-radius);
    padding: 0 30px;
    width: 100%; max-width: 1100px; height: 80px;
    margin: 0 auto;
    display: flex; align-items: center;
    transition: all 0.4s var(--cld-ease);
}

/* =========================================
   3. SVG LOGO
   ========================================= */
.cld-brand a, .cld-drawer-brand a { display: block; line-height: 0; }
.cld-logo-svg { height: 35px; width: auto; display: block; }
.cld-logo-shape { fill: #ffffff; transition: fill 0.3s ease; }

/* =========================================
   4. SCROLLED STATE
   ========================================= */
.cld-header.cld-scrolled { top: 10px; }
.cld-header.cld-scrolled .cld-capsule {
    background: var(--cld-dark-glass);
    backdrop-filter: var(--cld-blur);
    -webkit-backdrop-filter: var(--cld-blur);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 950px; height: 65px; 
}

/* =========================================
   5. LIGHT THEME STATE
   ========================================= */
.cld-header.cld-on-light .cld-capsule {
    background: var(--cld-light-glass) !important;
    backdrop-filter: var(--cld-blur) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Force elements to Black on Light Backgrounds */
.cld-header.cld-on-light .cld-logo-shape { fill: #000000 !important; }
.cld-header.cld-on-light .cld-links > li > a { color: #111 !important; }
.cld-header.cld-on-light .cld-links > li > a:hover { color: #555 !important; }
.cld-header.cld-on-light .cld-btn-primary { background: #000 !important; color: #fff !important; }
.cld-header.cld-on-light .cld-line { background: #000 !important; }

/* =========================================
   6. NAVIGATION ELEMENTS
   ========================================= */
.cld-nav-grid { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.cld-links { display: flex; gap: 35px; list-style: none; margin: 0; padding: 0; align-items: center; }
.cld-links > li { position: relative; }
.cld-links > li > a {
    text-decoration: none; color: rgba(255, 255, 255, 0.9);
    font-weight: 500; font-size: 15px; 
    position: relative; transition: color 0.3s;
    display: block; padding: 20px 0;
}
.cld-links > li > a:hover, .cld-links > li > a.active { color: #fff; }

/* Desktop Dropdown */
.cld-sub-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translate(-50%, 15px);
    background: #151a28; min-width: 180px; padding: 15px 0;
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    opacity: 0; visibility: hidden; transition: all 0.3s var(--cld-ease);
    list-style: none; box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 1000;
}
.cld-has-sub:hover .cld-sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cld-sub-menu li a { display: block; padding: 8px 20px; color: #bbb; font-size: 14px; text-decoration: none; }
.cld-sub-menu li a:hover { color: var(--cld-neon); background: rgba(255,255,255,0.03); }

/* Actions */
.cld-actions { display: flex; align-items: center; gap: 15px; }
.cld-btn-primary {
    background: var(--cld-neon); color: #000; padding: 10px 24px;
    border-radius: 50px; font-weight: 700; font-size: 13px;
    text-transform: uppercase; text-decoration: none; transition: 0.3s; white-space: nowrap;
}
.cld-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 202, 216, 0.3); }

/* Hamburger */
.cld-hamburger {
    display: none; background: none; border: none;
    flex-direction: column; gap: 6px; cursor: pointer; padding: 5px;
}
.cld-line { width: 26px; height: 2px; background: #fff; display: block; transition: 0.3s; }

/* =========================================
   7. RESPONSIVE RULES & ANIMATIONS (UPDATED)
   ========================================= */
@media (min-width: 992px) {
    .cld-mobile-overlay, .cld-hamburger { display: none !important; }
    .cld-menu-desktop { display: block !important; }
}

@media (max-width: 991px) {
    /* Hide Desktop Elements */
    .cld-menu-desktop, .cld-btn-primary { display: none !important; }
    .cld-hamburger { display: flex !important; pointer-events: auto; }
    
    /* Header Adjustments */
    .cld-capsule { background: transparent !important; backdrop-filter: none !important; border: none !important; box-shadow: none !important; padding: 0 15px; }
    .cld-header.cld-scrolled .cld-capsule { background: rgba(11, 15, 25, 0.95) !important; padding: 0 20px; height: 70px; }
    .cld-header.cld-on-light .cld-capsule { background: rgba(255, 255, 255, 0.95) !important; }
    
    /* --- MOBILE OVERLAY (ANIMATION WRAPPER) --- */
    .cld-mobile-overlay {
        display: block;
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        z-index: 10000;
        
        /* Default State: Hidden & Transparent */
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* Allows clicking through it when closed */
        transition: all 0.4s ease; /* SMOOTH FADE ANIMATION */
    }

    /* Active State (When Open) */
    .cld-mobile-overlay.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .cld-mobile-backdrop {
        position: absolute; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
    }

    /* --- DRAWER (SLIDING MENU) --- */
    .cld-mobile-drawer {
        position: absolute; top: 0; right: 0; bottom: 0; 
        width: 85%; max-width: 320px;
        background: #fff; 
        padding: 30px; 
        display: flex; flex-direction: column; text-align: left;
        z-index: 10001;
        
        /* Slide Animation */
        transform: translateX(100%); /* Start off-screen */
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* SMOOTH SLIDE */
    }

    /* Slide it in when active */
    .cld-mobile-overlay.is-active .cld-mobile-drawer {
        transform: translateX(0);
    }

    /* --- DRAWER CONTENT --- */
    .cld-drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
    .cld-close-btn { background: #f0f0f0; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #000; cursor: pointer; }
    
    .cld-drawer-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; }
    .cld-drawer-list a { display: block; font-size: 20px; color: #333; padding: 12px 0; text-decoration: none; border-bottom: 1px solid #f5f5f5; }
    
    /* --- DROPDOWN FIX (Makes Text Visible) --- */
    .cld-drawer-list .cld-sub-menu { 
        display: none; 
        background: #fafafa; 
        padding-left: 20px; 
    }
    
    .cld-drawer-list .cld-sub-menu li a {
        color: #000000 !important; /* Forces Black Text */
        font-size: 16px;
        border-bottom: 1px solid #eaeaea;
    }
}


/* =========================================
   CRITICAL FIX: FORCE MOBILE DROPDOWN VISIBILITY
   ========================================= */
@media (max-width: 991px) {
    /* Override desktop hiding rules */
    .cld-drawer-list .cld-sub-menu {
        opacity: 1 !important;        /* Force it to be visible */
        visibility: visible !important; /* Force it to be seen */
        position: static !important;  /* Stack it normally, don't float it */
        transform: none !important;   /* Remove desktop slide effects */
        box-shadow: none !important;  /* Remove desktop shadow */
        
        /* Ensure background stands out */
        background: #f5f5f5 !important;
        margin-top: 10px;
        border-radius: 8px;
    }
    
    /* Ensure the links inside are black and visible */
    .cld-drawer-list .cld-sub-menu li a {
        color: #000 !important;
        padding: 12px 20px !important;
    }
}



 /*    FOOTER    */

/* =========================================
   1. BASE FOOTER CONTAINER
   ========================================= */
.footer-section-s2 {
    margin: 60px 40px;
    background: #000;
    border-radius: 28px;
    padding: 100px 80px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* =========================================
   2. TOP BAR (Title + Button)
   ========================================= */
.footer-section-s2 .footer-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns left */
    margin-bottom: 80px;
    position: relative;
}

/* Big Title "LET'S WORK" */
.footer-section-s2 .footer-topbar h2 {
    color: #FFF;
    font-size: 100px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

/* Button Wrapper (Holds the Connector Line) */
.footer-section-s2 .footer-topbar .btn-wrapper {
    margin-left: 100px; /* Space from title */
    position: relative;
    display: flex;
    align-items: center;
}

/* The Connector Line (Desktop Only) */
.footer-section-s2 .footer-topbar .btn-wrapper::before {
    content: '';
    position: absolute;
    left: -100px; /* Reach back to title */
    top: 50%;
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* THEME BUTTON (Pill Shape) */
.footer-section-s2 .theme-btn {
    padding: 18px 45px;
    border-radius: 50px;
    background: #00cad8; /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-section-s2 .theme-btn:hover {
    background: #000000;
    border-color: #000000;
    color: #fff9f9;
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 202, 216, 0.4);
}

/* =========================================
   3. MAIN CONTENT (Left & Right Widgets)
   ========================================= */
.footer-section-s2 .footer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

/* --- LEFT SIDE: Contact Info --- */
.footer-section-s2 .left-widget {
    width: 45%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section-s2 .widget-contact {
    width: 100%;
    max-width: 300px;
}

/* Force Headers to be White (Fix for "blended" text) */
.footer-section-s2 .widget-contact .title h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff !important;
    opacity: 1 !important;
}

.footer-section-s2 .widget-contact .title p {
    font-size: 16px;
    color: #b0b0b0 !important; /* Light Grey */
    line-height: 1.6;
}

.footer-section-s2 .widget-contact h3 {
    font-size: 24px;
    margin-top: 20px;
    color: #ffffff !important;
}

.footer-section-s2 .widget-contact h4 {
    font-size: 18px;
    color: #00cad8 !important; /* Cyan */
    margin-top: 5px;
}

/* --- RIGHT SIDE: Menu & Newsletter --- */
.footer-section-s2 .right-widget {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* BIG MENU STYLES */
.footer-section-s2 .f-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section-s2 .f-menu ul a {
    font-size: 40px; /* Big Text */
    font-weight: 700;
    color: #fff !important;
    text-transform: uppercase;
    line-height: 1.2 !important; /* Prevents slicing */
    display: block;
    opacity: 0.5;
    transition: all 0.3s ease;
    
    /* Fixes for "sliced" or "double" text issues */
    height: auto !important;
    overflow: visible !important;
}

.footer-section-s2 .f-menu ul a:hover {
    opacity: 1;
    color: #00cad8 !important;
    padding-left: 15px;
}

/* Hide ghost text from rolling animation */
.footer-section-s2 .f-menu ul a::after,
.footer-section-s2 .f-menu ul a::before {
    display: none !important;
}

/* NEWSLETTER BOX */
.footer-section-s2 .newsletter-widget {
    margin-top: 50px;
    width: 100%;
    max-width: 400px;
}

.footer-section-s2 .newsletter-widget h5 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff !important;
}

.footer-section-s2 .newsletter-widget form {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-section-s2 .newsletter-widget input {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 0;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.footer-section-s2 .newsletter-widget button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #00cad8;
    font-size: 20px;
    cursor: pointer;
}

/* =========================================
   4. LOWER FOOTER (Copyright & Socials)
   ========================================= */
.footer-section-s2 .footer-lower {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-section-s2 .footer-lower p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.footer-section-s2 .widget-social {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.footer-section-s2 .widget-social li {
    list-style: none;
}

.footer-section-s2 .widget-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: 0.3s;
}

.footer-section-s2 .widget-social a:hover {
    background: #00cad8;
    color: #000;
    border-color: #00cad8;
}


/* =========================================
   5. RESPONSIVE / MOBILE STYLES
   ========================================= */

/* LAPTOP (Scale down slightly) */
@media (max-width: 1399px) {
    .footer-section-s2 { padding: 80px 40px 30px; }
    .footer-section-s2 .footer-topbar h2 { font-size: 80px; }
    .footer-section-s2 .f-menu ul a { font-size: 32px; }
}

/* TABLET & MOBILE (Max Width 991px) - CENTER EVERYTHING */
@media (max-width: 991px) {
    
    .footer-section-s2 {
        margin: 0;
        border-radius: 0;
        padding: 60px 20px;
    }

    /* TOP BAR: Stack & Center */
    .footer-section-s2 .footer-topbar {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 50px;
    }

    .footer-section-s2 .footer-topbar h2 {
        font-size: 60px;
        width: 100% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* BUTTON: Center & Fix Size */
    .footer-section-s2 .footer-topbar .btn-wrapper {
        margin: 30px auto 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .footer-section-s2 .theme-btn {
        width: auto !important;
        min-width: 180px;
        max-width: 260px;
        margin: 0 auto !important;
        transform: none !important;
    }

    /* Remove Connector Line */
    .footer-section-s2 .footer-topbar .btn-wrapper::before {
        display: none !important;
    }

    /* MAIN CONTENT: Stack Vertically */
    .footer-section-s2 .footer {
        flex-direction: column;
        gap: 50px;
    }

    /* LEFT WIDGET: Center Align */
    .footer-section-s2 .left-widget {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-section-s2 .widget-contact {
        max-width: 100%;
        align-items: center;
    }

    /* RIGHT WIDGET: Center Align */
    .footer-section-s2 .right-widget {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 50px;
        align-items: center;
    }

    .footer-section-s2 .f-menu ul {
        align-items: center;
    }
    
    .footer-section-s2 .f-menu ul a {
        font-size: 30px;
        text-align: center;
    }

    /* NEWSLETTER: Center Align */
    .footer-section-s2 .newsletter-widget {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .footer-section-s2 .newsletter-widget form {
        width: 100%;
        max-width: 350px;
    }

    /* LOWER FOOTER: Stack & Center */
    .footer-section-s2 .footer-lower .row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-section-s2 .widget-social {
        justify-content: center;
    }
}

/* MOBILE PHONES (Max Width 575px) */
@media (max-width: 575px) {
    .footer-section-s2 .footer-topbar h2 {
        font-size: 42px; /* Fits phone screen */
    }
    
    .footer-section-s2 .theme-btn {
        padding: 15px 35px;
        font-size: 14px;
    }
    
    .footer-section-s2 .f-menu ul a {
        font-size: 24px;
    }
}

/* --- FORCE "LET'S WORK" TO CENTER ON MOBILE --- */
@media (max-width: 991px) {
    
    /* 1. Force the Top Bar container to be a centered column */
    .footer-section-s2 .footer-topbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* 2. Force the H2 Headline to take up full width */
    .footer-section-s2 .footer-topbar h2,
    .footer-section-s2 .footer-topbar .splittext-line {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block !important;
        float: none !important; /* Resets any right-float */
    }

    /* 3. (Crucial) Fix for SplitText Animation Spans */
    /* If the text is split into letters/words, force them to center */
    .footer-section-s2 .footer-topbar h2 div,
    .footer-section-s2 .footer-topbar h2 span {
        text-align: center !important;
        justify-content: center !important;
        display: inline-block !important; /* Keeps letters together */
    }
}
