/* #region luxsearch DESIGN SYSTEM
   ================================================================= */

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

    /* Reset and Base Styles */
    * {
        margin: 0;
        padding: 0;
    
        box-sizing: border-box;
    }

    /* View Transitions Support */
    @view-transition {
        navigation: auto;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.4s;
    }

    ::view-transition-old(root) {
        animation-name: fade-out;
    }

    ::view-transition-new(root) {
        animation-name: fade-in;
    }

    /* Mobile override: instant page transitions to prevent lag */
    @media (max-width: 1000px) {
        ::view-transition-old(root),
        ::view-transition-new(root) {
            animation-duration: 0s;
        }
    }

    @keyframes fade-out {
        from { opacity: 1; }
        to { opacity: 0; }
    }

    @keyframes fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Design Tokens - Single Source of Truth */
    :root {
        /* Colors */
        --color-text-primary: #1a1a1a;
        --color-text-secondary: #666;
        --color-text-black: #000;
        
        /* Brand Gradient */
        --gradient-brand: linear-gradient(90deg, #0028f7 0%, #2308eb 20%, #3108cc 40%, #5e04ed 60%, #9501fd 80%, #b004ef 100%);
        --gradient-brand-vertical: linear-gradient(180deg, #0028f7 0%, #2308eb 20%, #3108cc 40%, #5e04ed 60%, #9501fd 80%, #b004ef 100%);
        
        /* Button Gradient Variants - "One Change Propagates Everywhere" */
        --gradient-brand-subtle: linear-gradient(135deg, 
            rgba(0, 40, 247, 0.12) 0%, 
            rgba(35, 8, 235, 0.12) 20%, 
            rgba(49, 8, 204, 0.12) 40%, 
            rgba(94, 4, 237, 0.12) 60%, 
            rgba(149, 1, 253, 0.12) 80%, 
            rgba(176, 4, 239, 0.12) 100%);
        --gradient-brand-medium: linear-gradient(135deg, 
            rgba(0, 40, 247, 0.16) 0%, 
            rgba(35, 8, 235, 0.16) 20%, 
            rgba(49, 8, 204, 0.16) 40%, 
            rgba(94, 4, 237, 0.16) 60%, 
            rgba(149, 1, 253, 0.16) 80%, 
            rgba(176, 4, 239, 0.16) 100%);
        --gradient-brand-strong: linear-gradient(135deg, 
            rgba(0, 40, 247, 0.20) 0%, 
            rgba(35, 8, 235, 0.20) 20%, 
            rgba(49, 8, 204, 0.20) 40%, 
            rgba(94, 4, 237, 0.20) 60%, 
            rgba(149, 1, 253, 0.20) 80%, 
            rgba(176, 4, 239, 0.20) 100%);
        --gradient-brand-hover: linear-gradient(135deg, 
            rgba(0, 40, 247, 0.25) 0%, 
            rgba(35, 8, 235, 0.25) 20%, 
            rgba(49, 8, 204, 0.25) 40%, 
            rgba(94, 4, 237, 0.25) 60%, 
            rgba(149, 1, 253, 0.25) 80%, 
            rgba(176, 4, 239, 0.25) 100%);
        
        /* Glassmorphism */
        --glass-bg: rgba(255, 255, 255, 0.14);
        --glass-bg-hover: rgba(255, 255, 255, 0.25);
        --glass-border: rgba(255, 255, 255, 0.15);
        --glass-border-hover: rgba(255, 255, 255, 0.3);
        
        /* Header Glassmorphism */
        --header-glass-bg: rgba(255, 255, 255, 0.18);
        --header-glass-bg-hover: rgba(255, 255, 255, 0.25);
        --header-glass-border: rgba(255, 255, 255, 0.2);
        
        /* Shadows */
        --shadow-glass: 0 16px 48px rgba(31, 38, 135, 0.15), 0 6px 20px rgba(31, 38, 135, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.2);
        --shadow-glass-hover: 0 24px 70px rgba(31, 38, 135, 0.22), 0 12px 35px rgba(31, 38, 135, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05), inset 0 2px 6px rgba(255, 255, 255, 0.35);
        --shadow-header: 0 20px 60px rgba(31, 38, 135, 0.18), 0 10px 30px rgba(31, 38, 135, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04), inset 0 2px 4px rgba(255, 255, 255, 0.25);
        --shadow-header-hover: 0 24px 70px rgba(31, 38, 135, 0.22), 0 12px 35px rgba(31, 38, 135, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05), inset 0 2px 6px rgba(255, 255, 255, 0.35);
        
        /* Border Radius */
        --radius-card: 24px;
        --radius-tag: 16px;
        --radius-button: 24px;
        --radius-quote: 12px;
        --radius-full: 20px;
        
        /* Spacing */
        --spacing-xs: 8px;
        --spacing-sm: 15px;
        --spacing-md: 20px;
        --spacing-lg: 30px;
        --spacing-xl: 40px;
        
        /* Typography */
        --font-size-header: 1.5rem;
        --font-size-title: 1.5rem;
        --font-size-subtitle: 1.1rem;
        --font-size-body: 0.9rem;
        --font-size-small: 0.85rem;
        --font-weight-normal: 400;
        --font-weight-medium: 500;
        
        /* Unified Transition System - "One Change Propagates Everywhere" */
        --transition-instant: all 0.1s ease;                                    /* Active/pressed states */
        --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);             /* Main interactions (hover, focus) */
        --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);            /* Medium animations */
        --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);              /* Slower animations */
        --transition-fade: opacity 0.3s ease;                                   /* Fade in/out effects */
        --transition-luxury: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);         /* Special luxury effects */
        
        /* Legacy - Remove these after consolidation */
        
        /* Layout */
        --header-height: 220px;
        --container-max-width: 1200px;
        --content-max-width: 1000px;
        --jobs-max-width: 600px;
    }

    /* Base HTML and Body */
    html {
        scroll-padding-top: 120px;
    }

    html, body {
        height: 100%;
        font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
    }

    /* RealBackground */
    body {
        background: url('/styles/background5.webp') center center / cover no-repeat;
        background-blend-mode: multiply, screen, overlay, normal;
        background-attachment: fixed;
        background-position: center;
        background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
        background-repeat: no-repeat;
        /* Additional cross-browser support */
        -webkit-background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
        -moz-background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
        min-height: 100vh;
        position: relative;
        overflow-x: visible; /* Remove overflow from body */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .body-wrapper {
        overflow-x: hidden; /* Move overflow here */
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* Safari iOS Background Fix - prevents zoom and scrolling issues */
    @supports (-webkit-touch-callout: none) {
        body {
            background-attachment: fixed;
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
            /* Additional iOS-specific fixes */
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            -webkit-perspective: 1000;
            perspective: 1000;
        }
    }

    /* Additional mobile-specific background fixes */
    @media only screen and (max-width: 768px) {
        body {
            background-attachment: fixed;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            /* Prevent background scrolling on mobile */
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
            /* Ensure stable scrolling without background movement */
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            /* Additional mobile background stability */
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            /* Prevent any background movement during scroll */
            will-change: auto;
        }
        
        /* Ensure html element also has proper mobile settings */
        html {
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }
    }


    
/* #region UNIFIED TEXT SELECTION SYSTEM - "One Change Propagates Everywhere"
   ================================================================= */

    /* Core text selection styling with brand colors and optimized glow effect */
    ::selection {
        background: #5e04ed;
        color: white;
        text-shadow: 
            0 0 3px rgba(0, 40, 247, 0.9),
            0 0 6px rgba(35, 8, 235, 0.8),
            0 0 9px rgba(49, 8, 204, 0.7),
            0 0 12px rgba(94, 4, 237, 0.6),
            0 0 15px rgba(149, 1, 253, 0.5),
            0 0 18px rgba(176, 4, 239, 0.4);
    }

    ::-moz-selection {
        background: #5e04ed;
        color: white;
        text-shadow: 
            0 0 3px rgba(0, 40, 247, 0.9),
            0 0 6px rgba(35, 8, 235, 0.8),
            0 0 9px rgba(49, 8, 204, 0.7),
            0 0 12px rgba(94, 4, 237, 0.6),
            0 0 15px rgba(149, 1, 253, 0.5),
            0 0 18px rgba(176, 4, 239, 0.4);
    }

/* #endregion */
/* #region PRIORITY BACKGROUND SYSTEM
   ================================================================= */

    /* Static background that loads first and displays immediately */
    .static-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/styles/background5.webp') center center / cover no-repeat;
        z-index: -1000;
        /* Ensure this loads and displays first */
        will-change: transform;
        contain: layout style paint;
    }



/* #endregion */

/* #region HEADER SYSTEM
================================================================= */    

    .header {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: var(--container-max-width);
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        padding: 1.5rem 3rem;
        /* Liquid glass effect (same as .card-medium and .job-modal-content) */
        filter: drop-shadow(-8px -10px 46px #0000005f);
        backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
        -webkit-backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
        border-radius: 28px;
        overflow: hidden;
        z-index: 1000;
        transition: var(--transition-fast);
    }

    .header::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        border-radius: 28px;
        overflow: hidden;
        -webkit-box-shadow: inset 0 0 3px 1px rgba(255, 255, 255, 0.7);
        box-shadow: inset 0 0 8px 1px rgba(255, 255, 255, 0.7);
    }

    @media (max-width: 1000px) {
        /* Fix body overflow issue that breaks position:fixed */
        body {
            overflow-x: visible !important;
        }
        
        .header {
            position: fixed !important;
            top: 20px;
            left: 20px !important;
            right: 20px !important;
            transform: none !important;
            width: auto !important;
            max-width: none !important;
            z-index: 1000;
            padding: 0.75rem 1.5rem;
            height: auto;
            align-items: center;
            /* Liquid glass effect for mobile too */
            filter: drop-shadow(-8px -10px 46px #0000005f);
            backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
            -webkit-backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
            border-radius: 28px;
            overflow: hidden;
        }
        .header::before {
            border-radius: 28px;
        }
    }

    /* Additional iOS Safari fixes for position:fixed + backdrop-filter */
    @supports (-webkit-touch-callout: none) {
        .header {
            /* iOS specific fixes */
            position: fixed !important;
            transform: none !important;
            left: 20px !important;
            right: 20px !important;
            will-change: transform;
        }
    }
    /* Header hover is handled by unified glass hover system at the end of the file */

    .header-left {
        display: flex;
        align-items: flex-end;
        gap: 1.5rem;
    }

    .logo-link {
        display: flex;
        align-items: flex-end;
        gap: 1.5rem;
        text-decoration: none;
        color: inherit;
        transition: var(--transition-medium); /* Unified medium transition */
    }

    .logo-link:hover {
        text-decoration: none;
        opacity: 0.8;
    }

    .logo img {
        height: 6rem;
        width: auto;
        display: block;
    }

    .brand {
        font-size: var(--font-size-header);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .brand-name {
        color: var(--color-text-black);
        font-size: var(--font-size-header);
        font-weight: var(--font-weight-normal);
    }

    .brand-tagline {
        background: var(--gradient-brand);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        font-size: var(--font-size-header);
        font-weight: var(--font-weight-normal);
    }

    .nav {
        display: flex;
        align-items: flex-end;
        gap: 3rem;
    }

    .nav-link {
        font-size: var(--font-size-header);
        color: var(--color-text-black);
        text-decoration: none;
        white-space: nowrap;
        position: relative;
        transition: var(--transition-medium); /* Unified medium transition */
        font-weight: var(--font-weight-normal);
    }

    .nav-link:hover {
        color: var(--color-text-black);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 3px;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--gradient-brand);
        border-radius: 2px;
        box-shadow: 0 2px 8px rgba(46, 8, 235, 0.3);
        transition: var(--transition-luxury);
    }

    .nav-link:hover::after {
        width: 100%;
    }

    /* Current page indicator - always visible */
    .nav-link.current::after {
        width: 100%;
    }

    .nav-link.current:hover {
        color: var(--color-text-black);
    }

    /* Navigation transitions - keep current active during hover */
    .nav:hover .nav-link.current:not(:hover)::after {
        width: 100%;
        opacity: 0.7;
    }

    .nav:hover .nav-link:not(.current):hover::after {
        width: 100%;
        opacity: 1;
    }

    /* Exclude logo-link from showing purple underline */
    .logo-link.nav-link::after {
        display: none;
    }

/* #endregion */

/* #region HAMBURGER MENU SYSTEM - Using Hamburgers Library
   ================================================================= */
    
    /*
    * Hamburgers v1.2.0 - https://github.com/jonsuh/hamburgers
    * Copyright (c) 2016 Jonathan Suh - MIT License
    */

    .hamburger {
        /* DESKTOP: Hidden by default */
        display: none;
        
        /* Match logo dimensions exactly for perfect symmetry */
        /* Logo: 39.34px x 45px = aspect ratio 0.874 */
        width: 2.185rem; /* 2.5rem * 0.874 = exact logo width proportion */
        height: 2.5rem;
        
        /* Style to match design system */
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.2rem;
        transition: var(--transition-fast); /* Unified fast transition */
        
        /* Center the hamburger icon */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger:hover {
        opacity: 0.8;
    }

    /* Hamburger styling is handled in /styles/hamburgers.css */

        /* Mobile navigation overlay - glassmorphism style like job modal */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        /* Glassmorphism background - matches job modal styling */
        background: var(--glass-bg);
        backdrop-filter: blur(12px) saturate(1.2);
        -webkit-backdrop-filter: blur(12px) saturate(1.2);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        /* Removed transition to prevent mobile lag */
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-menu {
        /* Glassmorphism effect */
        background: var(--glass-bg);
        border-radius: 28px;
        overflow: hidden;
        position: relative;
        
        /* Mobile nav specific positioning and animation */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
        /* Match container width exactly to align with other cards */
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        padding: var(--spacing-lg);
        /* Removed transition to prevent mobile lag */
    }

    /* Enhanced inner glow for glass morphism effect */
    .mobile-nav-menu::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        border-radius: 28px;
        overflow: hidden;
        -webkit-box-shadow: inset 0 0 3px 1px rgba(255, 255, 255, 0.7);
        box-shadow: inset 0 0 8px 1px rgba(255, 255, 255, 0.7);
    }

    .mobile-nav-overlay.active .mobile-nav-menu {
        transform: translate(-50%, -50%) scale(1);
    }

    /* Mobile nav links inherit ALL styling from .btn */
    .mobile-nav-link {
        /* Glassmorphism effect instead of liquid glass */
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(12px) saturate(1.2);
        -webkit-backdrop-filter: blur(12px) saturate(1.2);
        border-radius: var(--radius-button);
        color: var(--color-text-primary);
        font-size: var(--font-size-body);
        font-weight: 600;
        letter-spacing: 0.3px;
        cursor: pointer;
        /* Removed transition to prevent mobile lag */
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        transform: translateZ(0);
        box-shadow: var(--shadow-glass);
        
        /* Mobile nav specific overrides */
        width: 100%;
        padding: 1rem 2rem;
        height: 55px;
    }

    .mobile-nav-link:hover {
        background: var(--glass-bg-hover);
        border-color: var(--glass-border-hover);
        box-shadow: var(--shadow-glass-hover);
        backdrop-filter: blur(16px) saturate(1.3);
        -webkit-backdrop-filter: blur(16px) saturate(1.3);
    }

    /* Current state with gradient brand border */
    .mobile-nav-link.current {
        position: relative;
    }



    /* Active (pressed) state for mobile nav links - same as .btn */
    .mobile-nav-link:active {
        transform: translateY(1px) translateZ(0);
        background: var(--glass-bg-hover);
        border-color: var(--glass-border-hover);
        box-shadow: 
            0 4px 12px rgba(31, 38, 135, 0.12), 
            0 2px 6px rgba(31, 38, 135, 0.08), 
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            inset 0 2px 4px rgba(255, 255, 255, 0.10),
            inset 0 -1px 2px rgba(0, 0, 0, 0.15),
            inset 0 -2px 4px rgba(0, 0, 0, 0.08);
        transition: var(--transition-instant);
    }

    /* Gradient frame for current state */
    .mobile-nav-link.current::before {
        /* Override the standard ::before with gradient border effect */
        content: '';
        position: absolute;
        inset: -2px;
        background: var(--gradient-brand);
        border-radius: var(--radius-button);
        z-index: -2;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: xor;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        padding: 2px;
    }

/* #endregion */

/* #region DESKTOP LAYOUT (min-width: 1001px)
   ================================================================= */

        @media (min-width: 1001px) {
            /* Ensure hamburger menu is never shown on desktop */
            .hamburger {
                display: none !important;
            }
            
            /* Ensure navigation is always visible on desktop */
            .nav {
                display: flex;
            }
            
            /* Ensure brand tagline is shown on desktop */
            .brand-tagline {
                display: inline;
            }
        }

/* #region LAYOUT SYSTEM
   ================================================================= */

    .main-content {
        flex: 1;
        margin-top: var(--header-height);
        padding: var(--spacing-xl) var(--spacing-md);
        transition: opacity 0.3s ease-in-out;
    }

    .container {
        max-width: var(--content-max-width);
        margin: 0 auto;
    }

    .jobs-container {
        max-width: var(--jobs-max-width);
        margin: 0 auto;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .grid-1 {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

/* #region CARD SYSTEM
   ================================================================= */

    .card {
    /* Enhanced Liquid Glass Effect - unified for all cards */
    filter: drop-shadow(-8px -10px 46px #0000005f);
    backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
    -webkit-backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
    border-radius: 28px;
    
    /* Layout properties */
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

/* Enhanced inner glow for liquid glass - unified for all cards */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: 28px;
    overflow: hidden;
    -webkit-box-shadow: inset 0 0 3px 1px rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 8px 1px rgba(255, 255, 255, 0.7);
}

.card-tall {
    min-height: 350px;
}

.card-medium {
    min-height: 280px;
}

/* #region CALENDAR IFRAME SYSTEM - Optimized spacing within cards
   ================================================================= */
/* 
/* Calendar iframe - desktop keeps original styling */
.calendar-iframe {
    border: 0;
    border-radius: var(--radius-card);
    width: 100%;
    height: 600px;
    margin-top: var(--spacing-md);
}

/* Mobile optimizations for calendar - spacing changes only on mobile */
@media (max-width: 1000px) {
    .calendar-iframe {
        /* Use more of the available card space on mobile */
        width: calc(100% + calc(2 * var(--spacing-sm))); /* Extend beyond body-text width */
        margin-left: calc(-1 * var(--spacing-sm)); /* Pull iframe closer to card edges */
        margin-right: calc(-1 * var(--spacing-sm)); /* Pull iframe closer to card edges */
        height: 70vh; /* Viewport-based height for better mobile space utilization */
        min-height: 480px; /* Ensure minimum usable height */
        max-height: 650px; /* Prevent excessive height */
        border-radius: calc(var(--radius-card) / 2); /* Slightly smaller radius on mobile */
    }
}

/* Very small screens - more conservative spacing */
@media (max-width: 480px) {
    .calendar-iframe {
        height: 65vh;
        min-height: 420px;
        max-height: 580px;
    }
}

/* #region TYPOGRAPHY SYSTEM
   ================================================================= */

.title {
    font-size: var(--font-size-title);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

/* Job card title styling for consistent heights */
.card-medium .title {
    min-height: 3.6rem; /* Reserve space for 2 lines at 1.5rem font-size with 1.2 line-height */
    line-height: 1.2;
    display: flex;
    align-items: flex-start; /* Align to top so single-line titles don't center vertically */
}

/* Job card tags styling for consistent heights */
.card-medium .tags {
    min-height: 4.2rem; /* Reserve space for 2 lines of tags: (1.85rem + 0.5rem gap + 1.85rem) */
    align-items: flex-start; /* Align to top so single-line tags don't center vertically */
    align-content: flex-start; /* Align wrapped content to top */
}

.subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-primary);
}

.body-text {
    font-size: var(--font-size-body);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.body-text p {
    margin-bottom: 1em;
}

.body-text p:last-child {
    margin-bottom: 0;
}

.small-text {
    font-size: var(--font-size-small);
    color: var(--color-text-primary);
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.black-text {
    color: var(--color-text-black) !important;
}

/* Section spacing for legal pages */
.section-break {
    margin-top: 2em;
    margin-bottom: 1em;
}

/* #region LIST SYSTEM
   ================================================================= */

.list-numbered {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.list-numbered li {
    font-size: var(--font-size-body);
    color: var(--color-text-primary);
    margin-bottom: 12px;
    padding-left: var(--spacing-md);
    position: relative;
    line-height: 1.5;
}

.list-numbered li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: var(--font-weight-normal);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.list-bulleted {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-bulleted li {
    font-size: var(--font-size-body);
    color: var(--color-text-primary);
    margin-bottom: 0.5em;
    padding-left: var(--spacing-sm);
    position: relative;
    line-height: 1.6;
}

.list-bulleted li::before {
    
    content: "•";
    position: absolute;
    left: 0;
    font-weight: var(--font-weight-normal);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* #region BUTTON SYSTEM
   ================================================================= */

/* #region ENHANCED BUTTON SYSTEM - More Conspicuous While Maintaining Glassmorphism
   ================================================================= */

/* UNIFIED BUTTON SYSTEM - "One Change Propagates Everywhere"
   
   ALL BUTTONS NOW USE UNIFIED BRAND GRADIENT SYSTEM:
   - --gradient-brand-subtle (0.12 opacity) - for .btn standard buttons
   - --gradient-brand-strong (0.20 opacity) - for hover states  
   - --gradient-brand-hover (0.25 opacity) - for hover states
   
   Button Hierarchy and Functional Differences:
   .btn               - Standard glass button 
   .btn-submit-active - Inherits submit-specific layout
   
   KEY PRINCIPLE: Gradients are unified, differentiation is through:
   - Typography (font-weight: 600 vs 700)
   - Size/padding (12px vs 20px) 
   - Special effects (animations, shimmer)
   - Layout properties (width, margin)
*/

.btn {
    padding: 12px 24px;
    /* Glassmorphism effect instead of liquid glass */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-radius: var(--radius-button);
    color: var(--color-text-primary);
    font-size: var(--font-size-body);
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--transition-slow); /* Unified slow transition */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transform: translateZ(0);
    box-shadow: var(--shadow-glass);
}

.btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glass-hover);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

/* Active (pressed) state for better 3D feedback */
.btn:active {
    transform: translateY(1px) translateZ(0);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 
        0 4px 12px rgba(31, 38, 135, 0.12), 
        0 2px 6px rgba(31, 38, 135, 0.08), 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.10),
        inset 0 -1px 2px rgba(0, 0, 0, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.08);
    transition: var(--transition-instant); /* Unified instant transition */
}





.btn-full {
    width: 100%;
}















@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(46, 8, 235, 0.15),
            0 4px 16px rgba(149, 1, 253, 0.1),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 8px 40px rgba(46, 8, 235, 0.25),
            0 4px 20px rgba(149, 1, 253, 0.15),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            0 0 0 8px rgba(149, 1, 253, 0.1);
    }
}





/* =================================================================
   TAG SYSTEM
   ================================================================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    /* Enhanced shadow with inset lighting for consistency with other glass elements */
    box-shadow: 
        0 4px 12px rgba(31, 38, 135, 0.08), 
        0 2px 6px rgba(31, 38, 135, 0.06), 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.08),
        inset 0 -2px 4px rgba(0, 0, 0, 0.03);
    transition: var(--transition-medium); /* Unified medium transition */
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-luxury); /* Unified luxury transition for shimmer effect */
}

.tag:hover {
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    /* Enhanced tag hover shadow with more prominent inset lighting */
    box-shadow: 
        0 8px 24px rgba(31, 38, 135, 0.18), 
        0 4px 12px rgba(31, 38, 135, 0.12), 
        0 2px 6px rgba(0, 0, 0, 0.05), 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.2),
        inset 0 -1px 3px rgba(0, 0, 0, 0.1),
        inset 0 -3px 6px rgba(0, 0, 0, 0.04);
}

