:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-mint: #00ff9d;
    --accent-miami: #ff00cc;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --container-width: 1200px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-mint);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(-45deg, #050505, #1a1a1a, #001a10, #1a0014);
    background-size: 400% 400%;
    animation: gradient-move 15s ease infinite;
    overflow: hidden;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, #0a0a0a 90%);
    pointer-events: none;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Glycerin Section */
.glycerin-section {
    padding: 120px 0;
    background: #050505;
    position: relative;
    overflow: hidden;
}

/* Tech Grid Background */
.glycerin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 157, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

#glycerin-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.glycerin-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.glycerin-content h2 {
    font-family: var(--font-display);
    font-size: 4rem;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.glycerin-content .subtitle {
    color: var(--accent-mint);
    font-size: 1.2rem;
    margin-bottom: 80px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Inter', monospace;
    /* Tech feel */
    text-shadow: 0 0 10px var(--accent-mint);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

.benefit-card {
    background: rgba(10, 10, 10, 0.6);
    padding: 40px 30px;
    border: 1px solid rgba(0, 255, 157, 0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-mint);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.15);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Decorative corner accents for cards */
.benefit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent-mint);
    border-right: 2px solid var(--accent-mint);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.benefit-card:hover::after {
    opacity: 1;
    box-shadow: 2px 2px 10px var(--accent-mint);
}

/* Products */
.products-section {
    display: flex;
    flex-direction: column;
}

.product-line {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cat-mint {
    background: radial-gradient(circle at 30% 50%, #001a10 0%, #0a0a0a 70%);
    border-top: 1px solid #1a1a1a;
}

.cat-mint h2 {
    color: var(--accent-mint);
    font-family: var(--font-display);
    font-size: 5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 255, 157, 0.2);
    letter-spacing: -2px;
}

.btn-mint {
    background: transparent;
    border: 2px solid var(--accent-mint);
    color: var(--accent-mint);
    margin-top: 20px;
}

.btn-mint:hover {
    background: var(--accent-mint);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.4);
}

.miami {
    background: radial-gradient(circle at 70% 50%, #1a0014 0%, #0a0a0a 70%);
    border-top: 1px solid #1a1a1a;
}

.miami h2 {
    color: var(--accent-miami);
    font-family: var(--font-display);
    font-size: 5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 0, 204, 0.2);
    letter-spacing: -2px;
}

.btn-miami {
    background: transparent;
    border: 2px solid var(--accent-miami);
    color: var(--accent-miami);
    margin-top: 20px;
}

.btn-miami:hover {
    background: var(--accent-miami);
    color: #000;
    box-shadow: 0 0 30px rgba(255, 0, 204, 0.4);
}

.content {
    text-align: center;
    z-index: 2;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent scrolling on body when modal is open */
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    perspective: 1000px;
    /* For 3D effects */
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(0, 20, 10, 0.95) 100%);
    margin: auto;
    padding: 50px;
    border: 1px solid var(--accent-mint);
    width: 90%;
    max-width: 1100px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.1), inset 0 0 20px rgba(0, 255, 157, 0.05);
    max-height: 90vh;
    overflow-y: auto;

    /* Futuristic Shape */
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);

    /* Animation Initial State */
    transform: rotateX(20deg) scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy spring effect */
}

.modal.show .modal-content {
    transform: rotateX(0) scale(1) translateY(0);
    opacity: 1;
}

/* Decorative Tech Lines */


.close-modal {
    color: var(--accent-mint);
    float: right;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
    transition: transform 0.3s, text-shadow 0.3s;
    /* Fix for flicker: increase hit area and keep it static */
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

/* Static hit area to prevent flickering during rotation */
.close-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(0);
    /* Force static */
}

.close-modal:hover {
    transform: rotate(90deg);
    text-shadow: 0 0 10px var(--accent-mint);
}

.modal-content h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.modal-content h2::after {
    content: 'FLAVOR SYSTEM ONLINE';
    display: block;
    font-size: 0.8rem;
    color: var(--accent-mint);
    letter-spacing: 5px;
    margin-top: 10px;
    opacity: 0.8;
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding: 10px;
}

.flavor-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    /* Sharp corners for tech look */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 157, 0.1);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.flavor-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-mint);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.15);
    background: rgba(0, 255, 157, 0.05);
}

.flavor-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: grayscale(20%) contrast(110%);
    transition: filter 0.3s;
}

.flavor-card:hover img {
    filter: grayscale(0%) contrast(120%);
}

.flavor-card h3 {
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Miami Theme Overrides */
.miami-theme .modal-content {
    border-color: var(--accent-miami);
    box-shadow: 0 0 30px rgba(255, 0, 204, 0.1), inset 0 0 20px rgba(255, 0, 204, 0.05);
}



.miami-theme .close-modal {
    color: var(--accent-miami);
}

.miami-theme .close-modal:hover {
    text-shadow: 0 0 10px var(--accent-miami);
}

.miami-theme .modal-content h2 {
    text-shadow: 0 0 20px rgba(255, 0, 204, 0.5);
}

.miami-theme .modal-content h2::after {
    color: var(--accent-miami);
}

.miami-theme .flavor-card {
    border-color: rgba(255, 0, 204, 0.1);
}

.miami-theme .flavor-card:hover {
    border-color: var(--accent-miami);
    box-shadow: 0 10px 30px rgba(255, 0, 204, 0.15);
    background: rgba(255, 0, 204, 0.05);
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-mint);
    border-radius: 4px;
}

