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

:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --venue-color: #78350f;
    --album-color: #8b5cf6;
    --event-color: #48eccb;
    --investment-color: #06b6d4;
    --document-color: #f97316;

    /* Neutrals */
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

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

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Mobile Safari: prevent zoom on double tap */
    touch-action: manipulation;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
    overflow-x: hidden;
    /* Mobile Safari: prevent rubber band scrolling */
    overscroll-behavior-y: none;
    /* Ensure proper touch scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    color: var(--primary-dark);
}

a:active {
    opacity: 0.8;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Cross-browser user-select */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Mobile Safari: prevent callout */
    -webkit-touch-callout: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline:active {
    transform: scale(0.98);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: var(--font-size-lg);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark);
}

.logo img {
    border-radius: var(--radius-sm);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius);
    transition: var(--transition);
    display: block;
    /* Mobile touch optimization */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: var(--gray-100);
}

.nav-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

#auth-buttons {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

#auth-buttons .btn {
    margin: 0;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid transparent;
    /* Mobile browser compatibility */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.profile-trigger:hover {
    background-color: var(--gray-100);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

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

.profile-name {
    font-weight: 500;
    color: var(--gray-800);
    font-size: var(--font-size-sm);
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: var(--transition);
    color: var(--gray-600);
}

.profile-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid var(--gray-200);
    /* Mobile browser compatibility */
    -webkit-overflow-scrolling: touch;
    overflow: visible;
    /* Ensure hidden dropdown doesn't block clicks */
    pointer-events: none;
}

.profile-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--gray-700);
    transition: var(--transition);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.dropdown-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: var(--spacing-xs) 0;
}

/* Mobile Auth Buttons - hidden on desktop, shown on mobile when not authenticated */
.mobile-auth-buttons {
    display: none;
    gap: var(--spacing-xs);
    align-items: center;
    margin-left: auto;
}

.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.mobile-btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.mobile-btn-outline:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.mobile-btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1.5px solid var(--primary);
}

.mobile-btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Mobile Profile Dropdown - hidden on desktop, shown on mobile when authenticated */
.mobile-profile-dropdown {
    display: none;
    position: relative;
    margin-left: auto;
}

.mobile-profile-dropdown:not(.hidden) {
    display: none; /* Still hidden on desktop */
}

.mobile-profile-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius);
    transition: var(--transition);
    /* Mobile browser compatibility */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-profile-trigger:hover {
    background-color: var(--gray-100);
}

.mobile-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm);
    z-index: 1001;
    /* Ensure hidden dropdown doesn't block clicks */
    pointer-events: none;
}

.mobile-profile-dropdown.open .mobile-dropdown-menu {
    display: block;
    pointer-events: auto;
}

.mobile-dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.mobile-dropdown-header .profile-avatar {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
    /* Mobile browser compatibility */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    padding: 8rem var(--spacing-md) 4rem;
    background: var(--gray-800);
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: background 2s ease-in-out;
    border-bottom: 2px solid #000000;
}

/* Daytime hero background */
.hero.day {
    background: linear-gradient(to bottom,
        #87CEEB 0%,
        #B0E0E6 25%,
        #E0F6FF 50%,
        #F0F8FF 75%,
        #FAFBFF 100%
    );
}

/* Nighttime hero background */
.hero.night {
    background: linear-gradient(to bottom,
        #0a1128 0%,
        #1a1f3a 25%,
        #2a2f4a 50%,
        #1a2332 75%,
        #0f1419 100%
    );
}

/* Stars Container - only visible during night */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    pointer-events: none;
}

.hero.night .stars-container,
.hero.dusk .stars-container {
    opacity: 1;
}

