:root {
    /* Colors */
    --primary-color: #7F00FF; /* Vibrant Purple */
    --secondary-color: #00FFFF; /* Electric Cyan */
    --background-color: #0A0A0A; /* Deep Space Black */
    --footer-bg-color: #000000; /* Absolute Black */
    --button-color: #00FFFF; /* Electric Cyan for buttons */
    --text-color: #E0E0E0; /* Light Grey for readability */
    --heading-color: var(--secondary-color); /* Headings in electric cyan */
    --accent-color: #FF007F; /* Neon Pink for highlights */

    --section-bg-1: #111111;
    --section-bg-2: #1C1C1C;
    --section-bg-3: #282828;

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;

    /* Spacing */
    --spacing-unit: 1rem;
    --padding-section: 6rem 0;
    --margin-lg: 3rem;

    /* Borders & Shadows */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --neon-glow-sm: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
    --neon-glow-md: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color);
    --neon-glow-lg: 0 0 15px var(--secondary-color), 0 0 30px var(--secondary-color), 0 0 45px var(--secondary-color);
    --button-neon-glow: 0 0 10px var(--button-color), 0 0 20px var(--button-color), 0 0 30px var(--button-color);

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Chart Container Styles - Prevent Page Stretching */
.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    max-height: 400px;
    overflow: hidden;
}

.chart-container canvas {
    max-width: 100% !important;
    max-height: 400px !important;
    width: 100% !important;
    height: auto !important;
}

/* Prevent page stretching from charts */
body {
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive chart containers */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
        max-height: 300px;
    }
    
    .chart-container canvas {
        max-height: 300px !important;
    }
}
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 1.2em;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    text-shadow: var(--neon-glow-md);
}

h2 {
    font-size: 2.8rem;
    text-shadow: var(--neon-glow-sm);
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.8rem;
}

h5 {
    font-size: 1.5rem;
}

h6 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease), text-shadow var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.8); /* Semi-transparent */
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem var(--spacing-unit) 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    text-decoration: none;
    text-shadow: var(--neon-glow-sm);
    transition: text-shadow var(--transition-speed) var(--transition-ease);
}

.header-logo:hover {
    text-shadow: var(--neon-glow-md);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
}

.nav-item a {
    font-family: var(--font-heading);
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed) var(--transition-ease);
}

.nav-item a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
    transition: width var(--transition-speed) var(--transition-ease);
    box-shadow: var(--neon-glow-sm);
}

.nav-item a:hover {
    color: var(--secondary-color);
    text-shadow: var(--neon-glow-sm);
}

.nav-item a:hover::before {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1.2em 2.5em;
    border: 2px solid var(--button-color);
    background-color: rgba(0, 255, 255, 0.1); /* Semi-transparent cyan */
    color: var(--button-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--transition-speed) var(--transition-ease);
    box-shadow: var(--button-neon-glow);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%); /* Polygonal shape */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--button-color-rgb), 0.3), transparent);
    transition: all var(--transition-speed) var(--transition-ease);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    color: var(--primary-color);
    background-color: rgba(var(--button-color-rgb), 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--button-neon-glow);
}

/* Section Backgrounds */
.section-bg-1 {
    background-color: var(--section-bg-1);
    padding: var(--padding-section);
}

.section-bg-2 {
    background-color: var(--section-bg-2);
    padding: var(--padding-section);
}

.section-bg-3 {
    background-color: var(--section-bg-3);
    padding: var(--padding-section);
}

/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--text-color);
    padding: 3rem var(--spacing-unit);
    text-align: center;
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.2);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color var(--transition-speed) var(--transition-ease), text-shadow var(--transition-speed) var(--transition-ease);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.social-icons {
    margin-bottom: 2rem;
}

.social-icons a {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: transform var(--transition-speed) var(--transition-ease), filter var(--transition-speed) var(--transition-ease), text-shadow var(--transition-speed) var(--transition-ease);
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.5);
    text-shadow: var(--neon-glow-sm);
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Utility Classes (if not using Tailwind for these) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.text-center {
    text-align: center;
}

/* Animations & Effects */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px var(--secondary-color);
    }
    50% {
        box-shadow: 0 0 15px var(--secondary-color), 0 0 25px var(--secondary-color);
    }
    100% {
        box-shadow: 0 0 5px var(--secondary-color);
    }
}

.glowing-border {
    border: 1px solid var(--secondary-color);
    box-shadow: var(--neon-glow-sm);
    animation: pulse-glow 2s infinite ease-in-out;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .header {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .nav-item a::before {
        height: 1px;
        bottom: 0;
    }

    .btn {
        padding: 1em 2em;
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .section-bg-1, .section-bg-2, .section-bg-3 {
        padding: 3rem 0;
    }

    .header-logo {
        font-size: 1.5rem;
    }

    .social-icons a {
        font-size: 1.5rem;
        margin: 0 0.5rem;
    }
}

/* Custom Image Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: saturate(1.2) contrast(1.1); /* High-contrast, saturated */
    transition: filter var(--transition-speed) var(--transition-ease);
}

img:hover {
    filter: saturate(1.5) contrast(1.3) drop-shadow(0 0 10px var(--primary-color)); /* Subtle glow on hover */
}

/* Additional elements: cards, forms etc. */
.card {
    background-color: var(--section-bg-2);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.2);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.3);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(var(--secondary-color-rgb), 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-speed) var(--transition-ease);
    z-index: 0;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(var(--primary-color-rgb), 0.5), 0 0 40px rgba(var(--secondary-color-rgb), 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1em 1.2em;
    background-color: rgba(var(--section-bg-1-rgb), 0.5);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.3);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    box-shadow: inset 0 0 5px rgba(var(--secondary-color-rgb), 0.1);
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Tailwind specific overrides/additions - ensure they don't clash with base utilities */
.text-gradient-neon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Essential for gradient text */
}

/* Example for a custom Tailwind class that adds a unique glow */
.glow-on-hover {
    position: relative;
    z-index: 0;
}

.glow-on-hover::before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000
}

.glow-on-hover:active::after {
    background: transparent;
}

.glow-on-hover:hover::before {
    opacity: 1;
}

.glow-on-hover::after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}