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

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

body {
    background-color: #0e0f11;
    color: #e2e3e5;
    font-family: 'Inter', sans-serif;
}

::selection {
    background-color: rgba(255, 107, 84, 0.3);
    color: #f6f6f7;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0% {
        top: -16px;
        opacity: 1;
    }
    100% {
        top: 48px;
        opacity: 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 84, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 84, 0.2);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scroll-down {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    backdrop-filter: none;
}

#navbar.scrolled {
    background: rgba(14, 15, 17, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 84, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

#mobileMenuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== HERO ===== */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #0e0f11, transparent);
    pointer-events: none;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 84, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 57, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #ff7e6b, #d4a039);
    transition: width 0.3s ease;
}

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

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* ===== INPUT FOCUS ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ===== BUTTON HOVER GLOW ===== */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-orbitron.text-4xl {
        font-size: 2rem;
    }
    
    .font-orbitron.text-5xl {
        font-size: 1.75rem;
    }
}

/* ===== 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;
    }
    
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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