/* ============================================
   Bliss Salon — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

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

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: #0d9488;
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    background: #0d9488;
    border-radius: 50%;
    bottom: 20%;
    left: -80px;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    background: #1e293b;
    border-radius: 50%;
    top: 50%;
    right: 5%;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #0d9488;
    top: 60%;
    left: 10%;
    opacity: 0.04;
}

.shape-square {
    width: 120px;
    height: 120px;
    background: #1e293b;
    top: 30%;
    right: 8%;
    transform: rotate(45deg);
    opacity: 0.05;
}

/* ============================================
   Hero Geometric Shapes
   ============================================ */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.geo-h1 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.geo-h2 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: 25%;
    right: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-h3 {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    top: 60%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-h4 {
    width: 160px;
    height: 160px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: 15%;
    right: 5%;
    animation: float 10s ease-in-out infinite;
}

.geo-h5 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.06);
    top: 45%;
    right: 20%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

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

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

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-nav-link {
    position: relative;
}

/* ============================================
   Back to Top
   ============================================ */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:not(.visible) {
    transform: translateY(10px);
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-geo {
        animation: none !important;
    }
    
    .geo-shape {
        animation: none !important;
    }
}

/* ============================================
   Responsive Tweaks
   ============================================ */
@media (max-width: 640px) {
    .geo-shape {
        display: none;
    }
    
    .geo-h1, .geo-h2, .geo-h3, .geo-h4, .geo-h5 {
        display: none;
    }
}
