:root {
    --brand: #761fe3;
    --brand-glow: rgba(118, 31, 227, 0.4);

    --bg-color: #030108;
    /* Deepest purple-black */
    --surface: rgba(15, 10, 30, 0.5);
    --text-main: #f8fafc;
    --text-muted: #8b85a1;

    --border-color: rgba(118, 31, 227, 0.2);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
}

/* =========================================
   CUSTOM TEXT SELECTION
   ========================================= */
/* ------------------------------------------------------- */
/* Below is purple background and white text selection. Uncomment this section if you want to use it instead of the default white background and purple text selection. */
/* ------------------------------------------------------- */
/* ::selection {
    background: var(--brand);
    color: #ffffff;
}

::-moz-selection {
    background: var(--brand);
    color: #ffffff;
} */
/* ------------------------------------------------------- */

/* ------------------------------------------------------- */
/* Alternative: White background with Purple text */
/* ------------------------------------------------------- */
::selection {
    background: #ffffff; 
    color: var(--brand); 
}

::-moz-selection {
    background: #ffffff;
    color: var(--brand);
}
/* ------------------------------------------------------- */

/* =========================================
   GEOMETRIC SVG PRELOADER STYLES
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #030108; /* Deep brand dark */
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents scrollbars when the logo zooms massively */
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.geom-logo {
    width: 120px;
    height: 120px;
    /* This allows GSAP to scale it smoothly from the center */
    transform-origin: center center;
    will-change: transform, opacity;
}

.gem-line {
    fill: transparent; /* Starts as an invisible outline */
    stroke: var(--brand); /* Draws with your purple color */
    stroke-width: 0.8; /* Thin, elegant lines */
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(118, 31, 227, 0.5));
    transition: fill 0.5s ease;
}

/* When 100% is reached, it fills with your EXACT brand color */
.gem-line.filled {
    fill: #761FE3; 
    stroke: transparent;
    filter: drop-shadow(0 0 15px var(--brand-glow));
}

/* Respect the 50% opacity paths from your original design */
.gem-line.gem-line-faded.filled {
    fill: rgba(118, 31, 227, 0.5); 
}

.loading-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

/* =========================================
   SEAMLESS PAGE TRANSITIONS
   ========================================= */
#page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #030108; /* Matches your deep brand dark */
    z-index: 999998; /* Sits above absolutely everything */
    pointer-events: none; /* Allows users to click the site once hidden */
    
    /* Starts solid black to hide the browser's hard refresh */
    opacity: 1; 
    transition: opacity 0.4s ease-in-out;
}

/* --- THE QUANTUM CANVAS BACKGROUND --- */
#quantum-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
    opacity: 0.5;
}

.grid-floor {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.15;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.cursor-ring {
    width: 25px;
    height: 25px;

    /* This forces the background to be transparent and sets your logo */
    background: transparent url('assets/images/dynamiclabz/icon-1.png') no-repeat center center;
    background-size: contain;

    position: fixed;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);

    /* These kill the old circle look */
    border-radius: 0 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 3rem;
}

.text-brand {
    color: #a875ff;
}

/* Buttons */
.btn-primary,
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--brand);
    color: white;
    border: 1px solid var(--brand);
    box-shadow: 0 0 20px var(--brand-glow);
}

.btn-primary:hover {
    background: #8e3dff;
    border-color: #8e3dff;
    box-shadow: 0 0 30px var(--brand);
}

.btn-glass {
    background: rgba(118, 31, 227, 0.1);
    border: 1px solid rgba(118, 31, 227, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--brand);
}

