/* ============================================
   Hair by Mayra Nino — Custom Styles
   Deep Navy + Warm Gold | Vibrant Modern
   ============================================ */

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

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

body {
    background-color: #0a1128;
    color: #ffffff;
    font-family: 'Montserrat', system-ui, sans-serif;
    overflow-x: hidden;
}

/* ---- Geometric Background Decorations ---- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.geo-circle--1 {
    width: 600px;
    height: 600px;
    border: 1px solid rgba(212, 168, 67, 0.06);
    top: -150px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 400px;
    height: 400px;
    border: 1px solid rgba(212, 168, 67, 0.04);
    bottom: 10%;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 104px 60px;
    border-color: transparent transparent rgba(212, 168, 67, 0.05) transparent;
    pointer-events: none;
    z-index: 0;
}

.geo-triangle--1 {
    top: 25%;
    left: 5%;
    animation: float-slow 18s ease-in-out infinite;
    transform: rotate(15deg);
}

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

.geo-square--1 {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(212, 168, 67, 0.08);
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    animation: float-slow 12s ease-in-out infinite reverse;
}

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

/* ---- Gold Button ---- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4a843 0%, #c9982e 50%, #b8860b 100%);
    color: #0a1128;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 12px 28px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212, 168, 67, 0.35);
    background: linear-gradient(135deg, #e0b855 0%, #d4a843 50%, #c9982e 100%);
}

.btn-gold:active {
    transform: translateY(0);
}

/* ---- Navbar ---- */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* ---- Mobile Menu ---- */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
}

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

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

/* Hamburger animation */
.menu-line {
    display: block;
    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;
    transform: translateX(10px);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ---- Service Cards ---- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4a843, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ---- Gallery ---- */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

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

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }
.reveal[data-reveal-delay="6"] { transition-delay: 0.6s; }

/* ---- Select styling ---- */
select option {
    background: #0a1128;
    color: #ffffff;
}

/* ---- Focus styles ---- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(212, 168, 67, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

/* ---- Reduced motion ---- */
@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[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 300px;
        height: 300px;
    }
    .geo-circle--2 {
        width: 200px;
        height: 200px;
    }
    .geo-triangle--1 {
        display: none;
    }
    .geo-square--1 {
        display: none;
    }
}
