/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #121219;
}
::-webkit-scrollbar-thumb {
    background: #3a3a45;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8734a;
}

/* Navigation */
.nav-fixed {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
#mobileMenu.open {
    max-height: 400px;
}

#mobileMenu.closed {
    max-height: 0;
}

#menuBtn.active #menuIcon span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active #menuIcon span:nth-child(2) {
    opacity: 0;
}
#menuBtn.active #menuIcon span:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8734a, #ff7d4a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .gallery-item img {
        transition: none;
    }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #e8734a;
    outline-offset: 2px;
}

/* Nav background on scroll */
.nav-scrolled {
    background-color: rgba(10, 10, 16, 0.95) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hero text animation - only for below fold, hero stays visible */
.hero-content {
    opacity: 1;
    transform: none;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c7c87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}
