/* ============================================
   SKY Salon — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::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;
}

/* ============================================
   Geometric Shapes — Hero Section
   ============================================ */

.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.circle-1 {
    width: 420px;
    height: 420px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: -100px;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(232, 115, 90, 0.3);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 80px;
    height: 80px;
    background: rgba(212, 168, 67, 0.4);
    border-radius: 50%;
    top: 30%;
    left: 8%;
    animation: float 5s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 255, 255, 0.08);
    top: 20%;
    right: 10%;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(212, 168, 67, 0.15);
    bottom: 25%;
    right: 25%;
    transform: rotate(-20deg);
    animation: spin-slow 15s linear infinite reverse;
}

.square-1 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    top: 60%;
    left: 15%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.ring-1 {
    width: 160px;
    height: 160px;
    border: 4px solid rgba(232, 115, 90, 0.25);
    border-radius: 50%;
    bottom: 10%;
    right: 8%;
    animation: float 9s ease-in-out infinite reverse;
}

.dot-pattern {
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
}

/* ============================================
   Animations
   ============================================ */

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

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

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

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

/* ============================================
   Navigation
   ============================================ */

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

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

#navbar.scrolled .font-display {
    color: #1b5e20 !important;
}

#navbar.scrolled a:not(.bg-forest-600):not(.bg-accent-coral) {
    color: #1b5e20 !important;
}

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    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(5px, -5px);
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   Gallery
   ============================================ */

.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
}

.gallery-item.revealed {
    opacity: 1;
    transform: scale(1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 94, 32, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

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

/* ============================================
   Scroll Reveal (below the fold only)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .gallery-item {
        will-change: opacity, transform;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card,
    .gallery-item {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .triangle-1,
    .square-1,
    .ring-1 {
        display: none;
    }
}

@media (max-width: 640px) {
    .geo-shape {
        display: none;
    }
    
    .geo-shape.circle-1,
    .geo-shape.circle-2,
    .geo-shape.circle-3 {
        display: block;
    }
    
    .circle-1 {
        width: 180px;
        height: 180px;
        top: -40px;
        right: -40px;
    }
    
    .circle-2 {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   Form Focus States
   ============================================ */

input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   Selection Color
   ============================================ */

::selection {
    background: rgba(46, 125, 50, 0.2);
    color: #1b5e20;
}
