/* ========================================
   MIRTILO DIGITAL - REDESIGN 2026
   Dark Mode, Three.js TSL, Crazy Shaders
   ======================================== */

:root,
[data-theme="dark"] {
    --color-bg: #030303;
    --color-surface: rgba(20, 20, 20, 0.7);
    --color-primary: #C3D82F;
    --color-primary-light: #d4e564;
    --color-primary-dark: #a1b320;
    --color-primary-glow: rgba(195, 216, 47, 0.2);
    --color-secondary: #ffffff;
    --color-accent: #C3D82F;
    --color-text: #FFFFFF;
    --color-text-dim: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 25px;

    --font-main: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#three-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Glass Effect */
.glass-panel {
    background: var(--color-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-panel:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-primary-glow);
}

/* Typography Refresh */
h1,
h2,
h3 {
    font-family: var(--font-main);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #888 50%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Overhaul */
.nav-modern {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    min-width: 400px;
}

.nav-blur-box {
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(15px);
    border-radius: 100px;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Hero Section Adjustments */
.hero-minimal {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10%;
    position: relative;
}

.hero-tag {
    background: var(--color-primary-glow);
    border: 1px solid var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-huge-title {
    font-size: clamp(3rem, 8vw, 6rem);
    max-width: 800px;
    margin-bottom: 2rem;
}

/* Grid Layouts */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 10%;
}

/* Buttons */
.btn-glow {
    position: relative;
    padding: 1.2rem 2.5rem;
    background: var(--color-text);
    color: #000;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--color-primary-glow);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

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