.hero.early-morning .stars-container {
    opacity: 0.3;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

/* Create different sized stars with random positions and animations */
.star:nth-child(1) { width: 2px; height: 2px; top: 10%; left: 15%; animation-duration: 3s; }
.star:nth-child(2) { width: 1px; height: 1px; top: 20%; left: 25%; animation-duration: 4s; animation-delay: 0.5s; }
.star:nth-child(3) { width: 2px; height: 2px; top: 15%; left: 45%; animation-duration: 2.5s; animation-delay: 1s; }
.star:nth-child(4) { width: 1px; height: 1px; top: 8%; left: 65%; animation-duration: 3.5s; }
.star:nth-child(5) { width: 2px; height: 2px; top: 25%; left: 80%; animation-duration: 4s; animation-delay: 1.5s; }
.star:nth-child(6) { width: 1px; height: 1px; top: 5%; left: 35%; animation-duration: 3s; animation-delay: 0.8s; }
.star:nth-child(7) { width: 2px; height: 2px; top: 30%; left: 55%; animation-duration: 3.8s; }
.star:nth-child(8) { width: 1px; height: 1px; top: 12%; left: 75%; animation-duration: 3.2s; animation-delay: 1.2s; }
.star:nth-child(9) { width: 2px; height: 2px; top: 18%; left: 5%; animation-duration: 4.2s; animation-delay: 0.3s; }
.star:nth-child(10) { width: 1px; height: 1px; top: 35%; left: 20%; animation-duration: 3.6s; }
.star:nth-child(11) { width: 2px; height: 2px; top: 22%; left: 40%; animation-duration: 3.3s; animation-delay: 1.8s; }
.star:nth-child(12) { width: 1px; height: 1px; top: 28%; left: 70%; animation-duration: 4.5s; }
.star:nth-child(13) { width: 2px; height: 2px; top: 8%; left: 90%; animation-duration: 3.7s; animation-delay: 0.6s; }
.star:nth-child(14) { width: 1px; height: 1px; top: 40%; left: 12%; animation-duration: 3.9s; animation-delay: 1.4s; }
.star:nth-child(15) { width: 2px; height: 2px; top: 14%; left: 52%; animation-duration: 3.4s; }
.star:nth-child(16) { width: 1px; height: 1px; top: 32%; left: 85%; animation-duration: 4.1s; animation-delay: 0.9s; }
.star:nth-child(17) { width: 2px; height: 2px; top: 6%; left: 28%; animation-duration: 3.1s; }
.star:nth-child(18) { width: 1px; height: 1px; top: 38%; left: 48%; animation-duration: 4.3s; animation-delay: 1.1s; }
.star:nth-child(19) { width: 2px; height: 2px; top: 16%; left: 68%; animation-duration: 3.5s; animation-delay: 0.4s; }
.star:nth-child(20) { width: 1px; height: 1px; top: 24%; left: 8%; animation-duration: 3.8s; }
.star:nth-child(21) { width: 2px; height: 2px; top: 11%; left: 38%; animation-duration: 4.2s; animation-delay: 1.6s; }
.star:nth-child(22) { width: 1px; height: 1px; top: 33%; left: 58%; animation-duration: 3.3s; }
.star:nth-child(23) { width: 2px; height: 2px; top: 19%; left: 78%; animation-duration: 3.7s; animation-delay: 0.7s; }
.star:nth-child(24) { width: 1px; height: 1px; top: 7%; left: 18%; animation-duration: 4s; animation-delay: 1.3s; }
.star:nth-child(25) { width: 2px; height: 2px; top: 26%; left: 42%; animation-duration: 3.6s; }
.star:nth-child(26) { width: 1px; height: 1px; top: 13%; left: 62%; animation-duration: 3.9s; animation-delay: 0.2s; }
.star:nth-child(27) { width: 2px; height: 2px; top: 36%; left: 82%; animation-duration: 4.4s; animation-delay: 1.7s; }
.star:nth-child(28) { width: 1px; height: 1px; top: 9%; left: 32%; animation-duration: 3.2s; }
.star:nth-child(29) { width: 2px; height: 2px; top: 29%; left: 52%; animation-duration: 3.5s; animation-delay: 1s; }
.star:nth-child(30) { width: 1px; height: 1px; top: 17%; left: 72%; animation-duration: 4.1s; animation-delay: 0.5s; }
.star:nth-child(31) { width: 2px; height: 2px; top: 21%; left: 10%; animation-duration: 3.8s; }
.star:nth-child(32) { width: 1px; height: 1px; top: 34%; left: 30%; animation-duration: 3.4s; animation-delay: 1.5s; }
.star:nth-child(33) { width: 2px; height: 2px; top: 4%; left: 50%; animation-duration: 4.3s; animation-delay: 0.8s; }
.star:nth-child(34) { width: 1px; height: 1px; top: 27%; left: 88%; animation-duration: 3.1s; }
.star:nth-child(35) { width: 2px; height: 2px; top: 39%; left: 22%; animation-duration: 3.9s; animation-delay: 1.2s; }
.star:nth-child(36) { width: 1px; height: 1px; top: 23%; left: 60%; animation-duration: 4s; animation-delay: 0.6s; }
.star:nth-child(37) { width: 2px; height: 2px; top: 31%; left: 15%; animation-duration: 3.6s; }
.star:nth-child(38) { width: 1px; height: 1px; top: 41%; left: 45%; animation-duration: 3.3s; animation-delay: 1.8s; }
.star:nth-child(39) { width: 2px; height: 2px; top: 3%; left: 75%; animation-duration: 4.2s; animation-delay: 0.4s; }
.star:nth-child(40) { width: 1px; height: 1px; top: 37%; left: 5%; animation-duration: 3.7s; }
.star:nth-child(41) { width: 2px; height: 2px; top: 42%; left: 35%; animation-duration: 3.5s; animation-delay: 1.4s; }
.star:nth-child(42) { width: 1px; height: 1px; top: 44%; left: 65%; animation-duration: 4.4s; animation-delay: 0.9s; }
.star:nth-child(43) { width: 2px; height: 2px; top: 46%; left: 25%; animation-duration: 3.2s; }
.star:nth-child(44) { width: 1px; height: 1px; top: 48%; left: 55%; animation-duration: 3.8s; animation-delay: 1.6s; }
.star:nth-child(45) { width: 2px; height: 2px; top: 43%; left: 85%; animation-duration: 4.1s; animation-delay: 0.3s; }
.star:nth-child(46) { width: 1px; height: 1px; top: 45%; left: 95%; animation-duration: 3.4s; }
.star:nth-child(47) { width: 2px; height: 2px; top: 47%; left: 40%; animation-duration: 3.9s; animation-delay: 1.1s; }
.star:nth-child(48) { width: 1px; height: 1px; top: 49%; left: 70%; animation-duration: 4.3s; animation-delay: 0.7s; }
.star:nth-child(49) { width: 2px; height: 2px; top: 2%; left: 92%; animation-duration: 3.6s; }
.star:nth-child(50) { width: 1px; height: 1px; top: 1%; left: 50%; animation-duration: 3.1s; animation-delay: 1.9s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Sun (daytime only) */
.sun {
    position: absolute;
    top: 80px;
    right: 100px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    z-index: 5;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background: radial-gradient(circle,
        rgba(255, 255, 150, 1) 0%,
        rgba(255, 255, 150, 0.8) 30%,
        rgba(255, 255, 150, 0.4) 60%,
        rgba(255, 255, 150, 0) 100%
    );
}

.hero.day .sun {
    opacity: 0.5;
    animation: sunGlow 4s ease-in-out infinite;
}

.hero.night .sun {
    opacity: 0;
    animation: none;
}

@keyframes sunGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.03);
    }
}

