/* ========================================
   VALKYRIE.GG - Main Stylesheet
   Premium Dark Gaming Landing Page
   ======================================== */

/* ========================================
   01. FONT FACES
   ======================================== */

@font-face {
    font-family: 'RuneScape-Bold';
    src: url('../fonts/ttf/runescape_bold_12.ttf') format('truetype'),
         url('../fonts/otf/runescape_bold_12.otf');
    font-display: swap;
}

@font-face {
    font-family: 'RuneScape-Plain';
    src: url('../fonts/ttf/RuneScape-Plain-12.ttf') format('truetype'),
         url('../fonts/otf/RuneScape-Plain-12.otf');
    font-display: swap;
}

@font-face {
    font-family: 'RuneScape-Quill-Caps';
    src: url('../fonts/ttf/RuneScape-Quill-Caps-Large.ttf') format('truetype'),
         url('../fonts/otf/RuneScape-Quill-Caps-Large.otf');
    font-display: swap;
}

@font-face {
    font-family: 'RuneScape-Surok';
    src: url('../fonts/ttf/RuneScape-Surok.ttf') format('truetype'),
         url('../fonts/otf/RuneScape-Surok.otf');
    font-display: swap;
}

@font-face {
    font-family: 'RuneScape';
    src: url('../fonts/ttf/runescape_bold_12.ttf') format('truetype'),
         url('../fonts/otf/runescape_bold_12.otf');
    font-display: swap;
}

/* ========================================
   02. CSS CUSTOM PROPERTIES
   ======================================== */

:root {
    /* Core Colors */
    --color-bg-primary:      #000000;
    --color-bg-secondary:    #0a0a0a;
    --color-bg-tertiary:     #111111;

    /* Glass Colors */
    --color-glass-bg:        rgba(255, 255, 255, 0.03);
    --color-glass-border:    rgba(255, 255, 255, 0.08);
    --color-glass-hover-bg:  rgba(255, 255, 255, 0.06);
    --color-glass-hover-border: rgba(255, 255, 255, 0.15);

    /* Text Colors */
    --color-text-primary:    #ffffff;
    --color-text-secondary:  rgba(255, 255, 255, 0.7);
    --color-text-muted:      rgba(255, 255, 255, 0.4);

    /* Accent / Brand Red */
    --color-accent:          #d62d21;
    --color-accent-light:    #ff3b2f;
    --color-accent-dark:     #a01d15;
    --color-accent-glow:     rgba(214, 45, 33, 0.4);
    --color-accent-subtle:   rgba(214, 45, 33, 0.1);

    /* Selection */
    --color-selection:       rgba(214, 45, 33, 0.3);

    /* Font Families */
    --font-display:     'RuneScape-Quill-Caps', 'RuneScape', sans-serif;
    --font-heading:     'RuneScape-Bold', 'RuneScape', sans-serif;
    --font-body:        'RuneScape-Plain', 'RuneScape', Arial, sans-serif;
    --font-accent:      'RuneScape-Surok', 'RuneScape', sans-serif;

    /* Font Sizes */
    --text-hero:        clamp(48px, 8vw, 96px);
    --text-section:     clamp(32px, 5vw, 56px);
    --text-subsection:  clamp(24px, 3vw, 36px);
    --text-large:       24px;
    --text-body:        18px;
    --text-small:       14px;
    --text-xs:          12px;

    /* Line Heights */
    --leading-tight:    1.1;
    --leading-normal:   1.5;
    --leading-relaxed:  1.75;

    /* Letter Spacing */
    --tracking-tight:   -0.02em;
    --tracking-normal:  0;
    --tracking-wide:    0.05em;
    --tracking-wider:   0.1em;
    --tracking-widest:  0.2em;

    /* Spacing */
    --space-xs:    4px;
    --space-sm:    8px;
    --space-md:    16px;
    --space-lg:    24px;
    --space-xl:    32px;
    --space-2xl:   48px;
    --space-3xl:   64px;
    --space-4xl:   96px;

    /* Section Padding */
    --section-py:      clamp(64px, 10vh, 128px);
    --section-px:      clamp(16px, 5vw, 80px);
    --container-max:   1200px;

    /* Easings */
    --ease-out-quad:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:      cubic-bezier(0.4, 0, 0.2, 1);

    /* Durations */
    --duration-fast:    150ms;
    --duration-normal:  300ms;
    --duration-slow:    500ms;
    --duration-slower:  800ms;
    --duration-reveal:  1000ms;

    /* Glassmorphism */
    --glass-blur:       16px;
    --glass-blur-heavy: 24px;

    /* Shadows */
    --shadow-glow-sm:   0 0 15px var(--color-accent-glow);
    --shadow-glow-md:   0 0 30px var(--color-accent-glow);
    --shadow-glow-lg:   0 0 60px var(--color-accent-glow);
    --shadow-card:      0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ========================================
   03. RESET & BASE STYLES
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: var(--color-bg-primary);
    font-family: var(--font-body);
    color: var(--color-text-primary);
    line-height: var(--leading-normal);
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--color-selection);
    color: var(--color-text-primary);
}

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

