/* Custom Styles Extracted from index.html for Reusability */

html,
body {
    font-family: 'Inter', sans-serif;
    background-color: #030712;
    /* Ensure root is dark to kill white bounce */
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    /* Prevent white bounce on mobile/mac */
}

/* Ensure React root container is also seamless */
#root {
    background-color: #030712;
    min-height: 100vh;
}

/* Aggressive Header Cleanup & Mobile Visibility Fix */
header,
nav {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    z-index: 49;
    /* High Z-Index, but below Burger (50) & Modal */
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
}

/* Force header default to be transparent or dark, never white */
/* DEFAULT STATE: Transparent (clean look) */
header:not(.sticky):not(.fixed),
nav:not(.sticky):not(.fixed),
.main-header-fixed:not(.sticky):not(.fixed) {
    background-color: transparent !important;
}

/* STICKY/SCROLLED STATE: Dark Glass Background (Visible) */
header.sticky,
nav.sticky,
.main-header-fixed.sticky,
.scrolled-header {
    background-color: rgba(3, 7, 18, 0.95) !important;
    /* Dark Glass */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: none !important;
}

/* MOBILE SAFEGUARD (Safe for Tablet now) */
@media (max-width: 768px) {

    header,
    nav,
    .main-header-fixed {
        /* Force a background here to be always visible on mobile */
        background-color: rgba(3, 7, 18, 0.9) !important;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        top: 0 !important;
        left: 0 !important;
    }
}

/* Helper for the JS-injected class */
.main-header-fixed {
    transition: background-color 0.3s ease, padding 0.3s ease, border 0.3s ease;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    z-index: 49;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
}

.gradient-text {
    background: linear-gradient(to right, #c084fc, #6366f1, #fbbf24);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 4s ease-in-out infinite alternate;
    /* iOS fix for gradients sometimes disappearing */
    display: inline-block;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.glass-card {
    background: rgba(17, 24, 39, 0.4);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* PREPARE FOR JS SPOTLIGHT */
    position: relative;
    overflow: hidden;
}

/* SPOTLIGHT GLOW */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.glass-card:hover::before {
    opacity: 1;
}

/* SCROLL REVEAL UTILS */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 4s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* iOS Input Zoom Prevention */
@media screen and (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents zoom on focus */
    }
}

/* Dropdown Options Styling */
select option {
    background-color: #111827;
    /* Matches modal-content */
    color: white;
}

#error-display {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #991b1b;
    color: white;
    padding: 1rem;
    z-index: 9999;
    font-family: monospace;
    white-space: pre-wrap;
}

/* Premium Burger Animation Styles */
.custom-burger-button {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 50;
    transition: transform 0.3s ease;
}

.custom-burger-line {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background-color: white;
    transition: all 0.2s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    /* Bouncy effect */
    transform-origin: center;
}

/* Active State (X shape) */
.custom-burger-active .custom-burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #fbbf24;
    /* Amber-400 for accent */
}

.custom-burger-active .custom-burger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.custom-burger-active .custom-burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #fbbf24;
}

/* Hover effect */
.custom-burger-button:hover .custom-burger-line {
    background-color: #fbbf24;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    /* Safari support */
    backdrop-filter: blur(8px);
    z-index: 2147483647;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    /* Slightly reduced to ensure top/bottom clearance */
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    /* Smooth Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #111827;
}

/* Webkit Scrollbar Styling */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #111827;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 10px;
}

/* Mobile optimizations for Modal */
@media (max-width: 640px) {
    .modal-content {
        padding: 1.25rem;
        /* Reduced padding for more space */
        max-height: 90vh;
    }

    .text-2xl {
        font-size: 1.25rem;
    }
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fbbf24;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    color: white;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    font-size: 0.875rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    color: white;
    font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    /* ring property removed to avoid validation warning, using box-shadow instead if needed */
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to right, #6366f1, #c084fc);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Custom Mobile Menu Overlay Styles (Dropdown Version) */
#custom-mobile-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 250px;
    height: auto;
    background-color: rgba(17, 24, 39, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 2147483648;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.05s ease, transform 0.05s ease;
    transform-origin: top right;
}

#custom-mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Navigation Links */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #e5e7eb;
    /* Gray-200 */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.mobile-menu-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
    border: none;
}

/* CTA Button in Dropdown */
.mobile-dropdown-cta {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to right, #a855f7, #6366f1);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s;
}

.mobile-dropdown-cta:hover {
    transition: opacity 0.9;
}

