/* ============================================
   Sugar Nail Lounge — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #134e4a;
}

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

.geo-circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    top: -100px;
    right: -80px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float-slow 16s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    top: 35%;
    right: 10%;
    animation: float-medium 12s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-medium 14s ease-in-out infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.15);
    bottom: 25%;
    right: 15%;
    transform: rotate(30deg);
    animation: float-slow 18s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 255, 255, 0.07);
    top: 60%;
    left: 15%;
    transform: rotate(-15deg);
    animation: float-medium 15s ease-in-out infinite;
}

.geo-ring-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    bottom: 5%;
    right: 25%;
    animation: float-slow 22s ease-in-out infinite;
}

/* Floating animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-2deg); }
}

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

#navbar.scrolled {
    background: rgba(4, 47, 46, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — only active
    when JS runs and motion is preferred)
   ============================================ */
html.animate-scroll-reveals .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.animate-scroll-reveals .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
html.animate-scroll-reveals .reveal:nth-child(2) { transition-delay: 0.08s; }
html.animate-scroll-reveals .reveal:nth-child(3) { transition-delay: 0.16s; }
html.animate-scroll-reveals .reveal:nth-child(4) { transition-delay: 0.24s; }
html.animate-scroll-reveals .reveal:nth-child(5) { transition-delay: 0.32s; }
html.animate-scroll-reveals .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ============================================
   Image hover effects
   ============================================ */
img {
    display: block;
    max-width: 100%;
}

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

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 640px) {
    .geo-shape {
        display: none;
    }

    .geo-circle-1 {
        display: block;
        width: 200px;
        height: 200px;
    }

    .geo-circle-2 {
        display: block;
        width: 140px;
        height: 140px;
    }
}

@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;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
