@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Colors */
    --color-primary: #007bff;
    --color-primary-dark: #0056b3;
    --color-primary-rgb: 0, 123, 255;
    /* RGB values for --color-primary */

    /* Secondary Colors */
    --color-secondary: #6c757d;

    /* Accent Colors */
    --color-accent: #28a745;

    /* Neutral Colors */
    --color-text-dark: #212529;
    --color-text-light: #6c757d;
    --color-white: #FFFFFF;
    --font-family-base: 'Outfit', sans-serif;

    /* Typography */
    /* Header offset fallback used when JS is disabled */
    --header-offset: 104px;
    /* default header height + breathing room */
}

/* Header and Logo Styles */
.site-header {
    padding: 16px 0;
    background: var(--color-white);
    border-bottom: 2px solid var(--color-border-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

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

.brand .logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand .logo:hover {
    transform: scale(1.03);
}

/* Fallback spacing: ensure main content isn't hidden under fixed header
           JS will set an accurate padding-top based on header height at runtime. */
main {
    padding-top: var(--header-offset);
}

/* Also ensure section-padding respects header offset on pages without main */
.section-padding:first-of-type {
    padding-top: calc(var(--header-offset) + var(--space-4));
}

@media (max-width: 768px) {
    :root {
        --header-offset: 88px;
        /* Mobile Font Sizes */
        --font-size-xs: 0.7rem;
        --font-size-sm: 0.8rem;
        --font-size-base: 0.95rem;
        --font-size-lg: 1.05rem;
        --font-size-xl: 1.2rem;
        --font-size-2xl: 1.35rem;
        --font-size-3xl: 1.75rem;
        --font-size-4xl: 2rem;
        --font-size-5xl: 2.5rem;
    }

    /* Mobile Typography Overrides */
    h1,
    .h1,
    .hero-title-futuristic {
        font-size: 2.5rem !important;
        /* Force smaller size */
        line-height: 1.2;
    }

    h2,
    .h2 {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    /* Revert for Why Choose Us */
    #features h2 {
        font-size: 2.5rem !important;
    }

    /* Mobile Card Optimizations */
    .card,
    .feature-block,
    .service-block,
    .project-content-block,
    .client-block,
    .footer-widget {
        padding: 1.5rem !important;
        /* Reduced padding */
        margin-bottom: 20px !important;
        /* Consistent spacing */
    }

    /* Ensure images in cards don't overflow or look huge */
    .card img,
    .feature-block img,
    .service-block img,
    .project-block img {
        max-width: 100%;
        height: auto;
    }

    /* Specific Card Adjustments for Mobile (Feature, Service, Project, About, Pricing, Holo Project) */
    .feature-block,
    .service-block,
    .project-block,
    .about-card,
    .neon-pricing-card,
    .holo-project-card,
    .prism-card {
        padding: 2rem 1.5rem !important;
        /* Increased vertical padding for height */
        margin: 0 auto 25px auto !important;
        /* Center and add bottom spacing */
        width: 85% !important;
        /* Reduce width to fix congestion */
        min-height: 220px;
        /* Force taller card */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center content vertically (overridden for services later) */
    }

    .feature-block h3 {
        font-size: 1.4rem !important;
        /* Increased from likely smaller default */
        margin-bottom: 0.5rem;
    }

    .feature-block p {
        font-size: 1rem !important;
        /* Ensure readable body text */
        line-height: 1.4;
    }
}

/* Navigation Styles */
.navbar {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-list {
    display: flex;
    flex-direction: row;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-list li a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    transition: background 0.2s, color 0.2s;
}

.navbar-list li a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.get-quote-btn {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 28px;
    border-radius: var(--border-radius-pill);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    text-decoration: none;
    margin-left: 24px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    display: inline-block;
}

.get-quote-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

@media (max-width: 900px) {
    .navbar-list {
        gap: 12px;
    }

    .navbar-list li a {
        padding: 6px 10px;
        font-size: var(--font-size-sm);
    }

    .get-quote-btn {
        padding: 8px 16px;
        font-size: var(--font-size-sm);
        margin-left: 16px;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none;
        /* Hide by default on mobile */
    }

    .navbar.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar.active .navbar-list {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .navbar.active .get-quote-btn {
        margin: 16px 0 0 0;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
    }

    .menu-icon {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-text-dark);
        position: relative;
        transition: background 0.2s ease-out;
    }

    .menu-icon:before,
    .menu-icon:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--color-text-dark);
        left: 0;
        transition: all 0.2s ease-out;
    }

    .menu-icon:before {
        top: -6px;
    }

    .menu-icon:after {
        bottom: -6px;
    }

    .menu-toggle[aria-expanded="true"] .menu-icon {
        background: transparent;
    }

}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

:root {
    /* Color Palette - Modern Tech/Dark Theme */
    --color-primary: #007bff;
    --color-primary-dark: #0056b3;
    --color-secondary: #6c757d;
    --color-success: #28a745;
    --color-info: #17a2b8;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-light: #f8f9fa;
    --color-dark: #343a40;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Revamp Colors */
    --color-charcoal: #121212;
    --color-cyan: #00FFFF;
    --color-magenta: #FF00FF;

    /* Text Colors */
    --color-text-dark: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;

    /* Background Colors */
    --color-bg-light: #f9f9f9;
    --color-bg-white: #ffffff;
    --color-bg-dark: #1a1a1a;

    /* Border Colors */
    --color-border-light: #e0e0e0;
    --color-border-dark: #444444;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-pill: 50px;

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font Sizes */
    /* Font Sizes - Fluid Typography */
    /* Font Sizes (Desktop Default) */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;

    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;
    --letter-spacing-heading: -0.5px;

    /* Design System Tokens */
    /* spacing */
    --space-1: 4px;
    --space-2: 8px;
    /* base */
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
}

/* Typography tokens */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    /* Force scrollbar to prevent layout shift */
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    width: 100%;
    max-width: 100vw;
}