/* Clouds (daytime only) */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    z-index: 6;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero.day .cloud {
    opacity: 1;
    animation: cloudFloat 60s linear infinite;
}

.hero.night .cloud {
    opacity: 0;
    animation: none;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 100px;
}

.cloud1 {
    width: 100px;
    height: 35px;
    top: 100px;
    left: -100px;
}

.cloud1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    left: 40px;
}

.cloud2 {
    width: 120px;
    height: 40px;
    top: 180px;
    left: -200px;
    animation-delay: -20s;
    animation-duration: 80s;
}

.cloud2::before {
    width: 55px;
    height: 55px;
    top: -28px;
    left: 15px;
}

.cloud2::after {
    width: 65px;
    height: 45px;
    top: -18px;
    left: 50px;
}

@keyframes cloudFloat {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

/* Sea Animation */
.sea-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
    transition: opacity 2s ease-in-out, filter 2s ease-in-out;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300%;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        transparent 50%,
        rgba(59, 130, 246, 0.35) 60%,
        rgba(37, 99, 235, 0.50) 70%,
        rgba(29, 78, 216, 0.60) 80%,
        rgba(30, 64, 175, 0.70) 90%,
        rgba(23, 37, 84, 0.80) 100%
    );
    transition: background 2s ease-in-out;
}

/* Daytime wave colors - bluish green */
.hero.day .wave {
    background: linear-gradient(to bottom,
        transparent 0%,
        transparent 40%,
        rgba(64, 224, 208, 0.15) 45%,
        rgba(32, 178, 170, 0.25) 50%,
        rgba(0, 206, 209, 0.35) 55%,
        rgba(72, 209, 204, 0.45) 60%,
        rgba(32, 178, 170, 0.55) 65%,
        rgba(46, 139, 87, 0.65) 70%,
        rgba(0, 128, 128, 0.75) 80%,
        rgba(0, 100, 100, 0.85) 90%,
        rgba(0, 80, 80, 0.95) 100%
    );
}

.wave1 {
    animation: wave1 25s ease-in-out infinite;
    z-index: 4;
}

.wave2 {
    animation: wave2 30s ease-in-out -5s infinite;
    z-index: 3;
    opacity: 0.85;
}

.wave3 {
    animation: wave3 35s ease-in-out -10s infinite;
    z-index: 2;
    opacity: 0.7;
}

.wave4 {
    animation: wave4 40s ease-in-out -15s infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes wave1 {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-8.33%) translateY(-20px);
    }
    50% {
        transform: translateX(-16.66%) translateY(0);
    }
    75% {
        transform: translateX(-25%) translateY(-15px);
    }
    100% {
        transform: translateX(-33.33%) translateY(0);
    }
}

@keyframes wave2 {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-8.33%) translateY(-25px);
    }
    50% {
        transform: translateX(-16.66%) translateY(0);
    }
    75% {
        transform: translateX(-25%) translateY(-20px);
    }
    100% {
        transform: translateX(-33.33%) translateY(0);
    }
}

@keyframes wave3 {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-8.33%) translateY(-18px);
    }
    50% {
        transform: translateX(-16.66%) translateY(0);
    }
    75% {
        transform: translateX(-25%) translateY(-22px);
    }
    100% {
        transform: translateX(-33.33%) translateY(0);
    }
}

@keyframes wave4 {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-8.33%) translateY(-15px);
    }
    50% {
        transform: translateX(-16.66%) translateY(0);
    }
    75% {
        transform: translateX(-25%) translateY(-18px);
    }
    100% {
        transform: translateX(-33.33%) translateY(0);
    }
}