.tag:hover::before {
    left: 100%;
}

/* =================================================================
   SPECIAL COMPONENTS
   ================================================================= */

/* Profile Component */
.profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: var(--font-size-body);
    font-weight: 700;
    color: var(--color-text-black);
    margin: 0;
}

.profile-title {
    font-size: var(--font-size-body);
    color: var(--color-text-primary);
    margin: 0;
}

/* Quote Component */
.quote {
    font-size: var(--font-size-body);
    font-style: italic;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) calc(var(--spacing-sm) + 6px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    position: relative;
    overflow: hidden;
}

.quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-brand-vertical);
    border-radius: var(--radius-card) 0 0 var(--radius-card);
}

/* Job Details Component */
.job-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: 10px;
}

.salary {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.location {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
}

/* Button Group Component */
.btn-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: var(--spacing-md); /* Match quote margin-bottom for perfect alignment */
}

.btn-group .divider {
    color: var(--color-text-secondary);
    font-size: var(--font-size-body);
}

/* Flexbox utilities */
.flex-1 {
    flex: 1;
}

.mt-auto {
    margin-top: auto;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* =================================================================
   MOBILE LAYOUT (max-width: 1000px)
   ================================================================= */

@media (max-width: 1000px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md); /* Reduced from --spacing-lg (30px) to --spacing-md (20px) for mobile */
    }
    
    .jobs-container {
        max-width: 300px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .divider {
        display: none;
    }
    
    /* ===== MOBILE HEADER SYSTEM ===== */
    .header {
        padding: 0.75rem 1.5rem;
        height: auto;
        align-items: center;
        /* Liquid glass effect for mobile too */
        filter: drop-shadow(-8px -10px 46px #0000005f);
        backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
        -webkit-backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
        border-radius: 28px;
        overflow: hidden;
    }
    .header::before {
        border-radius: 28px;
    }
    
    .header-left {
        flex: 1;
        gap: 0.0rem;
    }
    
    .logo img {
        height: 2.5rem;
        width: auto; /* Preserve aspect ratio */
    }
    
    .brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        justify-content: center;
    }
    
    .brand-name {
        font-size: var(--font-size-body);
        line-height: 1.2;
        font-weight: var(--font-weight-medium);
    }
    
    /* Hide tagline on mobile to save space */
    .brand-tagline {
        display: none !important;
    }
    
    /* Hide navigation on mobile (will be handled by hamburger menu) */
    .nav {
        display: none !important;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex !important; /* Override desktop display: none */
        /* Perfect symmetry with logo - same dimensions and spacing */
        /* Logo: 39.34px x 45px = aspect ratio 0.874 */
        width: 2.185rem; /* Exact logo width proportion */
        height: 2.5rem;
        padding: 0.2rem;
        /* Ensure proper spacing from right edge matches logo spacing from left */
        margin-right: 0;
        align-items: center;
        justify-content: center;
    }
    
    /* ===== MOBILE BUTTONS ===== */

    /* Static background optimization for mobile */
    
    /* ===== MOBILE MAIN CONTENT SPACING ===== */
    .main-content {
        margin-top: 6.5rem; /* Balanced mobile spacing - accounts for header height + breathing room */
        padding: 0; /* Remove padding to allow cards to handle their own spacing */
    }
    
    /* ===== MOBILE BUTTON HEIGHT - ALL BUTTONS ===== */
    .btn {
        height: 55px !important; /* Force 55px height on mobile - "One Change Propagates Everywhere" */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ===== MOBILE CARD WIDTH SYSTEM - MATCH HEADER WIDTH ===== */
    
    /* Make containers match header width exactly */
    .container,
    .jobs-container {
        width: calc(100% - 40px); /* Match header width exactly */
        max-width: var(--container-max-width); /* Respect max-width */
        margin: 0 auto; /* Center the container */
        padding: var(--spacing-md) 0; /* Add vertical padding but no horizontal */
    }
    
    /* Cards should now fill their containers completely */
    .card,
    .card-tall,
    .card-medium,
    .job-card,
    .callback-card {
        width: 100%; /* Fill container completely */
        margin: 0 0 var(--spacing-md) 0; /* Only vertical margin */
        box-sizing: border-box;
    }
    
    .logo-link {
        gap: 0.5rem;
    }
}

/* =================================================================
   JOB MODAL SYSTEM
   ================================================================= */

/* Modal Base Styles */
.job-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
               visibility 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
    box-sizing: border-box;
}

