/**
 * LayerProp - Main Stylesheet
 * Modern design with theming system inspired by VOT
 */

/* ==========================================================================
   THEME: Ocean Blue (Default)
   ========================================================================== */
:root,
:root[data-theme="emerald-v2"] {
    /* Primary - Deep Forest Green */
    --theme-primary: #047857;
    --theme-primary-light: #059669;
    --theme-primary-dark: #065f46;
    --theme-primary-rgb: 4, 120, 87;

    /* Secondary - Bright Teal/Cyan for contrast */
    --theme-secondary: #14b8a6;
    --theme-secondary-light: #2dd4bf;
    --theme-secondary-dark: #0d9488;
    --theme-secondary-rgb: 20, 184, 166;

    /* Accent - Vibrant Lime for pop */
    --theme-accent: #84cc16;
    --theme-accent-light: #a3e635;
    --theme-accent-dark: #65a30d;
    --theme-accent-rgb: 132, 204, 22;

    /* Backgrounds */
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f0fdfa;
    --theme-bg-tertiary: #ccfbf1;

    /* Text */
    --theme-text-primary: #0f172a;
    --theme-text-secondary: #475569;
    --theme-text-muted: #94a3b8;
    --theme-text-inverse: #ffffff;

    /* Borders */
    --theme-border: #99f6e4;
    --theme-border-light: #ccfbf1;

    /* Semantic Colors */
    --theme-success: #22c55e;
    --theme-success-rgb: 34, 197, 94;
    --theme-warning: #f59e0b;
    --theme-warning-rgb: 245, 158, 11;
    --theme-danger: #ef4444;
    --theme-danger-rgb: 239, 68, 68;
    --theme-info: #3b82f6;
    --theme-info-rgb: 59, 130, 246;

    /* Pop/Highlight - Coral/Orange for CTAs and highlights against green/teal */
    --theme-pop: #f97316;
    --theme-pop-light: #fb923c;
    --theme-pop-dark: #ea580c;
    --theme-pop-rgb: 249, 115, 22;

    /* Gradients - dramatic forest to teal */
    --theme-gradient-primary: linear-gradient(135deg, #047857 0%, #14b8a6 100%);
    --theme-gradient-accent: linear-gradient(135deg, #14b8a6 0%, #84cc16 100%);
    --theme-gradient-pop: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* ==========================================================================
   THEME: Ocean Blue
   ========================================================================== */
:root[data-theme="ocean-blue"] {
    --theme-primary: #0ea5e9;
    --theme-primary-light: #38bdf8;
    --theme-primary-dark: #0284c7;
    --theme-primary-rgb: 14, 165, 233;

    --theme-secondary: #0891b2;
    --theme-secondary-light: #22d3ee;
    --theme-secondary-dark: #0e7490;
    --theme-secondary-rgb: 8, 145, 178;

    --theme-accent: #10b981;
    --theme-accent-light: #34d399;
    --theme-accent-dark: #059669;
    --theme-accent-rgb: 16, 185, 129;

    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f0f9ff;
    --theme-bg-tertiary: #e0f2fe;

    --theme-border: #bae6fd;
    --theme-border-light: #e0f2fe;

    --theme-gradient-primary: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    --theme-gradient-accent: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-accent) 100%);
}

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Radius */
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-round: 9999px;

    /* Shadows */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   THEME: Professional Purple (VOT Style)
   ========================================================================== */
:root[data-theme="professional-purple"] {
    --theme-primary: #667eea;
    --theme-primary-light: #8b9aff;
    --theme-primary-dark: #4f46e5;
    --theme-primary-rgb: 102, 126, 234;

    --theme-secondary: #764ba2;
    --theme-secondary-light: #9b6fc9;
    --theme-secondary-dark: #5a3780;
    --theme-secondary-rgb: 118, 75, 162;

    --theme-accent: #a855f7;
    --theme-accent-light: #c084fc;
    --theme-accent-dark: #9333ea;
    --theme-accent-rgb: 168, 85, 247;

    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #faf5ff;
    --theme-bg-tertiary: #f3e8ff;

    --theme-border: #e9d5ff;
    --theme-border-light: #f3e8ff;

    --theme-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --theme-gradient-accent: linear-gradient(135deg, #764ba2 0%, #a855f7 100%);
}

/* ==========================================================================
   THEME: Emerald Green
   ========================================================================== */
:root[data-theme="emerald-green"] {
    --theme-primary: #059669;
    --theme-primary-light: #10b981;
    --theme-primary-dark: #047857;
    --theme-primary-rgb: 5, 150, 105;

    --theme-secondary: #10b981;
    --theme-secondary-light: #34d399;
    --theme-secondary-dark: #059669;
    --theme-secondary-rgb: 16, 185, 129;

    --theme-accent: #22c55e;
    --theme-accent-light: #4ade80;
    --theme-accent-dark: #16a34a;
    --theme-accent-rgb: 34, 197, 94;

    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f0fdf4;
    --theme-bg-tertiary: #dcfce7;

    --theme-border: #bbf7d0;
    --theme-border-light: #dcfce7;

    --theme-gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --theme-gradient-accent: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
}

/* ==========================================================================
   THEME: Sunset Warm (Orange/Amber)
   ========================================================================== */
:root[data-theme="sunset-warm"] {
    --theme-primary: #f59e0b;
    --theme-primary-light: #fbbf24;
    --theme-primary-dark: #d97706;
    --theme-primary-rgb: 245, 158, 11;

    --theme-secondary: #ef4444;
    --theme-secondary-light: #f87171;
    --theme-secondary-dark: #dc2626;
    --theme-secondary-rgb: 239, 68, 68;

    --theme-accent: #f97316;
    --theme-accent-light: #fb923c;
    --theme-accent-dark: #ea580c;
    --theme-accent-rgb: 249, 115, 22;

    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #fffbeb;
    --theme-bg-tertiary: #fef3c7;

    --theme-border: #fde68a;
    --theme-border-light: #fef3c7;

    --theme-gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --theme-gradient-accent: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

/* ==========================================================================
   THEME: Emerald V2 (More Contrast/Pop)
   ========================================================================== */
:root[data-theme="emerald-v2"] {
    /* Primary - Deep Forest Green */
    --theme-primary: #047857;
    --theme-primary-light: #059669;
    --theme-primary-dark: #065f46;
    --theme-primary-rgb: 4, 120, 87;

    /* Secondary - Bright Teal/Cyan for contrast */
    --theme-secondary: #14b8a6;
    --theme-secondary-light: #2dd4bf;
    --theme-secondary-dark: #0d9488;
    --theme-secondary-rgb: 20, 184, 166;

    /* Accent - Vibrant Lime for pop */
    --theme-accent: #84cc16;
    --theme-accent-light: #a3e635;
    --theme-accent-dark: #65a30d;
    --theme-accent-rgb: 132, 204, 22;

    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f0fdfa;
    --theme-bg-tertiary: #ccfbf1;

    --theme-border: #99f6e4;
    --theme-border-light: #ccfbf1;

    /* Gradient goes from deep forest to bright teal - more dramatic */
    --theme-gradient-primary: linear-gradient(135deg, #047857 0%, #14b8a6 100%);
    --theme-gradient-accent: linear-gradient(135deg, #14b8a6 0%, #84cc16 100%);
}

/* ==========================================================================
   THEME: Slate Modern (Dark/Professional)
   ========================================================================== */
:root[data-theme="slate-modern"] {
    --theme-primary: #475569;
    --theme-primary-light: #64748b;
    --theme-primary-dark: #334155;
    --theme-primary-rgb: 71, 85, 105;

    --theme-secondary: #1e293b;
    --theme-secondary-light: #334155;
    --theme-secondary-dark: #0f172a;
    --theme-secondary-rgb: 30, 41, 59;

    --theme-accent: #3b82f6;
    --theme-accent-light: #60a5fa;
    --theme-accent-dark: #2563eb;
    --theme-accent-rgb: 59, 130, 246;

    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f8fafc;
    --theme-bg-tertiary: #f1f5f9;

    --theme-border: #e2e8f0;
    --theme-border-light: #f1f5f9;

    --theme-gradient-primary: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    --theme-gradient-accent: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
}

/* ==========================================================================
   Bootstrap Overrides (Theme-Aware)
   ========================================================================== */
.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--theme-primary-dark);
    border-color: var(--theme-primary-dark);
}

.btn-secondary {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--theme-secondary-dark);
    border-color: var(--theme-secondary-dark);
}

.btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-outline-primary:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: white;
}

.btn-outline-secondary {
    color: var(--theme-secondary);
    border-color: var(--theme-secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
    color: white;
}

.bg-primary {
    background-color: var(--theme-primary) !important;
}

.bg-secondary {
    background-color: var(--theme-secondary) !important;
}

.text-primary {
    color: var(--theme-primary) !important;
}

.text-secondary {
    color: var(--theme-secondary) !important;
}

.alert-primary {
    background-color: rgba(var(--theme-primary-rgb), 0.1);
    border-color: rgba(var(--theme-primary-rgb), 0.2);
    color: var(--theme-primary-dark);
}

.progress-bar {
    background-color: var(--theme-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-primary-rgb), 0.25);
}

.form-check-input:checked {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

a {
    color: var(--theme-primary);
}

a:hover {
    color: var(--theme-primary-dark);
}

/* Base */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

main {
    flex: 1;
}

/* Header/Navigation */
#header {
    z-index: 1000;
}

#header .navbar {
    padding: 1rem 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

#header .navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
}