a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-out-quad);
}

ul {
    list-style: none;
}

/* ========================================
   04. UTILITY CLASSES
   ======================================== */

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity var(--duration-reveal) var(--ease-out-expo),
        transform var(--duration-reveal) var(--ease-out-expo);
}

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

/* ========================================
   05. GLASS CARD COMPONENT
   ======================================== */

.glass-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: 16px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: var(--space-xl);
    transition:
        background var(--duration-normal) var(--ease-out-quad),
        border-color var(--duration-normal) var(--ease-out-quad),
        transform var(--duration-normal) var(--ease-out-quad),
        box-shadow var(--duration-normal) var(--ease-out-quad);
}

.glass-card:hover {
    background: var(--color-glass-hover-bg);
    border-color: var(--color-glass-hover-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

/* ========================================
   06. BUTTON COMPONENTS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: 16px 48px;
    font-family: var(--font-heading);
    font-size: var(--text-large);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 0;
    transition:
        transform var(--duration-normal) var(--ease-out-quad),
        box-shadow var(--duration-normal) var(--ease-out-quad),
        background var(--duration-normal) var(--ease-out-quad);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text-primary);
}

/* Primary: filled red, skewed */
.btn--primary {
    background: var(--color-accent);
    color: var(--color-text-primary);
    transform: skewX(-15deg);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
}

.btn--primary .btn__text,
.btn--primary .btn__arrow {
    display: inline-block;
    transform: skewX(15deg);
}

.btn--primary:hover {
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.8);
    background: var(--color-accent-light);
}

/* Glow pulse modifier */
.btn--glow {
    animation: btn-pulse-glow 2s ease-in-out infinite;
}

.btn--glow:hover {
    animation: none;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.8), var(--shadow-glow-md);
}

/* Outline variant */
.btn--outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-accent);
    padding: 14px 46px;
}

.btn--outline:hover {
    background: var(--color-accent-subtle);
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-2px);
}

/* Arrow SVG inside CTA */
.btn__arrow {
    width: 20px;
    position: relative;
    transition: margin-right var(--duration-slow) var(--ease-out-quad);
    margin-right: 0;
}

.btn__arrow svg {
    width: 100%;
    height: auto;
}

.btn--primary:hover .btn__arrow {
    margin-right: 45px;
}

/* SVG path animations (preserved from original site) */
.btn__arrow .arrow-one {
    transition: 0.4s;
    transform: translateX(-60%);
}

.btn__arrow .arrow-two {
    transition: 0.5s;
    transform: translateX(-30%);
}

.btn--primary:hover .arrow-one {
    transform: translateX(0%);
    animation: arrow-color-pulse 1s infinite 0.6s;
}

.btn--primary:hover .arrow-two {
    transform: translateX(0%);
    animation: arrow-color-pulse 1s infinite 0.4s;
}

.btn--primary:hover .arrow-three {
    animation: arrow-color-pulse 1s infinite 0.2s;
}

/* ========================================
   07. SECTION COMMON STYLES
   ======================================== */

.section {
    position: relative;
    padding: var(--section-py) var(--section-px);
    z-index: 1;
}

.section__container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    position: relative;
}

/* Decorative lines flanking the label */
.section__label::before,
.section__label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--color-accent);
    opacity: 0.4;
}

.section__label::before { right: calc(100% + 16px); }
.section__label::after  { left:  calc(100% + 16px); }