.job-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Background Blur - Smooth immediate transition */
.job-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    transition: backdrop-filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
               opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Desktop-specific enhanced transitions - longer duration for elegance */
@media (min-width: 1001px) {
    .job-modal-backdrop {
        transition: backdrop-filter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                   opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Active state - full blur */
.job-modal-overlay.active .job-modal-backdrop {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 1;
}

/* Closing state - allows smooth reverse transition (higher specificity) */
.job-modal-overlay.active.closing .job-modal-backdrop {
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    opacity: 0 !important;
}

/* Modal Content Container - Fixed Liquid Glass Frame */
.job-modal-content {
    position: relative;
    /* Enhanced Liquid Glass Effect - smooth immediate transition */
    filter: drop-shadow(-8px -10px 46px #0000005f);
    backdrop-filter: brightness(1.0) blur(0px);
    -webkit-backdrop-filter: brightness(1.0) blur(0px);
    border-radius: 28px;
    overflow: hidden;
    
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    transform: scale(0.8) translateY(50px);
    opacity: 0.8;
    transition: var(--transition-fast), 
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                backdrop-filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.job-modal-content:hover {
    box-shadow: var(--shadow-glass-hover);
}

/* Desktop-specific enhanced transitions for modal content */
@media (min-width: 1001px) {
    .job-modal-content {
        transition: var(--transition-fast), 
                   transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                   backdrop-filter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                   opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Enhanced inner glow for liquid glass - matching card-medium exactly */
.job-modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: 28px;
    overflow: hidden;
    -webkit-box-shadow: inset 0 0 3px 1px rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 8px 1px rgba(255, 255, 255, 0.7);
}

/* Scrollable Content Area - Inside the Fixed Glass Frame */
.job-modal-scrollable {
    overflow-y: auto;
    padding: 2rem;
    flex: 1;
    min-height: 0; /* Important for flex child to be scrollable */
}

/* Active state - full effect */
.job-modal-overlay.active .job-modal-content {
    transform: scale(1) translateY(0);
    backdrop-filter: brightness(1.15) blur(8px);
    -webkit-backdrop-filter: brightness(1.15) blur(8px);
    opacity: 1;
}

/* Closing state - smooth reverse transition (higher specificity) */
.job-modal-overlay.active.closing .job-modal-content {
    transform: scale(0.8) translateY(50px) !important;
    backdrop-filter: brightness(1.0) blur(0px) !important;
    -webkit-backdrop-filter: brightness(1.0) blur(0px) !important;
    opacity: 0.8 !important;
}

/* Cancel Button - shared styling for all cancel/close buttons */
.cancel-button {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    transition: var(--transition-medium); /* Unified medium transition */
}

.cancel-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Modal positioning for cancel button */
.job-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.job-modal-close svg {
    width: 20px;
    height: 20px;
}

/* Modal Header */
.job-modal-header {
    margin-bottom: 2rem;
    padding-right: 3rem;
}

.job-modal-header .title {
    margin-bottom: 1rem;
    color: var(--color-text-black);
}

.job-modal-header .tags {
    margin-bottom: 1rem;
}

.job-modal-header .job-details {
    margin-bottom: 0;
}

/* Modal Body */
.job-modal-body {
    margin-bottom: 2rem;
}

.job-section {
    margin-bottom: 2rem;
}

.job-section:last-child {
    margin-bottom: 0;
}

.job-section .subtitle {
    margin-bottom: 1rem;
    color: var(--color-text-black);
}

.job-section .body-text {
    color: var(--color-text-primary);
    line-height: 1.6;
}

.job-section .list-bulleted {
    margin-top: 0.5rem;
}

/* Modal Footer */
.job-modal-footer {
    border-top: 1px solid transparent;
    padding-top: 2rem;
}

/* Body Modal Open State */
body.modal-open {
    overflow: hidden;
}

/* =================================================================
   CONTACT ICONS
   ================================================================= */

.contact-icons {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: 0.2rem;
    align-items: center;
}

.contact-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.contact-icons a:hover {
    opacity: 0.7;
}

.contact-icons svg {
    width: 19px;
    height: 19px;
    transition: all var(--transition-fast);
}

.contact-icons a:hover svg {
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 1000px) {
    .contact-icons {
        gap: var(--spacing-xs);
    }
    
    .contact-icons svg {
        width: 19px;
        height: 19px;
    }
}

/* =================================================================
   FORM COMPONENTS
   ================================================================= */

    .form-control {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: var(--radius-card);
        background: rgba(255, 255, 255, 0.1);
        color: var(--color-text-black);
        font-size: var(--font-size-body);
        transition: var(--transition-fast);
        font-family: inherit;
    }

    .form-control:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 3px rgba(94, 4, 237, 0.1);
    }

    .form-control:hover {
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.12);
    }

    .form-control::placeholder {
        color: var(--color-text-secondary);
        opacity: 0.7;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--color-text-black);
        font-weight: var(--font-weight-medium);
        font-size: var(--font-size-body);
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    /* Form Control with File Upload Area Background */
    .form-control-gradient {
        background: 
            var(--gradient-brand-subtle),
            url('/noise-subtle.svg');
        background-size: cover, 600px 600px;
        background-repeat: no-repeat, repeat;
        background-blend-mode: normal, overlay;
        position: relative;
        overflow: hidden;
        transition: var(--transition-medium); /* Unified medium transition */
    }

    /* Callback Card Vertical Centering */
    .callback-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 500px;
    }

    .callback-card .title {
        margin-bottom: 1rem;
        flex-shrink: 0;
    }

    .callback-card .body-text {
        margin-bottom: 2rem;
        flex-shrink: 0;
    }

    .callback-card .application-form {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
    }

    /* Callback Modal Vertical Centering */
    .callback-modal-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 400px;
    }

    .callback-modal-content .job-modal-header {
        text-align: center;
        margin-bottom: 2rem;
        flex-shrink: 0;
    }

    .callback-modal-content .job-modal-footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
    }

    .form-control-gradient::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255, 255, 255, 0.1), 
            transparent);
        transition: var(--transition-luxury); /* Unified luxury transition for special effects */
        pointer-events: none;
    }

    .form-control-gradient:hover {
        background: var(--gradient-brand-strong);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 8px 24px rgba(94, 4, 237, 0.12);
    }

    .form-control-gradient:hover::before {
        left: 100%;
    }

    .form-control-gradient:focus {
        background: var(--gradient-brand-medium);
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 0 3px rgba(94, 4, 237, 0.15), 0 8px 24px rgba(94, 4, 237, 0.12);
    }