#header .nav-link {
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

#header .nav-link.active {
    color: var(--theme-primary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--hero-right-color, var(--theme-secondary)) 100%);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    --hero-overlay-opacity: 0;
}

.hero-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(var(--theme-accent-rgb),0.15) 100%);
    opacity: var(--hero-overlay-opacity);
    transition: opacity 2s ease-out;
}

.hero-line {
    position: absolute;
    top: 18%;
    left: 50%;
    width: 2px;
    height: 64%;
    transform: rotate(6deg);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-round);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-hero-primary {
    background: white;
    color: var(--theme-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--theme-primary);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--theme-bg-primary);
}

.section-dark {
    background: var(--theme-bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-sm);
    color: var(--theme-text-primary);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--theme-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    background: var(--theme-bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid var(--theme-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.1), rgba(var(--theme-secondary-rgb), 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon i {
    font-size: 1.5rem;
    background: var(--theme-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--theme-text-primary);
}

.feature-card p {
    color: var(--theme-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.feature-card .btn {
    font-weight: var(--font-weight-medium);
}

/* Stats Bar */
.stats-bar {
    background: var(--theme-bg-primary);
    padding: var(--spacing-xl);
    margin-top: -50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    background: var(--theme-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--theme-text-secondary);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--theme-gradient-primary);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
#footer {
    background: #1e293b;
    color: #94a3b8;
    padding: var(--spacing-xl) 0;
}

#footer h5 {
    color: white;
    font-weight: var(--font-weight-semibold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .stats-bar {
        margin-top: -30px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Utility classes */
.text-gradient {
    background: var(--theme-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