.btn-massive {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

/* Magnetic Button Setup */
.magnetic-btn {
    display: inline-block;
    /* Will-change tells the browser to prepare for hardware-accelerated movement */
    will-change: transform; 
}

/* =========================================
   PREMIUM NAVBAR HOVER EFFECT
   ========================================= */

/* 1. Target only the main top-level links, set them up for the animation */
.nav-links > a, 
.nav-dropdown > a {
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease !important;
}

/* 2. Brighten the text and add a subtle glow on hover */
.nav-links > a:hover, 
.nav-dropdown > a:hover {
    color: white !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* 3. Create the invisible glowing line hidden at the center of the text */
.nav-links > a::after, 
.nav-dropdown > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px; /* Positions the line just below the word */
    left: 50%; /* Starts the line in the dead center */
    background-color: var(--brand);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth, snappy animation */
    transform: translateX(-50%); /* Keeps it perfectly centered */
    box-shadow: 0 0 10px var(--brand-glow); /* Adds the neon glow */
    border-radius: 2px;
}

/* 4. When hovered, expand the line to 100% of the word's width */
.nav-links > a:hover::after, 
.nav-dropdown > a:hover::after {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(3, 1, 8, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-mark {
    height: 50px;
    width: auto;
}

.nav-text-img {
    height: 20px;
    width: auto;
    filter: invert(1) brightness(2);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-main);
    /* Changed from mono */
    font-weight: 500;
    /* Added for crispness */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   NAVBAR DROPDOWN STYLES
   ========================================= */
.nav-dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 20px; /* Creates an invisible bridge so the hover doesn't break */
    margin-bottom: -20px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: rgba(15, 10, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(118, 31, 227, 0.1);
    
    /* Animation start states */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

/* Trigger the menu on hover */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    border-color: var(--brand);
}

/* Dropdown Links */
.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-muted) !important; /* Overrides default nav link colors */
    font-size: 0.95rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: all 0.3s ease;
}

/* Premium Hover Effect for Dropdown Links */
.dropdown-menu a:hover {
    color: white !important;
    background: rgba(118, 31, 227, 0.15);
    padding-left: 2rem; /* Smooth right-shift effect */
    border-left: 3px solid var(--brand);
}

/* =========================================
   ENTERPRISE MOBILE MENU STYLES
   ========================================= */
.mobile-menu-toggle {
    display: none; /* Hidden on large screens */
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100001; /* Ensure it stays above the glass overlay */
    transition: transform 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 90px; /* Sits just below your navbar */
    right: 5%; /* Aligns with the right padding of your container */
    width: 220px; /* Minimal width */
    height: auto; /* Only takes up as much height as the content needs */
    background: rgba(15, 10, 30, 0.95); /* Deep dark purple-black */
    backdrop-filter: blur(20px);
    border: 1px solid var(--brand);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--brand-glow);
    border-radius: 16px;
    z-index: 100000;
    padding: 1.5rem;
    
    /* Animation start states */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Snappy bounce */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Menu Close Button */
.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 5vw;
    background: rgba(118, 31, 227, 0.1);
    border: 1px solid var(--border-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu-btn:hover {
    background: var(--brand);
    transform: rotate(90deg); /* Cool spinning effect */
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.m-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-main);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center; /* Centers the text perfectly */
    display: block; /* Ensures the click area takes up the whole width */
}

.m-link:hover, 
.m-link.active {
    color: var(--brand);
    transform: scale(1.05); /* A clean, centered popping effect instead of sliding right */
}

/* Responsive Swapping Rules */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block; /* Show hamburger on mobile */
    }
    .desktop-cta {
        display: none !important; /* Hide desktop button on mobile to save space */
    }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
    text-align: left;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(118, 31, 227, 0.1);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-main);
    /* Changed from mono */
    font-weight: 600;
    /* Added for crispness */
    font-size: 0.75rem;
    color: #a875ff;
    margin-bottom: 2rem;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #a875ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #a875ff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.hero-title {
    font-size: clamp(3.5rem, 5vw, 6rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Glass Cards (Services) */
.services {
    padding: 8rem 0;
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: 0 10px 30px var(--brand-glow);
}

.s-icon {
    font-size: 2rem;
    color: #a875ff;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- PILLAR CARD SPECIFICS --- */
.pillar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensures all cards stretch equally */
}

.pillar-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    flex-grow: 1;
    /* Pushes the bottom link perfectly flush to the base */
}

.pillar-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Faint separator line */
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

/* Removes the line under the last item so it looks clean */
.pillar-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pillar-list li i {
    color: var(--brand);
    font-size: 0.8rem;
    margin-top: 4px;
    /* Keeps the checkmark aligned with the top line of text */
}

/* --- 4. OUR PORTFOLIO (3-Column Showcase) --- */
.portfolio-section {
    padding: 8rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 30px var(--brand-glow);
}