/* =================================================================
   FILE UPLOAD COMPONENT
   ================================================================= */

.file-upload-container {
    margin-bottom: 1.5rem;
}

.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-card);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-medium); /* Unified medium transition */
    background: 
        var(--gradient-brand-subtle),
        url('/noise-subtle.svg');
    background-size: cover, 600px 600px;
    background-repeat: no-repeat, repeat;
    background-blend-mode: normal, overlay;
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: var(--transition-luxury); /* Unified luxury transition for special effects */
}

.file-upload-area:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: var(--gradient-brand-strong);
    box-shadow: 0 12px 32px rgba(94, 4, 237, 0.15);
}

.file-upload-area:hover::before {
    left: 100%;
}

.file-upload-area.drag-over {
    border-color: var(--gradient-brand);
    background: var(--gradient-brand-hover);
    transform: scale(1.02);
}

.file-upload-content h4 {
    margin: 1rem 0 0.5rem 0;
    color: var(--color-text-black);
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-medium);
}

.file-upload-content .small-text {
    color: var(--color-text-secondary);
    margin: 0;
}

.file-upload-icon {
    color: var(--color-text-black);
    margin-bottom: 0.5rem;
}

/* File Selected State */
.file-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-card);
    margin-bottom: 1rem;
    /* 3D inset lighting for consistency with other glass elements */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.12),
        inset 0 -1px 2px rgba(0, 0, 0, 0.06),
        inset 0 -2px 4px rgba(0, 0, 0, 0.02);
}