/* Miami Theme Scrollbar */
.miami-theme .modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-miami);
    box-shadow: 0 0 5px var(--accent-miami);
}

/* Reviews - RPG Style */
.reviews-section {
    padding: 100px 0;
    background: #0a0a0a;
}

.reviews-section h2 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.rpg-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.rpg-avatar-container {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    position: relative;
    border: 2px solid var(--accent-mint);
    background: #000;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
    image-rendering: pixelated;
    /* Keep pixel art crisp */
    animation: avatar-idle 2s ease-in-out infinite;
}

.rpg-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes avatar-idle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.rpg-dialogue-box {
    flex-grow: 1;
    background: rgba(0, 20, 10, 0.9);
    border: 2px solid var(--accent-mint);
    padding: 20px;
    height: 180px;
    /* Fixed height */
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.1);
    display: flex;
    flex-direction: column;
}

/* Triangle pointer for dialogue */
.rpg-dialogue-box::before {
    content: '';
    position: absolute;
    left: -12px;
    bottom: 30px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid var(--accent-mint);
}

.rpg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 157, 0.3);
    padding-bottom: 5px;
}

.rpg-name {
    color: var(--accent-mint);
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rpg-status {
    font-size: 0.8rem;
    color: var(--accent-mint);
    animation: blink 2s infinite;
}

.rpg-content {
    font-family: 'Courier New', monospace;
    /* Retro font */
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.5;
    overflow: hidden;
}

.rpg-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background: var(--accent-mint);
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.footer-contacts a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: var(--accent-mint);
}

/* Mobile responsiveness */
@media (max-width: 768px) {

    /* Typography adjustments */
    .hero-content h1 {
        font-size: 3rem;
    }

    /* Header adjustments */
    .site-header .container {
        justify-content: center;
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 1.8rem;
        white-space: nowrap;
    }

    .glycerin-content h2,
    .cat-mint h2,
    .miami h2 {
        font-size: 3rem;
    }

    .modal-content h2 {
        font-size: 2rem;
    }

    /* Layout adjustments */
    .rpg-container {
        flex-direction: column;
        align-items: center;
    }

    .rpg-dialogue-box::before {
        display: none;
        /* Hide pointer on mobile */
    }

    .rpg-dialogue-box {
        width: 100%;
        height: auto;
        min-height: 200px;
        margin-top: 20px;
    }

    .glycerin-section,
    .reviews-section {
        padding: 60px 0;
    }

    .product-line {
        min-height: 60vh;
        padding: 40px 0;
    }

    /* Modal Mobile Adaptation */
    .modal-content {
        padding: 20px;
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }

    .flavors-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 15px;
        padding: 5px;
    }

    .flavor-card img {
        aspect-ratio: 1 / 1;
    }

    .flavor-card h3 {
        font-size: 0.9rem;
        padding: 10px;
    }

    .close-modal {
        top: 10px;
        right: 15px;
    }

    .modal-content::before,
    .modal-content::after {
        width: 40px;
        /* Shorter decorative lines */
    }
}

/* --- COOL ANIMATIONS (Mobile & Desktop) --- */

/* 1. Cinematic Glitch Effect (Slower, Premium) */
@keyframes cinematic-glitch {

    0%,
    100% {
        text-shadow: 0 0 0 transparent;
        transform: scale(1);
        opacity: 1;
    }

    33% {
        text-shadow: -2px 0 var(--accent-miami), 2px 0 var(--accent-mint);
        transform: scale(1.01);
        opacity: 0.9;
    }

    66% {
        text-shadow: 2px 0 var(--accent-miami), -2px 0 var(--accent-mint);
        transform: scale(1.01);
        opacity: 0.9;
    }
}

.logo:hover,
.glycerin-content h2:hover {
    animation: cinematic-glitch 2s ease-in-out infinite;
    /* Smooth, slow cycle */
    color: #fff;
}

/* 2. Neon Flicker Animation for Product Lines */
@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    }

    20%,
    24%,
    55% {
        opacity: 0.5;
        text-shadow: none;
    }
}

.cat-mint h2 {
    color: var(--accent-mint);
    /* Ensure base color is set */
}

.miami h2 {
    color: var(--accent-miami);
    /* Ensure base color is set */
}

.cat-mint h2:hover,
.miami h2:hover {
    animation: neon-flicker 1.5s infinite alternate;
}

/* On mobile, trigger animations automatically */
@media (max-width: 768px) {

    .logo,
    .glycerin-content h2 {
        animation: cinematic-glitch 4s ease-in-out infinite;
    }

    .cat-mint h2,
    .miami h2 {
        animation: neon-flicker 3s infinite alternate;
        /* Slower flicker on mobile */
    }
}

/* 2. Floating Animation for Cards */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.benefit-card {
    animation: float 6s ease-in-out infinite;
}

.benefit-card:nth-child(2) {
    animation-delay: 1s;
}

.benefit-card:nth-child(3) {
    animation-delay: 2s;
}

/* 3. Scroll Reveal (Fade In Up) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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