/* =========================================
   RESPONSIVE GIANT BACKGROUND NUMBERS
   ========================================= */

/* Use clamp() to smoothly scale the text from 5.5rem on mobile to 16rem on desktop */
.portfolio-card > div[style*="font-size: 16rem"] {
    font-size: clamp(5.5rem, 14vw, 16rem) !important;
    transition: all 0.3s ease;
}

/* Tablet Layout Adjustments */
@media (max-width: 1024px) {
    .portfolio-card > div[style*="font-size: 16rem"] {
        top: -5% !important;
        right: -2% !important;
    }
}

/* Mobile Layout Adjustments */
@media (max-width: 768px) {
    .portfolio-card > div[style*="font-size: 16rem"] {
        top: 0% !important;
        right: 0% !important;
        opacity: 0.06 !important; /* Drops opacity slightly so mobile text is easier to read over it */
    }
}

.p-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.p-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s ease;
    filter: grayscale(40%);
}

.portfolio-card:hover .p-card-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.p-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.p-category {
    font-family: var(--font-main);
    /* Changed from mono */
    font-weight: 600;
    /* Added for crispness */
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.p-card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.p-card-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.btn-text {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    margin-top: auto;
}

.btn-text:hover {
    color: var(--brand-light);
    gap: 15px;
}

/* Responsive Rules */
@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .p-card-image {
        height: 250px;
    }
}

/* --- FULL-WIDTH PORTFOLIO ROWS --- */
.portfolio-stack {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Spacing between each full-width project */
}

.portfolio-row-card {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 split */
    gap: 4rem;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 3rem;
}

.portfolio-row-card:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 30px var(--brand-glow);
}

.p-row-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p-row-content h3 {
    font-size: 2.5rem; /* Larger font for full-width layout */
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.p-summary {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.p-solution {
    background: rgba(118, 31, 227, 0.05);
    border-left: 3px solid var(--brand);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2.5rem;
}

.p-solution p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem; /* Added margin for multiple paragraphs */
}

/* Removes the margin from the last paragraph so it stays flush with the bottom of the box */
.p-solution p:last-child {
    margin-bottom: 0;
}

.p-row-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    /* Optional subtle background behind the mockups */
    background: radial-gradient(circle at center, rgba(118,31,227,0.1) 0%, transparent 70%);
}

.p-row-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: grayscale(20%); /* Less grayscale so it looks better large */
}

.portfolio-row-card:hover .p-row-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1100px) {
    .portfolio-row-card {
        gap: 2rem;
        padding: 2rem;
    }
    .p-row-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .portfolio-row-card {
        grid-template-columns: 1fr; /* Stack vertically on tablets and mobile */
        text-align: center;
        padding: 2.5rem 1.5rem;
    }
    
    .p-row-image {
        grid-row: 1; /* Moves the image to the top on mobile */
        min-height: 300px;
        margin-bottom: 1rem;
    }

    .p-row-content {
        align-items: center; /* Center the button and text */
    }

    .p-solution {
        text-align: left; /* Keep the solution paragraph readable */
        width: 100%;
    }
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
}

