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

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

body {
    margin: 0;
    overflow-x: hidden;
}

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

/* ===== Navbar ===== */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    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: rgba(255, 255, 255, 0.85) !important;
}

/* ===== Hero Animation ===== */
.hero-content {
    animation: heroFadeUp 1s ease-out forwards;
}

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

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

/* ===== Product Cards ===== */
.product-card {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Stat Cards ===== */
.stat-card {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Menu ===== */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2a5fa8;
}

/* ===== Selection ===== */
::selection {
    background: rgba(77, 217, 176, 0.3);
    color: #0a1628;
}

/* ===== Focus Styles ===== */
:focus-visible {
    outline: 2px solid #4dd9b0;
    outline-offset: 2px;
}

/* ===== Input Autofill ===== */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f0fdf9 inset !important;
    -webkit-text-fill-color: #0f2240 !important;
}

/* ===== Utility ===== */
@media (max-width: 767px) {
    .font-serif {
        font-size: 2.5rem;
    }
}
