/* ============================================
   Donimir Salon And Boutique — Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

/* ============================================
   Fixed Background Geometric Shapes
   ============================================ */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27, 94, 32, 0.06) 0%, transparent 70%);
    top: 20%;
    right: -100px;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, transparent 70%);
    bottom: 30%;
    left: -80px;
}

.geo-circle--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(27, 94, 32, 0.05) 0%, transparent 70%);
    top: 60%;
    right: 20%;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle--1 {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(27, 94, 32, 0.05);
    top: 40%;
    left: 5%;
    transform: rotate(15deg);
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

.geo-square--1 {
    width: 60px;
    height: 60px;
    background: rgba(76, 175, 80, 0.06);
    top: 70%;
    right: 8%;
    transform: rotate(45deg);
}

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

.hero-geo--circle-1 {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.hero-geo--circle-2 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: 100px;
    left: -50px;
}

.hero-geo--square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.04);
    top: 20%;
    left: 10%;
    transform: rotate(30deg);
}

.hero-geo--square-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    bottom: 25%;
    right: 15%;
    transform: rotate(45deg);
}

.hero-geo--triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255, 255, 255, 0.05);
    top: 30%;
    right: 8%;
    transform: rotate(-10deg);
}

.hero-geo--triangle-2 {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(255, 255, 255, 0.04);
    bottom: 30%;
    left: 12%;
    transform: rotate(20deg);
}

/* Dot grid pattern */
.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ============================================
   Hero Badge Animation
   ============================================ */
.hero-badge {
    animation: heroBadgeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(-20px);
}

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

/* Hero text animations */
#hero h1 {
    animation: heroTextIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

#hero p {
    animation: heroTextIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

#hero .flex.flex-col {
    animation: heroTextIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement - content is visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

    .reveal-delay-1 { transition-delay: 100ms; }
    .reveal-delay-2 { transition-delay: 200ms; }
    .reveal-delay-3 { transition-delay: 300ms; }

    /* Service cards stagger */
    .service-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.4s ease;
    }

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

    /* Gallery items */
    .gallery-item {
        opacity: 0;
        transform: scale(0.95);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }

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

/* ============================================
   Navbar
   ============================================ */
#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);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: white;
}

#navbar.scrolled .nav-logo-text {
    color: #0d3b11;
}

.nav-link {
    position: relative;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: white;
}

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

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* Mobile menu button animation */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ============================================
   Back to Top Button
   ============================================ */
#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);
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #a5d6a7;
}

/* ============================================
   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;
    }
}

/* ============================================
   Focus Visible
   ============================================ */
:focus-visible {
    outline: 2px solid #1b5e20;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(27, 94, 32, 0.2);
    color: #0d3b11;
}

/* ============================================
   Smooth image loading
   ============================================ */
img {
    image-rendering: auto;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .fixed, .geo-circle, .geo-triangle, .geo-square,
    .hero-geo, .hero-dots, #back-to-top {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