.cta-banner {
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 4rem;
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.f-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.f-logo {
    height: 24px;
    width: auto;
}

.f-text-logo {
    height: 16px;
    width: auto;
    filter: invert(1) brightness(2);
}

@media (max-width: 992px) {

    .nav-links,
    .nav-text-img,
    .f-text-logo {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.wide,
    .bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    body {
        cursor: auto;
    }

    .cursor-ring {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- TECH STACK MARQUEE --- */
.tech-stack-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(118, 31, 227, 0.05);
    overflow: hidden;
}

.stack-marquee {
    margin-bottom: 0;
    border: none;
    padding: 0;
    background: transparent;
}

.stack-track {
    display: flex;
    white-space: nowrap;
    font-family: var(--font-main);
    /* Changed from mono */
    font-size: 2rem;
    color: var(--brand);
    font-weight: 700;
    opacity: 0.8;
}

/* --- DEPLOYMENT PROTOCOL (Process) --- */
.process {
    padding: 8rem 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.p-step {
    padding: 3rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.p-step:hover {
    border-color: var(--brand);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--brand-glow);
}

.step-num {
    font-family: var(--font-main);
    /* Changed from mono */
    font-size: 4rem;
    font-weight: 800;
    /* Made bolder */
    opacity: 0.15;
    position: absolute;
    top: -10px;
    right: 20px;
    transition: 0.3s;
}

.p-step:hover .step-num {
    opacity: 0.8;
}

.p-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.p-step p {
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* --- ENCRYPTED FEEDBACK (Testimonials) --- */
.testimonials {
    padding: 5rem 0 6rem; /* Tightened the massive vertical spacing */
}

.test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.test-card {
    padding: 2.5rem; 
    border-radius: 14px; 
    position: relative;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 30px rgba(118, 31, 227, 0.15); /* Softer, minimal glow */
}

.quote-icon {
    font-size: 1.5rem; /* Reduced from 2rem */
    margin-bottom: 1rem;
    opacity: 0.5;
}

.quote-text {
    font-size: 1.05rem; /* Reduced from 1.25rem for a crisper, professional read */
    line-height: 1.7;
    color: white;
    margin-bottom: 2rem;
    font-style: italic;
}

.t-meta {
    margin-top: auto; 
}

.t-meta strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.t-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .test-grid {
        grid-template-columns: 1fr;
    }

    .stack-track {
        font-size: 1.5rem;
    }
}

/* =========================================
   HERO BUTTONS INSTANT LOAD
   ========================================= */
.instant-load {
    opacity: 0;
    transform: translateY(30px);
    /* The 0.6s at the end is a delay, so it loads perfectly right after your subtitle! */
    animation: instantSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s forwards;
}

@keyframes instantSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   ABOUT PAGE SPECIFIC STYLES 
   ========================================= */

/* Shorter hero for inner pages */
.page-header {
    padding-top: 150px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-center {
    align-items: center !important;
    text-align: center !important;
}

.story-content {
    padding: 4rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.story-content p {
    margin-bottom: 1rem;
}

/* Team Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    text-align: center;
}

.team-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Creates a perfect square for team photos */
    border-radius: 16px;
    margin-bottom: 1.5rem;
    background-image: url('assets/images/placeholder-team.jpg');
    /* Replace with actual images */
    background-size: cover;
    background-position: center;
}

.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Adjustments for About Page */
@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .story-content {
        padding: 2.5rem;
    }
}

/* =========================================
   TRUSTED ORGANIZATIONS (INFINITE MARQUEE)
   ========================================= */
.trusted-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 4rem;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.trusted-marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollLogos 30s linear infinite; 
}

.trusted-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    to { transform: translateX(calc(-50% - 1.25rem)); } 
}

/* The Floating Logo Container (Boxes Removed) */
.trust-logo-box {
    width: 200px; 
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.trust-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* filter: grayscale(100%) opacity(0.5); */
    transition: all 0.4s ease;
}

.trust-logo-box:hover {
    transform: translateY(-8px);
}

.trust-logo-box:hover img {
    filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
    .trust-logo-box {
        width: 150px;
        height: 80px;
        padding: 0.5rem;
    }
}

/* The Floating Logo Container (original logo images with no hover effects) */
.trust-logo-box {
    width: 200px; 
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

@media (max-width: 768px) {
    .trust-logo-box {
        width: 150px;
        height: 80px;
        padding: 0.5rem;
    }
}

/* =========================================
   TRUSTED ORGANIZATIONS (STATIC GRID)
   ========================================= */
/* .trusted-static-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
} */

/* The invisible container for each logo */
/* .trust-logo-static {
    width: 160px; 
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* Original Colors By Default (No hover effects) */
/* .trust-logo-static img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
} */

/* Responsive adjustments for Tablets */
/* @media (max-width: 992px) {
    .trusted-static-grid {
        gap: 3rem;
    }
    .trust-logo-static {
        width: 140px;
        height: 70px;
    }
} */

/* Responsive adjustments for Mobile Phones */
/* @media (max-width: 768px) {
    .trusted-static-grid {
        gap: 2rem;
    }
    .trust-logo-static {
        width: 120px;
        height: 60px;
    }
} */

/* =========================================
   TESTIMONIALS CAROUSEL 
   ========================================= */
.test-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.test-carousel::-webkit-scrollbar {
    display: none;
}

/* Force cards to stay a specific width and snap to the start */
.test-carousel .test-card {
    min-width: 340px;
    max-width: 400px; 
    flex: 0 0 auto;
    scroll-snap-align: start;
    cursor: grab;
}

.test-carousel .test-card:active {
    cursor: grabbing;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .test-carousel .test-card {
        min-width: 280px; /* Slimmer on mobile to fit the screen perfectly */
        max-width: 280px;
    }
}

/* =========================================
   CAROUSEL NAVIGATION BUTTONS
   ========================================= */
.nav-btn {
    background: rgba(118, 31, 227, 0.1);
    border: 1px solid var(--border-color);
    color: #a875ff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
    box-shadow: 0 0 20px var(--brand-glow);
    transform: scale(1.05);
}

/* Hide the buttons on mobile screens where users can natively swipe */
@media (max-width: 768px) {
    .carousel-nav {
        display: none !important;
    }
}

/* =========================================
   CAROUSEL DOTS INDICATORS
   ========================================= */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(118, 31, 227, 0.3);
    /* Dimmed purple */
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(118, 31, 227, 0.7);
}

/* The dot for the currently viewed card */
.carousel-dot.active {
    background: var(--brand);
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--brand-glow);
}

/* =========================================
   FULLSCREEN CASE STUDY OVERLAY
   ========================================= */
/* Update this specific block */
.case-study-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 1, 8, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99999;
    overflow-y: auto;

    /* NEW: This stops the scroll from bleeding into the background */
    overscroll-behavior: contain;

    transform: translateY(100%);
    padding: 100px 0;
}

