/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 212, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --accent-primary: #0284c7;
    --accent-secondary: #7c3aed;
    --accent-green: #059669;
    --accent-orange: #d97706;
    --accent-red: #dc2626;
    --accent-gradient: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(2, 132, 199, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
}

[data-theme="light"] body::after {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(5, 150, 105, 0.06) 0%, transparent 50%);
}

[data-theme="light"] .navbar {
    background: rgba(240, 244, 248, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hamburger span {
    background: var(--text-primary);
}

[data-theme="light"] .terminal-window {
    background: #1e1e2e;
}

[data-theme="light"] .network-lines .network-line {
    stroke: rgba(2, 132, 199, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    animation: grid-move 60s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(1000px) rotateX(0deg); }
    100% { transform: perspective(1000px) rotateX(2deg); }
}

/* Floating code particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Background floating elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-element {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(0, 212, 255, 0.06);
    animation: float-element 20s infinite;
    white-space: nowrap;
}

.bg-element:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.bg-element:nth-child(2) { top: 20%; right: 10%; animation-delay: 2s; }
.bg-element:nth-child(3) { top: 40%; left: 15%; animation-delay: 4s; }
.bg-element:nth-child(4) { top: 60%; right: 5%; animation-delay: 6s; }
.bg-element:nth-child(5) { top: 80%; left: 25%; animation-delay: 8s; }
.bg-element:nth-child(6) { top: 15%; left: 50%; animation-delay: 10s; }
.bg-element:nth-child(7) { top: 50%; right: 20%; animation-delay: 12s; }
.bg-element:nth-child(8) { top: 70%; left: 60%; animation-delay: 14s; }
.bg-element:nth-child(9) { top: 30%; left: 70%; animation-delay: 16s; }
.bg-element:nth-child(10) { top: 90%; right: 30%; animation-delay: 18s; }

@keyframes float-element {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { 
        transform: translateY(-30px) translateX(20px) rotate(5deg);
    }
}

/* Network nodes background */
.network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.network-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: node-pulse 4s infinite;
}

.network-node:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.network-node:nth-child(2) { top: 25%; left: 60%; animation-delay: 0.5s; }
.network-node:nth-child(3) { top: 40%; left: 80%; animation-delay: 1s; }
.network-node:nth-child(4) { top: 55%; left: 30%; animation-delay: 1.5s; }
.network-node:nth-child(5) { top: 70%; left: 70%; animation-delay: 2s; }
.network-node:nth-child(6) { top: 85%; left: 40%; animation-delay: 2.5s; }
.network-node:nth-child(7) { top: 35%; left: 10%; animation-delay: 3s; }
.network-node:nth-child(8) { top: 60%; left: 90%; animation-delay: 3.5s; }

@keyframes node-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
        box-shadow: none;
    }
    50% { 
        transform: scale(2);
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
}

/* SVG network lines */
.network-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.network-line {
    stroke: rgba(0, 212, 255, 0.1);
    stroke-width: 1;
    stroke-dasharray: 5, 10;
    animation: line-flow 10s linear infinite;
}

@keyframes line-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -30; }
}

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

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--text-primary);
}

ul {
    list-style: none;
}

/* ===== TERMINAL WINDOW STYLES ===== */
.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: var(--accent-red); }
.terminal-dot.yellow { background: var(--accent-orange); }
.terminal-dot.green { background: var(--accent-green); }

.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.terminal-body {
    padding: 16px;
    color: #cdd6f4;
    line-height: 1.8;
}

.terminal-prompt {
    color: #a6e3a1;
}

.terminal-command {
    color: #cdd6f4;
}

.terminal-output {
    color: #a6adc8;
}

.terminal-success {
    color: #a6e3a1;
}

.terminal-error {
    color: #f38ba8;
}

.terminal-info {
    color: #89dceb;
}

/* ===== TYPING ANIMATION ===== */
.typing-animation::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== PIPELINE ANIMATION ===== */
.pipeline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pipeline-stage {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    text-align: center;
    min-width: 120px;
    position: relative;
    transition: all var(--transition);
}

