/* * OMADA COMPATIBLE CSS 
 * Zero external dependencies. System fonts only.
 */
:root {
    --neon-green: #90FF00; /* Matching the button in the image */
    --glow-green: #39FF14;
    --dark-bg: #050a00;
    --box-bg: rgba(0, 20, 0, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: transparent;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    overflow-y: auto;
}

/* Static Image Background */
.static-bg-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-color: #05000A;
    background-image: url('/assets/media/bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .static-bg-container {
        /* Adjust focal point for mobile portrait screens */
        background-position: center 80%; 
    }
}

/* Main Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Reduced from 12vh to raise the logo higher up the page */
    padding-top: 5vh; 
}

/* Logo Styling */
.logo-container {
    width: 100%;
    max-width: 800px; /* Increased from 500px for a much larger logo */
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.main-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    /* Adding a subtle glow to anchor it visually to the cosmic background */
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(138, 43, 226, 0.4));
    animation: logo-float 6s ease-in-out infinite;
}

/* Call to Action Button */
.cta-container {
    /* Pushed up even tighter to the logo */
    margin-top: 1vh;
    margin-bottom: 50px; /* Crucial: provides scroll space so the absolute positioned glow doesn't get clipped by the bottom of the screen */
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.book-now-link {
    position: relative;
    /* inline-flex ensures the container shrink-wraps exactly to the image's dimensions */
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 550px;
    border-radius: 50px; /* High radius forces a tight pill-shape around the button */
    transition: transform 0.3s ease;
    cursor: pointer;
    /* Subtle breathing pulse to indicate it's clickable */
    animation: button-breathe 2.5s infinite alternate ease-in-out;
}

.book-now-link:hover {
    transform: scale(1.05); /* Scales up, overriding the subtle pulse */
    animation-play-state: paused;
}

/* The hollow border track */
.chase-border {
    position: absolute;
    /* Pulling the track in tighter to hug the button closely without getting completely covered */
    inset: -10px -5px; 
    border-radius: 12px; /* Sharpening the corners to match the tighter track */
    padding: 6px; /* Thinner glow beam as requested */
    overflow: hidden;
    /* Skewing the CSS container to match the slant of your parallelogram button */
    transform: skewX(-15deg); 
    
    /* This complex mask carves out the center, leaving ONLY the border visible */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
    
    /* Softens the hard mask edges and blasts an intense neon gas aura that follows the light */
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 1)) drop-shadow(0 0 25px rgba(176, 38, 255, 0.8)) blur(1.5px);
}

/* The actual spinning light */
.chase-border::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 200%; height: 300%;
    transform: translate(-50%, -50%);
    /* Intense white head, trailing off to deep purple and then transparent */
    background: conic-gradient(from 0deg, transparent 50%, rgba(176, 38, 255, 0.4) 80%, rgba(255, 0, 255, 0.9) 95%, #FFFFFF 100%);
    /* Slowed down significantly from 1.5s to 3s */
    animation: rotate-chase 3s linear infinite;
}

.book-now-btn {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

@keyframes button-breathe {
    0% { transform: scale(1); }
    100% { transform: scale(1.025); }
}

@keyframes logo-float {
    0% { 
        transform: translateY(0px); 
        filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(138, 43, 226, 0.4)); 
    }
    50% { 
        transform: translateY(-12px); 
        /* Shadow drops lower as it 'lifts' off the page, and the cosmic glow gets brighter */
        filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 35px rgba(176, 38, 255, 0.7)); 
    }
    100% { 
        transform: translateY(0px); 
        filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(138, 43, 226, 0.4)); 
    }
}

@keyframes rotate-chase {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes dust-rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; transform: translateY(-5vh) scale(1.2); }
    50% { opacity: 0.8; }
    100% { transform: translateY(-100%) scale(0.5); opacity: 0; }
}

/* Main container border matching the white/green inset from the image */
.portal-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    height: auto;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    margin: auto 0; /* Centers vertically if space allows */
}

@media (max-width: 768px) {
    .portal-container {
        max-width: 400px;
        border: 3px solid #ffffff;
        border-radius: 10px;
        box-shadow: 0 0 20px var(--glow-green), inset 0 0 20px var(--glow-green);
        background: radial-gradient(circle at top, rgba(144, 255, 0, 0.2), transparent 60%);
        padding: 30px 20px;
    }
}

/* Logo layout */
.logo-container {
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0; min-width: 300px; width: 100%; /* Prevents the browser from squishing the logo */
}

.logo-image {
    max-width: 380px;
    width: 100%;
    height: auto;
    margin-bottom: 5px;
    /* Double layered drop shadow perfectly hugs the transparent edges of the PNG */
    filter: drop-shadow(0 0 15px rgba(144, 255, 0, 1)) drop-shadow(0 0 35px rgba(57, 255, 20, 0.9));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-btn {
    0% { box-shadow: 0 0 15px rgba(144, 255, 0, 0.5); transform: scale(1.02); }
    50% { box-shadow: 0 0 35px rgba(144, 255, 0, 1), 0 0 10px #ffffff; transform: scale(1.06); }
    100% { box-shadow: 0 0 15px rgba(144, 255, 0, 0.5); transform: scale(1.02); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

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

/* Glowing text effect from the "COMING SOON" text */
.glow-headline {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--glow-green), 0 0 40px var(--glow-green);
    margin-bottom: 30px;
    line-height: 1.1;
}

.sub-text {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e0e0e0;
    flex-shrink: 0; min-width: 300px; width: 100%;
}

/* Terms wrapper for chasing glow effect */
.terms-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    min-height: 120px; /* Anti-squish limit */
    flex-shrink: 0; min-width: 300px; width: 100%; /* Prevents the browser from crushing the box */
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 2px; /* Thickness of the chasing border */
    box-shadow: 0 0 15px rgba(144, 255, 0, 0.2);
}

.terms-wrapper::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 70%, var(--neon-green) 100%);
    animation: rotate-border 3s linear infinite;
    z-index: 0;
}

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