.file-name {
    color: var(--color-text-black);
    font-weight: var(--font-weight-medium);
    flex: 1;
    margin-right: 1rem;
    /* Prevent overflow of long single words */
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* Ensure text doesn't overflow container */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Maintain minimum width for readability */
    min-width: 0;
}



/* =================================================================
   FORM COMPONENTS
   ================================================================= */

.application-form {
    max-width: 100%;
}

/* Checkbox Styling */
.form-checkboxes {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    /* Glass effect shadow */
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 4px 6px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.form-checkboxes:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    position: relative;
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 22px;
    width: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* 3D inset lighting for consistency with other glass elements */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.12),
        inset 0 -1px 1px rgba(0, 0, 0, 0.06),
        inset 0 -1px 2px rgba(0, 0, 0, 0.02);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 40%;
    width: 5px;
    height: 10px;
    border: solid var(--color-text-black);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark {
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container:hover .checkmark {
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-container .small-text {
    color: var(--color-text-black);
    margin: 0;
}

/* Animated gradient frame for checkbox when checked OR gradient active (single frame only) */
.checkbox-container.gradient-active .checkmark,
.checkbox-container:not(.gradient-active) input:checked ~ .checkmark {
    position: relative;
    overflow: visible;
}

.checkbox-container.gradient-active .checkmark::before,
.checkbox-container:not(.gradient-active) input:checked ~ .checkmark::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: calc(5px + 2px);
    background: var(--gradient-brand);
    mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    padding: 2px;
    animation: drawBorder 2s ease-in-out forwards;
    opacity: 0;
    z-index: -1;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-button);
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-secondary);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    cursor: not-allowed;
    transition: var(--transition-fast); /* Use unified transition system */
    position: relative;
    overflow: hidden;
    /* Consistent spacing: match form-label margin-bottom for visual alignment */
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.btn-submit:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-text-secondary) !important;
    cursor: not-allowed !important;
    /* Fixed shadow that never changes */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    /* Remove hover animations when disabled */
    transition: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.btn-submit:disabled:hover {
    /* Explicitly prevent any hover effects when disabled - keep everything exactly the same */
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-text-secondary) !important;
    cursor: not-allowed !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
}