.pipeline-stage:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.pipeline-stage .stage-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pipeline-stage .stage-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.pipeline-stage .stage-status {
    font-size: 0.75rem;
    color: var(--accent-green);
    margin-top: 4px;
}

.pipeline-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    animation: pipeline-flow 2s infinite;
}

@keyframes pipeline-flow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* ===== CODE SNIPPET STYLES ===== */
.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.code-lang {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.code-content {
    padding: 16px;
    overflow-x: auto;
    line-height: 1.6;
}

.code-keyword { color: var(--accent-secondary); }
.code-string { color: var(--accent-green); }
.code-function { color: var(--accent-primary); }
.code-comment { color: var(--text-muted); font-style: italic; }
.code-number { color: var(--accent-orange); }

/* ===== DOCKER CONTAINER STYLES ===== */
.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.docker-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-green);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: all var(--transition);
}

.docker-container:hover {
    border-left-color: var(--accent-primary);
    transform: translateX(4px);
}

.docker-container.running {
    border-left-color: var(--accent-green);
}

.docker-container.building {
    border-left-color: var(--accent-orange);
}

.docker-container.error {
    border-left-color: var(--accent-red);
}

.container-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.container-icon {
    width: 20px;
    height: 20px;
    fill: var(--accent-primary);
}

.container-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.container-status {
    font-size: 0.75rem;
    color: var(--accent-green);
}

/* ===== CLOUD INFRASTRUCTURE VISUAL ===== */
.infra-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 0;
}

.infra-layer {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.infra-node {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    min-width: 150px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.infra-node:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.infra-node .node-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.infra-node .node-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.infra-node .node-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.infra-connection {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-primary), transparent);
}

/* ===== STATUS INDICATORS ===== */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.green {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse-green 2s infinite;
}

.status-dot.yellow {
    background: var(--accent-orange);
    box-shadow: 0 0 8px var(--accent-orange);
}

.status-dot.red {
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== METRICS CARDS ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
}

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

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== SECTION TITLES WITH DEVOPS FLAIR ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}


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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links-main {
    display: flex;
    gap: 4px;
}

.nav-links-main a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-family: var(--font-mono);
}

.nav-links-main a:hover,
.nav-links-main a.active {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Dropdown Menu styling */
.nav-dropdown {
    position: absolute;
    top: calc(100% - 6px);
    right: 24px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 999;
}

.nav-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.nav-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-dropdown .mobile-only-links {
    display: none;
}

.nav-dropdown .desktop-only-links {
    display: flex;
    flex-direction: column;
}

.nav-dropdown ul li a {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 10px 20px;
    transition: all var(--transition);
    font-family: var(--font-mono);
    text-decoration: none;
}

.nav-dropdown ul li a:hover,
.nav-dropdown ul li a.active {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.08);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: all var(--transition);
}

/* Default (dark mode): show sun, hide moon */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none;  }

/* Light mode: show moon, hide sun */
[data-theme="light"] .theme-toggle .icon-sun  { display: none;  }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

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

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

/* Animated background code */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(0, 212, 255, 0.02) 40px,
            rgba(0, 212, 255, 0.02) 41px
        );
    animation: code-scroll 20s linear infinite;
    pointer-events: none;
}

@keyframes code-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(41px); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.hero-badge .status-dot {
    animation: pulse-green 2s infinite;
}

.hero-title {
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

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

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin: 1.5rem 0;
    min-height: 1.6em;
}

.hero-tagline {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: fill var(--transition);
}

.social-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.social-link:hover svg {
    fill: var(--accent-primary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    font-family: var(--font-main);
    font-family: var(--font-mono);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
    color: #000;
}

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

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

.btn-resume {
    background: transparent;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    gap: 8px;
}

.btn-resume svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.btn-resume:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.btn-resume:hover svg {
    transform: translateY(2px);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start;
}

.about-visual {
    position: sticky;
    top: 100px;
}

.about-terminal {
    margin-bottom: 24px;
}

.terminal-line {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.terminal-output {
    color: #a6adc8;
    margin-bottom: 12px;
    padding-left: 8px;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--transition);
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* About Content */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-intro {
    position: relative;
}

.intro-badge {
    display: inline-block;
    margin-bottom: 16px;
}

.intro-badge .tag {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.about-intro h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
    line-height: 1.3;
}

.about-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Detail Cards */
.about-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition);
}

