/* ============================================
   NatureNLP Global Styles
   Base styles for homepage and all pages
   ============================================ */

/* CSS Variables */
:root {
    --bg: #02030a;
    /* Dark background like Daena */
    --glass-card-bg: rgba(8, 10, 20, 0.72);
    --glass-card-border: rgba(255, 255, 255, 0.08);
    --green: #4CAF50;
    /* Primary green for accents */
    --green-accent: #66BB6A;
    /* Lighter green accent */
    --green-muted: #81C784;
    /* Muted green for subtle highlights */
    --text: #ffffff;
    /* White text */
    --text-muted: #a0a0a0;
    /* Muted gray text */
    --border: rgba(255, 255, 255, 0.1);
    --nav-h: 72px;
    --hero-pad: 24px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--bg) !important;
}

body {
    background: transparent !important;
    color: var(--text) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Ensure body background doesn't cover canvas */
}

/* Nature Background Layers - Glassy/Transparent to show canvas */
.nature-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background:
        radial-gradient(ellipse at center, rgba(76, 175, 80, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, rgba(10, 20, 10, 0.3) 0%, rgba(15, 30, 15, 0.25) 50%, rgba(10, 20, 10, 0.3) 100%);
    pointer-events: none;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.nature-pattern-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
    background-size: 600px 600px;
    background-position: center;
    background-repeat: repeat;
    pointer-events: none;
}

#nature-hex-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    pointer-events: none !important;
    display: block !important;
    opacity: 1 !important;
    background: transparent !important;
    visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Glass Card Styles */
.glass-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-card-border);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 1.5rem;
}

.glass-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    color: var(--green-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-button:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    color: var(--green-muted);
}

/* Shimmer Text Effect */
.shimmer-text {
    background: linear-gradient(90deg,
            var(--green) 0%,
            var(--green-accent) 25%,
            var(--green-muted) 50%,
            var(--green-accent) 75%,
            var(--green) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.5));
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Section Spacing */
section {
    position: relative;
    z-index: 1;
    padding: 4rem 1rem;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Mobile Menu */
#mobile-menu {
    background: var(--glass-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-card-border);
    border-radius: 12px;
    margin-top: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#mobile-menu a:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--green-accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        padding: 2rem 1rem;
    }

    .glass-card {
        padding: 1rem;
    }
}