@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap');
/* 1. CSS VARIABLES (Design Tokens) */
:root { /* The Core Palette */
    --color-midnight: #050505; /* Deep, absorbing black, not greyish */
    --color-electric: #0055FF; /* A slightly deeper, richer electric blue so it doesn't look like a cheap hyperlink */
    --color-white: #FFFFFF;    /* Pure stark white for high contrast */
    --color-silver: #B3B3B3;   /* A highly readable, elegant silver for paragraphs */
    --color-gold: #D4AF37;     /* Soft, metallic gold for authority accents */
    --font-heading: 'Outfit', sans-serif;
    --font-primary: 'Plus Jakarta Sans', sans-serif;
}

/* Force all headings to use the new premium font */
h1, h2, h3, h4, h5, h6, .section-title, .form-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* 2. UNIVERSAL RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 3. BASE MOBILE STYLES */
body {
    background-color: var(--color-midnight);
    color: var(--color-silver);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 4. UTILITY CLASSES */
.container {
    width: 100%;
    padding: 0 1.5rem; /* Standard mobile padding */
    margin: 0 auto;
}
/* =========================================
   5. HEADER & NAVIGATION 
   ========================================= */
.site-header {
    background-color: var(--color-midnight);
    border-bottom: 1px solid #1a1a1a; /* A very subtle line to separate nav from body */
    position: sticky; /* Keeps the nav at the top when scrolling */
    top: 0;
    z-index: 100; /* Ensures the nav stays on top of all other content */
}

/* Flexbox keeps the logo on the left and the button/links on the right */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; 
}

/* Sizing the logo so it isn't massive */
.brand-logo {
    max-height: 40px;
    width: auto;
}

/* --- Mobile Menu Button (Hamburger) --- */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background-color: var(--color-silver);
    border-radius: 2px;
}


/* --- Mobile Navigation Links (Hidden by default) --- */
.nav-links {
    display: none; 
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-midnight);
    padding: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
}

/* This is the class JavaScript adds. NO SPACES in the name! */
.nav-links.active {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--color-silver);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--color-white);
}

/* The Primary Button Style (Electric Blue) */
.btn-primary {
    background-color: var(--color-electric);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none; /* This kills the default browser underline */
    transition: background-color 0.3s ease;
    border: 1px solid var(--color-electric);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent; /* Makes it hollow out on hover */
    color: var(--color-electric);
}

/* The Gold Authority Gradient for the Hero Title */
.text-gradient {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-silver) 50%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   DESKTOP ENHANCEMENTS (Tablet & Up)
   ========================================= */
@media (min-width: 768px) {
    /* Hide the hamburger button on big screens */
    .mobile-menu-btn {
        display: none; 
    }

    /* Change the nav links from a hidden dropdown to a visible horizontal row */
    .nav-links {
        display: block;
        position: static; /* Removes the absolute positioning from mobile */
        width: auto;
        padding: 0;
        border: none;
    }

    .nav-list {
        flex-direction: row; /* Aligns links side-by-side horizontally */
        gap: 2.5rem;
    }
}
/* =========================================
   6. HERO SECTION
   ========================================= */
/* HERO: Midnight Black with a purely Electric Blue glow */
.hero-section {
    background: radial-gradient(circle at 50% -20%, rgba(0, 85, 255, 0.12) 0%, var(--color-midnight) 60%);
    background-color: var(--color-midnight);
}

.hero-container {
    display: flex;
    flex-direction: column; /* MOBILE FIRST: Stacks text on top of image */
    gap: 3rem;
}

/* --- Hero Text Styling --- */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-tagline {
    color: var(--color-gold); /* Using the Gold accent */
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive sizing: huge on desktop, normal on phones */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px; /* Tightens the letters for a logo-like feel */
    margin-bottom: 1.5rem;
    
    /* Premium Gradient Effect */
    background: linear-gradient(135deg, #ffffff 0%, #B3B3B3 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: var(--color-silver);
    font-size: 1.1rem;
    max-width: 90%;
}

/* --- Hero Upgrade Styles --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(212, 175, 55, 0.1); /* Soft Gold background */
    color: var(--color-gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap; /* Keeps buttons neat on mobile */
}

/* The new Outline Button */
.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-white);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-midnight);
}

