
:root {
    --bg: #000000;
    --crimson: #8B0000;
    --crimson-deep: #4A0000;
    --gold: #C9A961;
    --ink: #F5F1E8;
}

body {
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

.font-fa {
    font-family: 'Vazirmatn', sans-serif;
}

.font-en {
    font-family: 'Inter', sans-serif;
}

.font-display-fa {
    font-family: 'Vazirmatn', sans-serif;
}

.font-display-en {
    font-family: 'Cormorant Garamond', serif;
}

html[lang="fa"] body {
    font-family: 'Vazirmatn', sans-serif;
}

html[lang="en"] body {
    font-family: 'Inter', sans-serif;
}

.tracking-wide-sm {
    letter-spacing: .2em;
}

::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(0px);
    transition: all .4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 97, .15);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s ease, transform .9s ease;
}

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

/* Hero animated background: molecule / particle drift */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, #000 85%);
    pointer-events: none;
}

.drift-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold), transparent 70%);
    opacity: .85;
    filter: blur(0.5px);
    animation: drift 14s ease-in-out infinite;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: .35;
    }
    50% {
        transform: translate(var(--dx, 20px), var(--dy, -40px)) scale(1.15);
        opacity: .95;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: .35;
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.molecule-ring {
    animation: rotate-slow 40s linear infinite;
    transform-origin: center;
}

.molecule-ring-rev {
    animation: rotate-slow 55s linear infinite reverse;
    transform-origin: center;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: .35;
    }
    50% {
        opacity: .85;
    }
}

.glow-pulse {
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes liquid-wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.liquid-wave {
    animation: liquid-wave 9s linear infinite;
}

@keyframes float-y {
    0%, 100% {
        transform: translateY(0) rotate(var(--rot, 0deg));
    }
    50% {
        transform: translateY(-18px) rotate(var(--rot, 0deg));
    }
}

.icon-float {
    animation: float-y 6s ease-in-out infinite;
}

@keyframes fly-plane {
    0% {
        transform: translate(-15%, 105%) rotate(-28deg);
    }
    100% {
        transform: translate(115%, -25%) rotate(-28deg);
    }
}

.icon-plane {
    animation: fly-plane 28s linear infinite;
}

@keyframes drive-truck {
    0% {
        transform: translateX(-20%);
    }
    100% {
        transform: translateX(120%);
    }
}

.icon-truck {
    animation: drive-truck 22s linear infinite;
}

@keyframes float-container {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.icon-container {
    animation: float-container 7s ease-in-out infinite;
}

.card-hover {
    transition: all .5s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 97, .55);
    box-shadow: 0 20px 50px -20px rgba(201, 169, 97, .25);
}

.chem-chip {
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 9999px;
    border: 1px solid rgba(201, 169, 97, .35);
    color: var(--ink);
    background: rgba(201, 169, 97, .06);
    cursor: pointer;
    transition: all .3s ease;
}

.chem-chip:hover {
    background: rgba(201, 169, 97, .16);
    border-color: rgba(201, 169, 97, .6);
    transform: translateY(-2px);
}

/* Chemical info modal */
#chem-modal {
    transition: opacity .3s ease;
}

#chem-modal.hidden-modal {
    opacity: 0;
    pointer-events: none;
}

#chem-modal-panel {
    transition: transform .35s cubic-bezier(.16, .8, .3, 1), opacity .35s ease;
}

#chem-modal.hidden-modal #chem-modal-panel {
    transform: translateY(24px) scale(.96);
    opacity: 0;
}

/* Mobile hamburger animation */
#menu-toggle-btn.menu-active .menu-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

#menu-toggle-btn.menu-active .menu-bar:nth-child(2) {
    opacity: 0;
}

#menu-toggle-btn.menu-active .menu-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.cat-open .cat-chevron {
    transform: rotate(180deg);
}

.call-btn {
    position: relative;
    overflow: hidden;
}

.call-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .15), transparent);
    transform: translateX(-100%);
    transition: transform .6s ease;
}

.call-btn:hover::after {
    transform: translateX(100%);
}

[dir="ltr"] .flip-x {
    transform: scaleX(-1);
}

/* Sticker illustration cluster */
.sticker-stage {
    position: relative;
}

.sticker-platform {
    position: absolute;
    left: 50%;
    bottom: 6%;
    width: 88%;
    height: 46%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(201, 169, 97, .10), transparent 70%);
    border-radius: 50%;
    filter: blur(2px);
}

.sticker-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.4rem;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .65);
    animation: float-y 6.5s ease-in-out infinite;
}

.sticker-badge.round {
    border-radius: 9999px;
}

.sticker-gold {
    background: linear-gradient(150deg, #C9A961, #7c6534);
}

.sticker-crimson {
    background: linear-gradient(150deg, #8B0000, #3a0000);
}

.sticker-dark {
    background: linear-gradient(150deg, #1c1c1c, #050505);
    border: 1px solid rgba(201, 169, 97, .3);
}

.sticker-ring-deco {
    animation: rotate-slow 50s linear infinite;
}

/* Animated ring counters */
.ring-progress {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.8s cubic-bezier(.16, .8, .3, 1);
}

.ring-counter.in .ring-progress {
    stroke-dashoffset: var(--offset);
}