/* Terms and conditions scroll box */
.terms-box {
    position: relative;
    z-index: 2;
    background-color: rgba(5, 10, 0, 0.95);
    border-radius: 6px;
    padding: 15px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #dddddd;
    box-shadow: inset 0 0 10px rgba(0,0,0,1);
}

/* Social Wrapper - Now Transparent */
.social-wrapper {
    position: relative;
    width: 90%;
    max-width: 450px;
    margin-bottom: 30px;
    opacity: 0;
    pointer-events: none;
}

.social-wrapper.hidden {
    display: none;
}

.social-wrapper.revealed {
    opacity: 1;
    pointer-events: auto;
}

/* Staggered Reveal Animation for Buttons */
.social-wrapper.revealed .social-link {
    animation: fadeUpStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.social-wrapper.revealed .social-link:nth-child(1) { animation-delay: 0.1s; }
.social-wrapper.revealed .social-link:nth-child(2) { animation-delay: 0.25s; }
.social-wrapper.revealed .social-link:nth-child(3) { animation-delay: 0.4s; }
.social-wrapper.revealed .social-link:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUpStagger {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.social-box {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Minimalist transparent border */
    border-radius: 50px;
    padding: 15px 20px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0; /* Hidden before fadeUpStagger */
}

/* Unique glowing subtle border effect using pseudo-element to avoid animation conflicts */
.social-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.0), 0 0 10px rgba(57, 255, 20, 0.0);
    transition: box-shadow 0.4s ease;
    pointer-events: none;
    animation: subtle-glow-pulse 4s infinite alternate;
}

/* Stagger the pulsing of the borders so they breathe independently */
.social-link.link-x::before { animation-delay: 0s; }
.social-link.link-fb::before { animation-delay: -1s; }
.social-link.link-ig::before { animation-delay: -2s; }
.social-link.link-tt::before { animation-delay: -3s; }

@keyframes subtle-glow-pulse {
    0% { box-shadow: inset 0 0 2px rgba(57, 255, 20, 0.05), 0 0 5px rgba(57, 255, 20, 0.05); }
    100% { box-shadow: inset 0 0 8px rgba(57, 255, 20, 0.2), 0 0 15px rgba(57, 255, 20, 0.15); }
}

.social-link i {
    font-size: 2rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: rgba(57, 255, 20, 0.08);
    border-color: rgba(57, 255, 20, 0.5);
    color: var(--glow-green);
}

.social-link:hover i {
    animation: icon-glitch 0.2s infinite alternate;
}

@keyframes icon-glitch {
    0% { transform: translate(0, 0) scale(1); text-shadow: 3px 0 0 #ff00ff, -3px 0 0 #00ffff; }
    50% { transform: translate(-3px, 2px) scale(1.1); text-shadow: -3px 0 0 #ff00ff, 3px 0 0 #00ffff; }
    100% { transform: translate(3px, -2px) scale(1); text-shadow: 3px 0 0 #ff00ff, -3px 0 0 #00ffff; }
}

/* Brand Colors */
.icon-x { color: #ffffff; }
.icon-fb { color: #1877F2; }
.icon-ig { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.icon-tt { 
    color: #ffffff; 
    text-shadow: 2px 2px 0 #fe0979, -2px -2px 0 #00f2fe; 
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    width: 100%;
    cursor: pointer;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    background-color: rgba(0,0,0,0.5);
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-container input:checked + .checkmark {
    background-color: var(--neon-green);
}

.checkbox-container input:checked + .checkmark::after {
    content: "✓";
    color: #000;
    font-size: 16px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 0.85rem;
    font-weight: 600;
}

/* The Pill Button from the image */
.connect-btn {
    background-color: var(--neon-green);
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(144, 255, 0, 0.4);
    opacity: 0.5; /* Disabled state initially */
    pointer-events: none;
}

.connect-btn.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(144, 255, 0, 0.6);
    animation: pulse-btn 1.5s infinite;
}

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

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0; min-width: 300px; width: 100%;
}

/* Responsive adjustments for very small phones (e.g. iPhone SE) */
@media (max-height: 680px) {
    .portal-container { padding: 20px 15px; }
    .logo-image { max-width: 220px; }
    .glow-headline { font-size: 1.8rem; margin-bottom: 15px; }
    .terms-wrapper { height: 110px; min-height: 110px; margin-bottom: 15px; }
    .checkbox-container { margin-bottom: 15px; }
    .connect-btn { padding: 12px 25px; font-size: 1.1rem; }
}

/* Custom Scrollbar for terms box and portal container */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: var(--neon-green); 
    border-radius: 4px;
}

/* FIREFOX FIXES */
.cta-wrapper {
    width: 100%;
    position: relative;
    display: block;
}

.main-logo {
    display: block !important;
    margin: 0 auto;
    max-width: 100%;
}

.book-now-btn {
    display: block !important;
    margin: 0 auto;
    max-width: 100%;
}

/* Fix background elements pushing content down */






.bg-video {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    transform: translate(-50%, -50%) !important;
    z-index: -2 !important;
    pointer-events: none !important;
}

.bg-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    z-index: -1 !important;
    pointer-events: none !important;
    opacity: 0.3 !important;
}