body {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: var(--letter-spacing-heading);
    margin: 0 0 var(--space-3) 0;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

/* Container utility kept for layout consistency */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Grid helpers */
.grid {
    display: grid;
    gap: var(--space-4);
}

.grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Buttons (BEM-friendly and backward compatible) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    transition: all 0.18s ease;
    min-height: 44px;
    /* Ensure touch target size */
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.25rem;
    border-radius: 50px;
}

.btn:active {
    transform: scale(0.96);
}

.btn:focus {
    outline: 3px solid rgba(37, 99, 235, 0.15);
    outline-offset: 2px;
}

.btn--primary,
.btn.btn-primary {
    background: linear-gradient(90deg, #2b8cff, #1c5fe8);
    color: #fff;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}

.btn--primary:hover,
.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.14);
}

.btn--secondary,
.btn.btn-secondary {
    background: transparent;
    color: var(--color-text-dark);
    border: 1px solid rgba(34, 34, 34, 0.06);
}

/* Card block (BEM: .card, .card__media, .card__body) */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card__media img,
.card-media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.card__body,
.card-body {
    padding: var(--space-4);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.card--glass {
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 70px rgba(6, 18, 48, 0.15);
}

/* Forms */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.form-control:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
    border-color: var(--color-primary);
}

/* Navigation improvements */
.navbar-list a {
    padding: 6px 10px;
    border-radius: 6px;
}

.navbar-list a:focus,
.navbar-list a:hover {
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-primary);
}

/* Small utilities */
.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--space-3);
}

.mb-md {
    margin-bottom: var(--space-4);
}

.mb-lg {
    margin-bottom: var(--space-5);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* End design system */



/**
 * Consolidated Custom Styles for Cyphervine Website
 *
 * This file contains all custom styles for the Cyphervine website,
 * consolidated and refactored for maintainability and performance.
 *
 * Note: Third-party libraries like Bootstrap, Font Awesome, and Slick Carousel
 * are kept separate for easier updates and management.
 */

/*------------------------------------
  GLOBAL STYLES & UTILITIES
------------------------------------*/

body {
    background-color: var(--color-white);
    font-family: var(--font-family-base);
    color: var(--color-text-dark);
    line-height: var(--line-height-base);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    outline: none;
    text-decoration: underline;
    color: var(--color-primary-dark);
}

/* Utility Classes */
.mb-6 {
    margin-bottom: var(--spacing-lg);
}

.section-heading {
    /* larger gutter under headings to separate them from following content */
    margin-bottom: calc(var(--spacing-xxl) + var(--spacing-md));
}

.section-heading p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.img-thumbnail {
    padding: var(--spacing-xxs);
    border: 1px solid var(--color-border-light);
    background-color: var(--color-white);
}

.section {
    position: relative;
    /* increase vertical breathing room for all sections to avoid cramped layout */
    padding: calc(var(--spacing-xxl) + var(--spacing-md)) 0;
}

/* Small extra gap between stacked .section blocks to ensure headings and
   their content don't feel glued to the next section */
.section+.section {
    /* stronger separation between stacked sections */
    margin-top: var(--spacing-xl);
}

.section-top {
    padding-top: var(--spacing-xxl);
}

.section-bottom {
    padding-bottom: var(--spacing-xxl);
}

.bg-grey {
    background: var(--color-background-light);
}

/* General Modern Styles */
.section-title {
    font-size: var(--font-size-h5);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    height: 4px;
    width: 60px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-sm);
}

.lead {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
}

/*------------------------------------
  COMPONENTS
------------------------------------*/

/* Buttons */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
    border-radius: var(--border-radius-pill);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-dark {
    background-color: var(--color-text-dark);
    border-color: var(--color-text-dark);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
    border-radius: var(--border-radius-pill);
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background-color: var(--color-text-light);
    border-color: var(--color-text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Cards */
/* Cards - Neon Glass Theme */
.card {
    background: rgba(20, 20, 20, 0.6);
    /* Dark glass background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border */
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 255, 0.2);
    /* Neon cyan glow */
    border-color: rgba(0, 255, 255, 0.3);
}

.card-body {
    padding: var(--spacing-lg);
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.8);
    /* Light text for dark bg */
}

.card h3,
.card h4,
.card h5 {
    color: #fff;
    /* White headings */
}

/* Ensure specific blocks inherit or match */
.feature-block,
.service-block,
.project-block,
.about-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-block:hover,
.service-block:hover,
.project-block:hover,
.about-card:hover {
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.3);
}

/* Forms */
.form-control {
    display: block;
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    background-clip: padding-box;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-sm);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: auto;
}

.form-control:focus {
    color: var(--color-text-dark);
    background-color: var(--color-white);
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(var(--color-primary-rgb), 0.25);
}

.form-control::placeholder {
    color: var(--color-text-light);
    opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--color-background-light);
    opacity: 1;
}

/* Header */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.main-nav {
    display: none;
    /* Hidden by default on small screens */
    flex-direction: column;
    /* Stack items vertically on small screens */
    position: absolute;
    /* Position for overlay/dropdown */
    top: 100%;
    /* Position below header */
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    /* Background for mobile menu */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.main-nav.main-nav--open {
    display: flex;
    /* Show when open */
}

.main-nav .nav-list {
    flex-direction: column;
    /* Ensure vertical stacking in mobile menu */
    width: 100%;
    text-align: center;
}

.main-nav .nav-item {
    margin: var(--spacing-xs) 0;
    /* Vertical spacing for mobile items */
}

.main-nav .nav-cta {
    display: block;
    /* Show button in mobile menu */
    margin: var(--spacing-md) auto;
    /* Center button */
}

.menu-toggle {
    display: block;
    /* Visible by default on small screens */
    background: none;
    border: none;
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-xxs);
}