/* Submit button active state - extends btn with submit-specific layout */
.btn-submit-active {
    /* Inherit all .btn styling for active state appearance */
    background: var(--gradient-brand-medium);
    color: var(--color-text-black);
    font-weight: 700; /* Bold font like apply buttons */
    cursor: pointer;
    border: none;
    border-radius: var(--radius-button);
    transition: var(--transition-fast);
    position: relative;
    overflow: visible; /* Allow animated border to show */
    
    /* Submit-specific layout properties */
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    
    /* Glass effect shadow */
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(46, 8, 235, 0.12),
        0 16px 32px rgba(46, 8, 235, 0.16), 
        0 24px 48px rgba(149, 1, 253, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 3px 6px rgba(255, 255, 255, 0.25),
        inset 0 -1px 3px rgba(0, 0, 0, 0.12),
        inset 0 -3px 6px rgba(0, 0, 0, 0.05);
}

/* Animated border frame for active submit buttons */
.btn-submit-active::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: calc(var(--radius-button) + 3px);
    background: var(--gradient-brand);
    mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    padding: 3px;
    animation: drawBorder 2s ease-in-out forwards;
    opacity: 0;
    z-index: -1;
    will-change: transform; /* Force Safari to create separate compositing layer */
}

/* Keyframe animation for drawing the border */
@keyframes drawBorder {
    0% {
        opacity: 1;
        clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
    }
    25% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
    }
    50% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    75% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    100% {
        opacity: 0.5;
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}



