/* 
  Mojo Energy Drink - Vanilla CSS Design System 
*/

:root {
    /* Precise Color Palette from Image */
    --clr-bg-deep: #0f0201;
    /* Black with slight red tint */
    --clr-bg-main: #1a0201;
    /* Deep dark red base */
    --clr-bg-panel: rgba(22, 5, 5, 0.8);
    /* Dark panel background */
    --clr-primary: #ff5500;
    /* Vibrant Orange-Red */
    --clr-secondary: #ff3300;
    --clr-accent: #ff8c00;
    /* Lighter Orange for gradients */
    --clr-text: #ffffff;
    --clr-text-muted: #d1d1d1;

    /* Precise Gradients */
    --gra-bg: radial-gradient(circle at center, #630500 0%, #0f0201 100%);
    --gra-primary: linear-gradient(135deg, #ff8c00, #ff4500);
    --gra-btn: linear-gradient(to right, #ff4d00, #ff7b00);
    --gra-text: linear-gradient(to right, #ffffff, #ff5500);

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Utilities */
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 15px 45px rgba(0, 0, 0, 0.8);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--gra-bg);
    background-attachment: fixed;
    color: var(--clr-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animated Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -15%;
    left: -15%;
}

.orb-2 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(255, 0, 85, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: 10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Typography Tools */
h1,
h2,
h3 {
    line-height: 1.1;
    font-weight: 900;
    text-transform: none;
    letter-spacing: -1px;
}

.gradient-text {
    color: var(--clr-primary);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--clr-bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(26, 11, 11, 0.85);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--clr-text);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-text);
}

.nav-links a {
    color: var(--clr-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover:not(.btn) {
    color: var(--clr-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gra-btn);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 77, 0, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(255, 77, 0, 0.6);
    transform: translateY(-3px) scale(1.02);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Hero Image Styles */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-glass-wrapper {
    padding: 3rem;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.05);
    animation: float-img 6s ease-in-out infinite;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glass-wrapper::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.2) 0%, transparent 60%);
    z-index: -1;
    filter: blur(40px);
}

.hero-glass-wrapper::after {
    content: '';
    position: absolute;
    width: 25%;
    height: 70%;
    background: #ffffff;
    z-index: 1;
    border-radius: 100px;
    filter: blur(8px);
}

.hero-img-container {
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(16, 185, 129, 0.3));
    display: flex;
}

.hero-img {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 60vh;
    transition: transform 0.4s ease;
}

.hero-glass-wrapper:hover .hero-img {
    transform: scale(1.05) rotate(2deg);
}

@keyframes float-img {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Match the large titles in image */
    margin-bottom: 3rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.product-card {
    padding: 0;
    /* Remove default padding for image-top look */
    text-align: center;
    background: #110404;
    border-radius: 30px;
    border: var(--glass-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-img-wrapper {
    width: 100%;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.1) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.product-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 77, 0, 0.3));
}

.product-info {
    padding: 2rem;
}

.product-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-flavor {
    color: var(--clr-text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.product-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ff5500;
    margin-bottom: 2rem;
}

.buy-btn {
    width: 100%;
}

/* Feature Card Hover fix */
.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 77, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    background: rgba(255, 77, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--clr-text-muted);
}

/* CTA Section */
.cta-section {
    padding: 100px 0 150px;
}

.cta-panel {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 77, 0, 0.05) 0%, transparent 60%);
    z-index: 0;
}

.cta-panel>* {
    position: relative;
    z-index: 1;
}

.cta-panel h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-panel p {
    color: var(--clr-text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.glass-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.glass-input:focus {
    border-color: var(--clr-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.1);
}

.glass-input::placeholder {
    color: var(--clr-text-muted);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    background: transparent;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--clr-primary);
}

/* Micro-Animations & Scroll Reveals classes (handled by JS) */
.reveal-text,
.reveal-fade,
.reveal-scale,
.scroll-reveal {
    opacity: 0;
    transition: var(--transition-smooth);
}

.reveal-text {
    transform: translateY(30px);
}

.reveal-fade {
    transform: translateY(20px);
}

.reveal-scale {
    transform: scale(0.9);
}

.scroll-reveal {
    transform: translateY(40px);
}

.is-revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 11, 11, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition-smooth);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .cta-form {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2.2rem;
    }
}