/* Desktop styles */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
        /* Show on desktop */
        position: static;
        /* Reset position */
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        /* Horizontal layout on desktop */
        justify-content: flex-end;
        flex-grow: 1;
        /* Allow main-nav to take available space */
        align-items: center;
        /* Vertically align items within main-nav */
    }

    /* Reduce default top padding on small screens where header is more compact */
    @media (max-width: 480px) {
        main {
            padding-top: 64px;
        }
    }

    .main-nav .nav-list {
        display: flex;
        /* Ensure nav-list is also a flex container */
        flex-direction: row;
        gap: var(--spacing-sm);
        justify-content: flex-end;
        /* Push nav items to the right */
        align-items: center;
        /* Vertically align nav items */
    }

    .main-nav .nav-item {
        margin: 0;
        /* Reset vertical margin */
    }

    .main-nav .nav-cta {
        display: block;
        margin: 0 var(--spacing-sm);
    }

    .menu-toggle {
        display: none;
        /* Hide on desktop */
    }
}

.page-about {
    background: transparent;
}

/* Hero Section */
.hero-section {
    background: transparent;
    color: var(--color-white);
    padding: var(--spacing-xxl) 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

@media (min-width: 992px) {

    /* add extra bottom space on large screens so the next section has breathing room */
    .hero-section {
        padding-bottom: calc(var(--spacing-xxl) + var(--spacing-lg));
    }
}

.hero-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
}

/* allow absolutely positioned children like floating contact card */
.hero-content-wrapper {
    position: relative;
}

.hero-text-content {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 2.6rem;
    line-height: 1.05;
    margin: 0 0 12px 0;
    color: var(--color-text-dark);
    font-weight: var(--font-weight-bold);
}

.hero-title .accent {
    color: #2aa6ff;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
    max-width: 620px;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: grid;
    gap: 8px;
}

.hero-features li {
    color: var(--color-text-dark);
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-lead {
        font-size: 0.98rem;
    }

    .hero-ctas {
        flex-direction: column;
    }
}

/* Cards grid used for features and services */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: var(--spacing-lg);
}

.feature-card,
.service-card {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    min-height: 220px;
}

.card-media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.feature-card .card-body h3,
.service-card .card-body h4 {
    margin: 0 0 8px 0;
}

/* Slight hover lift */
.glass.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 70px rgba(6, 18, 48, 0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (max-width: 560px) {
    .card-media img {
        height: 140px;
    }
}

.hero-contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    margin-left: auto;
    /* Pushes the form to the right */
    position: relative;
    z-index: 10;
}

/* Explicit button styles for the hero contact form */
.hero-contact-form .form-compact .btn-primary,
.hero-contact-form .form-compact button[type="submit"] {
    display: block !important;
    width: 100% !important;
    padding: 10px 28px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 28px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    position: relative !important;
    z-index: 100 !important;
    margin-top: 16px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08) !important;
    transition: background 0.2s !important;
    cursor: pointer !important;
}

.hero-contact-form .form-compact .btn-primary:hover,
.hero-contact-form .form-compact button[type="submit"]:hover {
    background: #1741a6 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

/* Ensure hero contact form sits below the fixed header and has breathing space */


.hero-content h1 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
}

.hero-content p {
    font-size: var(--font-size-sm);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.hero-contact-form {
    background-color: #ffffff;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

/* Keep the floating contact card visually separate from the next section.
   Allow visible overflow so form controls (like the submit button) are not clipped. */
.hero-contact-form {
    overflow: visible !important;
    /* allow children to be visible even when larger */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-bottom: calc(var(--spacing-xl) + 6px);
    /* ensure room for button on desktop */
}

/* Floating glass card on desktop */
@media (min-width: 1000px) {
    .hero-contact-form {
        position: absolute;
        right: 48px;
        /* vertically center the floating contact card relative to its parent wrapper */
        top: -10%;
        /* translate by -50% to center vertically (keeps alignment with hero text) */
        transform: translateY(5%);
        margin-left: 0;
        max-width: 380px;
        width: 360px;
        padding: 18px;
        border-radius: 12px;
        box-shadow: 0 24px 50px rgba(8, 15, 30, 0.32);
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 1001;
        /* sit above header and most overlays */
    }

    .hero-text-content {
        flex: 1 1 55%;
        max-width: calc(100% - 420px);
    }
}

.hero-contact-form h3 {
    color: var(--color-text-dark);
    font-weight: var(--font-weight-semibold);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 column stack */
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2 columns */
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Desktop: 2 columns for 2x2 grid (since there are 4 items) */
        max-width: 900px;
        /* Optional: constrain width so cards don't get too wide */
        margin: 0 auto;
        /* Center the grid */
    }
}

.feature-block {
    /* Inherits base card styles from .card */
    padding: var(--spacing-xl) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.feature-block .feature-icon i {
    font-size: 60px;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature-block h3 {
    font-size: 1.75rem;
    /* Increased for better visibility on desktop */
    font-weight: var(--font-weight-semibold);
    color: #fff;
    /* Updated for dark theme */
    margin-bottom: 1rem;
}

.feature-block p {
    font-size: 1.1rem;
    /* Ensure body text is readable */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    /* Updated for dark theme */
}

/* About Section */
#about img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Services Section */
.services-intro-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xl);
    margin: var(--space-6) 0;
    /* compact vertical spacing */
}

.services-intro-image {
    flex: 1;
    min-width: 300px;
}

.services-intro-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: 220px;
    /* constrain image height to keep section compact */
    width: 100%;
    object-fit: cover;
}

.services-intro-content {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 900px) {
    .services-intro-block {
        gap: var(--space-3);
        margin: var(--space-5) 0;
    }

    .services-intro-image img {
        max-height: 160px;
    }
}

.service-block {
    /* Inherits base card styles from .card */
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Ensure top alignment */
    text-align: center;
    /* Center text horizontally */
}

