/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ─── Navbar ─── */
.nav {
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
    background: rgba(253, 251, 247, 0.97);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d44a22;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── Mobile Menu ─── */
.mobile-menu {
    max-height: 0;
}
.mobile-menu.open {
    max-height: 400px;
}
.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    background: #1a1a2e;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 30, 0.55) 0%,
        rgba(15, 15, 30, 0.40) 50%,
        rgba(15, 15, 30, 0.70) 100%
    );
}
.hero-content {
    padding-top: 80px;
}
.hero-title {
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hero-subtitle {
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}
.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}
.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}
.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-scroll-indicator {
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

/* ─── Buttons ─── */
.btn-primary {
    box-shadow: 0 4px 20px rgba(212, 74, 34, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(212, 74, 34, 0.4);
}
.btn-secondary {
    backdrop-filter: blur(4px);
}

/* ─── Badges ─── */
.badge-label {
    letter-spacing: 0.15em;
}

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

/* ─── Floating Stat ─── */
.floating-stat {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── Gallery ─── */
.gallery-item {
    overflow: hidden;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Scroll Mouse ─── */
.scroll-mouse {
    border-color: rgba(255,255,255,0.4);
}
.scroll-dot {
    background: rgba(255,255,255,0.7);
}

/* ─── Contact Form ─── */
.contact-form {
    box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}
.btn-submit {
    position: relative;
    overflow: hidden;
}
.btn-submit::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-submit:hover::before {
    left: 100%;
}
.submit-arrow {
    transition: transform 0.3s ease;
}
.btn-submit:hover .submit-arrow {
    transform: translate(4px, -4px);
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero-img { animation: none; }
    .floating-stat { animation: none; }
    .reveal { opacity: 1; transform: none; }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-title br { display: none; }
    .hero-title { line-height: 1.2; }
}
