/* ===== Custom Styles for LV Nails ===== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Space Grotesk', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* ===== Navbar ===== */
#navbar {
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a843;
    transition: width 0.3s ease;
}

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

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

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

.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ===== Hero ===== */
.hero-title {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-subtitle {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-desc {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-image-wrapper {
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    opacity: 0.6;
}

.circle-1 {
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    bottom: 5%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.rect-1 {
    top: 25%;
    right: 38%;
    width: 80px;
    height: 80px;
    background: rgba(212, 168, 67, 0.15);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.triangle-1 {
    bottom: 20%;
    right: 30%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(212, 168, 67, 0.08);
    animation: float 10s ease-in-out infinite;
}

.dot-grid {
    top: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.3) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.5;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Scroll indicator */
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(212, 168, 67, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ===== Marquee ===== */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Service Cards ===== */
.service-card {
    cursor: pointer;
}

.service-card:nth-child(2),
.service-card:nth-child(5) {
    transform: translateY(24px);
}

.service-card:nth-child(2):hover,
.service-card:nth-child(5):hover {
    transform: translateY(24px);
}

/* ===== Gallery ===== */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

.reveal.visible {
    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; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .service-card:nth-child(2),
    .service-card:nth-child(5) {
        transform: translateY(0);
    }
    
    .service-card:nth-child(2):hover,
    .service-card:nth-child(5):hover {
        transform: translateY(0);
    }
    
    .geo-shape {
        display: none;
    }
    
    .circle-1 {
        display: block;
        width: 200px;
        height: 200px;
    }
}

/* ===== Utility ===== */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #0d1b2a;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    loading: lazy;
}