.service-block .service-icon {
    min-height: 80px;
    /* Enforce consistent height for title alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.service-block .service-icon i {
    font-size: 45px;
    color: var(--color-primary);
}

.service-block h4 {
    font-size: var(--font-size-h5);
    font-weight: var(--font-weight-semibold);
    color: #fff;
    /* Updated for dark theme */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* Service cards as image-backed panels */
.services-grid .service-block {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from flex-end to prevent title shifting */
    padding: calc(var(--spacing-md) + 8px);
    color: #ffffff;
    /* text on top of image */
    background-color: rgba(10, 10, 10, 0.04);
    background-size: cover;
    background-position: center center;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.services-grid .service-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
    z-index: 0;
    pointer-events: none;
}

.services-grid .service-block * {
    position: relative;
    z-index: 1;
    /* ensure text and icons are above overlay */
}

.services-grid .service-block .service-icon i {
    color: rgba(255, 255, 255, 0.95);
    font-size: 42px;
}

.services-grid .service-block h4,
.services-grid .service-block p {
    color: #ffffff;
}

/* Hover lift with slightly stronger reveal */
.services-grid .service-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(6, 18, 48, 0.28);
}

/* Background images are now set inline in HTML for easier management */

/* Fix small path inconsistencies and provide mobile-friendly heights */
@media (max-width: 560px) {
    .services-grid .service-block {
        min-height: 180px;
        padding: var(--spacing-md);
    }
}

/* Working Process */
.process-block {
    /* Inherits base card styles from .card */
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.process-block img {
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

.process-block h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-sm);
}

/* About Card Image Consistency */
.about-card img {
    width: 100%;
    height: 220px;
    /* Fixed height for consistency */
    object-fit: cover;
    /* Maintain aspect ratio */
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

#projects-wrap {
    background: transparent;
    color: var(--color-white);
    padding: var(--spacing-xxl) 0;
}

#projects-wrap .section-title::after {
    background-color: var(--color-white);
}

.project-block {
    /* Inherits base card styles from .card */
    overflow: hidden;
}

.project-block img {
    transition: transform 0.5s ease;
}

.project-block:hover img {
    transform: scale(1.05);
}

.project-content {
    background-color: transparent;
    /* Transparent to show card glass bg */
    color: rgba(255, 255, 255, 0.8);
    /* Light text */
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
}



.project-content-block {
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-top: var(--spacing-lg);
}

.project-content-block h2 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
}

.more-about-us-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xl);
}

.more-about-us-content {
    flex: 1;
    min-width: 300px;
}

.more-about-us-content img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.more-about-us-content .text-content {
    flex: 1;
    min-width: 300px;
}

/* Clients Section */
/* Clients Section */
#clients {
    background-color: #f8f9fa;
    /* Light background for contrast with dark footer */
    padding: 80px 0;
    /* Consistent padding */
    margin-bottom: 0;
    /* Remove bottom margin to fix whitespace */
}

#clients .section-heading {
    margin-bottom: 60px;
    text-align: center;
}

#clients .section-heading h2 {
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

#clients .section-heading h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

#clients .section-heading p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
}

.client-block {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.client-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.client-block img {
    max-width: 120px;
    max-height: 80px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.client-block:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-block p {
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* Footer */
/* Footer */
#footer {
    background-color: #1a1a1a;
    /* Darker background for better contrast */
    color: #b0b0b0;
    /* Softer text color */
    padding: 80px 0 40px;
    /* More breathing room */
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#footer .footer-brand {
    display: inline-block;
    margin-bottom: 20px;
}

#footer .footer-brand img {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white */
    opacity: 0.9;
}

#footer .footer-widget {
    margin-bottom: 30px;
}

#footer h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

#footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-links li {
    margin-bottom: 12px;
}

#footer .footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

#footer .footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

#footer .list-unstyled.footer-links li {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 0;
}

#footer .list-unstyled.footer-links a {
    font-size: 1.2rem;
    color: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

#footer .list-unstyled.footer-links a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

#footer .footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #808080;
}

#footer .footer-copy a {
    color: #fff;
    text-decoration: none;
    vertical-align: baseline;
}

#footer .footer-copy a:hover {
    color: var(--color-primary);
}

/* Responsive footer adjustments */
@media (max-width: 900px) {
    #footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    #footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #footer .footer-links {
        display: inline-block;
    }
}

/* Liquid Glass Effect */
.liquid-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    transition: transform 0.3s ease;
}

.liquid-glass:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.liquid-glass h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.liquid-glass p,
.liquid-glass .lead {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

/* Main About Section */
.about-main-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.about-feature-box {
    padding: 30px;
    border-radius: 16px;
    margin-top: 30px;
    border-left: 4px solid var(--color-primary);
    transition: transform 0.3s ease;
}

.about-feature-box:hover {
    transform: translateY(-5px);
}

.liquid-glass-light {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.about-feature-box h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-feature-box p {
    margin-bottom: 0;
    color: #666;
}

/* Project Card Image Styling */
.project-card-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

/* Increase spacing for projects section */
#projects {
    padding-top: 60px;
}

/* Liquid Glass Card */
.liquid-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.liquid-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Service Page Sections */
#service {
    background: transparent;
    padding: 80px 0;
}

#services-2 {
    background: #1a1a1a;
    /* Dark background for contrast */
    padding: 80px 0;
    position: relative;
}



/* Glassy theme */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(10, 10, 10, 0.25);
}

.glassy body,
.glassy .glass {
    color: #ffffff;
}

header.site-header.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-contact-form.glass,
.hero-contact-form.card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #222222 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Compact glassy form */
.hero-contact-compact {
    padding: 24px !important;
    max-width: 380px;
}

/* Ensure form elements and button are visible */
.hero-contact-form .form-compact {
    position: relative;
    z-index: 20;
}

.hero-contact-form .form-compact input,
.hero-contact-form .form-compact textarea {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #222222 !important;
}

