/* ==========================================================================
   Design System & Theme Variables
   ========================================================================== */
:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(22, 30, 49, 0.75);
    --bg-card-hover: rgba(30, 42, 69, 0.85);
    --bg-input: #121929;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(56, 189, 248, 0.3);
    
    --primary: #38bdf8;
    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-purple: #a855f7;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   Base & Reset Rules
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Glow Effects */
.background-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    width: 450px;
    height: 450px;
    background: rgba(56, 189, 248, 0.12);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.12);
    bottom: -100px;
    right: -100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.app-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-title span {
    color: var(--primary);
}

.brand-subtitle {
    font-size: 0.825rem;
    color: var(--text-muted);
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.825rem;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 40px 0 20px 0;
    text-align: center;
}

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

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0 40px 0;
    background: rgba(18, 25, 41, 0.6);
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.tab-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   Tab Contents General
   ========================================================================== */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

.section-header {
    margin-bottom: 28px;
}

.section-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.section-header p {
    color: var(--text-muted);
}

/* ==========================================================================
   Path Cards (Tab 1: Roadmaps)
   ========================================================================== */
.path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.path-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.path-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: var(--border-color-glow);
}

.path-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
    background: rgba(30, 42, 69, 0.9);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
}

.card-badge.popular {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.path-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.path-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.skill-tags span {
    font-size: 0.775rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.card-footer .label {
    color: var(--text-dim);
    display: block;
    font-size: 0.75rem;
}

/* Roadmap Detail View */
.roadmap-detail-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-top: 20px;
    backdrop-filter: blur(12px);
}

.roadmap-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 28px;
}

.roadmap-detail-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.roadmap-steps-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.roadmap-step-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.roadmap-step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 45px;
    bottom: -24px;
    width: 2px;
    background: var(--border-color);
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content {
    background: rgba(18, 25, 41, 0.5);
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    flex-grow: 1;
}

.step-content h5 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.step-resources {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.resource-chip {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 50px;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Calculator Section (Tab 2)
   ========================================================================== */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }
}

.calc-form-card, .calc-results-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
}

.calc-form-card h3, .calc-results-card h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.form-group label i {
    color: var(--primary);
    margin-right: 6px;
}

select, input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

select:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.range-display {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.metric-box {
    background: rgba(18, 25, 41, 0.6);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.metric-box.highlighted {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
}

.metric-title {
    font-size: 0.775rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.metric-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.milestone-timeline h5 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.milestone-timeline ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.milestone-timeline li {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.milestone-timeline li i {
    color: var(--accent-emerald);
}

/* ==========================================================================
   Projects Section (Tab 3)
   ========================================================================== */
.project-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-glow);
}

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

.project-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.project-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

.project-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
}

.project-specs {
    margin-bottom: 20px;
    font-size: 0.85rem;
    background: rgba(18, 25, 41, 0.5);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.project-specs div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.project-specs div:last-child {
    margin-bottom: 0;
}

.project-specs span {
    color: var(--text-dim);
}

/* ==========================================================================
   Action Tracker Section (Tab 4)
   ========================================================================== */
.tracker-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.progress-box {
    min-width: 250px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.progress-bar-bg {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.4s ease;
}

.tracker-weeks {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.week-block {
    background: rgba(18, 25, 41, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.week-block h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: var(--transition);
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
}

.task-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.task-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.task-item span {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
    margin-top: 60px;
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Responsive adjust */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .metric-grid {
        grid-template-columns: 1fr;
    }
}