/* =========================================
   CASE STUDY CLOSE BUTTON (FIXED SCROLL FIX)
   ========================================= */
.close-cs-btn {
    position: sticky;
    top: 30px; /* The distance it stays from the top while scrolling */
    
    /* These margins push it to the right and align it perfectly */
    margin-left: auto; 
    margin-right: 5vw; 
    
    /* Counteracts the 100px padding of your modal so it locks at the top immediately */
    margin-top: -70px; 
    margin-bottom: 70px; 
    
    /* Your existing styles */
    background: rgba(118, 31, 227, 0.1);
    border: 1px solid var(--border-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Added a glass blur so it looks premium when text scrolls underneath it */
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
}

.close-cs-btn:hover {
    background: var(--brand);
    transform: rotate(90deg);
}

/* Responsive Fix for Mobile & Tablets */
@media (max-width: 992px) {
    .close-cs-btn {
        top: -50px;
        /* top: 20px; */
        margin-top: -80px; 
        margin-right: 20px; 
    }
}

.cs-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3rem;
}

.cs-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.cs-section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.cs-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .cs-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CASE STUDY SLIDER & IMAGE EFFECTS
   ========================================= */
/* Hide the scrollbar in the slider but keep the scroll action */
.cs-slider::-webkit-scrollbar {
    display: none;
}

/* Hover effect for the slider navigation arrows */
.slider-btn:hover {
    background: var(--brand) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 0 15px var(--brand-glow);
}

/* Hover effect for the 3 Section Images */
.sec-card:hover .sec-img {
    filter: grayscale(0%) !important;
    transform: scale(1.05);
}
/* Responsive adjustment for the fixed-height Case Study slider */
@media (max-width: 768px) {
    .cs-slider-wrapper {
        height: 350px !important; /* Shorter horizontal slot for mobile screens */
    }
}

/* =========================================
   FAQ ACCORDION STYLES
   ========================================= */
.faq-item:hover {
    border-color: var(--brand);
    background: rgba(118, 31, 227, 0.05);
}

.faq-item.active {
    border-color: var(--brand);
    box-shadow: 0 5px 20px var(--brand-glow);
}

/* This rotates the Plus icon 45 degrees to look like an X when opened */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: white;
}

/* NEW: The CSS Animation Engine */
.faq-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.4s ease-in-out;
}

/* When the JS adds the "active" class to the parent, CSS forces it open! */
.faq-item.active .faq-content {
    max-height: 300px; /* Safe upper limit for short text */
    opacity: 1;
    margin-top: 1rem;
}