.detail-card:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-primary);
}

.detail-content h4 {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.detail-content p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Philosophy */
.about-philosophy {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-top: 24px;
}

.philosophy-text {
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-icon.end {
    display: block;
    text-align: right;
    margin-top: -10px;
}

.philosophy-text p {
    font-size: 1.05rem;
    font-style: italic;
    margin: 0;
    line-height: 1.8;
}

/* Experience Placeholder */
.experience-placeholder {
    margin-top: 16px;
}

.placeholder-terminal {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    padding: 80px 0;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.skill-card {
    flex: 1 1 300px;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.skill-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-primary);
}

.skill-card h3 {
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.skill-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.skill-card:hover .skill-tag {
    border-color: rgba(0, 212, 255, 0.15);
    background: rgba(0, 212, 255, 0.02);
    color: var(--text-primary);
}

.skill-rating {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-rating.advanced {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.skill-rating.production {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.skill-rating.hands-on {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    padding: 80px 0;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

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

.timeline-dot {
    position: absolute;
    left: 7px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--bg-card);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.experience-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.experience-title h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.experience-body > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.mini-terminal {
    margin-top: 16px;
    border-radius: var(--radius-md);
}

.mini-terminal .terminal-body {
    padding: 12px 16px;
    font-size: 0.8rem;
}

.mini-terminal ul {
    margin-top: 8px;
    padding-left: 0;
}

.mini-terminal li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    color: #cdd6f4;
}

.mini-terminal li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #89dceb;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 80px 0;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-mono);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 620px;
}

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

.project-card.hidden {
    display: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    gap: 12px;
    height: 72px; /* Fixed height for consistency */
}

.project-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-primary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 500;
}

.project-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    font-family: var(--font-mono);
    height: 56px; /* Fixed height for aligned titles */
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

.project-card > p {
    font-size: 0.85rem;
    margin-bottom: 16px;
    color: var(--text-secondary);
    flex: 0 0 auto;
    height: 64px; /* Fixed height for aligned descriptions */
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.project-features {
    margin-bottom: 16px;
    height: 140px; /* Fixed height for aligned feature sections */
}

.project-devops {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.project-features h4,
.project-devops h4 {
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.project-features ul,
.project-devops ul {
    padding-left: 0;
}

.project-features li,
.project-devops li {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 2px 0;
    padding-left: 14px;
    position: relative;
    font-family: var(--font-mono);
}

.project-features li::before,
.project-devops li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ===== MONITORING & RELIABILITY SECTION ===== */
.monitoring-section {
    padding: 80px 0;
}

.reliability-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.reliability-card {
    flex: 1 1 300px;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.reliability-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.reliability-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.reliability-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== PRODUCTION CHALLENGES SOLVED ===== */
.challenges-section {
    padding: 80px 0;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.challenge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.challenge-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.challenge-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.challenge-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.challenge-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.challenge-status.resolved {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-top: auto;
}

/* ===== EDUCATION & CERTIFICATIONS ===== */
.education-section {
    padding: 80px 0;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.education-card, .certification-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.education-card:hover, .certification-card:hover {
    border-color: var(--border-hover);
}

.education-card .card-icon, .certification-card .card-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.education-card h3, .certification-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.education-card h4 {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 500;
    margin-bottom: 16px;
}

.education-card .gpa {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-green);
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

.education-card .date-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.cert-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cert-bullet {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cert-list h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.cert-list p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ===== PROJECT LINKS & BUTTONS ===== */
.project-links {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-family: var(--font-mono);
    transition: all var(--transition);
}

.btn-project:hover {
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.btn-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ===== REAL DEPLOYMENTS ===== */
.deployments-section {
    padding: 80px 0;
}

.deployment-card-real {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
}

.deployment-card-real:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.deploy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.deploy-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.deploy-dot.running {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.deploy-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-mono);
}

.deploy-stack {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.deploy-stack li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-family: var(--font-mono);
    line-height: 1.5;
}

.deploy-stack li span {
    color: var(--accent-primary);
    font-weight: 500;
}

.deploy-link {
    align-self: flex-start;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    transition: color var(--transition);
}

.deploy-link:hover {
    color: var(--accent-primary);
}

/* ===== ARCHITECTURE GALLERY ===== */
.architecture-gallery-section {
    padding: 80px 0;
}

.architecture-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.arch-tab-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-mono);
}

.arch-tab-btn:hover,
.arch-tab-btn.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.architecture-content {
    position: relative;
}

.arch-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.arch-pane.active {
    display: block;
}

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

.diagram-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.diagram-description {
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 16px;
}

.diagram-description h4 {
    font-size: 1.05rem;
    color: var(--accent-primary);
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.diagram-description p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.diagram-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .diagram-canvas {
    background: rgba(0, 0, 0, 0.03);
}

.diag-node {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    transition: all var(--transition);
}

.diag-node:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.diag-node .node-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.diag-node.aws {
    border-color: rgba(245, 158, 11, 0.4);
}

.diag-node.aws:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.diag-node.lambda {
    border-color: rgba(124, 58, 237, 0.4);
}

.diag-node.lambda:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.diag-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-muted);
}

.diag-arrow span {
    font-size: 0.65rem;
    margin-bottom: 2px;
}

.diag-split-arrows {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.diag-split-arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
}

.diag-split-arrow span {
    font-size: 0.65rem;
}

.diag-servers-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.diag-loop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding-left: 16px;
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
}

.diag-arrow-down, .diag-arrow-up {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diag-arrow-down span, .diag-arrow-up span {
    font-size: 0.65rem;
}

.diag-split-arrows-three {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.diag-path {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
}

.diag-path span {
    font-size: 0.65rem;
}

.diag-container-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diag-node.docker-node {
    border-color: rgba(14, 165, 233, 0.4);
}

.diag-node.docker-node:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.diag-node.model-yolo {
    border-color: rgba(16, 185, 129, 0.4);
}

.diag-node.model-yolo:hover {
    border-color: var(--accent-green);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.diag-node.model-cnn {
    border-color: rgba(236, 72, 153, 0.4);
}

.diag-node.model-cnn:hover {
    border-color: #ec4899;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}

.diag-node.model-unet {
    border-color: rgba(168, 85, 247, 0.4);
}

.diag-node.model-unet:hover {
    border-color: #a855f7;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}


.diag-side-channel {
    display: flex;
    align-items: center;
    gap: 8px;
}

.diag-arrow-right {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* ===== DEPLOYMENT OPERATIONS ===== */
.deployment-experience-section {
    padding: 80px 0;
}

.deployment-experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.dep-exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.dep-exp-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.dep-exp-card h4 {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.dep-exp-card ul {
    list-style: none;
    padding: 0;
}

.dep-exp-card ul li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 12px;
    position: relative;
    font-family: var(--font-mono);
}

.dep-exp-card ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ===== KEY ACHIEVEMENTS ===== */
.achievements-section {
    padding: 80px 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    transition: all var(--transition);
}

.achievement-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.achievement-number {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    line-height: 1.1;
    font-family: var(--font-mono);
}

.achievement-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== AVAILABLE FOR BLOCK ===== */
.available-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.available-block h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.available-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avail-tag {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.15);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    max-width: var(--container);
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition);
}

.contact-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-primary);
}

.contact-details h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.contact-details a {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    word-break: break-all;
}

.contact-form-placeholder {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-form-placeholder .placeholder-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-form-placeholder .placeholder-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--accent-primary);
}

.contact-form-placeholder p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.contact-form-placeholder .small {
    font-size: 0.8rem;
    margin-top: 8px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Side-by-side row for name + mobile */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-mono);
    outline: none;
    resize: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Light theme overrides */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #ffffff;
    color: var(--text-primary);
}

/* Phone number row */
.phone-group {
    display: flex;
    gap: 8px;
}

.country-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 11px 10px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-mono);
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    width: 90px;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 22px;
}

.country-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.country-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.phone-group input {
    flex: 1;
}

[data-theme="light"] .country-select {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.btn-submit {
    width: 100%;
    gap: 10px;
    justify-content: center;
    padding: 13px 28px;
    margin-top: 4px;
}

.btn-submit .send-icon {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.btn-submit:hover .send-icon {
    transform: translateX(3px) translateY(-3px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Status messages */
.form-status {
    display: none;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    text-align: center;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

/* Mobile: stack name/mobile */
@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 20px 16px;
    }
    .stat-card {
        padding: 16px 12px;
    }
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    font-family: var(--font-mono);
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: color var(--transition);
    font-family: var(--font-mono);
}

.back-to-top:hover {
    color: var(--accent-primary);
}

.back-to-top svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .projects-grid,
    .deployment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links-main {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar nav {
        position: relative;
    }

    /* Toggle always left, hamburger always right on mobile */
    .theme-toggle {
        order: -1;
    }

    .hamburger {
        order: 1;
    }

    .nav-dropdown {
        right: 16px;
        min-width: 160px;
    }

    .nav-dropdown .desktop-only-links {
        display: none;
    }

    .nav-dropdown .mobile-only-links {
        display: flex;
        flex-direction: column;
    }

    .hero {
        padding: 100px 16px 60px;
    }

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

    .projects-grid,
    .deployment-grid,
    .achievements-grid,
    .skills-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .diagram-canvas {
        flex-direction: column;
        padding: 24px 16px;
        gap: 20px;
    }

    .diagram-canvas .diag-arrow,
    .diagram-canvas .diag-arrow-right {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .diagram-canvas .diag-split-arrows,
    .diagram-canvas .diag-split-arrows-three {
        flex-direction: row;
        gap: 16px;
    }

    .diagram-canvas .diag-split-arrow span,
    .diagram-canvas .diag-path span {
        display: none;
    }

    .diagram-canvas .diag-split-arrow,
    .diagram-canvas .diag-path {
        transform: rotate(90deg);
    }

    .diagram-canvas .diag-servers-group,
    .diagram-canvas .diag-container-stack {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .pipeline-connector {
        display: none;
    }

    .pipeline-container {
        flex-direction: column;
    }

    /* About Section Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-visual {
        position: static;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-intro h3 {
        font-size: 1.25rem;
    }

    .detail-card {
        flex-direction: column;
        gap: 12px;
    }

    .detail-icon {
        width: 40px;
        height: 40px;
    }

    .detail-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Project Cards Mobile optimization */
    .project-card {
        min-height: auto;
        padding: 20px;
    }

    .project-header {
        height: auto;
        flex-wrap: wrap;
        gap: 8px;
    }

    .project-card h3 {
        height: auto;
        margin-bottom: 8px;
    }

    .project-card > p {
        height: auto;
        margin-bottom: 12px;
    }

    .project-features {
        height: auto;
        margin-bottom: 20px;
    }

    .project-tags {
        width: 100%;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-dot {
        left: 0px;
    }

    /* Background optimization for performance */
    .bg-elements {
        display: none;
    }

    .network-lines {
        opacity: 0.3;
    }
}

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

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Server rack animation */
.server-rack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.server-unit {
    height: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}

.server-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: server-blink 3s infinite;
}

.server-light:nth-child(2) { animation-delay: 0.5s; }
.server-light:nth-child(3) { animation-delay: 1s; }
.server-light:nth-child(4) { animation-delay: 1.5s; }

@keyframes server-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Log output animation */
.log-output {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.log-line {
    opacity: 0;
    animation: log-fade 0.5s forwards;
}

.log-line:nth-child(1) { animation-delay: 0.1s; }
.log-line:nth-child(2) { animation-delay: 0.3s; }
.log-line:nth-child(3) { animation-delay: 0.5s; }
.log-line:nth-child(4) { animation-delay: 0.7s; }
.log-line:nth-child(5) { animation-delay: 0.9s; }

@keyframes log-fade {
    to {
        opacity: 1;
    }
}

