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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Navbar ===== */
.nav {
    background: transparent;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav.scrolled .nav-logo-text {
    color: #1f1f1f;
}

.nav.scrolled .nav-link {
    color: #5c5c5c;
}

.nav.scrolled .nav-link:hover {
    color: #e86a50;
}

.nav.scrolled .menu-line {
    background: #1f1f1f;
}

.nav-link {
    color: rgba(31, 31, 31, 0.7);
}

.nav-link:hover {
    color: #e86a50;
}

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

.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 1px;
    background: #e86a50;
    transition: transform 0.3s ease;
}

.mobile-menu-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== Hero ===== */
.hero {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 20, 0.55) 0%,
        rgba(20, 20, 20, 0.45) 40%,
        rgba(20, 20, 20, 0.65) 100%
    );
}

.hero-img {
    will-change: transform;
}

.hero-scroll-line {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes scrollDown {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.hero-scroll-dot {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* ===== Product Cards ===== */
.product-card {
    transition: background-color 0.4s ease;
}

.product-card:hover {
    background-color: #fafafa;
}

.product-card-img {
    will-change: transform;
}

/* ===== Section Reveals ===== */
.section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===== Contact Form ===== */
#contact-form input,
#contact-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #e86a50;
    box-shadow: 0 0 0 1px #e86a50;
}

/* ===== Utility ===== */
::selection {
    background: rgba(232, 106, 80, 0.15);
    color: #1f1f1f;
}

/* ===== 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-scroll-dot {
        animation: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2rem;
    }
}