/* Time-based brightness classes */
.hero.night .sea-animation {
    opacity: 0.5;
    filter: brightness(0.6) contrast(1.2);
}

.hero.early-morning .sea-animation {
    opacity: 0.6;
    filter: brightness(0.85) contrast(1.1);
}

.hero.morning .sea-animation {
    opacity: 0.75;
    filter: brightness(1.1) contrast(1.05);
}

.hero.day .sea-animation {
    opacity: 0.9;
    filter: brightness(1) contrast(1);
}

.hero.evening .sea-animation {
    opacity: 0.65;
    filter: brightness(0.95) contrast(1.1);
}

.hero.dusk .sea-animation {
    opacity: 0.55;
    filter: brightness(0.7) contrast(1.15);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-4xl);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--white);
    transition: color 2s ease-in-out, text-shadow 2s ease-in-out;
}

/* Daytime text colors */
.hero.day .hero-title {
    color: #000000;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.gradient-text {
    color: var(--white);
    transition: all 2s ease-in-out;
}

.hero.day .gradient-text {
    color: #000000;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    transition: color 2s ease-in-out, text-shadow 2s ease-in-out;
}

.hero.day .hero-subtitle {
    color: #000000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

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

/* Hero button styles - default (nighttime) */
.hero-btn {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary-dark);
}

/* Hero button styles - daytime override */
.hero.day .hero-btn {
    background: #4badbd !important;
    color: #000000 !important;
    border-color: #F2F1A047 !important;
}

.hero.day .hero-btn:hover,
.hero.day .hero-btn:active,
.hero.day .hero-btn:focus {
    border-color: white !important;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat h3 {
    font-size: var(--font-size-4xl);
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.hero-stats .stat p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Section Styles ===== */
section {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
}

/* ===== Applications Section ===== */
.applications {
    background-color: var(--gray-100);
}

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

/* Ensure apps grid is responsive on smaller screens */
@media (max-width: 640px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

.app-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    cursor: pointer;
    /* Mobile browser compatibility */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Only apply hover effects on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .app-card:hover {
        transform: scale(1.03);
        box-shadow: var(--shadow-xl);
        border: 2px solid var(--primary);
    }
}

/* Active state for mobile touch */
.app-card:active,
.app-card:focus {
    transform: scale(0.98);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary);
}

.app-card.featured {
    border: 2px solid transparent;
}

/* Only apply featured hover effects on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .app-card.featured:hover {
        border: 2px solid var(--primary);
    }
}

.app-card.featured:active,
.app-card.featured:focus {
    border: 2px solid var(--primary);
}

.featured-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
}

.app-icon.venue {
    background: linear-gradient(135deg, rgba(112, 66, 20, 0.4) 0%, rgba(90, 52, 16, 0.9) 100%);
}

.app-icon.album {
    background: linear-gradient(135deg, rgba(113, 70, 147, 0.4) 0%, rgba(93, 58, 122, 0.9) 100%);
}

.app-icon.event {
    background: linear-gradient(135deg, rgba(1, 121, 111, 0.4) 0%, rgba(1, 104, 96, 0.9) 100%);
}

.app-icon.investment {
    background: linear-gradient(135deg, #22d3ee 0%, var(--investment-color) 100%);
}

.app-icon.document {
    background: linear-gradient(135deg, #fb923c 0%, var(--document-color) 100%);
}

.app-icon.generic {
    background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-600) 100%);
}

.app-title {
    margin-bottom: var(--spacing-sm);
}

.app-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.app-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.app-features li {
    padding: var(--spacing-xs) 0;
    color: var(--gray-700);
    position: relative;
    padding-left: var(--spacing-md);
}

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

.app-card.coming-soon {
    opacity: 0.7;
}

/* ===== Suite Solution Section ===== */
.suite-solution {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.suite-description {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-700);
    text-align: center;
}

/* Carousel Container */
.carousel-container {
    margin-top: 50px;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
    /* Mobile browser compatibility */
    -webkit-overflow-scrolling: touch;
    overflow: visible;
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 400px;
    /* Ensure track adjusts on mobile */
    display: flex;
    align-items: center;
}

.carousel-group {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease,
                visibility 0s linear 0.25s;
    /* Mobile browser compatibility */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.carousel-group.exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 5;
}

.carousel-group.enter {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: none;
}

.carousel-group.active {
    position: absolute;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
    transition: opacity 0.25s ease 0.25s,
                visibility 0s linear 0s;
}

/* Group Box Container */
.group-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-radius: 28px;
    padding: 40px 80px 50px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.12);
    position: relative;
    overflow: hidden;
    perspective: 1500px;
}