/* =========================================
   DESKTOP ENHANCEMENTS (Tablet & Up)
   ========================================= */
@media (min-width: 768px) {
    .hero-section {
        padding: 6rem 0; /* Even more breathing room on big screens */
    }

    .hero-container {
        flex-direction: row; /* Desktop: Places text and image side-by-side */
        align-items: center;
        justify-content: space-between;
    }

    .hero-content {
        flex: 1; /* Takes up 50% of the space */
        padding-right: 2rem;
    }

    .hero-title {
        font-size: 3.5rem; /* Larger text on desktop */
    }

    .hero-image-wrapper {
        flex: 1; /* Takes up the other 50% of the space */
        margin: 0;
    }
}
/* =========================================
   7. SHARED SECTION STYLES (Reusable)
   ========================================= */
/* I reused this header style for the Services and Portfolio sections */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.title-underline {
    height: 3px;
    width: 60px;
    background-color: var(--color-electric);
    margin: 0 auto;
    border-radius: 2px;
}

/* =========================================
   8. ABOUT SECTION
   ========================================= */
   /* --- Founder Image Styling --- */
.founder-image-wrapper {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* --- Contained Premium Portrait (Substantial Size & Soft Glow) --- */
.founder-img-expanded {
    width: 100%;
    max-width: 700px; /* Expanded to be much more substantial on desktop without going edge-to-edge */
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 2rem auto 3rem auto; 
    
    /* --- THE SOFT GLOW --- */
    /* Extremely faint border just to stop it from melting into the background */
    border: 1px solid rgba(0, 85, 255, 0.08); 
    
    /* Layered shadows, but dialed way down for a subtle, atmospheric feel */
    box-shadow: 
        0 0 15px rgba(0, 85, 255, 0.08),  /* Soft, tight inner aura */
        0 15px 40px rgba(0, 85, 255, 0.15); /* Gentle, wide outer spread */
    
    position: static;
    transform: none;
    left: auto;
}

.about-section {
    padding: 5rem 0;
    background-color: #0a0a0a; /* Just slightly lighter than midnight black to separate the sections */
}

.about-content {
    max-width: 800px; /* Prevents text from stretching too wide on massive desktop screens */
    margin: 0 auto; /* Centers the text block */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Creates clean spacing between paragraphs */
}

.about-content p {
    color: var(--color-silver);
    font-size: 1.1rem;
    line-height: 1.8; /* Crucial for readability on long text blocks */
}

.about-content strong {
    color: var(--color-white);
}

.about-highlight {
    background-color: rgba(0, 102, 255, 0.05); /* A very faint wash of Electric Blue */
    border-left: 4px solid var(--color-electric);
    padding: 1.5rem 2rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.about-highlight p {
    color: var(--color-white);
    font-style: italic;
    margin: 0; /* Removes default paragraph spacing so the box wraps tightly */
}

.about-closing {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
}
/* --- About Section Read More Toggle --- */

/* 1. This hides the extended text by default on page load */
.about-hidden-content {
    display: none; 
}

/* 2. When JavaScript adds the "show" class, this makes it visible again */
.about-hidden-content.show {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInDown 0.4s ease-out; /* Adds a smooth reveal effect */
}

/* 3. Styling for the clickable toggle button */
.btn-text-toggle {
    background: none;
    border: none;
    color: var(--color-electric);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start; /* Aligns the button to the left */
    transition: color 0.3s ease;
}

/* 1. Only apply hover effects on devices with a mouse (Laptops/Desktops) */
@media (hover: hover) {
    .btn-text-toggle:hover {
        color: var(--color-white);
    }
}

/* 2. Apply a quick 'active' flash for mobile phones when tapped */
.btn-text-toggle:active {
    color: var(--color-white);
    opacity: 0.8;
}

/* 4. A simple animation to make the dropdown feel premium, not jarring */
@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
/* =========================================
   9. SERVICES SECTION
   ========================================= */
.services-section {
    background-color: var(--color-midnight); 
}

/* --- The Mobile-First Grid --- */
.services-grid {
    display: grid;
    /* On mobile, this creates 1 single column */
    grid-template-columns: 1fr; 
    gap: 1.5rem; /* Space between cards */
}

/* --- The Upgraded Service Card --- */
.service-card {
    background-color: #0c0c0c;
    border: 1px solid #1a1a1a;
    padding: 2rem;
    border-radius: 12px; /* Slightly rounder edges for a premium feel */
    text-decoration: none; /* Prevents browser from underlining the text */
    display: flex;
    flex-direction: column; /* Stacks content top-to-bottom */
    transition: all 0.3s ease;
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-icon {
    color: var(--color-gold);
    font-size: 1.8rem;
    margin-bottom: 0; /* Reset margin since it's now in a flex header */
}

/* The new Category Badge */
.service-badge {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-silver);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-name {
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--color-silver);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* The Inquire Link pushed to the bottom */
.service-link {
    margin-top: auto; /* Automatically pushes this to the absolute bottom of the card */
    color: var(--color-electric);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

/* Hover Effects */
@media (hover: hover) {
    .service-card:hover {
        border-color: var(--color-electric);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
    }

    /* Make the arrow slide slightly to the right on hover */
    .service-card:hover .service-link {
        transform: translateX(5px); 
    }
}

/* =========================================
   DESKTOP ENHANCEMENTS (Tablet & Up)
   ========================================= */

/* For Tablets (iPads, etc) */
@media (min-width: 768px) {
    .services-grid {
        /* This automatically splits the grid into 2 equal columns */
        grid-template-columns: repeat(2, 1fr); 
        gap: 2rem;
    }
}

/* For Laptops and Monitors */
@media (min-width: 1024px) {
    .services-grid {
        /* This automatically splits the grid into 3 equal columns */
        grid-template-columns: repeat(3, 1fr); 
    }
    
    /* Because there are 10 cards, a 3-column grid leaves 1 card dangling at the bottom. 
       This neat trick makes the very last card stretch across the remaining space cleanly! */
    .service-card:last-child {
        grid-column: span 1; /* By default it takes 1 column, but on larger screens we can center it if preferred, right now it just fits the grid naturally */
    }
}

/* =========================================
   MASTERMIND SECTION OVERRIDE
   ========================================= */

/* 1. Fix the Clashing Sections */
.mastermind-box {
    background: linear-gradient(145deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    padding: 3rem 1.5rem; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    
    /* THE SPACING FIX: Pushes the box away from the "Inquire Now" card above */
    margin-top: 4rem; 
    margin-bottom: 2rem;
    
    /* THE LAYOUT FIX: Flexbox forces everything inside to stack perfectly without overlapping */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 2. Fix the Heading Spacing inside the box */
.mastermind-box h2 {
    margin-bottom: 1rem !important;
}

/* 3. The Perfected Body Text (Matching Photo 1) */
.mastermind-box p {
    width: 100% !important;
    max-width: 600px !important; /* Slightly tighter width to match the original shape */
    line-height: 1.7 !important; /* Dialed back from 2.0 to get that perfect airy-but-connected feel */
    font-size: 1rem !important; /* Slightly scaled down so more words fit on a single line */
    color: var(--color-silver) !important;
    margin: 1.5rem auto 2.5rem auto !important; 
    padding: 0 !important;
}

/* =========================================
   10. COMMUNITY & TESTIMONIALS SECTION
   ========================================= */
.community-section {
    padding: 5rem 0;
    background-color: var(--color-midnight);
}

.community-container {
    max-width: 800px; /* Keeps the text block from stretching too wide */
    margin: 0 auto;
}

/* --- The Gold Highlight Box --- */
.community-box {
    /* We use RGBA to make the gold color 95% transparent, creating a glass-like wash */
    background-color: rgba(212, 175, 55, 0.05); 
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    /* Adds a very subtle floating shadow */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.quote-icon {
    color: var(--color-gold);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.6; /* Dims the icon slightly so it doesn't overpower the text */
}

.community-text {
    color: var(--color-white);
    font-size: 1.3rem;
    line-height: 1.8;
    font-style: italic; /* Italics traditionally signify quotes/testimonials */
}

/* =========================================
   11. CONTACT SECTION
   ========================================= */
.contact-section {
    padding: 5rem 0 8rem 0; /* Extra padding at the bottom before the footer */
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: #080808;
    padding: 3rem 2rem;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
}

.contact-title {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-text {
    color: var(--color-silver);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Making the WhatsApp button slightly larger */
.whatsapp-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* =========================================
   12. FOOTER (3-Column Layout)
   ========================================= */
.site-footer {
    background-color: #050505; /* Deepest black to anchor the page visually */
    border-top: 1px solid #1a1a1a;
    padding: 5rem 0 0 0;
    color: var(--color-silver);
}

.footer-container {
    display: grid;
    /* This creates 3 columns. The Brand column is slightly wider than the others */
    grid-template-columns: 2fr 1fr 1.5fr; 
    gap: 3rem;
    margin-bottom: 4rem;
}

/* --- Column 1: Brand Logo --- */
.footer-logo-img {
    max-width: 220px; /* Controls how wide the logo gets. Adjust this number if you want it bigger/smaller */
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-desc {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-license {
    border-left: 3px solid var(--color-gold);
    padding-left: 1rem;
}

.footer-license p {
    color: var(--color-gold);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

/* --- Columns 2 & 3: Headings & Lists --- */
.footer-heading {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links, .footer-details {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-details li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-details strong {
    color: var(--color-white);
    display: inline-block;
    width: 100px; /* This keeps all the contact info perfectly aligned in a straight vertical line */
}

.footer-links a, .footer-details a {
    color: var(--color-silver);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover effects for desktop users */
@media (hover: hover) {
    .footer-links a:hover, .footer-details a:hover {
        color: var(--color-electric);
    }
}

/* --- Bottom Copyright Bar --- */
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding: 1.5rem 0;
    background-color: #020202; /* Extremely dark bottom strip */
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.bottom-container p {
    margin: 0;
}

.bottom-container strong {
    color: var(--color-electric);
}

/* =========================================
   13. FOOTER MOBILE RESPONSIVENESS
   ========================================= */
/* Tablet & Small Laptops (When the screen starts to get squished) */
@media (max-width: 1024px) {
    .footer-container {
        /* Change from 3 columns to 2 columns */
        grid-template-columns: 1fr 1fr; 
        gap: 2rem;
    }
    
    /* Force the Brand column to take up the entire top row by itself */
    .brand-col {
        grid-column: 1 / 3; 
        margin-bottom: 1rem;
    }
}

/* Mobile Phones (Stack everything straight down) */
@media (max-width: 768px) {
    .footer-container {
        /* Change from 2 columns to 1 column */
        grid-template-columns: 1fr; 
    }
    
    /* Reset the Brand column so it just stacks normally */
    .brand-col {
        grid-column: 1 / 2; 
    }
    
    .bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .agency-credit {
        text-align: center;
    }
}

/* --- Bottom Copyright & Agency Signature --- */
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding: 1.5rem 0;
    background-color: #020202;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.bottom-container p {
    margin: 0;
    color: var(--color-silver);
}

/* The ImpactDev Styling */
.agency-credit {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 0.3rem;
}

.crafted-text {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--color-silver);
    text-transform: uppercase;
    opacity: 0.7;
}

.agency-name {
    color: var(--color-silver);
}

/* The Signature Glow Effect */
.impact-effect {
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .impact-effect:hover {
        color: var(--color-electric);
        text-shadow: 0 0 10px rgba(0, 102, 255, 0.6); /* Creates the premium glow */
    }
}

/* Mobile adjustments for the signature */
@media (max-width: 768px) {
    .bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .agency-credit {
        text-align: center;
    }
}
/* =========================================
   14. FLOATING WHATSAPP BUTTON
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Ensures it always stays on top of everything */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp i {
    font-size: 1.25rem;
}

.floating-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

/* Hide the text on very small screens so it's just a circular icon */
@media (max-width: 480px) {
    .floating-whatsapp {
        padding: 1rem;
        border-radius: 50%;
    }
    .floating-whatsapp span, 
    .floating-whatsapp text {
        display: none; /* If you wanted to hide text, but we'll leave it for now as Joel Care has it */
    }
}
/* =========================================
   15. BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 90px; /* Perfectly positioned above the WhatsApp button */
    right: 20px;
    background-color: rgba(5, 5, 5, 0.7); /* Semi-transparent midnight black */
    backdrop-filter: blur(5px); /* Premium frosted glass effect */
    color: var(--color-gold); /* Soft Gold arrow */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Faint gold border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    
    /* These hide the button by default */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* This class will be added by JavaScript when the user scrolls */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Hover effect */
@media (hover: hover) {
    .back-to-top:hover {
        background-color: var(--color-electric);
        color: var(--color-white);
        border-color: var(--color-electric);
        transform: translateY(-3px);
    }
}

/* Optional: Ensures the whole page scrolls smoothly when links are clicked */
html {
    scroll-behavior: smooth;
}
/* =========================================
   16. THEME TOGGLE BUTTON & LIGHT MODE
   ========================================= */

/* The Floating Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(5px);
    color: var(--color-gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
    .theme-toggle:hover {
        background-color: var(--color-electric);
        color: var(--color-white);
        border-color: var(--color-electric);
        transform: translateY(-3px);
    }
}

/* =========================================
   THE LIGHT MODE OVERRIDES (BULLETPROOF)
   ========================================= */

/* 1. Force all main section backgrounds to become light */
body.light-theme,
body.light-theme section,
body.light-theme .hero-section,
body.light-theme .about-section,
body.light-theme .services-section,
body.light-theme .contact-section {
    background-color: #F8F9FA !important; /* Crisp off-white */
    background-image: none !important; /* Kills any dark glowing gradients */
}

/* 2. Force all Headings and Main Text to be Dark */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme .section-title {
    color: #111111 !important; /* Pure dark for headings */
}

body.light-theme p,
body.light-theme .hero-subtitle,
body.light-theme .service-desc {
    color: #444444 !important; /* Dark grey for readable paragraphs */
}

/* 3. Fix the Contact Card (Image 18) */
body.light-theme .contact-card,
body.light-theme .cta-container {
    background-color: #FFFFFF !important; /* Force card to be pure white */
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* 4. Fix the About Section Highlight Box (Image 14) */
body.light-theme .about-highlight {
    background-color: rgba(0, 85, 255, 0.08) !important; /* Soft blue wash instead of dark grey */
    border-left: 4px solid var(--color-electric) !important;
}

body.light-theme .about-highlight p {
    color: #111111 !important;
}

/* 5. Fix the Service Cards (Image 16) */
body.light-theme .service-card {
    background-color: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 85, 255, 0.1) !important;
}

/* 6. Protect the Footer (Keep it Dark & Premium) */
body.light-theme .site-footer,
body.light-theme .footer-bottom {
    background-color: #000000 !important;
}

body.light-theme .site-footer h3,
body.light-theme .site-footer h4 {
    color: #FFFFFF !important; /* Keep footer headings white */
}

body.light-theme .site-footer p,
body.light-theme .site-footer a,
body.light-theme .agency-name,
body.light-theme .crafted-text {
    color: var(--color-silver) !important; /* Keep footer text silver */
}

/* =========================================
   LIGHT MODE PATCHES (THE MISSING ELEMENTS)
   ========================================= */

/* 1. Fix the Hero Outline Button (Image 19) */
body.light-theme .btn-secondary {
    color: #111111 !important;
    border-color: #111111 !important;
}

body.light-theme .btn-secondary:hover {
    background-color: #111111 !important;
    color: #FFFFFF !important;
}

/* 2. Fix the Bold/Strong Text in the About Section (Images 20 & 21) */
body.light-theme strong,
body.light-theme b {
    color: #111111 !important;
}

/* 3. Protect the Contact Card Text (Image 22) 
   Since the card stayed dark, we force its text to remain pure white */
body.light-theme .contact-section h1,
body.light-theme .contact-section h2,
body.light-theme .contact-section h3,
body.light-theme .contact-section p,
body.light-theme [class*="contact"] h2,
body.light-theme [class*="contact"] p {
    color: #FFFFFF !important;
}
/* --- Light Mode Gradient Override --- */
body.light-theme .hero-title,
body.light-theme .text-gradient {
    /* Swaps the white gradient for a Dark Charcoal to Gold gradient */
    background: linear-gradient(135deg, #111111 0%, #555555 50%, #D4AF37 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}