/* Privacy Notice */
.privacy-notice {
    text-align: center;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.privacy-link {
    color: var(--color-text-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
    font-size: inherit;
    font-weight: inherit;
}


.privacy-link-black {
    color: var(--color-text-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
    font-size: inherit;
    font-weight: inherit;
}

.privacy-link:hover {
    color: var(--color-text-primary);
}

/* =================================================================
   JOB CARD ENHANCEMENTS
   ================================================================= */

.job-card {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: var(--shadow-glass-hover);
    /* More blurry liquid glass effect on hover */
    backdrop-filter: brightness(1.15) blur(8px) url(#displacementFilter);
    -webkit-backdrop-filter: brightness(1.15) blur(8px) url(#displacementFilter);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.job-card .apply-btn {
    position: relative;
    z-index: 5;
}

/* Mobile Optimizations for Modal */
@media (max-width: 1000px) {
    .job-modal-overlay {
        /* Fix for mobile Safari position:fixed + backdrop-filter issue */
        position: absolute !important;
        top: 0;
        left: 0;
        /* Use document height instead of viewport height */
        height: 100% !important;
        min-height: 100vh !important;
        /* Use design system consistent spacing - 2rem all around for congruent spacing */
        padding: 2rem;
        /* Remove all animations on mobile */
        transition: none !important;
        /* Override flexbox centering with manual centering */
        display: block !important;
    }
    
    .job-modal-content {
        /* Let JavaScript handle all positioning on mobile */
        position: absolute;
        /* Remove conflicting CSS positioning - JavaScript will set top/left */
        top: auto;
        left: 50%;
        /* Only handle horizontal centering in CSS */
        transform: translateX(-50%) !important;
        width: calc(100% - 2rem);
        max-width: 800px;
        max-height: 85vh;
        /* Remove transform animations on mobile */
        transition: none !important;
        /* Ensure content is always visible */
        margin: 0 auto;
    }
    
    .job-modal-backdrop {
        /* Use absolute positioning so JavaScript can position it with the content */
        position: absolute !important;
        /* JavaScript will set top position - start at 0 */
        top: 0;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: -1;
        /* Remove backdrop blur transition on mobile */
        transition: none !important;
    }
    
    .job-modal-scrollable {
        padding: 1.5rem; /* Mobile padding moved to scrollable container */
    }
    
    .job-modal-header {
        padding-right: 2.5rem;
    }
    
    .job-modal-close {
        top: 1rem;
        right: 1rem;
    }
    
    .file-upload-area {
        padding: 2rem 1rem;
    }
    
    .file-upload-content h4 {
        font-size: 1rem;
    }
    
    .checkbox-container {
        gap: 0.5rem;
    }
    
    .btn-submit,
    .btn-submit-active {
        padding: 0.875rem 1.5rem;
    }
}

/*
   ENHANCED GLASSY BUTTON VARIANT - More conspicuous while maintaining breathing effect
   Use for prominent call-to-action buttons that still blend elegantly with the background.
*/












/* Enhanced 3D Gentle Glow Animation - Dramatic depth breathing effect */
@keyframes gentleGlow {
    0%, 100% {
        box-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.08),
            0 8px 16px rgba(46, 8, 235, 0.08),
            0 16px 32px rgba(46, 8, 235, 0.12), 
            0 24px 48px rgba(149, 1, 253, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.18),
            inset 0 -1px 2px rgba(0, 0, 0, 0.10),
            inset 0 -2px 4px rgba(0, 0, 0, 0.04);
    }
    50% {
        box-shadow: 
            0 3px 6px rgba(0, 0, 0, 0.12),
            0 12px 24px rgba(46, 8, 235, 0.12),
            0 24px 48px rgba(46, 8, 235, 0.16), 
            0 36px 72px rgba(149, 1, 253, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            inset 0 3px 6px rgba(255, 255, 255, 0.22),
            inset 0 -2px 4px rgba(0, 0, 0, 0.12),
            inset 0 -3px 6px rgba(0, 0, 0, 0.06),
            0 0 0 3px rgba(149, 1, 253, 0.15);
    }
}

/* Enhanced Gradient Breathing Animation - More prominent background shift */
@keyframes gradientBreath {
    0%, 100% {
        opacity: 0;
        background: var(--gradient-brand-subtle);
    }
    50% {
        opacity: 0.8;
        background: var(--gradient-brand-medium);
    }
}











/* Phone ring animation */
@keyframes phoneRing {
    0%, 100% { transform: scale(1.1) rotate(-5deg); }
    25% { transform: scale(1.15) rotate(-7deg); }
    50% { transform: scale(1.1) rotate(-3deg); }
    75% { transform: scale(1.15) rotate(-7deg); }
}

/* Calendar pulse animation */
@keyframes calendarPulse {
    0%, 100% { transform: scale(1.1); }
    50% { 
        transform: scale(1.2);
        filter: drop-shadow(0 6px 16px rgba(46, 8, 235, 0.3));
    }
}

/* =================================================================
   FOOTER SYSTEM
   ================================================================= */

.footer {
    /* margin-top: var(--spacing-xl); - removed for sticky footer layout */
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    /* Liquid glass effect (same as .card-medium, .job-modal-content, .header) */
    filter: drop-shadow(-8px -10px 46px #0000005f);
    backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
    -webkit-backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: 28px;
    overflow: hidden;
    -webkit-box-shadow: inset 0 0 3px 1px rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 8px 1px rgba(255, 255, 255, 0.7);
}

@media (max-width: 1000px) {
    .footer {
        padding: var(--spacing-md) var(--spacing-sm);
        /* Liquid glass effect for mobile too */
        filter: drop-shadow(-8px -10px 46px #0000005f);
        backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
        -webkit-backdrop-filter: brightness(1.1) blur(2px) url(#displacementFilter);
        border-radius: 28px;
        overflow: hidden;
        position: relative;
    }
    .footer::before {
        border-radius: 28px;
    }
}

.footer-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    transition: var(--transition-fast); /* Unified fast transition */
    white-space: nowrap;
}

.footer-link:hover {
    color: var(--color-text-primary);
}

.footer-divider {
    color: var(--color-text-secondary);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    opacity: 0.6;
}

/* Mobile footer adjustments */
@media (max-width: 1000px) {
    .footer-links {
        gap: var(--spacing-xs);
        font-size: calc(var(--font-size-small) * 0.9);
    }
    
    .footer-divider {
        margin: 0 var(--spacing-xs);
    }
}

/* =================================================================
   UNIFIED GLASS HOVER SYSTEM
   ================================================================= */

/* Shared liquid glass hover effect - DESKTOP ONLY (devices that can actually hover) */
@media (hover: hover) {
    .glass-hover-effect,
    .card:hover,
    .header:hover,
    .btn-submit-active:hover,
    .footer:hover {
        /* More blurry liquid glass effect instead of glass morphism */
        backdrop-filter: brightness(1.15) blur(8px) url(#displacementFilter);
        -webkit-backdrop-filter: brightness(1.15) blur(8px) url(#displacementFilter);
        /* Enhanced hover shadow with consistent inset lighting */
        box-shadow: 
            var(--shadow-glass-hover),
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            inset 0 3px 6px rgba(255, 255, 255, 0.18),
            inset 0 -1px 3px rgba(0, 0, 0, 0.08),
            inset 0 -3px 6px rgba(0, 0, 0, 0.04);
        transition: var(--transition-fast); /* Unified fast transition */
    }
}


/* =================================================================
   SIMPLE FORM VALIDATION - "One Change Propagates Everywhere"
   ================================================================= */



/* Format hint styling - simple red text */
.format-hint {
    margin-top: 0.5rem;
    font-size: var(--font-size-small);
    color: #ff4757;
}

/* Input field error state - red border like purple focus */
.form-group.error .form-control {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

/* #region UTILITY CLASSES - BACKGROUND & POSITIONING FIXES
   ================================================================= */

/* 
 * UTILITY: Full Viewport Background Coverage
 * 
 * USE CASE: For pages with short content that don't naturally fill the viewport
 * PREVENTS: Background cropping issues
 * 
 * USAGE: Add class to your .container element
 * <div class="container viewport-fill">
 */
.viewport-fill {
    min-height: calc(100vh - var(--header-height) - var(--spacing-xl) * 2);
    display: flex;
    align-items: flex-start; /* Position from TOP, not center */
    justify-content: center;
}

/* Mobile responsive version */
@media (max-width: 1000px) {
    .viewport-fill {
        min-height: calc(100vh - 6.5rem - var(--spacing-md) * 2);
    }
}

/* 
 * UTILITY: Top-Aligned Container
 * 
 * USE CASE: Ensure cards are positioned from the top of their container
 * PREVENTS: Cards floating to center/bottom positioning
 * 
 * USAGE: Add class to any container that should align content to top
 * <div class="container top-aligned">
 */
.top-aligned {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* 
 * UTILITY: Full Height Card
 * 
 * USE CASE: Cards that should expand to fill their container
 * PREVENTS: Short cards floating in tall containers
 * 
 * USAGE: Add class to any card that should fill available space
 * <div class="card card-tall full-height">
 */
.full-height {
    height: 100%;
    min-height: inherit;
}

/* 
 * UTILITY: Centered Content with Top Alignment
 * 
 * USE CASE: Center content horizontally while keeping top alignment
 * PREVENTS: Vertical centering that causes bottom positioning
 * 
 * USAGE: Combine with viewport-fill for perfect page layouts
 * <div class="container viewport-fill centered-top">
 */
.centered-top {
    align-items: flex-start;
    justify-content: center;
    text-align: left; /* Prevent text centering */
}

/* 
 * UTILITY: Prevent Vertical Centering
 * 
 * USE CASE: Override any accidental vertical centering
 * PREVENTS: Cards positioned from center/bottom
 * 
 * USAGE: Add to any element that should NOT be vertically centered
 * <div class="container no-center">
 */
.no-center {
    align-items: flex-start !important;
    align-content: flex-start !important;
}

/* 
 * COMMENTED UTILITY: Common Layout Mistakes to Avoid
 * 
 * These are common patterns that CAUSE the background/positioning issues:
 * 
 * ❌ DON'T DO THIS:
 * .container {
 *     min-height: 100vh;           // Wrong - doesn't account for header/padding
 *     display: flex;
 *     align-items: center;         // Wrong - centers vertically (bottom positioning)
 *     justify-content: center;
 * }
 * 
 * ✅ DO THIS INSTEAD:
 * .container {
 *     min-height: calc(100vh - var(--header-height) - var(--spacing-xl) * 2);
 *     display: flex;
 *     align-items: flex-start;     // Correct - positions from top
 *     justify-content: center;
 * }
 * 
 * OR USE THE UTILITY CLASSES:
 * <div class="container viewport-fill centered-top">
 */

/* #endregion
}