/* General Variables & Setup */
:root {
    --bg-dark: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-red: #ff1a1a;
    --accent-red-hover: #cc0000;
    --border-dark: #27272a;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* Header & Glassmorphism */
.glass-header {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    z-index: 1030;
    max-width: 900px;
    margin: 30px auto 40px auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

@media (max-width: 991.98px) {
    .glass-header {
        margin: 20px 15px 60px 15px;
    }
}

.navbar-brand {
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    }
}

.nav-link-custom {
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link-custom:hover {
    color: #fff !important;
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Hero Section Base */
.hero-section {
    min-height: 100vh;
    position: relative;
    padding-top: 160px;
    padding-bottom: 80px;
    overflow: hidden;
}

/* Background Glow Effect */
.bg-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 26, 26, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    transform: translate(20%, -10%);
}

.hero-content {
    padding-right: 2rem;
}

/* Availability Badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Typography */
.text-custom-gray {
    color: #B3B3B3 !important;
}

.hero-content h1 {
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content .lead {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Benefits List */
.benefits-list li {
    font-size: 1rem;
    color: var(--text-muted);
}
.benefits-list .icon {
    font-size: 1.25rem;
}

/* Buttons */
.btn-primary-custom {
    position: relative;
    background-color: transparent;
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, rgba(255, 255, 255, 0.9), transparent 25%);
    animation: rotate-beam 3s linear infinite;
    z-index: -2;
}

.btn-primary-custom::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--accent-red);
    border-radius: 50px;
    z-index: -1;
    transition: background 0.3s ease;
}

.btn-primary-custom:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 26, 26, 0.3);
}

.btn-primary-custom:hover::after {
    background: var(--accent-red-hover);
}

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

.btn-outline-custom {
    background-color: transparent;
    color: #fff;
    border: 1px solid var(--border-dark);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
}

.btn-header-cta {
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-header-cta:hover {
    background-color: var(--accent-red-hover);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 26, 26, 0.3);
}

/* Social Proof Avatars */
.avatars {
    position: relative;
}

.avatars img, .avatar-count {
    width: 40px;
    height: 40px;
    border: 2px solid var(--bg-dark);
    object-fit: cover;
}

.avatars img:not(:first-child) {
    margin-left: -12px;
}

.avatar-count {
    margin-left: -12px;
    background-color: #fff;
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

/* 3D Gallery Perspective */
.hero-gallery-wrapper {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.gallery-perspective {
    width: 100%;
}

.gallery-container {
    height: 1500px; /* Long enough to allow scrolling */
}

.gallery-col {
    overflow: hidden;
    height: 100%;
    position: relative;
}

.gallery-track {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

/* Images */
.gallery-track img {
    border-radius: 16px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-track img:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-100% / var(--total-sets, 2)));
    }
}

@keyframes scroll-down {
    0% {
        transform: translateY(calc(-100% / var(--total-sets, 2)));
    }
    100% {
        transform: translateY(0);
    }
}

.gallery-col-up .gallery-track {
    animation: scroll-up 20s linear infinite;
}

.gallery-col-down .gallery-track {
    animation: scroll-down 20s linear infinite;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 160px;
        padding-bottom: 60px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 3rem;
    }

    .benefits-list li {
        justify-content: center;
    }

    .cta-group {
        justify-content: center;
    }

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

    .hero-gallery-wrapper {
        height: 500px;
    }
    
    .gallery-perspective {
        transform: rotateY(-10deg) rotateX(10deg);
    }
}

/* Responsive Buttons */
@media (max-width: 991.98px) {
    .btn.btn-primary-custom, .btn.btn-outline-custom {
        padding: 12px 24px !important;
        font-size: 1.15rem !important;
    }
}

@media (max-width: 767.98px) {
    .btn.btn-primary-custom, .btn.btn-outline-custom {
        padding: 10px 20px !important;
        font-size: 1.05rem !important;
    }
}

/* Mobile Menu Glassmorphism */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateX(100%);
}

.mobile-menu-overlay.show {
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 767.98px) {
    .mobile-menu-overlay {
        width: 80%;
    }
}

.close-menu-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    padding: 0;
    transition: transform 0.3s ease;
}

.close-menu-btn:hover {
    transform: rotate(90deg);
}

.mobile-nav-link {
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent-red) !important;
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(255, 26, 26, 0.4);
}

/* Backdrop Overlay for Menus/Popups */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
}

.menu-backdrop.show {
    opacity: 1;
    visibility: visible;
}
