/* ============================================
   C&K Beauty Salon — Custom Styles
   Deep Navy + Warm Gold | Vibrant Modern
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3a6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}

/* --- Navbar --- */
.nav-line {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.nav-active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-active .nav-line:nth-child(2) {
    opacity: 0;
}
.nav-active .nav-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

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

/* --- Hero --- */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge span:first-child {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Hero headline animation */
#hero h1 {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

#hero p {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

#hero .flex {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

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

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

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 100%;
    height: 16px;
    background: #d4a843;
    position: absolute;
    top: -16px;
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0% { top: -16px; }
    100% { top: 48px; }
}

/* --- Geometric Decorative Elements --- */
.geo-line {
    position: absolute;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), transparent);
}

.geo-line-1 {
    top: 20%;
    right: 5%;
    width: 200px;
    height: 2px;
    transform: rotate(45deg);
}

.geo-line-2 {
    top: 60%;
    right: 8%;
    width: 120px;
    height: 2px;
    transform: rotate(30deg);
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.1), transparent);
}

.geo-triangle {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(212, 168, 67, 0.06);
    transform: rotate(15deg);
}

/* About section stripes */
.geo-stripe {
    position: absolute;
    background: linear-gradient(180deg, rgba(212, 168, 67, 0.05), transparent);
}

.geo-stripe-1 {
    top: 10%;
    left: 5%;
    width: 3px;
    height: 200px;
    transform: rotate(15deg);
}

.geo-stripe-2 {
    bottom: 15%;
    right: 8%;
    width: 3px;
    height: 150px;
    transform: rotate(-10deg);
}

/* Gallery diamonds */
.geo-diamond {
    position: absolute;
    border: 1px solid rgba(212, 168, 67, 0.1);
    transform: rotate(45deg);
}

.geo-diamond-1 {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
}

.geo-diamond-2 {
    bottom: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
}

/* Testimonial circles */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 67, 0.08);
}

.geo-circle-1 {
    top: 5%;
    right: -5%;
    width: 300px;
    height: 300px;
}

.geo-circle-2 {
    bottom: 10%;
    left: -8%;
    width: 400px;
    height: 400px;
}

/* Contact squares */
.geo-square {
    position: absolute;
    border: 1px solid rgba(212, 168, 67, 0.06);
}

.geo-square-1 {
    top: 15%;
    left: 3%;
    width: 100px;
    height: 100px;
    transform: rotate(10deg);
}

.geo-square-2 {
    bottom: 20%;
    right: 5%;
    width: 60px;
    height: 60px;
    transform: rotate(-15deg);
}

/* Footer circle */
.geo-circle-3 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(212, 168, 67, 0.05);
}

/* --- Service Cards --- */
.service-card {
    will-change: transform;
}

.service-card:nth-child(1) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.1s; opacity: 0; }
.service-card:nth-child(2) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.2s; opacity: 0; }
.service-card:nth-child(3) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.3s; opacity: 0; }
.service-card:nth-child(4) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.4s; opacity: 0; }
.service-card:nth-child(5) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.5s; opacity: 0; }
.service-card:nth-child(6) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.6s; opacity: 0; }

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

/* --- Testimonial Cards --- */
.testimonial-card {
    will-change: transform;
}

.testimonial-card:nth-child(1) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.1s; opacity: 0; }
.testimonial-card:nth-child(2) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.2s; opacity: 0; }
.testimonial-card:nth-child(3) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.3s; opacity: 0; }

/* --- Intersection Observer Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Select styling --- */
select option {
    background: #0f2140;
    color: #fff;
}

/* --- Mobile responsiveness --- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .geo-line, .geo-triangle {
        display: none;
    }
    
    .geo-diamond, .geo-circle, .geo-square {
        display: none;
    }
    
    .geo-stripe {
        display: none;
    }
    
    /* Hide decorative elements on mobile for cleaner look */
    .absolute.top-20.right-10,
    .absolute.bottom-32.left-10 {
        display: none;
    }
    
    .absolute.bottom-0.right-0 {
        display: none;
    }
}

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

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