/* ========== BASE & RESET ========== */
*, *::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;
}

::selection {
    background: #0d9488;
    color: #fff;
}

/* ========== NAVBAR ========== */
.nav-logo-text,
.nav-logo-sub {
    display: block;
    line-height: 1;
}

.nav-logo-text {
    font-size: 1.05rem;
}

.nav-logo-sub {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    margin-top: 2px;
}

/* Scrolled state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-logo-text {
    color: #0f172a;
}

.navbar-scrolled .nav-logo-sub {
    color: #64748b;
}

.navbar-scrolled .nav-link {
    color: #475569;
}

.navbar-scrolled .nav-link:hover {
    color: #0d9488;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.05); }
}

@keyframes float-delay {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, 20px) scale(1.03); }
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -15px); }
}

@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.hero-eyebrow {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-headline {
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-subhead {
    animation: fadeUp 0.8s ease-out 0.6s both;
}

.hero-ctas {
    animation: fadeUp 0.8s ease-out 0.8s both;
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 10s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 12s ease-in-out infinite;
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* ========== SECTION ANIMATIONS ========== */
.section-eyebrow,
.section-title,
.section-subtitle {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-eyebrow.visible,
.section-title.visible,
.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title.visible,
.section-subtitle.visible {
    transition-delay: 0.1s;
}

.section-subtitle.visible {
    transition-delay: 0.2s;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card.visible:nth-child(1) { transition-delay: 0.05s; }
.product-card.visible:nth-child(2) { transition-delay: 0.1s; }
.product-card.visible:nth-child(3) { transition-delay: 0.15s; }
.product-card.visible:nth-child(4) { transition-delay: 0.2s; }
.product-card.visible:nth-child(5) { transition-delay: 0.25s; }
.product-card.visible:nth-child(6) { transition-delay: 0.3s; }

/* ========== ABOUT IMAGES ========== */
.about-images {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.visible:nth-child(1) { transition-delay: 0.05s; }
.feature-card.visible:nth-child(2) { transition-delay: 0.1s; }
.feature-card.visible:nth-child(3) { transition-delay: 0.15s; }
.feature-card.visible:nth-child(4) { transition-delay: 0.2s; }
.feature-card.visible:nth-child(5) { transition-delay: 0.25s; }
.feature-card.visible:nth-child(6) { transition-delay: 0.3s; }

/* ========== MOBILE MENU ========== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#menu-icon-open.active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-icon-open.active #bar2 {
    opacity: 0;
}

#menu-icon-open.active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

#menu-icon-open.hidden,
#menu-icon-close.hidden {
    display: none;
}

#menu-icon-open:not(.hidden),
#menu-icon-close:not(.hidden) {
    display: flex;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .about-images {
        order: -1;
        opacity: 1;
        transform: none;
    }

    .about-images.visible {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