/* =========================================
   PREMIUM FOOTER STYLES
   ========================================= */
.f-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.f-link:hover {
    color: white;
    transform: translateX(5px); /* Cool subtle right-shift when hovered */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 20%;
    background: rgba(118, 31, 227, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--brand-glow);
}

/* Responsive Footer Adjustments */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* =========================================
   GO TO TOP BUTTON
   ========================================= */
.go-top-btn {
    position: fixed;
    bottom: -80px; /* Hidden off-screen initially */
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(3, 1, 8, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--brand);
    color: #a875ff;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    
    /* Cubic bezier creates a "bouncy" pop-in effect */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(118, 31, 227, 0.2);
    opacity: 0;
}

.go-top-btn.visible {
    bottom: 40px;
    opacity: 1;
}

.go-top-btn:hover {
    background: var(--brand);
    color: white;
    box-shadow: 0 0 25px var(--brand-glow);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .go-top-btn { right: 20px; }
    .go-top-btn.visible { bottom: 20px; }
}

/* =========================================
   CONTACT FORM STYLES
   ========================================= */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem; /* Slightly larger to match standard text */
    color: var(--text-main);
    font-family: var(--font-main); /* Changed to default clean font */
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--brand);
    background: rgba(118, 31, 227, 0.05);
    box-shadow: 0 0 15px rgba(118, 31, 227, 0.2);
}

/* =========================================
   CUSTOM JAVASCRIPT DROPDOWN STYLES
   ========================================= */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

/* The box you click */
.custom-select-display {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    color: var(--text-muted); /* Initial gray text */
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* The GLOW when the dropdown is clicked open */
.custom-select-wrapper.open .custom-select-display {
    border-color: var(--brand);
    background: rgba(118, 31, 227, 0.05);
    box-shadow: 0 0 15px var(--brand-glow);
    color: white;
}

/* Rotate the arrow 180deg when open */
.custom-select-wrapper.open .select-icon {
    transform: rotate(180deg);
    color: var(--brand);
}

/* The actual floating dropdown menu */
.custom-select-options {
    position: absolute;
    top: calc(100% + 10px); /* Hangs just below the box */
    left: 0;
    width: 100%;
    background: rgba(15, 10, 30, 0.95); /* Deep dark purple-black */
    backdrop-filter: blur(20px); /* Premium glass effect */
    border: 1px solid var(--brand);
    box-shadow: 0 10px 30px var(--brand-glow); /* Outer glow on the menu */
    border-radius: 8px;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 100;
    
    /* Animation Rules */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy reveal */
}

/* When open, reveal the menu */
.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual list items */
.custom-select-options li {
    padding: 0.8rem 1.2rem;
    color: var(--text-muted);
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hovering over an option */
.custom-select-options li:hover,
.custom-select-options li.selected {
    background: rgba(118, 31, 227, 0.15);
    color: white;
    padding-left: 1.8rem; /* Cool right-shift effect */
    border-left: 3px solid var(--brand);
}

.select-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    pointer-events: none;
}

/* Make Form Grid Responsive */
@media (max-width: 992px) {
    .contact-grid-wrapper {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    /* Instantly stack all multi-column rows into a single vertical column on phones */
    .form-row-3,
    .form-row-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important; /* Slightly tighter gap for mobile scrolling */
    }
}

/* ======================== */
/* Marketing Page Styles */
/* ======================== */

.tech-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(90deg, rgba(3, 1, 8, 1) 0%, rgba(118, 31, 227, 0.05) 50%, rgba(3, 1, 8, 1) 100%);
    display: flex;
    align-items: center;
}

.marquee-track {
    display: inline-flex;
    animation: scrollMarquee 25s linear infinite;
    gap: 5rem;
    padding-left: 5rem;
}

