/* SHELTER PAWTNERS - MASTER CSS FILE */
/* Single consolidated stylesheet with all styles in correct loading order */

/* ====================================
   PRELOADER & FOUC PREVENTION
   ==================================== */

/* Dark background immediately while loading - no flash */
body:not(.loaded) {
    visibility: hidden;
    background: #0a0f1a !important; /* Very dark blue/black */
}

/* Instant appearance when content is ready - no fade delay */
body.loaded {
    visibility: visible;
    animation: quickFadeIn 0.15s ease-out;
}

@keyframes quickFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ====================================
   CSS RESET & BASE STYLES
   ==================================== */
   
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ====================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ==================================== */

:root {
    /* Colors */
    --primary-color: #8B5CF6; /* Purple */
    --secondary-color: #06B6D4; /* Teal/Cyan */
    --accent-color: #F59E0B; /* Amber accent */
    --dark-color: #111827; /* Darker grey background */
    --light-color: #374151; /* Medium grey */
    --white-color: #F9FAFB; /* Off-white for text on dark */
    --surface-color: #1F2937; /* Card/surface color */
    
    /* Text Colors */
    --text-primary: #F9FAFB; /* Primary text color */
    --text-secondary: #E5E7EB; /* Secondary text color */
    --text-readable: #D1D5DB; /* Medium contrast text */
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
    --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-dark: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    --gradient-hero-text: linear-gradient(135deg, #b05cff 9%, #4089ff 50%, #00ffcf 91%);
    
    /* Glass Gradient Variables for Icons */
    --glass-gradient-1: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    --glass-gradient-2: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    --glass-gradient-3: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    
    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-hero: 1.8rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Glass-Morphism Variables */
    --glass-surface-dark: rgba(31, 41, 55, 0.9);
    --glass-surface-darker: rgba(17, 24, 39, 0.95);
    --glass-surface-light: rgba(31, 41, 55, 0.6);
    --glass-border-primary: 1px solid rgba(139, 92, 246, 0.2);
    --glass-border-secondary: 1px solid rgba(6, 182, 212, 0.2);
    --glass-shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --glass-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --glass-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Blur Effects */
    --blur-sm: blur(10px);
    --blur-md: blur(20px);
    --blur-lg: blur(30px);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ====================================
   BASE TYPOGRAPHY & ELEMENTS
   ==================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--gradient-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2vw, 1.25rem); }
h6 { font-size: clamp(0.875rem, 1.5vw, 1rem); }

/* Paragraphs */
p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: var(--secondary-color);
}

/* Lists */
ul, ol {
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* ====================================
   NAVIGATION STYLES
   ==================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: var(--glass-surface-dark);
    backdrop-filter: var(--blur-lg);
    border-bottom: var(--glass-border-primary);
    box-shadow: var(--glass-shadow-md);
    transition: all var(--transition-normal);
    width: 100%;
    box-sizing: border-box;
}

.header .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--spacing-lg) 0;
    min-height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.75rem);
    font-weight: 700;
    background: linear-gradient(135deg, #22D3EE 0%, #3B82F6 40%, #A855F7 70%, #EC4899 100%); /* Brighter gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.2)); /* Subtle glow */
}

.logo:hover {
    transform: translateY(-1px);
    filter: brightness(1.15) drop-shadow(0 0 20px rgba(34, 211, 238, 0.4)); /* Brighter on hover */
}

.logo-text {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2rem);
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-nav .nav-item {
    position: relative;
}

.desktop-nav .nav-link {
    color: #FFFFFF; /* Bright white for better contrast */
    text-decoration: none;
    font-weight: 600; /* Bolder for better visibility */
    font-size: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Subtle shadow for better readability */
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link:focus {
    background: var(--glass-surface-light);
    color: #22D3EE; /* Bright cyan on hover */
    transform: translateY(-1px);
    box-shadow: var(--glass-shadow-sm);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5); /* Glow effect */
}

