/* --- Theming System using CSS Variables --- */
:root, :root.theme-dark {
    /* Dark Theme (Default) */
    --bg-color: #0b0c10;
    --text-color: #ffffff;
    --text-muted: #a0aab2;
    --primary-color: #66fcf1;
    --primary-dark: #45a29e;
    --glass-bg: rgba(31, 40, 51, 0.4);
    --glass-border: rgba(102, 252, 241, 0.15);
    --accent: rgba(102, 252, 241, 0.1);
}

:root.theme-light {
    --bg-color: #f4f7f6;
    --text-color: #1a1a2e;
    --text-muted: #555555;
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(37, 99, 235, 0.15);
    --accent: rgba(233, 69, 96, 0.1);
}

:root.theme-neon {
    --bg-color: #090014;
    --text-color: #fff;
    --text-muted: #ff00ff;
    --primary-color: #00ffff;
    --primary-dark: #ff00ff;
    --glass-bg: rgba(20, 0, 40, 0.6);
    --glass-border: rgba(0, 255, 255, 0.3);
    --accent: rgba(255, 0, 255, 0.2);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Glass Panel Base CSS (Fallback & Defaults) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-panel:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px -10px var(--primary-color);
    transform: translateY(-5px);
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    overflow: hidden;
    font-weight: 600;
    color: white;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px -10px var(--primary-color);
}
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -10px var(--primary-color);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* --- Custom Animations & Effects --- */

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Decorative Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: float 8s infinite alternate ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 30px) scale(1.1); }
}

/* Grid Noise Texture overlay */
.bg-grid-pattern {
    background-image: linear-gradient(to right, var(--glass-border) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    opacity: 0.5;
    z-index: -2;
}

/* Marquee Carousel */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}
.marquee-container::before, .marquee-container::after {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    content: "";
    z-index: 2;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}
.marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 4rem;
    animation: marquee 20s linear infinite;
    padding-left: 4rem;
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 50%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
