/* shared/styles.css — Viet An Express Design System 2.0 */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono&display=swap');

:root {
    /* Brand Colors */
    --primary: #E63946;
    /* Đỏ Việt — nhiệt huyết, tốc độ */
    --primary-dark: #C1121F;
    --accent: #FFD700;
    /* Vàng — tin cậy, thịnh vượng */
    --navy: #0A1628;
    /* Navy đậm — chuyên nghiệp */
    --surface: #0F1F3D;
    /* Surface tối */
    --emerald: #0D7C66;
    /* Emerald Green cho Forwarder */
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--navy);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--space-md);
}

/* Button Elevation */
.cta-elevated {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--emerald), #10b981);
    color: white;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.25rem;
    border-radius: 50px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-elevated:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(13, 124, 102, 0.4);
}

.cta-elevated::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 53px;
    background: linear-gradient(90deg, var(--emerald), var(--accent), var(--emerald));
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.cta-elevated:hover::after {
    opacity: 1;
    animation: border-rotate 2s linear infinite;
}

@keyframes border-rotate {
    from {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(360deg);
    }
}

/* Scroll Animation Helper */
.scroll-container {
    height: 150vh;
    /* Reduced from 300vh to match 40 frames and prevent void */
    position: relative;
}

.sticky-frame {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

canvas#webgl-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}