/* ===================================
   HOT HEADZ STYLEZ — Custom Styles
   =================================== */

/* Base reset & smooth scrolling */
*, *::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 color */
::selection {
    background-color: #a51d35;
    color: white;
}

/* ===================================
   NAVBAR
   =================================== */
#navbar {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(165, 29, 53, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(92, 20, 32, 0.1);
}

/* ===================================
   MOBILE MENU
   =================================== */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#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) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   FLOATING STAT CARDS
   =================================== */
.floating-card-1 {
    animation: float1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 3.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-10px) translateX(5px); }
}

/* ===================================
   SERVICE CARDS
   =================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a51d35, #ff5c48);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===================================
   GALLERY
   =================================== */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(165, 29, 53, 0.3), rgba(255, 92, 72, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* ===================================
   TESTIMONIAL CARDS
   =================================== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(165, 29, 53, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* ===================================
   SCROLL REVEAL ANIMATIONS
   (progressive enhancement — content
   is visible by default, JS adds animation)
   =================================== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
    .reveal.delay-4 { transition-delay: 0.4s; }
    .reveal.delay-5 { transition-delay: 0.5s; }
    .reveal.delay-6 { transition-delay: 0.6s; }
}

/* ===================================
   BUTTON HOVER EFFECTS
   =================================== */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
    .floating-card-1 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-bottom: 1rem;
        display: inline-block;
    }
    .floating-card-2 {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-bottom: 1rem;
        display: inline-block;
    }
    .floating-card-3 {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-bottom: 1rem;
        display: inline-block;
    }
}

/* ===================================
   FOCUS STYLES (accessibility)
   =================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a51d35;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===================================
   LOADING / TRANSIENT STATES
   =================================== */
.form-hidden {
    display: none;
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF8F5;
}

::-webkit-scrollbar-thumb {
    background: #fce4e8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #fce4e8;
}