.marquee-item {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.marquee-item:hover {
    opacity: 1;
    color: white;
}

.marquee-item i {
    color: var(--brand);
    font-size: 1.5rem;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   RESPONSIVE UTILITY CLASSES (ADDED FOR FIX)
   ========================================= */

/* Handles 2-column grids safely */
.grid-2-col {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Handles heavy interior card paddings safely */
.card-lg-padding {
    padding: 3.5rem !important;
}
.card-xl-padding {
    padding: 4rem !important;
}

/* Mobile Breakpoints to collapse the elements */
@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr !important;
    }
    
    .card-lg-padding {
        padding: 1.5rem !important;
    }
    
    .card-xl-padding {
        padding: 2rem !important;
    }
}

/* =========================================
   UNIVERSAL LAYOUT & TYPOGRAPHY FIX
   ========================================= */

/* 1. Prevent Word Chopping */
h1, h2, h3, h4, h5, h6, p, span, a {
    word-break: normal !important;
    overflow-wrap: break-word !important; 
    hyphens: none !important;
}

/* 2. Widen the entire website on Desktop and Laptops */
.container {
    width: 100% !important;
    max-width: 95% !important; /* Increases the width to use almost the whole screen */
    margin: 0 auto !important;
}

/* 3. Mobile specific spacing and sizing */
@media (max-width: 768px) {
    /* Completely remove the large empty space on the left/right for mobile */
    .container, 
    section, 
    header, 
    footer {
        padding-left: 0.75rem !important;  /* Leaves just a tiny, safe margin */
        padding-right: 0.75rem !important;
        /* overflow-x: hidden !important; */
    }

    /* Slightly lower the minimum font size so it perfectly fits the new width */
    h1 { 
        font-size: clamp(1.8rem, 8vw, 4rem) !important; 
        line-height: 1.2 !important; 
    }
    
    h2 { 
        font-size: clamp(1.5rem, 6vw, 3rem) !important; 
        line-height: 1.2 !important; 
    }
    
    h3 { 
        font-size: clamp(1.2rem, 5vw, 2.2rem) !important; 
        line-height: 1.3 !important; 
    }
}

/* =========================================
   EXACT FOOTER & CTA RESPONSIVENESS FIX
   ========================================= */

/* Ensure the footer itself never stretches beyond the screen */
footer, .footer {
    /* overflow-x: hidden !important; */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile Breakpoint for Footer & CTA */
@media (max-width: 768px) {
    
    /* 1. Fix the Footer Grid (Overrides inline HTML to stack vertically) */
    .footer-grid {
        grid-template-columns: 1fr !important; /* Changes 3 columns into 1 single column */
        gap: 2.5rem !important;
    }

    /* 2. Fix the CTA Banner */
    .cta-banner {
        padding: 2.5rem 1rem !important; /* Overrides massive desktop padding */
        margin-bottom: 3rem !important; 
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important; /* Stacks text and button on top of each other */
        align-items: center !important;
        text-align: center !important;
    }

    /* 3. Fix the CTA Button & long email address */
    .cta-banner .btn-massive {
        width: 100% !important; 
        max-width: 320px !important; /* Keeps it a nice clickable size on phones */
        margin-top: 1rem !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        white-space: normal !important; 
        word-break: break-all !important; /* Forces the long email address to wrap instead of bleeding off-screen */
    }

    /* 4. Force the bottom copyright and legal links to stack neatly */
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    
    .footer-bottom .f-legal {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* =========================================
   AWESOME MOBILE MENU UPGRADE
   ========================================= */

/* 1. Widen the menu slightly for better text fit */
.mobile-menu-overlay {
    width: 260px !important; 
    padding: 2rem 1.5rem !important;
}

.mobile-menu-content {
    gap: 0 !important; /* Removes default gap so we can control spacing perfectly */
}

/* 2. Reset the old centered link styles */
.m-link {
    text-align: left !important; 
    border-bottom: none !important; 
    padding: 0.6rem 0 !important;
    transform: none !important; /* Stops the old scale-up pop effect */
}

/* 3. Style the Main Level Links */
.m-link.main-link {
    font-weight: 600 !important;
    font-size: 1.15rem !important;
    color: white !important;
    margin-top: 0.5rem !important;
}

.m-link.main-link:hover {
    color: var(--brand) !important;
}

/* 4. Create the sleek vertical line for Sub-Menus */
.m-sub-menu {
    display: flex;
    flex-direction: column;
    border-left: 2px solid rgba(118, 31, 227, 0.3); /* Subtle purple line */
    margin-left: 0.5rem; 
    padding-left: 1rem; /* Spacing between line and text */
    margin-bottom: 0.5rem;
}

/* 5. Style the Sub-Level Links with a cool hover effect */
.m-link.sub-link {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
    padding: 0.4rem 0 !important;
    transition: all 0.3s ease !important;
}

.m-link.sub-link:hover {
    color: white !important;
    padding-left: 8px !important; /* Cool slide right effect on touch/hover */
}

/* =========================================
   PORTFOLIO FILTER TABS
   ========================================= */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.filter-btn:hover {
    border-color: var(--brand-glow);
    color: white;
}

.filter-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    box-shadow: 0 4px 15px var(--brand-glow);
}

.portfolio-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.hide-item {
    display: none !important;
}

/* =========================================
   PORTFOLIO FILTER TABS HORIZONTAL SCROLL (MOBILE)
   ========================================= */
@media (max-width: 992px) {
    .portfolio-filters {
        flex-wrap: nowrap;           /* Stops the buttons from wrapping/stacking */
        justify-content: flex-start; /* Aligns them to the left for natural scrolling */
        overflow-x: auto;            /* Enables horizontal scrolling */
        
        /* Hide scrollbars for a clean, app-like look */
        -ms-overflow-style: none;    /* IE/Edge */
        scrollbar-width: none;       /* Firefox */
        
        padding-bottom: 10px;        /* Breathing room at the bottom */
        scroll-snap-type: x mandatory; /* Makes the swipe feel premium and snappy */
    }

    .portfolio-filters::-webkit-scrollbar {
        display: none; /* Hides the scrollbar in Chrome/Safari */
    }

    .filter-btn {
        white-space: nowrap;       /* Prevents the button text from breaking into two lines */
        flex: 0 0 auto;            /* Stops the buttons from squishing together */
        scroll-snap-align: start;  /* Snaps the button perfectly into place when swiping */
    }
}

/* =========================================
   GSAP MORPHING DROPDOWN (MOBILE FILTERS)
   ========================================= */
.filter-dropdown-toggle {
    display: none; /* Hidden on desktop */
}

/* Original desktop filters keep their layout, just remove their native bottom margin since the wrapper handles it now */
@media (min-width: 993px) {
    .custom-filter-wrapper .portfolio-filters {
        margin-bottom: 0; 
    }
}

@media (max-width: 992px) {
    .custom-filter-wrapper {
        max-width: 350px;
        margin: 0 auto 3rem auto !important;
        z-index: 50;
    }

    .filter-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.2rem 1.8rem;
        border-radius: 12px;
        color: white;
        font-family: var(--font-main);
        font-weight: 500;
        font-size: 1.05rem;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .filter-dropdown-toggle.open {
        border-color: var(--brand);
        background: rgba(118, 31, 227, 0.05);
        box-shadow: 0 0 20px var(--brand-glow);
    }

    .filter-dropdown-toggle .drop-icon {
        color: var(--brand);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .filter-dropdown-toggle.open .drop-icon {
        transform: rotate(180deg);
    }

    /* Convert the row of buttons into a dropdown menu */
    /* Convert the row of buttons into a dropdown menu */
    .custom-filter-wrapper .portfolio-filters {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(15, 10, 30, 0.95);
        border: 1px solid var(--brand);
        border-radius: 12px;
        padding: 0.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px var(--brand-glow);
        backdrop-filter: blur(20px);
        gap: 0;
        margin-bottom: 0;
        
        /* Hidden fallback before GSAP takes over */
        opacity: 0;
        visibility: hidden;
        /* REMOVED: pointer-events: none; */ 
    }

    .custom-filter-wrapper .filter-btn {
        width: 100%;
        text-align: left;
        background: transparent;
        border: none;
        border-radius: 8px;
        padding: 1rem 1.5rem;
        box-shadow: none;
        margin-bottom: 0;
    }

    .custom-filter-wrapper .filter-btn:hover,
    .custom-filter-wrapper .filter-btn.active {
        background: rgba(118, 31, 227, 0.15);
        border-left: 3px solid var(--brand);
        border-radius: 4px;
        padding-left: 2.2rem; /* Premium sliding hover effect */
    }
}