.hero-contact-form .form-compact .btn-primary,
.hero-contact-form .form-compact button[type="submit"] {
    display: block !important;
    width: 100% !important;
    margin-top: 16px !important;
    padding: 12px 24px !important;
    background: linear-gradient(90deg, #2b8cff 0%, #1c5fe8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 100 !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 12px rgba(43, 140, 255, 0.15) !important;
    cursor: pointer !important;
}

.form-compact h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.form-compact .form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.form-compact .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-compact .btn {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
}

/* Ensure submit button is visible above any overlapping elements */
.form-compact .btn {
    position: relative;
    visibility: visible;
}

/* Make submit button visually prominent and ensure it doesn't blend into the card */
.form-compact .btn.btn-primary {
    background: linear-gradient(90deg, #2b8cff, #1c5fe8);
    color: #40adf7;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    margin-top: var(--spacing-sm);
    max-width: 100%;
}

@media (max-width: 900px) {
    .form-compact .form-row {
        flex-direction: column;
    }
}

.glass-footer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Make text readable on glass backgrounds */
.glass .footer-heading,
.glass .footer-copy,
.glass .footer-links a,
.glass .company-description {
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive tweaks for glassy elements */
@media (max-width: 900px) {
    .hero-content-wrapper {
        flex-direction: column-reverse;
        gap: var(--spacing-md);
    }

    .hero-contact-form {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    header.site-header {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .navbar-list {
        gap: 12px;
        flex-wrap: wrap;
    }

    .get-quote-btn {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
}

/* Scroll to Top */
.scroll-to-top {
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 64px;
    height: 64px;
    line-height: 64px;
    bottom: calc(var(--spacing-md) + 8px);
    right: calc(var(--spacing-md) + 8px);
    border-radius: 50%;
    text-align: center;
    font-size: 1.25rem;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35), 0 4px 12px rgba(0, 123, 255, 0.12);
    transition: transform 0.28s cubic-bezier(.22, .9, .32, 1), opacity 0.28s ease, visibility 0.28s;
    position: fixed;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    transform: translateY(-6px) scale(1.03);
}

/* Visible state (added by JS) */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Pulsing ring using pseudo-element */
.scroll-to-top::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.18);
    animation: pulse-ring 2.2s infinite;
    pointer-events: none;
    z-index: 1199;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.18);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Gentle rise animation to use for small entrance movement */
@keyframes rise-gentle {
    0% {
        transform: translateY(6px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Apply gentle rise for hero-contact-form when animate classes are present */

.hero-contact-form.animate__fadeInUp {
    /* prefer our gentle rise instead of a large translate */
    animation-name: rise-gentle !important;
}

/* Explicitly disable animation for the floating contact card when author disables it */
.hero-contact-form {
    animation: none !important;
    transition: none !important;
}

/* Remove all transitions/hover movement for the floating contact card and its children */
.hero-contact-form,
.hero-contact-form * {
    transition: none !important;
    -webkit-transition: none !important;
}

.hero-contact-form:hover {
    /* Prevent hover lifts or transforms coming from .card:hover rules */
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: 0 12px 30px rgba(8, 15, 30, 0.12) !important;
}

/* Ensure the submit button is always visible and above overlaps */
.hero-contact-form .form-compact .btn,
.hero-contact-form .form-compact button[type="submit"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
    background: linear-gradient(90deg, #2b8cff, #1c5fe8) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 18px rgba(28, 95, 232, 0.18) !important;
}

/* Focus / keyboard accessibility */
.scroll-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 6px rgba(0, 123, 255, 0.12);
}

/* Visually hidden helper */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* Animations (using Animate.css classes) */
.animate__animated {
    /* keep a tiny non-empty declaration so linters don't flag an empty ruleset
       This class is a compatibility shim for Animate.css — we avoid forcing
       animations off here and instead respect user preferences elsewhere. */
    will-change: transform, opacity;
}

/* DEBUG HELPERS - temporary: force visibility and outline the hero contact form/button
   Remove these after verification. */
/* Debug helpers removed - form should display normally. */

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

.animate__delay-1s {
    animation-delay: 0.5s;
}

.animate__delay-2s {
    animation-delay: 1s;
}

.animate__delay-3s {
    animation-delay: 1.5s;
}

.animate__delay-4s {
    animation-delay: 2s;
}

.animate__delay-5s {
    animation-delay: 2.5s;
}

/* Pricing Section Styles (from main.css) - Mobile First Defaults */
#pricing .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

#pricing .pricing-card {
    /* Inherits base card styles from .card */
    padding: var(--spacing-md);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-md);
    justify-content: space-between;
}

#pricing .pricing-card.featured-card {
    border-color: var(--color-primary);
    box-shadow: 0 8px 16px rgba(var(--color-primary-rgb), 0.2);
}

#pricing .pricing-tier-name {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

#pricing .pricing-price {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
}

#pricing .pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
    margin-right: var(--spacing-xxs);
}

#pricing .pricing-price .period {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: var(--font-weight-normal);
}

#pricing .pricing-features {
    text-align: left;
    margin-bottom: var(--spacing-xl);
    flex-grow: 1;
}

#pricing .pricing-features li {
    font-size: 1rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs);
    line-height: var(--line-height-base);
}

#pricing .pricing-features li i {
    margin-right: var(--spacing-xs);
    color: var(--color-primary);
}

#pricing .pricing-features li .text-danger {
    color: var(--color-secondary);
}

#pricing .pricing-card .btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-h5);
}

/* Terms of Service Styles (from tos.css) - Mobile First Defaults */
.tos-page-container {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-dark);
    line-height: var(--line-height-base);
    margin: 0;
    padding: 0;
    background-color: var(--color-background-light);
}

.tos-page-container h1 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.tos-page-container h2 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.tos-page-container p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
}

.tos-page-container ul {
    list-style: disc;
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-base);
}

.tos-page-container a {
    color: var(--color-primary);
    text-decoration: none;
}

.tos-page-container a:hover {
    text-decoration: underline;
}

/* Container */
.tos-page-container .container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background-color: var(--color-white);
    border-radius: var(--border-radius-sm);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}


