/* ============================================
   Suzy Q's Place — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(45, 212, 191, 0.2);
    color: #f0fdf9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #040B16;
}
::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.4);
}

/* ============================================
   Header & Navigation
   ============================================ */
#site-header {
    background: transparent;
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
}

#site-header.scrolled {
    background: rgba(4, 11, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.08);
}

/* Mobile Menu */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

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

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

/* Menu Toggle Animation */
.menu-line {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-eyebrow {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-headline span {
    display: block;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero-headline span:nth-child(1) { animation-delay: 0.3s; }
.hero-headline span:nth-child(2) { animation-delay: 0.45s; }
.hero-headline span:nth-child(3) { animation-delay: 0.6s; }
.hero-headline span:nth-child(4) { animation-delay: 0.75s; }

.hero-subtitle {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both;
}

.hero-cta {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.05s both;
}

.hero-image-card {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

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

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

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

/* These are progressive enhancement — content is visible by default.
   JS adds the animated states for users with JS enabled. */
.reveal-up.animated {
    opacity: 0;
    transform: translateY(30px);
}
.reveal-left.animated {
    opacity: 0;
    transform: translateX(-30px);
}
.reveal-right.animated {
    opacity: 0;
    transform: translateX(30px);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .hero-eyebrow,
    .hero-headline span,
    .hero-subtitle,
    .hero-cta,
    .hero-image-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Menu Items — Subtle Hover Line
   ============================================ */
#menu ul li {
    position: relative;
}

#menu ul li::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.3), transparent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu ul li:hover::after {
    width: 100%;
}

/* ============================================
   Image Hover Effects
   ============================================ */
#gallery img,
#about img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

#gallery img:hover,
#about img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* ============================================
   Link & Button Focus States
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(45, 212, 191, 0.6);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3rem;
    }
    
    .hero-headline span {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    #site-header {
        background: rgba(4, 11, 22, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}
