/* ===== Custom Styles for Haute Spot Tanning Salon ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    background-color: #040608;
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #D4A853, #E8C46A);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: #E8C46A !important;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(4, 6, 8, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
}

/* Hamburger animation */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero-gradient {
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(4, 120, 87, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 60%, rgba(212, 168, 83, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 40%, rgba(6, 79, 70, 0.25) 0%, transparent 60%),
        linear-gradient(180deg, #022C22 0%, #064E3B 30%, #0F2B1F 60%, #080C11 100%);
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(4, 120, 87, 0.08) 0%, transparent 50%);
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-badge span:first-child {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(240, 212, 138, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 8px 2px rgba(240, 212, 138, 0.2); }
}

/* Hero text animation */
#hero h1 {
    animation: fadeInUp 0.8s ease 0.2s both;
}

#hero p {
    animation: fadeInUp 0.8s ease 0.4s both;
}

#hero > div > div:last-child {
    animation: fadeInUp 0.8s ease 0.6s both;
}

#hero > div > div:last-child > div:last-child {
    animation: fadeInUp 0.8s ease 0.8s both;
}

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

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

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(212, 168, 83, 0.08);
}

/* ===== Experience Section ===== */
.experience-bg {
    background: 
        radial-gradient(ellipse 70% 60% at 30% 50%, rgba(4, 120, 87, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 70% 50%, rgba(212, 168, 83, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, #022C22 0%, #064E3B 50%, #040608 100%);
}

/* ===== 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 {
    transform: translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Gold shimmer effect on buttons ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #040608;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #047857, #D4A853);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #059669, #E8C46A);
}

/* ===== Selection color ===== */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #FDF8F0;
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #D4A853;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .hero-gradient {
        background: 
            radial-gradient(ellipse 100% 80% at 50% 30%, rgba(4, 120, 87, 0.4) 0%, transparent 70%),
            radial-gradient(ellipse 80% 60% at 80% 70%, rgba(212, 168, 83, 0.12) 0%, transparent 60%),
            linear-gradient(180deg, #022C22 0%, #064E3B 40%, #080C11 100%);
    }
}

/* ===== Image loading placeholder ===== */
img {
    background: linear-gradient(135deg, #0D1117 0%, #1a2332 100%);
}

/* ===== Gold border gradient utility ===== */
.gold-border-gradient {
    position: relative;
    background: #0D1117;
}

.gold-border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.3), rgba(4, 120, 87, 0.3), rgba(212, 168, 83, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