@media (min-width: 768px) {
    .section-top {
        padding-top: var(--spacing-xxl);
    }

    .hero-section {
        padding: var(--spacing-xxl) 0;
    }

    .hero-content h1 {
        font-size: var(--font-size-h2);
    }

    .hero-content p {
        font-size: var(--font-size-base);
    }

    .banner-contact-form {
        margin-top: var(--spacing-xl);
    }

    .section {
        padding: var(--spacing-xxl) 0;
    }

    .section-title {
        font-size: var(--font-size-h3);
    }

    .about-content .section-title::after {
        left: 0;
        transform: translateX(0);
    }

    .project-content-block {
        margin-top: var(--spacing-lg);
        padding: var(--spacing-lg);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding: var(--spacing-xxl) 0;
    }

    .hero-content h1 {
        font-size: var(--font-size-h1);
    }

    .hero-content p {
        font-size: var(--font-size-lg);
    }

    .section-title {
        font-size: var(--font-size-h2);
    }

    .main-nav .nav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .main-nav .nav-link::after {
        bottom: calc(var(--spacing-xs) + 2px);
    }

    .btn-primary,
    .btn-dark {
        padding: var(--spacing-xs) var(--spacing-lg);
        font-size: var(--font-size-base);
    }

    .project-content-block {
        margin-top: 0;
        padding: var(--spacing-xl);
    }
}

/* Page Banner Styles */
.page-banner-area {
    padding: 100px 0;
    position: relative;
    background: transparent;
    /* Remove image */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.page-banner-area.page-service {
    background: transparent;
    /* Remove image */
}

.page-banner-area.page-project {
    background: transparent;
    /* Remove image */
}

.page-banner-area.page-about {
    background: transparent;
    /* Remove image */
}

.page-banner-area .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

/* Web Service Block Alignment */
.web-service-block {
    padding: 30px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.web-service-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.web-service-block i {
    color: var(--color-primary);
}

/* Pricing Page Styles */
.pricing-wrapper {
    background: none;
    position: relative;
}

.pricing-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    pointer-events: none;
}

body.pricing-page {
    background: transparent;
    /* Remove image */
    background-attachment: fixed;
    position: relative;
}

.page-pricing {
    background: none !important;
}

.page-pricing .overlay {
    display: none;
}

/* Pricing Page Nav Visibility */
.pricing-page .navbar-list a {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.pricing-page .navbar-list a:hover {
    color: #00e5ff !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Update Pricing Cards for Liquid Glass */
#pricing {
    background: none !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 120px;
}

#pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for contrast */
    z-index: -1;
}

#pricing .pricing-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pricing .pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

#pricing .pricing-tier-name,
#pricing .pricing-price,
#pricing .pricing-features li,
#pricing .pricing-price .period {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#pricing .pricing-features li i {
    color: var(--color-primary);
    /* Keep icon color or make it white/lighter if needed */
    text-shadow: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* =========================================
   Index Revamp - Liquid Glassmorphism
   ========================================= */

body.glassy {
    background-color: transparent;
    color: var(--color-white);
}

/* Animated Background */
.hero-bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-charcoal);
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blob-float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-cyan), transparent 70%);
    animation-duration: 25s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-magenta), transparent 70%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #007bff, transparent 70%);
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes blob-float {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(50px, 50px, 0) scale(1.1);
    }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Glowing Border Effect */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Navbar - Glass Pill */
.glass-pill-nav {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 20px 40px;
    /* Increased padding */
    display: inline-flex;
    gap: 32px;
    /* Increased gap */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

.glass-pill-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    /* Increased font size */
}

.glass-pill-nav a:hover,
.glass-pill-nav a.active {
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Hero Typography */
.hero-title-futuristic {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.hero-subtitle-glass {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Floating Spheres (Decorative) */
.floating-sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
    z-index: 1;
    animation: sphere-float 10s infinite ease-in-out;
}

@keyframes sphere-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Navbar Logo */
.glass-pill-nav {
    align-items: center;
    /* Ensure vertical alignment */
}

.nav-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.nav-logo-link:hover .nav-logo {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
}

/* Sticky Navbar Container */
.sticky-nav-container {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    /* Allow clicking through the container area */
}

.sticky-nav-container .glass-pill-nav {
    pointer-events: auto;
    /* Re-enable clicks on the navbar itself */
}

/* Index Page Visibility Fixes */
body.glassy {
    color: var(--color-light);
    /* Light text for dark background */
}

body.glassy h1,
body.glassy h2,
body.glassy h3,
body.glassy h4,
body.glassy h5,
body.glassy h6 {
    color: var(--color-white);
}

body.glassy .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Glass Cards for Index */
body.glassy .card,
body.glassy .feature-block,
/* Cinematic Glass Service Cards */
body.glassy .service-block {
    text-align: left;
    padding: 40px 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

/* Dark Gradient Overlay */
body.glassy .service-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
    transition: all 0.5s ease;
}

/* Hover Effects */
body.glassy .service-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--color-cyan);
    background-size: 110%;
    /* Zoom effect (simulated via background-size change, though scale on element is smoother, background-size transition is tricky without separate element. Let's try transform on hover for the block itself, and maybe a pseudo for image if we want parallax. For now, simple lift is good.) */
}

/* Better Zoom Effect approach: Use a separate pseudo for background image if possible, but images are inline. 
   So we'll stick to the lift and glow. 
*/

body.glassy .service-block:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.95) 100%);
}

body.glassy .service-block h4 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

body.glassy .service-block h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--color-cyan);
    transition: width 0.3s ease;
}

body.glassy .service-block:hover h4::after {
    width: 100%;
}

body.glassy .service-block p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