.section__title {
    font-family: var(--font-display);
    font-size: var(--text-section);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

/* ========================================
   08. NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--section-px);
    transition:
        background var(--duration-slow) var(--ease-out-quad),
        backdrop-filter var(--duration-slow) var(--ease-out-quad),
        padding var(--duration-slow) var(--ease-out-quad);
}

.navbar--scrolled {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border-bottom: 1px solid var(--color-glass-border);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.navbar__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__logo img {
    height: 40px;
    width: auto;
    transition: opacity var(--duration-normal) var(--ease-out-quad);
}

.navbar__logo:hover img {
    opacity: 0.8;
}

.navbar__menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.navbar__link {
    font-family: var(--font-heading);
    font-size: var(--text-body);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--duration-normal) var(--ease-out-quad);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--duration-normal) var(--ease-out-quad);
    box-shadow: var(--shadow-glow-sm);
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--color-text-primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

/* Shop link as mini-CTA */
.navbar__link--cta {
    background: var(--color-accent);
    color: var(--color-text-primary) !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 4px;
    font-size: var(--text-small);
}

.navbar__link--cta::after {
    display: none;
}

.navbar__link--cta:hover {
    background: var(--color-accent-light);
    box-shadow: var(--shadow-glow-sm);
}

/* Hamburger Menu */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition:
        transform var(--duration-normal) var(--ease-out-quad),
        opacity var(--duration-normal) var(--ease-out-quad);
}

.navbar__hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   09. HERO SECTION
   ======================================== */

/* Background video: fixed behind all content */
#video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

#video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    filter: blur(5px);
    -webkit-filter: blur(5px);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__content {
    text-align: center;
    z-index: 1;
    animation: hero-fade-in 1.5s var(--ease-out-expo) forwards;
}

.hero__logo {
    max-width: min(500px, 80vw);
    margin: 0 auto var(--space-xl);
    filter: drop-shadow(0 0 40px rgba(214, 45, 33, 0.2));
    animation: hero-logo-float 6s ease-in-out infinite;
}

.hero__tagline {
    font-family: var(--font-heading);
    font-size: var(--text-large);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.hero__established {
    font-family: var(--font-accent);
    font-size: var(--text-small);
    letter-spacing: var(--tracking-widest);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    animation: scroll-indicator-fade 1.5s var(--ease-out-expo) 1s both;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-widest);
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
    animation: scroll-line-pulse 2s ease-in-out infinite;
}

/* ========================================
   10. ABOUT SECTION
   ======================================== */

.about {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about__text-card {
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

.about__text-card p + p {
    margin-top: var(--space-lg);
}

.about__motto {
    font-family: var(--font-display);
    font-size: var(--text-subsection);
    color: var(--color-accent);
    margin-top: var(--space-xl) !important;
    text-shadow: var(--shadow-glow-sm);
}

.about__image-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.about__image-card img {
    max-height: 250px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(214, 45, 33, 0.3));
    transition: transform var(--duration-slow) var(--ease-out-quad);
}

.about__image-card:hover img {
    transform: scale(1.05);
}

/* Decorative background: DarkRedGraffiti */
.about__bg-decor {
    position: absolute;
    right: -10%;
    bottom: -10%;
    width: 50%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.about__bg-decor img {
    width: 100%;
}

/* ========================================
   11. PRODUCTS SECTION
   ======================================== */

.products {
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.9) 0%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow-sm), var(--shadow-card);
}

.product-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-card__placeholder img {
    max-height: 120px;
    width: auto;
    opacity: 0.6;
    transition:
        transform var(--duration-slow) var(--ease-out-quad),
        opacity var(--duration-normal) var(--ease-out-quad);
}

.product-card:hover .product-card__placeholder img {
    transform: scale(1.1);
    opacity: 0.9;
}

.product-card__badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--color-accent);
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    padding: 4px 12px;
    border-radius: 4px;
}

.product-card__info {
    padding: var(--space-lg);
}

.product-card__name {
    font-family: var(--font-heading);
    font-size: var(--text-body);
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-xs);
}

.product-card__desc {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

.products__cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ========================================
   12. COMMUNITY SECTION
   ======================================== */

.community {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

.community__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.community-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    cursor: pointer;
    text-decoration: none;
}

.community-card:hover {
    border-color: var(--color-accent);
}

.community-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-lg);
    color: var(--color-accent);
    transition: transform var(--duration-normal) var(--ease-out-quad);
}