.group-box-content {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: rotateX(0deg);
    -webkit-transform: rotateX(0deg);
    transition: transform 0.5s ease-in-out;
    -webkit-transition: -webkit-transform 0.5s ease-in-out;
    transform-origin: center center;
    -webkit-transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-group.exit .group-box-content {
    transform: rotateX(-90deg);
    -webkit-transform: rotateX(-90deg);
}

.carousel-group.enter .group-box-content {
    transform: rotateX(90deg);
    -webkit-transform: rotateX(90deg);
}

.carousel-group.active .group-box-content {
    transform: rotateX(0deg);
    -webkit-transform: rotateX(0deg);
}

.group-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 35px 0;
    padding: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.group-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.carousel-slide {
    flex: 1;
    max-width: 300px;
    min-width: 220px;
    border-radius: 20px;
    padding: 40px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .carousel-slide:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    .carousel-slide:hover .slide-icon {
        transform: rotateY(360deg) scale(1.15);
        box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
    }
}

.venue-slide {
    background: linear-gradient(135deg, rgba(112, 66, 20, 0.4) 0%, rgba(90, 52, 16, 0.9) 100%);
}

.event-slide {
    background: linear-gradient(135deg, rgba(1, 121, 111, 0.4) 0%, rgba(1, 104, 96, 0.9) 100%);
}

.album-slide {
    background: linear-gradient(135deg, rgba(113, 70, 147, 0.4) 0%, rgba(93, 58, 122, 0.9) 100%);
}

.slide-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
}

.slide-icon svg {
    width: 50px;
    height: 50px;
}

.slide-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 100;
    color: var(--primary);
    /* Mobile touch optimization */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Increase touch target on mobile */
    min-width: 44px;
    min-height: 44px;
}

.carousel-arrow svg {
    width: 22px;
    height: 22px;
}

@media (hover: hover) and (pointer: fine) {
    .carousel-arrow:hover {
        transform: translateY(-50%) scale(1.15);
        box-shadow: 0 6px 30px rgba(37, 99, 235, 0.4);
        background: var(--primary);
        color: white;
    }
}

.carousel-arrow-left {
    left: 18px;
}

.carousel-arrow-right {
    right: 18px;
}

/* Carousel Dots - Hidden */
.carousel-dots {
    display: none;
}

/* ===== Features Section ===== */
.features {
    position: relative;
    z-index: 2;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-item h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-xl);
}

.feature-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== About Section ===== */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-600);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.stat-item h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat-item p {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--dark);
}

.image-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark);
    color: var(--gray-400);
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    border-radius: var(--radius-sm);
}

.footer-description {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background-color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--gray-500);
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    animation: fadeIn 0.3s ease;
    /* Mobile touch support */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.modal.active {
    display: flex;
}

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

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    /* Prevent clicks from bubbling to modal overlay */
    pointer-events: auto;
}

.modal-large .modal-content {
    max-width: 800px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-600);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
    /* Mobile touch support */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    z-index: 10;
}

.modal-close:hover,
.modal-close:active {
    background-color: var(--gray-200);
    color: var(--dark);
}

.modal-content h2 {
    margin-bottom: var(--spacing-xs);
}

.modal-subtitle {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

.modal-body {
    color: var(--gray-700);
}

.modal-body h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-xl);
}

.modal-body ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.modal-body li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

/* ===== Forms ===== */
.auth-form {
    margin-top: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem var(--spacing-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    margin-bottom: var(--spacing-md);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.link {
    color: var(--primary);
    font-size: var(--font-size-sm);
}

.link:hover {
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--gray-300);
}

.divider span {
    background-color: var(--white);
    padding: 0 var(--spacing-sm);
    position: relative;
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

.btn-social {
    position: relative;
}

.btn-social svg {
    position: absolute;
    left: var(--spacing-sm);
}

.auth-switch {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--gray-600);
}

.contact-info {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-300);
}

.contact-info p {
    margin-bottom: var(--spacing-xs);
    color: var(--gray-600);
}

/* ===== Responsive Design ===== */

/* Large Tablets and Small Laptops: 1024px and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

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

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

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

/* ===== MOBILE & TABLET RESPONSIVE BREAKPOINTS ===== */
/*
 * Mobile/Tablet Breakpoint: 968px and below
 *
 * At this breakpoint:
 * - Desktop navigation (.nav-actions) is HIDDEN
 * - Mobile navigation becomes active
 * - Mobile auth buttons (.mobile-auth-buttons) appear when not logged in
 * - Mobile profile dropdown (.mobile-profile-dropdown) appears when logged in
 * - Desktop profile dropdown remains hidden on mobile
 *
 * Browser Compatibility:
 * - Safari (iOS/macOS)
 * - Chrome (Android/Desktop)
 * - Firefox (Android/Desktop)
 * - Edge (Android/Desktop)
 */
