:root {
    /* VitaTrack Theme Colors */
    --primary-bg: #020617;
    /* slate-950 */
    --accent-color: #10b981;
    /* emerald-500 */
    --secondary-accent: #6366f1;
    /* indigo-500 */
    --text-color: #e2e8f0;
    /* slate-200 */
    --glass-bg: rgba(15, 23, 42, 0.6);
    /* slate-900/60 */
    --glass-border: rgba(51, 65, 85, 0.5);
    /* slate-700/50 */
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(2, 6, 23, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Dark gradient background */
    background: radial-gradient(circle at top left, #1e1b4b, #020617);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
    /* Lower opacity for particles in dark mode */
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: #94a3b8;
    /* slate-400 */
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-color);
}

/* Main Content Area */
main {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

section {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

section.active-section {
    opacity: 1;
    pointer-events: all;
    position: relative;
}

/* Hero Section */
.hero-content {
    text-align: center;
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(45deg, #34d399, #10b981);
    /* Emerald gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-btns {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.secondary-btn {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Yoga App Section */
.app-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

#webcam-container {
    width: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
}

canvas {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Breathing Section */
.breathing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.circle-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Darker breathing circle */
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(6, 78, 59, 0.1) 70%);
    transform: scale(0.5);
    transition: transform 4s ease-in-out;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.circle.inhale {
    transform: scale(1);
}

.circle.exhale {
    transform: scale(0.5);
}

.instruction-text {
    z-index: 10;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.timer {
    font-size: 1.5rem;
    color: #34d399;
}

/* Transitions */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    z-index: 200;
    transform: translateY(100%);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .glass-nav {
        padding: 1rem;
    }
}

/* Prediction Labels */
.label-item {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.label-item span:first-child {
    font-weight: 500;
    text-transform: capitalize;
}

.label-item .prob {
    font-family: monospace;
    color: #94a3b8;
}

.label-item.active {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
    transform: translateX(5px);
}

.label-item.active .prob {
    color: var(--accent-color);
    font-weight: bold;
}