body.glassy .service-block .service-icon {
    font-size: 2.5rem;
    color: var(--color-cyan);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

body.glassy .service-block:hover .service-icon {
    transform: scale(1.2);
    color: var(--color-magenta);
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
}

/* Reimplemented Floating Hologram Client Section */
#clients {
    background: transparent !important;
    position: relative;
    z-index: 10;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.client-block {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-logo {
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float-logo 6s ease-in-out infinite;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    /* Rounded Box Style */
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* Stagger animations */
.client-block:nth-child(odd) .client-logo {
    animation-delay: 0s;
}

.client-block:nth-child(even) .client-logo {
    animation-delay: -3s;
}

@keyframes float-logo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Hover Effects */
.client-block:hover .client-logo {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 10px var(--color-cyan));
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-cyan);
}

.client-block p {
    color: rgba(255, 255, 255, 0.9);
    /* Much brighter for visibility */
    font-size: 1rem;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
    opacity: 0.8;
    transform: translateY(0);
}

.client-block:hover p {
    color: var(--color-cyan);
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* Neon Glass Effect for Feature Blocks */
body.glassy .feature-block {
    background: rgba(20, 20, 20, 0.6);
    /* Darker base */
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animated Gradient Border on Hover */
body.glassy .feature-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    padding: 2px;
    /* Border width */
    background: linear-gradient(45deg, var(--color-cyan), var(--color-magenta), var(--color-primary));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.glassy .feature-block:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 255, 0.2);
    /* Cyan glow */
    background: rgba(30, 30, 30, 0.8);
}

body.glassy .feature-block:hover::before {
    opacity: 1;
}

body.glassy .feature-block h3 {
    transition: color 0.3s ease;
}

body.glassy .feature-block:hover h3 {
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Project Block Fixes for Glass Theme */
body.glassy .project-content {
    background: transparent;
    color: var(--color-white);
    border: none;
}

body.glassy .project-content h4 {
    color: var(--color-white);
}

body.glassy .project-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    /* Ensure spacing before button */
}

/* Flexbox Layout for Consistent Button Alignment */
body.glassy .project-block {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.glassy .project-content {
    background: transparent;
    color: var(--color-white);
    border: none;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

body.glassy .project-content .btn-secondary {
    margin-top: auto;
    /* Push button to bottom */
    align-self: flex-start;
    /* Left align button */
    border: 2px solid rgba(255, 255, 255, 0.8);
    /* High contrast border */
    color: #ffffff;
    /* High contrast text */
    background: transparent;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Project Button Hover Fix */
body.glassy .project-content .btn-secondary:hover {
    color: #ffffff !important;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

/* Fix button border visibility when card is hovered */
body.glassy .project-block:hover .btn-secondary {
    border-color: rgba(255, 255, 255, 0.6);
}

/* Individual Project Card Backgrounds */
body.glassy .projects-grid .project-block:nth-child(1) {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(0, 123, 255, 0.3);
}

body.glassy .projects-grid .project-block:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.15), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(255, 0, 255, 0.3);
}

body.glassy .projects-grid .project-block:nth-child(3) {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Enhanced Text Visibility for Project Cards */
body.glassy .project-content h4 {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

body.glassy .project-content p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

/* More About Us Block Fixes */
.more-about-us-block {
    background: transparent !important;
    /* Remove any conflicting bg */
}

.more-about-us-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.more-about-us-content img {
    max-width: 60%;
    /* Make image smaller */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.more-about-us-content .text-content p.lead {
    color: rgba(255, 255, 255, 0.9) !important;
    /* Ensure high visibility */
    font-weight: 400;
}

.more-about-us-content h2,
.more-about-us-content h4 {
    color: var(--color-white);
}

body.glassy .card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.glassy .section-heading p.lead {
    color: rgba(255, 255, 255, 0.8);
}

/* Section Padding Update */
.section-padding {
    padding: 100px 0;
    /* Standardize to 100px for spacious feel */
}

/* Legal Pages Padding Override */
.legal-section .container {
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 768px) {
    .legal-section .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}



body.glassy .about-feature-box i {
    color: var(--color-cyan) !important;
}

/* Holographic Glass Cards */
.holo-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.holo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.holo-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
}

.holo-card:hover::before {
    opacity: 1;
}

/* Mission Card Specifics */
.holo-card.mission:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.15), inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.holo-card.mission .holo-icon i {
    background: linear-gradient(135deg, #00f260 0%, #0575e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(5, 117, 230, 0.3));
}

/* Vision Card Specifics */
.holo-card.vision:hover {
    border-color: var(--color-magenta);
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.15), inset 0 0 20px rgba(255, 0, 255, 0.05);
}

.holo-card.vision .holo-icon i {
    background: linear-gradient(135deg, #b24592 0%, #f15f79 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(241, 95, 121, 0.3));
}

.holo-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.holo-card:hover .holo-icon {
    transform: scale(1.1) rotate(5deg);
}

.holo-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.holo-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Text Glow Utilities */
.text-glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.text-glow-subtle {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Prism Glass Cards */
.prism-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animated Border Gradient */
.prism-card::before {
    content: '';
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 0deg, transparent 0%, var(--color-cyan) 20%, transparent 40%, var(--color-magenta) 60%, transparent 80%);
    z-index: -1;
    border-radius: 22px;
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Inner Background to hide the center of the gradient border */
.prism-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(20, 20, 20, 0.9);
    /* Dark background matching theme */
    border-radius: 20px;
    z-index: -1;
}

.prism-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.prism-card:hover::before {
    opacity: 1;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.prism-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prism-card:hover .prism-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.prism-icon i {
    font-size: 32px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
}

.prism-card:hover .prism-icon i {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prism-title {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.prism-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

/* Holographic Project Cards */
.holo-project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.6);
    /* Updated to match Neon Glass theme */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    z-index: 1;
}

.holo-project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 255, 0.2);
    /* Cyan glow */
    border-color: rgba(0, 255, 255, 0.3);
}

.holo-project-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 220px;
}

.holo-project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.holo-project-card:hover .holo-project-img {
    transform: scale(1.1);
}

/* Holographic Overlay on Image */
.holo-project-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(255, 0, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: overlay;
}

.holo-project-card:hover .holo-project-img-wrapper::after {
    opacity: 1;
}

.holo-project-content {
    padding: 25px;
    text-align: center;
    position: relative;
}

.holo-project-title {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.holo-project-category {
    color: var(--color-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
}

/* Neon Button */
.btn-neon {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-cyan);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-neon:hover {
    background: var(--color-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--color-cyan);
}

.btn-neon:hover::before {
    left: 100%;
}

/* Neon Glass Pricing Cards */
.neon-pricing-card {
    position: relative;
    background: rgba(20, 20, 20, 0.6);
    /* Updated to match Neon Glass theme */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.neon-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.neon-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.neon-pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-header {
    margin-bottom: 30px;
    position: relative;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-cyan);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.currency {
    font-size: 1.5rem;
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.6);
}

.period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-left: 5px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.pricing-features li i.fa-check-circle {
    color: #39ff14 !important;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.6) !important;
}

.pricing-features li i.fa-times-circle {
    color: rgba(255, 255, 255, 0.2);
}

.btn-pricing {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-pricing:hover {
    background: var(--color-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    border-color: transparent;
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--color-magenta);
    color: #fff;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    z-index: 2;
}

/* Popular Card Highlight */
.neon-pricing-card.popular {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 0, 255, 0.3);
}

.neon-pricing-card.popular .pricing-price {
    color: var(--color-magenta);
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.neon-pricing-card.popular .btn-pricing {
    background: var(--color-magenta);
    border-color: var(--color-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.neon-pricing-card.popular .btn-pricing:hover {
    background: transparent;
    color: var(--color-white);
    box-shadow: none;
}

/* Neon Glass Footer */
.neon-footer {
    position: relative;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 80px;
    padding-bottom: 40px;
    overflow: hidden;
    margin-top: 100px;
}

.neon-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-cyan),
            var(--color-magenta),
            var(--color-cyan),
            transparent);
    background-size: 200% 100%;
    animation: neon-border-flow 4s linear infinite;
}

@keyframes neon-border-flow {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Footer Background Glow */
.footer-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.03) 0%, transparent 70%);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.footer-widget {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 20px;
    animation: neon-float-glow 3s ease-in-out infinite;
}

@keyframes neon-float-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.4));
        transform: translateY(0);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.7));
        transform: translateY(-6px);
    }
}