@media (max-width: 968px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-lg);
        padding: 0;
        margin: 0;
        flex-direction: column;
        gap: 0;
        z-index: 999;
        /* Ensure proper alignment */
        align-items: stretch;
        /* Ensure hidden menu doesn't block clicks */
        pointer-events: none;
    }

    .nav-menu.active {
        display: flex;
        pointer-events: auto;
    }

    .nav-menu li {
        margin: 0;
        padding: 0;
        width: 100%;
        /* Ensure list items don't interfere with touch targets */
        pointer-events: none;
    }

    .nav-link {
        padding: var(--spacing-md);
        width: 100%;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid var(--gray-200);
        display: block;
        box-sizing: border-box;
        /* Ensure proper touch target */
        min-height: 48px;
        line-height: 1.5;
        /* Re-enable pointer events on the link itself */
        pointer-events: auto;
        /* Remove any inherited positioning issues */
        position: relative;
        /* Ensure link covers full area */
        text-decoration: none;
    }

    /* Remove background effect on mobile to prevent overlap */
    .nav-link:hover,
    .nav-link.active {
        background-color: var(--gray-100);
        color: var(--primary);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hide nav actions on mobile - show in mobile menu instead */
    .nav-actions {
        display: none;
    }

    /* Show mobile auth buttons on mobile when not authenticated */
    .mobile-auth-buttons:not(.hidden) {
        display: flex !important; /* Override desktop hide */
        margin-right: 0.0625rem; /* Fully right, minimal gap from toggle button */
    }

    /* Ensure mobile auth buttons are hidden when user is logged in */
    .mobile-auth-buttons.hidden {
        display: none !important;
    }

    /* Smaller mobile buttons */
    .mobile-btn {
        padding: 0.25rem 0.5rem; /* Reduced padding */
        font-size: 0.75rem; /* Smaller font size */
    }

    /* Show mobile profile dropdown on mobile when authenticated */
    .mobile-profile-dropdown:not(.hidden) {
        display: flex !important; /* Override desktop hide */
    }

    /* Mobile dropdown menu positioning */
    .mobile-dropdown-menu {
        right: -10px; /* Slight offset from edge */
        min-width: 280px; /* Wider on mobile for better UX */
        max-width: calc(100vw - 20px); /* Prevent overflow */
    }

    /* Mobile profile trigger avatar - ensure it's visible and appropriately sized */
    .mobile-profile-trigger .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-sm);
    }

    /* Ensure mobile profile dropdown has proper spacing from menu toggle */
    .mobile-profile-dropdown {
        margin-right: var(--spacing-sm);
    }

    /* Ensure dropdown items are visible and properly styled on mobile */
    .mobile-dropdown-menu .dropdown-item {
        display: flex !important;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
        color: var(--gray-700);
        text-decoration: none;
        border-radius: var(--radius-md);
        transition: var(--transition);
        font-size: var(--font-size-sm);
    }

    .mobile-dropdown-menu .dropdown-item:hover {
        background-color: var(--gray-100);
        color: var(--primary);
    }

    .mobile-dropdown-menu .dropdown-item svg {
        flex-shrink: 0;
    }

    /* Hero Section */
    .hero {
        padding: 7rem var(--spacing-md) 3rem;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
        margin-top: var(--spacing-xl);
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 400px;
    }

    /* Applications Section */
    .apps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .app-card {
        padding: var(--spacing-lg);
    }

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

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

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

    .about-stats {
        justify-content: center;
    }

    .image-placeholder {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Modals */
    .modal-content {
        padding: var(--spacing-lg);
    }
}

/* Mobile Landscape and Small Tablets: 768px and below */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
    h4 { font-size: var(--font-size-xl); }

    section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

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

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

    .section-subtitle {
        font-size: var(--font-size-base);
    }

    /* Navigation */
    .nav-wrapper {
        padding: var(--spacing-sm) 0;
    }

    .logo {
        font-size: var(--font-size-lg);
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .nav-actions {
        gap: var(--spacing-sm);
    }

    #auth-buttons {
        gap: var(--spacing-xs);
    }

    .nav-actions .btn {
        padding: 0.5rem 0.875rem;
        font-size: var(--font-size-sm);
    }

    .profile-dropdown .profile-trigger {
        padding: var(--spacing-xs);
        gap: 6px;
    }

    .profile-avatar {
        width: 28px;
        height: 28px;
    }

    .profile-name {
        font-size: var(--font-size-xs);
    }

    .dropdown-arrow {
        width: 14px;
        height: 14px;
    }

    /* Hero Section */
    .hero {
        padding: 6rem var(--spacing-md) 2.5rem;
    }

    .hero-title {
        font-size: var(--font-size-xl);
        margin-top: var(--spacing-xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
        line-height: 1.6;
    }

    /* App Cards */
    .app-icon {
        width: 64px;
        height: 64px;
    }

    .app-icon svg {
        width: 32px;
        height: 32px;
    }

    .app-title {
        font-size: var(--font-size-xl);
    }

    .app-description {
        font-size: var(--font-size-sm);
    }

    .app-features {
        font-size: var(--font-size-sm);
    }

    /* Feature Items */
    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    }

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

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

    .footer-section:first-child {
        grid-column: 1;
    }

    .footer-logo {
        justify-content: center;
        font-size: var(--font-size-base);
    }

    .footer-logo img {
        width: 28px;
        height: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
        padding-top: var(--spacing-md);
    }

    .footer-bottom p,
    .footer-badge {
        font-size: var(--font-size-sm);
    }

    /* About Stats */
    .about-stats {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
    }

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

    /* Suite Solution Mobile */
    .suite-solution {
        padding: 60px 0;
    }

    .suite-description {
        font-size: 1rem;
        padding: 0 var(--spacing-md);
        line-height: 1.7;
    }

    .carousel-container {
        padding: 30px 15px;
        margin-top: 35px;
    }

    .carousel-track {
        min-height: 450px;
    }

    .group-box {
        padding: 30px 45px 35px;
        border-radius: 22px;
        overflow: visible;
        perspective: 1200px;
    }

    .group-box-content {
        transform-style: preserve-3d;
        -webkit-transform-style: preserve-3d;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .group-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
        line-height: 1.3;
    }

    .group-cards {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .carousel-slide {
        flex: 1;
        min-width: 160px;
        max-width: 220px;
        padding: 32px 16px;
    }

    .slide-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 18px;
        border-radius: 16px;
    }

    .slide-icon svg {
        width: 42px;
        height: 42px;
    }

    .slide-title {
        font-size: 1rem;
        line-height: 1.35;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .carousel-arrow-left {
        left: 12px;
    }

    .carousel-arrow-right {
        right: 12px;
    }
}

