/* =============================================
   ENRIQUE HAIR TECH — Custom Styles
   ============================================= */

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #0f172a;
}

/* ---------- Hero Orbs ---------- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #14b8a6 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0d9488 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -3s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #2dd4bf 0%, transparent 70%);
    top: 40%;
    left: 20%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---------- Hero Entrance ---------- */
#hero .hero-badge {
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

#hero h1 {
    animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

#hero p {
    animation: fadeSlideUp 0.8s ease-out 0.6s both;
}

#hero .flex-col {
    animation: fadeSlideUp 0.8s ease-out 0.8s both;
}

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

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

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

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

/* Default state for reduced motion / no-JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Service Cards ---------- */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card:hover .w-14 {
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
}

/* ---------- Gallery Items ---------- */
.gallery-item {
    position: relative;
    overflow: hidden;
}

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

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

/* ---------- Navbar ---------- */
#navbar.scrolled {
    background: rgba(8, 14, 26, 0.92);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu a {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease, color 0.3s ease;
}

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

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

/* ---------- Button Focus ---------- */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* ---------- Form Inputs ---------- */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ---------- Smooth Image Loading ---------- */
img {
    image-rendering: -webkit-optimize-contrast;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-reveal, .service-reveal, .gallery-reveal, .contact-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .gallery-item {
        border-radius: 12px;
    }
}
