/* ============================================
   Pizazz Hair — Custom Styles
   ============================================ */

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
    background: #c81f4f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a01740;
}

/* --- Navigation --- */
.nav {
    background: rgba(255, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(130, 20, 54, 0.08);
}

.nav.scrolled {
    background: rgba(255, 248, 245, 0.95);
    box-shadow: 0 4px 30px rgba(130, 20, 54, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

.mobile-link {
    display: block;
}

/* --- Buttons --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    position: relative;
    overflow: hidden;
}

/* --- Hero Pattern --- */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(249, 168, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 106, 143, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(251, 191, 207, 0.15) 0%, transparent 40%);
}

/* --- Floating Cards --- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    animation-delay: 0s;
}

.floating-card.card-2 {
    animation-delay: -2s;
}

.floating-card.card-3 {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #c81f4f, #f9a8d4);
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(59, 7, 18, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* --- Testimonial Cards --- */
.testimonial-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* --- Contact Cards --- */
.contact-card {
    position: relative;
}

/* --- Background Decorations --- */
.bg-decor {
    z-index: 0;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
}

.deco-circle--1 {
    top: 15%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(249, 168, 212, 0.08);
}

.deco-circle--2 {
    bottom: 10%;
    left: -8%;
    width: 300px;
    height: 300px;
    background: rgba(200, 31, 79, 0.05);
}

.deco-triangle {
    position: absolute;
    width: 0;
    height: 0;
}

.deco-triangle--1 {
    top: 30%;
    left: 5%;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(244, 106, 143, 0.06);
    transform: rotate(15deg);
}

.deco-rect {
    position: absolute;
    border-radius: 12px;
}

.deco-rect--1 {
    top: 60%;
    right: 8%;
    width: 60px;
    height: 60px;
    background: rgba(200, 31, 79, 0.05);
    transform: rotate(30deg);
}

.deco-dots {
    position: absolute;
    top: 20%;
    left: 15%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(200, 31, 79, 0.1) 1px, transparent 1px);
    background-size: 12px 12px;
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Geometric Accent Shapes --- */
.geo-accent {
    position: absolute;
    pointer-events: none;
}

.geo-accent--circle {
    border-radius: 50%;
}

.geo-accent--square {
    border-radius: 12px;
}

.geo-accent--triangle {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* --- Section Divider --- */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, #c81f4f, #f9a8d4, #c81f4f);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Selection Color --- */
::selection {
    background: #f9a8d4;
    color: #3b0712;
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid #c81f4f;
    outline-offset: 2px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .floating-card.card-1 {
        display: block;
        position: relative;
        margin-bottom: 1rem;
        animation: none;
    }
    
    .floating-card.card-2,
    .floating-card.card-3 {
        display: none;
    }
}

/* --- Print Styles --- */
@media print {
    .bg-decor,
    .floating-card,
    .nav {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