.community-card:hover .community-card__icon {
    transform: scale(1.15);
    filter: drop-shadow(var(--shadow-glow-sm));
}

.community-card__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.community-card__name {
    font-family: var(--font-heading);
    font-size: var(--text-large);
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-sm);
}

.community-card__desc {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

/* ========================================
   13. FOOTER
   ======================================== */

.footer {
    border-top: 1px solid var(--color-glass-border);
    padding: var(--space-3xl) var(--section-px) var(--space-xl);
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 1;
}

.footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.footer__logo {
    height: 40px;
    width: auto;
    margin: 0 auto var(--space-md);
    opacity: 0.7;
}

.footer__tagline {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    letter-spacing: var(--tracking-wider);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__links a {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-muted);
    transition: color var(--duration-normal) var(--ease-out-quad);
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer__social a {
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    transition:
        color var(--duration-normal) var(--ease-out-quad),
        transform var(--duration-normal) var(--ease-out-quad);
}

.footer__social a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.footer__social a svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.footer__bottom {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    opacity: 0.5;
}

.footer__credit {
    margin-top: var(--space-sm);
    font-style: italic;
}

/* ========================================
   14. AUDIO CONTROL BUTTON
   ======================================== */

.audio-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-glass-border);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color var(--duration-normal) var(--ease-out-quad),
        background var(--duration-normal) var(--ease-out-quad),
        transform var(--duration-normal) var(--ease-out-quad);
}

.audio-btn:hover {
    border-color: var(--color-accent);
    background: rgba(214, 45, 33, 0.15);
    transform: scale(1.05);
}

.audio-btn svg {
    width: 20px;
    height: 20px;
}

.audio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsing ring when playing */
.audio-btn--playing::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    animation: audio-pulse-ring 1.5s ease-out infinite;
}

/* ========================================
   15. FLOATING PARTICLES
   ======================================== */

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* ========================================
   16. CUSTOM SCROLLBAR
   ======================================== */

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

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(214, 45, 33, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(214, 45, 33, 0.5);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 45, 33, 0.3) var(--color-bg-primary);
}

/* ========================================
   17. ANIMATIONS & KEYFRAMES
   ======================================== */

/* Hero entrance */
@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero logo floating */
@keyframes hero-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* CTA glow pulse */
@keyframes btn-pulse-glow {
    0%, 100% {
        box-shadow: 6px 6px 0 rgba(0,0,0,0.8), 0 0 20px rgba(214,45,33,0.2);
    }
    50% {
        box-shadow: 6px 6px 0 rgba(0,0,0,0.8), 0 0 40px rgba(214,45,33,0.4);
    }
}

/* Arrow color cycle */
@keyframes arrow-color-pulse {
    0% { fill: white; }
    50% { fill: #FF0000; }
    100% { fill: white; }
}

/* Scroll indicator line */
@keyframes scroll-line-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}

/* Scroll indicator fade-in (delayed) */
@keyframes scroll-indicator-fade {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Audio button pulse ring */
@keyframes audio-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Floating particle drift */
@keyframes particle-float {
    0% {
        transform: translate(var(--start-x), var(--start-y)) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: var(--particle-opacity);
    }
    90% {
        opacity: var(--particle-opacity);
    }
    100% {
        transform: translate(var(--end-x), var(--end-y)) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   18. RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation: switch to hamburger */
    .navbar__hamburger {
        display: flex;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(var(--glass-blur-heavy));
        -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
        padding: 80px var(--space-xl) var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--duration-slow) var(--ease-out-expo);
        gap: var(--space-lg);
        border-left: 1px solid var(--color-glass-border);
    }

    .navbar__menu.open {
        transform: translateX(0);
    }

    /* About grid: stack */
    .about__grid {
        grid-template-columns: 1fr;
    }

    /* Products */
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .community__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero logo smaller */
    .hero__logo {
        max-width: 70vw;
    }

    /* Footer links wrap */
    .footer__links {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .products__grid {
        grid-template-columns: 1fr;
    }

    .community__grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 32px;
        font-size: var(--text-body);
    }

    .hero__tagline {
        font-size: var(--text-body);
    }

    .section__label::before,
    .section__label::after {
        width: 20px;
    }
}

/* Reduced motion preference */
@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__logo {
        animation: none;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }
}
