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

body {
    overflow-x: hidden;
}

::selection {
    background: #E07A5F;
    color: #fff;
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }

/* ── Hero Animations ── */
.hero-eyebrow {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-headline {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-sub {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-ctas {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

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

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ── Navbar ── */
.nav-link {
    position: relative;
}

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

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

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#navbar.scrolled .nav-link {
    color: #fff;
}

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

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

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

#menu-icon.active .menu-line:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

#menu-icon.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-icon.active .menu-line:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* ── Menu Items ── */
.group:hover h4 {
    position: relative;
}

.group:hover h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #E07A5F;
    margin-top: 2px;
    transition: width 0.3s ease;
}

.group:hover h4::after {
    width: 60px;
}

/* ── Form ── */
input:focus,
select:focus,
textarea:focus {
    border-color: #E07A5F !important;
    box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.15) !important;
}

/* ── Parallax-like subtle movement ── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        will-change: opacity, transform;
    }
}

/* ── Image hover effects ── */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

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

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.75rem;
    }
}