/* Mobile Portrait: 640px and below */
@media (max-width: 640px) {
    /* Base spacing adjustments */
    .container {
        padding: 0 var(--spacing-sm);
    }

    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    /* Navigation */
    .nav-wrapper {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: var(--font-size-base);
    }

    .logo img {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        display: inline;
    }

    .nav-actions {
        gap: var(--spacing-xs);
    }

    #auth-buttons {
        gap: 0.375rem;
    }

    .nav-actions .btn {
        padding: 0.4rem 0.75rem;
        font-size: var(--font-size-xs);
        white-space: nowrap;
    }

    .profile-dropdown .profile-trigger {
        padding: 4px 8px;
        gap: 4px;
    }

    .profile-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.625rem;
    }

    .profile-name {
        display: none; /* Hide name on very small screens */
    }

    .dropdown-arrow {
        width: 12px;
        height: 12px;
    }

    /* Hero Section */
    .hero {
        padding: 5rem var(--spacing-sm) 2rem;
    }

    .hero-title {
        font-size: var(--font-size-lg);
        margin-top: var(--spacing-lg);
        margin-bottom: var(--spacing-sm);
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-md);
        line-height: 1.5;
    }

    .hero-cta {
        gap: var(--spacing-sm);
    }

    .hero-cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-base);
        width: 100%;
        max-width: none;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: var(--spacing-lg);
    }

    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-xs);
    }

    .section-subtitle {
        font-size: var(--font-size-sm);
    }

    /* App Cards */
    .app-card {
        padding: var(--spacing-md);
    }

    .app-icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--spacing-sm);
    }

    .app-icon svg {
        width: 28px;
        height: 28px;
    }

    .app-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-xs);
    }

    .app-description {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-sm);
    }

    .app-features {
        margin-bottom: var(--spacing-md);
    }

    .app-features li {
        font-size: var(--font-size-xs);
        padding: 0.25rem 0 0.25rem 1.25rem;
        line-height: 1.6;
    }

    .app-features li::before {
        font-size: var(--font-size-sm);
    }

    .featured-badge {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }

    /* Features Grid */
    .features-grid {
        gap: var(--spacing-md);
    }

    .feature-item {
        padding: var(--spacing-md);
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--spacing-sm);
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-item h3 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-xs);
    }

    .feature-item p {
        font-size: var(--font-size-xs);
    }

    /* About Section */
    .about-text p {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-sm);
    }

    .about-stats {
        margin-top: var(--spacing-md);
    }

    .stat-item h4 {
        font-size: var(--font-size-sm);
    }

    .stat-item p {
        font-size: var(--font-size-xl);
    }

    .image-placeholder svg {
        width: 100%;
        height: auto;
    }

    /* Suite Solution Small Mobile */
    .suite-solution {
        padding: 50px 0 0 0;
        overflow-x: hidden;
    }

    .suite-description {
        font-size: 0.9rem;
        line-height: 1.65;
        padding: 0 var(--spacing-sm);
    }

    .carousel-container {
        padding: 25px 10px 0;
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .carousel-track {
        min-height: 780px;
        height: auto;
    }

    .carousel-group {
        position: absolute !important;
        height: auto;
        min-height: 740px;
    }

    .carousel-group.active {
        position: absolute !important;
    }

    .group-box {
        padding: 25px 12px 30px;
        border-radius: 18px;
        overflow: visible;
        perspective: 1000px;
        -webkit-perspective: 1000px;
        height: 100%;
        min-height: 700px;
    }

    .group-box-content {
        transform-style: preserve-3d;
        -webkit-transform-style: preserve-3d;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform-origin: center center;
        -webkit-transform-origin: center center;
    }

    .group-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
        padding: 0 10px;
        line-height: 1.3;
    }

    .group-cards {
        flex-direction: column;
        gap: 14px;
        align-items: center;
        width: 100%;
    }

    .carousel-slide {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 35px 20px;
        border-radius: 16px;
    }

    /* Prevent carousel slide hover effects on mobile */
    @media (hover: none) and (pointer: coarse) {
        .carousel-slide {
            transform: none !important;
        }

        .carousel-slide:hover {
            transform: none !important;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        }

        .carousel-slide:hover .slide-icon {
            transform: none !important;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
        }
    }

    .slide-icon {
        width: 75px;
        height: 75px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .slide-icon svg {
        width: 42px;
        height: 42px;
    }

    .slide-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .carousel-arrow-left {
        left: 6px;
    }

    .carousel-arrow-right {
        right: 6px;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-sm);
    }

    .footer-content {
        gap: var(--spacing-md);
    }

    .footer-section h4 {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-sm);
    }

    .footer-links li {
        margin-bottom: 0.25rem;
    }

    .footer-links a {
        font-size: var(--font-size-xs);
    }

    .footer-description {
        font-size: var(--font-size-xs);
    }

    .social-links a {
        width: 36px;
        height: 36px;
    }

    .social-links svg {
        width: 16px;
        height: 16px;
    }

    .footer-bottom {
        padding-top: var(--spacing-sm);
    }

    .footer-bottom p {
        font-size: var(--font-size-xs);
    }

    .footer-badge {
        font-size: var(--font-size-xs);
    }

    .footer-badge svg {
        width: 14px;
        height: 14px;
    }

    /* Modals */
    .modal {
        padding: var(--spacing-sm);
    }

    .modal-content {
        padding: var(--spacing-md);
        max-height: 95vh;
    }

    .modal-content h2 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-xs);
    }

    .modal-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-md);
    }

    .modal-close {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }

    .modal-body {
        font-size: var(--font-size-sm);
    }

    .modal-body h3 {
        font-size: var(--font-size-lg);
        margin-top: var(--spacing-md);
    }

    .modal-body ul {
        margin-left: var(--spacing-md);
    }

    .modal-body li {
        font-size: var(--font-size-xs);
    }

    /* Forms */
    .form-group {
        margin-bottom: var(--spacing-sm);
    }

    .form-group label {
        font-size: var(--font-size-sm);
    }

    .form-group input,
    .form-group textarea {
        font-size: var(--font-size-sm);
        padding: 0.625rem var(--spacing-sm);
    }

    .checkbox-label {
        font-size: var(--font-size-xs);
    }

    .btn-block {
        padding: 0.75rem;
    }

    .divider {
        margin: var(--spacing-md) 0;
    }

    .auth-switch {
        font-size: var(--font-size-sm);
        margin-top: var(--spacing-md);
    }

    .contact-info p {
        font-size: var(--font-size-xs);
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: var(--font-size-sm);
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-base);
    }
}

