/* ========================================
   DevOps Mastery — Global Styles
   ======================================== */

:root {
    /* Colors - Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-code: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-primary-hover: #4f46e5;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #10b981 100%);
    --accent-gradient-text: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);

    /* Topic Colors */
    --color-linux: #fbbf24;
    --color-git: #f97316;
    --color-docker: #2496ed;
    --color-kubernetes: #326ce5;
    --color-aws: #ff9900;
    --color-terraform: #7c3aed;
    --color-ansible: #ef4444;
    --color-cicd: #10b981;
    --color-monitoring: #f59e0b;
    --color-networking: #06b6d4;

    /* Level Colors */
    --color-beginner: #10b981;
    --color-intermediate: #f59e0b;
    --color-expert: #ef4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    /* Spacing */
    --nav-height: 70px;
    --container-max: 1280px;
    --container-padding: 2rem;
    --section-padding: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #1e293b;
    --bg-card: #1e293b;
    --bg-code: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --border-light: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

code {
    font-family: var(--font-mono);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.nav-logo i {
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 0.65rem;
    margin-left: 0.25rem;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-primary);
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 0.5rem;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) var(--container-padding) 4rem;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-icons {
    position: absolute;
    inset: 0;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    color: var(--accent-primary);
    opacity: 0.06;
    animation: floatIcon 20s infinite linear;
}

.floating-icons i:nth-child(1) { top: 15%; left: 5%; animation-delay: 0s; font-size: 2.5rem; }
.floating-icons i:nth-child(2) { top: 25%; right: 10%; animation-delay: -3s; font-size: 3rem; }
.floating-icons i:nth-child(3) { top: 60%; left: 10%; animation-delay: -5s; font-size: 2rem; }
.floating-icons i:nth-child(4) { top: 40%; right: 5%; animation-delay: -7s; font-size: 2.8rem; }
.floating-icons i:nth-child(5) { bottom: 20%; left: 20%; animation-delay: -2s; font-size: 3.2rem; }
.floating-icons i:nth-child(6) { top: 10%; left: 40%; animation-delay: -9s; font-size: 2rem; }
.floating-icons i:nth-child(7) { bottom: 30%; right: 25%; animation-delay: -4s; font-size: 2.5rem; }
.floating-icons i:nth-child(8) { top: 50%; left: 30%; animation-delay: -11s; font-size: 2rem; }
.floating-icons i:nth-child(9) { bottom: 15%; left: 50%; animation-delay: -6s; font-size: 2.8rem; }
.floating-icons i:nth-child(10) { top: 35%; right: 35%; animation-delay: -8s; font-size: 2.2rem; }

@keyframes floatIcon {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
    25% { opacity: 0.1; }
    50% { transform: translateY(-40px) rotate(15deg); opacity: 0.06; }
    75% { opacity: 0.1; }
    100% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 850px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

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

/* ========================================
   Topics Grid
   ======================================== */
.topics-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.25rem;
}

.topic-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.topic-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.topic-icon.linux { background: rgba(251, 191, 36, 0.12); color: var(--color-linux); }
.topic-icon.git { background: rgba(249, 115, 22, 0.12); color: var(--color-git); }
.topic-icon.docker { background: rgba(36, 150, 237, 0.12); color: var(--color-docker); }
.topic-icon.kubernetes { background: rgba(50, 108, 229, 0.12); color: var(--color-kubernetes); }
.topic-icon.aws { background: rgba(255, 153, 0, 0.12); color: var(--color-aws); }
.topic-icon.terraform { background: rgba(124, 58, 237, 0.12); color: var(--color-terraform); }
.topic-icon.ansible { background: rgba(239, 68, 68, 0.12); color: var(--color-ansible); }
.topic-icon.cicd { background: rgba(16, 185, 129, 0.12); color: var(--color-cicd); }
.topic-icon.monitoring { background: rgba(245, 158, 11, 0.12); color: var(--color-monitoring); }
.topic-icon.networking { background: rgba(6, 182, 212, 0.12); color: var(--color-networking); }

.topic-content {
    flex: 1;
}

.topic-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.topic-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.topic-tags {
    display: flex;
    gap: 0.4rem;
}

.tag {
    padding: 0.15rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag.beginner { background: rgba(16, 185, 129, 0.1); color: var(--color-beginner); }
.tag.intermediate { background: rgba(245, 158, 11, 0.1); color: var(--color-intermediate); }
.tag.expert { background: rgba(239, 68, 68, 0.1); color: var(--color-expert); }

.topic-arrow {
    color: var(--text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.topic-card:hover .topic-arrow {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* ========================================
   Learning Path Timeline
   ======================================== */
.learning-path-section {
    padding: var(--section-padding) 0;
}

.path-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.path-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

.path-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.path-item:last-child {
    margin-bottom: 0;
}

.path-marker {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 4px solid var(--bg-primary);
}

.beginner-marker { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.intermediate-marker { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.advanced-marker { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }

.path-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    flex: 1;
    transition: all var(--transition-base);
}

.path-content:hover {
    box-shadow: var(--shadow-md);
}

.path-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.path-content > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.path-content ul {
    display: grid;
    gap: 0.5rem;
}

.path-content li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.path-content li::before {
    content: '▹';
    color: var(--accent-primary);
    font-weight: bold;
}

/* ========================================
   Code Showcase
   ======================================== */
.code-showcase {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.code-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 0;
    border-bottom: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 0.5rem 0.5rem 0;
}

.tab-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.tab-btn.active {
    color: var(--accent-primary);
    background: var(--bg-code);
}

[data-theme="dark"] .tab-btn.active {
    background: var(--bg-code);
    color: #e2e8f0;
}

.tab-panels {
    background: var(--bg-code);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.tab-panel {
    display: none;
}

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

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-filename {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.code-block {
    padding: 1.25rem 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.75;
    color: #e2e8f0;
}

.code-block code {
    font-family: inherit;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: var(--section-padding) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content .section-tag {
    display: inline-flex;
    margin-bottom: 1rem;
}

.about-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.about-content > p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-item i {
    color: var(--color-beginner);
    font-size: 0.85rem;
}

/* DevOps Loop Visual */
.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.devops-loop {
    position: relative;
    width: 340px;
    height: 340px;
}

.loop-item {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.loop-item:hover {
    transform: scale(1.15);
}

.loop-item.plan    { top: 0%; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #6366f1, #4f46e5); }
.loop-item.code    { top: 12%; right: 5%; background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.loop-item.build   { top: 40%; right: -5%; background: linear-gradient(135deg, #06b6d4, #0891b2); }
.loop-item.test    { bottom: 12%; right: 5%; background: linear-gradient(135deg, #10b981, #059669); }
.loop-item.release { bottom: 0%; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #f59e0b, #d97706); }
.loop-item.deploy  { bottom: 12%; left: 5%; background: linear-gradient(135deg, #f97316, #ea580c); }
.loop-item.operate { top: 40%; left: -5%; background: linear-gradient(135deg, #ef4444, #dc2626); }
.loop-item.monitor { top: 12%; left: 5%; background: linear-gradient(135deg, #ec4899, #db2777); }

.loop-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.loop-center i {
    font-size: 1.8rem;
    margin-bottom: 0.15rem;
}

.loop-center span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-logo i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
}

/* ========================================
   Content Page Styles
   ======================================== */
.content-page {
    padding-top: var(--nav-height);
}

.page-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.page-hero .breadcrumb a {
    color: var(--accent-primary);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

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

.page-hero .hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    padding: 3rem 0 6rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Sidebar */
.content-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    height: fit-content;
    max-height: calc(100vh - var(--nav-height) - 4rem);
    overflow-y: auto;
    padding-right: 1rem;
}

.sidebar-nav h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

.sidebar-nav ul {
    margin-bottom: 1.5rem;
}

.sidebar-nav li a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all var(--transition-fast);
}

.sidebar-nav li a:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.sidebar-nav li a.active {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
    font-weight: 600;
}

/* Content Main */
.content-main {
    min-width: 0;
}

.content-main h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.content-main h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.content-main h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content-main h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-main p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-main ul, .content-main ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-main ul {
    list-style: disc;
}

.content-main ol {
    list-style: decimal;
}

.content-main li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.content-main strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-main pre {
    background: var(--bg-code);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.75;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-main code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-tertiary);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--accent-primary);
}

.content-main pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Info boxes */
.info-box {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.info-box.tip {
    background: rgba(16, 185, 129, 0.06);
    border-color: var(--color-beginner);
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.06);
    border-color: var(--color-intermediate);
}

.info-box.note {
    background: rgba(99, 102, 241, 0.06);
    border-color: var(--accent-primary);
}

.info-box .info-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.info-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Level badge in content */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.level-badge.beginner { background: rgba(16, 185, 129, 0.1); color: var(--color-beginner); }
.level-badge.intermediate { background: rgba(245, 158, 11, 0.1); color: var(--color-intermediate); }
.level-badge.advanced { background: rgba(239, 68, 68, 0.1); color: var(--color-expert); }

/* Table */
.content-main table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.content-main th, .content-main td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.content-main th {
    font-weight: 700;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.content-main td {
    color: var(--text-secondary);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .content-sidebar {
        position: static;
        max-height: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
        --section-padding: 4rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: transparent;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        overflow-x: auto;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .devops-loop {
        width: 280px;
        height: 280px;
    }

    .loop-item {
        width: 60px;
        height: 60px;
        font-size: 0.62rem;
    }

    .loop-center {
        width: 80px;
        height: 80px;
    }

    .loop-center i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Page transition nav indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar, .footer, .theme-toggle, .hero-bg-animation {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
