/* Custom styles for Esquire Hairdesign Studio */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Hero Animations */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s ease-out 0.3s forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s ease-out 0.1s forwards;
}

.hero-desc {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s ease-out 0.5s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s ease-out 0.7s forwards;
}

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

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

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

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

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

/* Scroll Line */
.scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        top: -16px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 48px;
        opacity: 0;
    }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Section Labels */
.section-label {
    position: relative;
    display: inline-block;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
}

/* Section Title */
.section-title {
    position: relative;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(253, 251, 244, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-scrolled #navbar {
    background: transparent !important;
}

/* Mobile Menu Active State */
.mobile-menu-open #menuIcon #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open #menuIcon #bar2 {
    opacity: 0;
}

.mobile-menu-open #menuIcon #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu-open #mobileMenu {
    transform: translateX(0);
}

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

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

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

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

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

/* Input Focus */
input:focus,
textarea:focus {
    border-bottom-color: #064e3b !important;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Selection */
::selection {
    background: rgba(6, 78, 59, 0.15);
    color: #064e3b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}
