:root {
    --bg-main: #0c1017;
    --bg-surface: #141b26;
    --bg-elevated: #1c2638;
    --bg-hover: rgba(56, 189, 248, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.3);
    
    --accent-cyan: #38bdf8;
    --accent-indigo: #818cf8;
    --accent-teal: #2dd4bf;
    --accent-emerald: #34d399;
    --accent-amber: #fbbf24;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-elevated: #f1f5f9;
    --bg-hover: rgba(2, 132, 199, 0.05);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(2, 132, 199, 0.3);

    --accent-cyan: #0284c7;
    --accent-indigo: #4f46e5;
    --accent-teal: #0d9488;
    --accent-emerald: #059669;
    --accent-amber: #d97706;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.05);
}

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

body, html {
    width: 100%;
    height: 100%;
    font-family: var(--font-heading);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    padding: 0 3rem;
    background: rgba(12, 16, 23, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    transition: var(--transition);
}

[data-theme="light"] header {
    background: rgba(248, 250, 252, 0.85);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}
.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}
.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand-text span {
    color: var(--accent-cyan);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--bg-hover);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    padding: 10rem 3rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 820px;
    pointer-events: none;
}
.hero-content * {
    pointer-events: auto;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 30px;
    color: var(--accent-cyan);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--text-main) 40%, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.2rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
    transition: var(--transition);
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
    padding: 14px 28px;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
}
.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Server Dashboard Section */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}

.section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Dashboard Cards (4 Cards) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 2.4rem; }
}

.dash-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dash-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3);
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.dash-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
}

.dash-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.dash-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-mono);
}
.dash-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 6px;
}

/* Projects Showcase Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.project-banner {
    height: 180px;
    background: var(--bg-elevated);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.big-card-icon {
    width: 72px !important;
    height: 72px !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}
.project-card:hover .big-card-icon {
    transform: scale(1.2) rotate(4deg);
}

.project-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: center;
}
.project-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.btn-launch-big {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.35);
    transition: var(--transition);
    cursor: pointer;
}
.btn-launch-big.btn-indigo {
    background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
    box-shadow: 0 8px 22px rgba(129, 140, 248, 0.35);
}
.btn-launch-big.btn-teal {
    background: linear-gradient(135deg, var(--accent-teal), #0d9488);
    box-shadow: 0 8px 22px rgba(45, 212, 191, 0.35);
}

.btn-launch-big:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.5);
}
.btn-launch-big.btn-indigo:hover {
    box-shadow: 0 14px 30px rgba(129, 140, 248, 0.5);
}
.btn-launch-big.btn-teal:hover {
    box-shadow: 0 14px 30px rgba(45, 212, 191, 0.5);
}

/* Footer */
footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 0.9rem;
    background: var(--bg-surface);
}