/* Sign In Button - Override nav-link styles with gradient */
.desktop-nav .nav-item .nav-link.btn-signin,
.desktop-nav .nav-link.btn-signin,
.nav-link.btn-signin,
.btn-signin {
    background: linear-gradient(135deg, #8B5CF6, #06B6D4) !important;
    color: white !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
}

.desktop-nav .nav-item .nav-link.btn-signin:hover,
.desktop-nav .nav-item .nav-link.btn-signin:focus,
.desktop-nav .nav-link.btn-signin:hover,
.desktop-nav .nav-link.btn-signin:focus,
.nav-link.btn-signin:hover,
.nav-link.btn-signin:focus,
.btn-signin:hover,
.btn-signin:focus {
    background: linear-gradient(135deg, #8B5CF6, #06B6D4) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* Dropdown Menus */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    background: var(--glass-surface-light);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--glass-surface-darker);
    backdrop-filter: var(--blur-lg);
    border: var(--glass-border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow-lg);
    min-width: 200px;
    padding: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    list-style: none;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-link:hover,
.dropdown-link:focus {
    background: var(--glass-surface-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--glass-surface-light);
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    width: 100%;
    background: var(--glass-surface-darker);
    backdrop-filter: var(--blur-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
}

.mobile-nav .nav-menu {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    padding: 0 var(--spacing-md);
    list-style: none;
    margin: 0;
}

.mobile-nav .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    display: block;
    border: 1px solid transparent;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link:focus {
    background: var(--glass-surface-light);
    color: var(--primary-color);
    border-color: var(--glass-border-primary);
}

/* ====================================
   BUTTONS & COMPONENTS
   ==================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    font-size: 1rem;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

.btn-primary,
.btn-hero-primary {
    background: var(--gradient-primary);
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-sm);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
    animation: pulse-glow 2s infinite;
}

.btn-primary:hover,
.btn-hero-primary:hover {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.btn-secondary,
.btn-hero-secondary {
    background: var(--gradient-secondary);
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-md);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-hero-secondary:hover,
.btn-hero-secondary:focus {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-hero-tertiary {
    background: var(--gradient-accent);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--blur-md);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.btn-hero-tertiary:hover,
.btn-hero-tertiary:focus {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Glass Cards */
.glass-card {
    background: var(--glass-surface-light);
    backdrop-filter: var(--blur-md);
    border: var(--glass-border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow-sm);
    padding: var(--spacing-2xl);
    transition: all var(--transition-normal);
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-lg);
    border-color: rgba(139, 92, 246, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.feature-list {
    list-style: none;
    padding: 0;
    color: var(--text-secondary);
}

.feature-list li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* ====================================
   LAYOUT UTILITIES
   ==================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ====================================
   HERO SECTIONS
   ==================================== */

.hero {
    position: relative;
    padding: var(--spacing-hero) 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.4) 0%, transparent 50%),
                linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    z-index: -1;
}

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    background: var(--gradient-hero-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.hero-text {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 1200px;
    margin: 0 auto var(--spacing-md);
}

.hero-subhead {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.4;
}

/* Glass Hero Components */
.glass-hero {
    background: var(--glass-surface-light);
    backdrop-filter: var(--blur-lg);
    border: var(--glass-border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow-lg);
    padding: var(--spacing-2xl);
    margin: 0 auto;
    max-width: 1200px;
    width: 95%;
}

.glass-content {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

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

/* ====================================
   FOOTER STYLES
   ==================================== */

.footer {
    background: var(--gradient-dark);
    color: #E5E7EB;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    align-items: start;
}

.footer-section h3 {
    color: #F9FAFB;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    color: #E5E7EB;
    line-height: 1.5;
    font-size: 0.9rem;
}

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

.footer-link {
    color: #E5E7EB;
    display: block;
    padding: var(--spacing-xs) 0;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-link:hover, 
.footer-link:focus {
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

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

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .header-content {
        padding: var(--spacing-md) 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* Keep 2x2 grid on tablets, switch to 1 column only on mobile phones */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .glass-hero {
        max-width: 95%;
        padding: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: var(--spacing-sm) 0;
    }
    
    .mobile-nav {
        padding: var(--spacing-sm) 0;
    }
    
    .mobile-nav .nav-menu {
        padding: 0 var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .footer {
        padding: var(--spacing-md) 0;
    }
    
    /* Switch to single column only on very small screens */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Additional mobile optimizations */
    .glass-hero {
        border-radius: 12px;
        margin: 0 var(--spacing-xs);
        padding: var(--spacing-lg);
        max-width: 98%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-hero-tertiary {
        width: 100%;
        max-width: 240px;
        font-size: 0.9rem;
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

/* Performance optimizations for glass effects */
@media (max-width: 768px) {
    /* Reduce backdrop blur on mobile for better performance */
    .glass-card, .glass-hero {
        backdrop-filter: var(--blur-sm);
    }
    
    .header {
        backdrop-filter: var(--blur-md);
    }
    
    /* Adjust glass hero padding on mobile */
    .glass-hero {
        border-radius: 16px;
        margin: 0 var(--spacing-sm);
    }
    
    .glass-content {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    /* Enhance mobile button spacing */
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-hero-tertiary {
        width: 100%;
        max-width: 280px;
    }
}

/* ====================================
   ACCESSIBILITY & FOCUS STATES
   ==================================== */

.nav-link:focus,
.dropdown-toggle:focus,
.dropdown-link:focus,
.nav-toggle:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header {
        border-bottom: 2px solid;
    }
    
    .nav-link,
    .dropdown-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .dropdown-link:hover {
        border-color: currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .dropdown-toggle,
    .dropdown-menu,
    .hamburger,
    .logo,
    .btn {
        transition: none;
    }
}

/* ====================================
   MISSING COMPONENT CLASSES
   ==================================== */

/* Section Alt */
.section-alt {
    background: var(--glass-surface-light);
    backdrop-filter: var(--blur-sm);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.section-alt > * {
    position: relative;
    z-index: 1;
}

/* Additional Button Styles */
.btn-outline {
    background: var(--glass-surface-light);
    color: var(--white-color) !important;
    border: 2px solid var(--primary-color);
    backdrop-filter: var(--blur-sm);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow-sm);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--gradient-primary);
    color: var(--white-color) !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow-md);
    transform: translateY(-1px);
}

.btn-cta-enhanced {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.btn-cta-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-lg);
}

/* Testimonials */
.testimonial {
    background: var(--glass-surface-light);
    backdrop-filter: var(--blur-md);
    border: var(--glass-border-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow-sm);
    text-align: center;
    transition: all var(--transition-normal);
}

.testimonial:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-md);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.testimonial-role {
    color: var(--text-readable);
    font-size: 0.875rem;
}

/* Card Styles */
.card {
    background: var(--glass-surface-light);
    backdrop-filter: var(--blur-md);
    border: var(--glass-border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-md);
}

.card-content {
    padding: var(--spacing-xl);
}

.card-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Feature Box */
.feature-box {
    text-align: center;
    padding: var(--spacing-xl);
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

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

.mt-xl {
    margin-top: var(--spacing-xl);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

    /* ====================================
       FORM STYLES
       ==================================== */

    /* Form Groups and Labels */
    .form-group {
        margin-bottom: var(--spacing-md);
    }

    .form-label {
        display: block;
        margin-bottom: var(--spacing-xs);
        font-weight: 500;
        color: var(--text-primary);
        font-size: 0.95rem;
    }

    /* Form Controls - Inputs, Textareas, Selects */
    .form-control {
        width: 100%;
        padding: var(--spacing-md);
        font-size: 1rem;
        font-family: var(--font-body);
        border: 2px solid rgba(139, 92, 246, 0.3);
        border-radius: var(--radius-md);
        background: var(--glass-surface-light);
        backdrop-filter: var(--blur-sm);
        color: var(--text-primary);
        transition: all var(--transition-normal);
        box-shadow: var(--glass-shadow-sm);
    }

    .form-control:hover {
        border-color: rgba(139, 92, 246, 0.5);
        background: rgba(31, 41, 55, 0.8);
    }

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2), var(--glass-shadow-md);
        background: rgba(31, 41, 55, 0.9);
    }

    .form-control::placeholder {
        color: rgba(209, 213, 219, 0.5);
        font-style: italic;
    }

    /* Textarea Specific */
    textarea.form-control {
        min-height: 120px;
        resize: vertical;
        line-height: 1.5;
    }

    /* Select Dropdown Specific */
    select.form-control {
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%238B5CF6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
        background-position: right 1rem center;
        background-repeat: no-repeat;
        background-size: 1.5em 1.5em;
        padding-right: 3rem;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

    select.form-control option {
        background: var(--surface-color);
        color: var(--text-primary);
        padding: var(--spacing-sm);
    }

    /* Checkbox and Radio Styles */
    .form-check {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
        cursor: pointer;
    }

    .form-check input[type="checkbox"],
    .form-check input[type="radio"] {
        width: 1.25rem;
        height: 1.25rem;
        border: 2px solid rgba(139, 92, 246, 0.5);
        border-radius: var(--radius-sm);
        background: var(--glass-surface-light);
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .form-check input[type="radio"] {
        border-radius: 50%;
    }

    .form-check input[type="checkbox"]:checked,
    .form-check input[type="radio"]:checked {
        background: var(--gradient-primary);
        border-color: var(--primary-color);
    }

    .form-check input[type="checkbox"]:focus,
    .form-check input[type="radio"]:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    }

    .form-check label {
        color: var(--text-secondary);
        font-size: 0.95rem;
        cursor: pointer;
        user-select: none;
    }

    /* Form Submit Buttons */
    .btn-submit {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1.125rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: var(--gradient-primary);
        color: #FFFFFF !important;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-normal);
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        backdrop-filter: var(--blur-sm);
    }

    .btn-submit:hover,
    .btn-submit:focus {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

    .btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    /* Form Helper Text */
    .form-text {
        display: block;
        margin-top: var(--spacing-xs);
        font-size: 0.875rem;
        color: var(--text-readable);
        font-style: italic;
    }

    .form-error {
        color: #EF4444;
        font-size: 0.875rem;
        margin-top: var(--spacing-xs);
        display: block;
    }

    .form-success {
        color: #10B981;
        font-size: 0.875rem;
        margin-top: var(--spacing-xs);
        display: block;
    }

    /* Readonly and Disabled States */
    .form-control[readonly],
    .form-control:disabled {
        background: rgba(31, 41, 55, 0.6);
        color: var(--text-readable);
        cursor: not-allowed;
        opacity: 0.9;
    }

    /* Support legacy checkbox class */
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        border: 2px solid rgba(139, 92, 246, 0.5);
        border-radius: var(--radius-sm);
        background: var(--glass-surface-light);
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .form-check-input:checked {
        background: var(--gradient-primary);
        border-color: var(--primary-color);
    }

    .form-check-input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    }

    /* Form Sections */
    .form-section-title {
        color: var(--primary-color);
        font-size: 1.25rem;
        font-weight: 700;
        margin: var(--spacing-xl) 0 var(--spacing-md) 0;
        padding-bottom: var(--spacing-sm);
        border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    }

    /* Grid Layouts for Forms */
    .form-row {
        display: grid;
        gap: var(--spacing-md);
    }

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

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

    /* Feature Items in Forms */
    .feature-item {
        display: flex;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        background: var(--glass-surface-light);
        backdrop-filter: var(--blur-sm);
        border: 1px solid rgba(139, 92, 246, 0.2);
        border-radius: var(--radius-md);
        transition: all var(--transition-normal);
    }

    .feature-item:hover {
        transform: translateX(4px);
        border-color: rgba(139, 92, 246, 0.4);
        box-shadow: var(--glass-shadow-sm);
    }

    .feature-item h4 {
        color: var(--text-primary);
        font-size: 1.125rem;
        margin-bottom: var(--spacing-xs);
    }

    .feature-item p {
        color: var(--text-secondary);
        font-size: 0.95rem;
        margin: 0;
    }

    /* Tier Cards */
    .partnership-tiers {
        margin-top: var(--spacing-xl);
    }

    .partnership-tiers h3 {
        color: var(--text-primary);
        margin-bottom: var(--spacing-md);
    }

    .tier-card {
        background: var(--glass-surface-light);
        backdrop-filter: var(--blur-sm);
        border: 1px solid rgba(139, 92, 246, 0.2);
        border-radius: var(--radius-md);
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
        transition: all var(--transition-normal);
    }

    .tier-card:hover {
        border-color: rgba(139, 92, 246, 0.4);
        box-shadow: var(--glass-shadow-md);
        transform: translateY(-2px);
    }

    .tier-card h4 {
        color: var(--primary-color);
        font-size: 1.25rem;
        margin-bottom: var(--spacing-md);
    }

    .tier-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tier-card li {
        color: var(--text-secondary);
        padding: var(--spacing-xs) 0;
        padding-left: var(--spacing-lg);
        position: relative;
    }

    .tier-card li::before {
        content: '✓';
        position: absolute;
        left: 0;
        color: var(--secondary-color);
        font-weight: 700;
    }

    /* Mobile Form Optimizations */
    @media (max-width: 768px) {
        .form-row-2,
        .form-row-3 {
            grid-template-columns: 1fr;
        }
    
        .form-control {
            font-size: 16px; /* Prevents iOS zoom on focus */
            padding: var(--spacing-md);
        }
    
        select.form-control {
            background-position: right 0.75rem center;
            padding-right: 2.5rem;
        }
    
        .btn-submit {
            font-size: 1rem;
            padding: var(--spacing-md);
        }
    
        .feature-item {
            flex-direction: column;
            text-align: center;
        }
    
        .feature-icon {
            font-size: 2.5rem;
        }
    }

    @media (max-width: 480px) {
        .form-label {
            font-size: 0.875rem;
        }
    
        .form-control {
            padding: 0.875rem;
        }
    
        .form-section-title {
            font-size: 1.125rem;
        }
    
        .tier-card {
            padding: var(--spacing-md);
        }
    }

/* ====================================
   ANIMATIONS & KEYFRAMES
   ==================================== */

/* Pulse animation for primary hero button */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(6, 182, 212, 0.6);
    }
}

/* Floating animation for glass elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Gentle glow animation */
@keyframes gentle-glow {
    0%, 100% {
        box-shadow: var(--glass-shadow-sm);
    }
    50% {
        box-shadow: var(--glass-shadow-md);
    }
}