.footer-widget h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-cyan);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links li a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links li a:hover {
    background: var(--color-cyan);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    border-color: transparent;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-copy a {
    color: var(--color-cyan);
    text-decoration: none;
    vertical-align: baseline;
}

/* =========================================
   Contact Page Styles
   ========================================= */
.neon-glass-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.neon-glass-form:hover {
    transform: translateY(-5px);
}

.neon-glass-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: border-flow 2s linear infinite;
}

.glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #00ffff !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3) !important;
    outline: none;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.map-container {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes border-flow {
    0% {
        transform: translateX(-100%);
    }

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

/* =========================================
   Contact Form Validation & CAPTCHA Styles
   ========================================= */

/* Validation Feedback */
.invalid-feedback {
    display: none;
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: left;
}

.is-invalid {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.2) !important;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass Modal */
.glass-modal {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    max-width: 400px;
    width: 90%;
}

.captcha-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Success Toast */
.glass-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--color-cyan);
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    text-align: center;
    min-width: 300px;
}

/* Mobile Navigation Refactor */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: auto;
    /* Push to right if in flex container */
    pointer-events: auto;
    /* Ensure clickable */
}

.menu-icon {
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    display: block;
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.menu-toggle.is-active .menu-icon {
    background: transparent;
}

.menu-toggle.is-active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.is-active .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .glass-pill-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 10, 0.3);
        /* More transparent for liquid effect */
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        margin: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        padding: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .glass-pill-nav.is-open {
        transform: translateX(0);
    }

    .glass-pill-nav a {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        display: block;
        /* Ensure block for transform */
    }

    .glass-pill-nav.is-open a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for links */
    .glass-pill-nav.is-open a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .glass-pill-nav.is-open a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .glass-pill-nav.is-open a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .glass-pill-nav.is-open a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .glass-pill-nav.is-open a:nth-child(5) {
        transition-delay: 0.5s;
    }

    .glass-pill-nav.is-open a:nth-child(6) {
        transition-delay: 0.6s;
    }

    .glass-pill-nav.is-open a:nth-child(7) {
        transition-delay: 0.7s;
    }

    .nav-logo-link {
        display: none;
        /* Hide logo inside menu */
    }

    /* Ensure sticky container allows clicks on toggle */
    .sticky-nav-container {
        pointer-events: none;
        display: flex;
        justify-content: flex-end;
        /* Align toggle to right */
        padding-right: 20px;
    }

    .sticky-nav-container .menu-toggle {
        pointer-events: auto;
    }

    /* Mobile Button Fixes */
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btns .btn {
        width: 100%;
        margin: 0 !important;
        /* Override inline margins */
        min-height: 54px;
        /* Consistent height */
        justify-content: center;
    }

    /* Mobile Footer Rework */
    .neon-footer .row {
        text-align: center;
    }

    .footer-widget {
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Force center alignment */
    }

    .footer-brand {
        display: inline-block;
        margin-bottom: 15px;
    }

    .footer-widget p {
        text-align: center;
        max-width: 90%;
        /* Prevent text from touching edges */
        margin: 0 auto;
    }

    .footer-widget h3 {
        text-align: center;
        display: inline-block;
        /* Allow underline to size to text */
        width: auto;
    }

    .footer-widget h3::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        /* Slightly wider underline */
    }

    .footer-links {
        text-align: center;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-links li {
        width: 100%;
        /* Ensure full width for tap target */
    }

    .social-links {
        justify-content: center;
        margin-top: 10px;
    }
}

/* Force Service Card Alignment on Mobile */
@media (max-width: 768px) {
    .services-grid .service-block {
        justify-content: flex-start !important;
        display: flex !important;
        flex-direction: column !important;
    }
}