/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================================================== */
:root {
    --bg-color: #08090c;
    --card-bg: rgba(15, 17, 26, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f3f9;
    --text-secondary: #94a3b8;
    
    /* Elegant Gradients & Accents */
    --primary: #4f46e5;       /* Indigo Glow */
    --primary-glow: rgba(79, 70, 229, 0.4);
    --accent: #d946ef;        /* Violet Accent */
    --accent-glow: rgba(217, 70, 239, 0.3);
    
    --success: #10b981;
    --warning: #f59e0b;
    --info: #06b6d4;

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

/* ==========================================================================
   RESET & GLOBAL BASICS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient glow blobs in the background */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.bg-glow-1 {
    background: var(--primary);
    top: -100px;
    left: -200px;
}

.bg-glow-2 {
    background: var(--accent);
    bottom: -150px;
    right: -200px;
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 80px) scale(1.1); }
}

/* ==========================================================================
   REUSABLE UTILITIES & CLASSES
   ========================================================================== */
.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2e8f0;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    border: none;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: sticky;
    top: 20px;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    z-index: 1000;
    border-radius: 50px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 120px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 70vh;
}

.hero-content {
    max-width: 800px;
}

.badge-container {
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   TAB / CONTENT SHOWCASE
   ========================================================================== */
.tab-container {
    padding: 40px;
    margin-bottom: 60px;
}

.tab-headers {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary), rgba(79, 70, 229, 0.6));
    box-shadow: 0 4px 15px var(--primary-glow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

.copy-display {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.copy-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 16px;
}

.copy-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.copy-body {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: pre-line;
}

.copy-stats {
    display: flex;
    gap: 16px;
}

.stat-badge {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: #c7d2fe;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DATA ANALYTICS DASHBOARD
   ========================================================================== */
.data-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.metric-trend {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-trend.green {
    color: var(--success);
}

.status-glow {
    color: var(--success);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Dashboard Panel Layout */
.dashboard-workspace {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    padding: 40px;
    margin-bottom: 60px;
}

.dashboard-sidebar {
    border-right: 1px solid var(--border-color);
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.sidebar-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-buttons .btn {
    width: 100%;
}

.data-toggle-container h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-select:focus {
    border-color: var(--primary);
}

.dashboard-graph-area {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.graph-header h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.graph-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.bg-blue {
    background-color: var(--info);
}

/* SVG Chart styles */
.chart-container {
    width: 100%;
    height: 380px;
    position: relative;
}

.svg-chart {
    width: 100%;
    height: 100%;
}

.chart-bar {
    fill: url(#bar-gradient);
    transition: height 0.5s ease-out, y 0.5s ease-out;
    cursor: pointer;
}

.chart-bar:hover {
    fill: url(#bar-gradient-hover);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.chart-grid-line {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.chart-axis {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

.chart-label {
    fill: var(--text-secondary);
    font-size: 11px;
    font-family: var(--font-body);
}

.chart-label-value {
    fill: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
}

/* ==========================================================================
   DATA COMPARISON VIEW
   ========================================================================== */
.comparison-container {
    padding: 40px;
}

.comparison-header {
    margin-bottom: 24px;
}

.comparison-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.comparison-panel {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.comparison-panel h4 {
    margin-bottom: 16px;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.code-box {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    overflow-x: auto;
}

.green-border {
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.arrow-indicator {
    font-size: 2rem;
    color: var(--primary);
}

/* ==========================================================================
   CONTACT & FOOTER
   ========================================================================== */
.contact-section {
    text-align: center;
}

.contact-card {
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.contact-details p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN RULES
   ========================================================================== */
@media (max-width: 900px) {
    .navbar {
        width: 100%;
        border-radius: 0;
        top: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .dashboard-workspace {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 40px;
    }

    .comparison-body {
        grid-template-columns: 1fr;
    }

    .arrow-indicator {
        transform: rotate(90deg);
        margin: 10px auto;
    }
}
