/* ===== Custom Styles for Cloud 9 Vape Lounge ===== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Geometric Background Shapes ===== */
.fixed.inset-0.pointer-events-none {
    z-index: 0;
}

.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 216, 138, 0.06) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 216, 138, 0.04) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: rgba(14, 216, 138, 0.03);
    border: 1px solid rgba(14, 216, 138, 0.08);
    top: 45%;
    right: 5%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(14, 216, 138, 0.03);
    top: 60%;
    left: 8%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.geo-ring-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(14, 216, 138, 0.05);
    top: 30%;
    left: 15%;
    animation: float-slow 25s ease-in-out infinite;
}

.geo-dots {
    background-image: radial-gradient(rgba(14, 216, 138, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    opacity: 0.5;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.geo-square-1 {
    animation-name: float-rotate;
}

@keyframes float-rotate {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    33% { transform: rotate(47deg) translateY(-15px); }
    66% { transform: rotate(43deg) translateY(10px); }
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(4, 11, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(14, 216, 138, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0ED88A;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    display: block;
}

/* ===== Product Cards ===== */
.product-card {
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(14, 216, 138, 0.1), transparent, rgba(14, 216, 138, 0.05));
    -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: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover::before {
    opacity: 1;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default visible state for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0ED88A;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== Selection ===== */
::selection {
    background: rgba(14, 216, 138, 0.3);
    color: #F0FFF8;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040B18;
}
::-webkit-scrollbar-thumb {
    background: #1E3456;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0ED88A;
}