/* Hide Original Nav on Mobile ONLY (Show on Tablet) */
@media (max-width: 768px) {
    .original-nav-container {
        display: none !important;
    }
}

/* --- MANUAL TAILWIND UTILITY INJECTION (Fix for missing build step) --- */

/* Dimensions & Positioning (Manual Patch) */
.h-8 {
    height: 2rem !important;
}

.h-10 {
    height: 2.5rem !important;
}

.h-12 {
    height: 3rem !important;
}

.h-6 {
    height: 1.5rem !important;
}

.w-6 {
    width: 1.5rem !important;
}

.w-8 {
    width: 2rem !important;
}

.w-12 {
    width: 3rem !important;
}

.w-auto {
    width: auto !important;
}

.w-full {
    width: 100% !important;
}

.top-0 {
    top: 0 !important;
}

.left-0 {
    left: 0 !important;
}

.right-0 {
    right: 0 !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.fixed {
    position: fixed !important;
}

.absolute {
    position: absolute !important;
}

.relative {
    position: relative !important;
}

.z-40 {
    z-index: 40 !important;
}

.z-50 {
    z-index: 50 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.flex-1 {
    flex: 1 1 0% !important;
}

/* Spacing */
.pt-20 {
    padding-top: 5rem !important;
}

.pt-32 {
    padding-top: 8rem !important;
}

/* Critical Fix for Hero Spacing */
.pt-40 {
    padding-top: 10rem !important;
}

.pb-10 {
    padding-bottom: 2.5rem !important;
}

.mt-20 {
    margin-top: 5rem !important;
}

.mb-16 {
    margin-bottom: 4rem !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.py-24 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Fixed Header Reinforcement */
.main-header-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 50 !important;
    /* Ensure it stays on top */
}

/* Backgrounds & Colors */
.bg-black\/40 {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Backdrop Blur */
.backdrop-blur-lg {
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
}

.backdrop-blur-sm {
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
}

/* Z-Index */
.z-49 {
    z-index: 49 !important;
}

.z-50 {
    z-index: 50 !important;
}

/* Flex/Grid Helper (Ensure these exist) */
.gap-12 {
    gap: 3rem !important;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.flex {
    display: flex !important;
}

.justify-between {
    justify-content: space-between !important;
}

.items-center {
    align-items: center !important;
}

/* Dimensions */
.h-10 {
    height: 2.5rem !important;
}

.w-auto {
    width: auto !important;
}

.w-full {
    width: 100% !important;
}

/* Base Display Utilities */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

/* Flex Utilities */
.flex {
    display: flex !important;
}

.items-center {
    align-items: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-center {
    justify-content: center !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.gap-10 {
    gap: 2.5rem !important;
}

/* Typography */
.text-xs {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

.text-white {
    color: #ffffff !important;
}

.text-gray-300 {
    color: #d1d5db !important;
}

.text-yellow-500 {
    color: #eab308 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.tracking-wide {
    letter-spacing: 0.025em !important;
}

.tracking-tight {
    letter-spacing: -0.025em !important;
}

/* Custom Tracking for 'TRAV' style spaced links */
.tracking-\[0\.2em\] {
    letter-spacing: 0.2em !important;
}

/* Borders & Radius */
.rounded-full {
    border-radius: 9999px !important;
}

.border {
    border-width: 1px !important;
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Backgrounds */
.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-\[\#a855f7\] {
    background-color: #a855f7 !important;
}

.hover\:bg-\[\#9333ea\]:hover {
    background-color: #9333ea !important;
}

/* Custom Glow Shadow (Replacement for JIT) */
.shadow-glow-purple {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5) !important;
}

.shadow-glow-purple:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8) !important;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important;
    transition-duration: 300ms !important;
}

.transform {
    transform: translateZ(0) !important;
}

.hover\:scale-105:hover {
    transform: scale(1.05) translateZ(0) !important;
}

/* Responsive Media Queries (ORDER MATTERS) */
@media (min-width: 640px) {
    .sm\:block {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .md\:px-12 {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }

    .md\:flex {
        display: flex !important;
    }

    .md\:hidden {
        display: none !important;
    }

    .md\:block {
        display: block !important;
    }
}

/* --- PREMIUM BUTTON STYLES --- */
.btn-premium {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%) !important;
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3), 0 4px 6px -2px rgba(79, 70, 229, 0.1) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-premium:hover {
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4), 0 10px 10px -5px rgba(79, 70, 229, 0.2) !important;
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%) !important;
}

.btn-secondary-premium {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: all 0.3s ease !important;
}

.btn-secondary-premium:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}