/* Extra Small Mobile: 375px and below */
@media (max-width: 375px) {
    /* Further reduce spacing for very small screens */
    .container {
        padding: 0 0.75rem;
    }

    section {
        padding: 1rem 0.75rem;
    }

    /* Navigation for extra small screens */
    .logo-text {
        font-size: var(--font-size-sm);
    }

    .nav-actions .btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.625rem;
    }

    .profile-dropdown .profile-trigger {
        padding: 4px 6px;
    }

    .profile-avatar {
        width: 20px;
        height: 20px;
        font-size: 0.5rem;
    }

    .hero {
        padding: 4.5rem 0.75rem 1.5rem;
    }

    .hero-title {
        font-size: var(--font-size-base);
        margin-top: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: var(--font-size-xs);
    }

    .hero-cta .btn {
        padding: 0.625rem 1.25rem;
        font-size: var(--font-size-sm);
    }

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

    .app-card,
    .feature-item {
        padding: var(--spacing-sm);
    }

    .app-features li {
        font-size: 0.6875rem;
        padding: 0.2rem 0 0.2rem 1rem;
        line-height: 1.5;
    }

    .app-features li::before {
        font-size: 0.75rem;
    }

    .app-description {
        font-size: 0.6875rem;
        line-height: 1.5;
    }

    .nav-actions .btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.625rem;
    }

    .logo-text {
        font-size: var(--font-size-sm);
    }
}

/* ===== Utility Classes ===== */
.hidden { display: none !important; }

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

/* ===== MOBILE BROWSER COMPATIBILITY ===== */
/*
 * Cross-browser fixes for mobile Safari, Chrome, Firefox, and Edge
 *
 * These rules ensure consistent behavior across:
 * - iOS Safari (iPhone/iPad)
 * - Android Chrome
 * - Android Firefox
 * - Android Edge
 * - Desktop mobile emulation modes
 */

/* Prevent iOS zoom on input focus */
@media screen and (max-width: 968px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important; /* iOS Safari requires 16px to prevent zoom */
    }
}

/* Fix iOS Safari rendering issues */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific fixes */
    .dropdown-menu,
    .mobile-dropdown-menu {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* Fix for Android Chrome address bar height issue */
@media screen and (max-width: 968px) {
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* Ensure smooth scrolling on all mobile browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
