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

:root {
    --primary: #06b6d4;
    --primary-glow: rgba(6, 182, 212, 0.4);
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.3);
    --bg: #030712;
    --bg-elevated: #0f1729;
    --bg-card: rgba(15, 23, 42, 0.7);
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.1);
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s;
}
.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 1.4rem; font-weight: 700; text-decoration: none;
    color: var(--text); font-family: 'JetBrains Mono', monospace;
}
.logo-bracket { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
    text-decoration: none; color: var(--text-secondary);
    font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--gradient);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text); border-radius: 2px; transition: 0.3s;
}

/* Hero */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    gap: 4rem; padding: 7rem 2rem 4rem;
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
}
.hero-content { flex: 1.2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem;
    color: var(--primary); margin-bottom: 1.5rem;
}
.badge-dot {
    width: 8px; height: 8px; background: #4ade80; border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}
.hero-name { margin-bottom: 1rem; }
.name-line {
    display: block; font-size: 3.5rem; font-weight: 700; line-height: 1.1;
    color: var(--text);
}
.name-line.accent {
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title-wrapper {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.5rem; font-family: 'JetBrains Mono', monospace;
}
.hero-title-prefix { color: var(--primary); font-weight: 700; }
.hero-title { font-size: 1.1rem; font-weight: 400; color: var(--text-secondary); }
.typed-cursor {
    color: var(--primary); font-weight: 300;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-summary {
    color: var(--text-muted); font-size: 1.05rem;
    max-width: 500px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-summary strong { color: var(--primary); font-weight: 600; }

/* Hero CTAs */
.hero-cta { display: flex; gap: 1rem; margin-bottom: 3rem; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.75rem; border-radius: 10px;
    text-decoration: none; font-weight: 500; font-size: 0.95rem;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--gradient); color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}
.btn-primary .btn-arrow {
    transition: transform 0.3s;
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
    border: 1px solid var(--border); color: var(--text);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    border-color: var(--primary); color: var(--primary);
    background: rgba(6, 182, 212, 0.05);
}

/* Hero Stats */
.hero-stats {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1.5rem 0; border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-value {
    font-size: 2rem; font-weight: 700; color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}
.stat-suffix { font-size: 1.2rem; color: var(--primary); font-weight: 700; }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Architecture Diagram */
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.arch-box {
    width: 100%; max-width: 540px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 30px rgba(6,182,212,0.08);
}
.arch-box-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}
.arch-box-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.arch-box-title {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    color: var(--text-secondary); font-weight: 500;
}

/* Pipeline flow */
.arch-pipeline {
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem 2rem; gap: 0;
}
.arch-stage {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.arch-stage-label {
    font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}
.arch-stage-node {
    width: 72px; height: 72px; border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.25rem; border: 1px solid var(--border); background: var(--bg-card);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.arch-stage-node:hover {
    transform: scale(1.1);
}
.arch-stage-node span {
    font-size: 0.65rem; font-weight: 600; color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}
.arch-stage-node svg { width: 24px; height: 24px; }

/* Stage colors */
.github-n { border-color: rgba(148,163,184,0.3); color: var(--text-secondary); }
.github-n:hover { border-color: var(--text-secondary); box-shadow: 0 0 15px rgba(148,163,184,0.2); }
.actions-n { border-color: rgba(74,222,128,0.3); color: #4ade80; }
.actions-n:hover { border-color: #4ade80; box-shadow: 0 0 15px rgba(74,222,128,0.2); }
.s3-n { border-color: rgba(255,153,0,0.3); color: #ff9900; }
.s3-n:hover { border-color: #ff9900; box-shadow: 0 0 15px rgba(255,153,0,0.2); }
.cf-n { border-color: rgba(6,182,212,0.3); color: var(--primary); }
.cf-n:hover { border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }

/* Connectors between stages */
.arch-connector {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    padding: 0 0.3rem;
}
.connector-label {
    font-size: 0.58rem; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace; white-space: nowrap;
}
.connector-line {
    width: 44px; height: 2px; background: var(--border);
    position: relative; overflow: hidden; border-radius: 1px;
}
.connector-dot-anim {
    position: absolute; top: -1px; left: -8px;
    width: 8px; height: 4px; border-radius: 2px;
    background: var(--primary);
    animation: flow-dot 2s linear infinite;
}
.connector-dot-anim.anim-delay-1 { animation-delay: 0.7s; }
.connector-dot-anim.anim-delay-2 { animation-delay: 1.4s; }
@keyframes flow-dot {
    0% { left: -8px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* IaC bar */
.arch-iac-bar {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin: 0 1.5rem; padding: 0.6rem 1rem; border-radius: 8px;
    background: rgba(168, 85, 247, 0.05); border: 1px dashed rgba(168, 85, 247, 0.25);
    font-size: 0.72rem; color: var(--text-muted);
}
.arch-iac-bar strong { color: var(--accent); }
.iac-tf-icon { color: var(--accent); flex-shrink: 0; }

/* Footer status */
.arch-box-footer {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 10px 18px; border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}
.arch-status-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
    animation: pulse-dot 2s infinite;
}
.arch-box-footer span {
    font-size: 0.7rem; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Section Headers */
section { position: relative; z-index: 1; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    gap: 0.4rem; z-index: 10; text-decoration: none;
    animation: fade-bounce 2.5s ease-in-out infinite;
    transition: opacity 0.3s;
}
.scroll-text {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--text);
}
.scroll-arrow {
    width: 24px; height: 24px; color: var(--primary);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}
.scroll-arrow svg { width: 100%; height: 100%; }
@keyframes fade-bounce {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
    display: inline-block; font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; color: var(--primary); margin-bottom: 0.75rem;
}
.section-title {
    font-size: 2.2rem; font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About */
.about { padding: 8rem 0; }
.about-content { display: flex; align-items: center; gap: 4rem; }
.about-text { flex: 1; }
.about-lead {
    font-size: 1.3rem; font-weight: 500; color: var(--text);
    margin-bottom: 1rem; line-height: 1.5;
}
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; }

/* Orbit Animation */
.about-tech-orbit {
    flex: 1; position: relative; width: 320px; height: 320px;
    display: flex; align-items: center; justify-content: center;
}
.orbit-center {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--gradient); display: flex;
    align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: white;
    box-shadow: 0 0 40px var(--primary-glow);
    z-index: 2;
}
.orbit-ring {
    position: absolute; border-radius: 50%;
    border: 1px dashed var(--border);
    animation: spin 30s linear infinite;
}
.ring-1 { width: 180px; height: 180px; }
.ring-2 { width: 290px; height: 290px; animation-duration: 45s; animation-direction: reverse; }
.orbit-item {
    position: absolute; padding: 0.3rem 0.7rem; border-radius: 6px;
    font-size: 0.7rem; font-weight: 600; background: var(--bg-elevated);
    border: 1px solid var(--border); color: var(--primary);
    white-space: nowrap;
}
.ring-1 .orbit-item {
    top: 50%; left: 50%;
    transform: rotate(calc(var(--i) * 90deg)) translateX(90px) rotate(calc(var(--i) * -90deg)) translate(-50%, -50%);
}
.ring-2 .orbit-item {
    top: 50%; left: 50%;
    transform: rotate(calc(var(--i) * 60deg)) translateX(145px) rotate(calc(var(--i) * -60deg)) translate(-50%, -50%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Expertise Cards */
.expertise { padding: 8rem 0; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.skill-card {
    position: relative; padding: 2rem; border-radius: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(10px); overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
}
.skill-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.skill-card:hover .skill-glow { opacity: 0.15; }
.skill-icon-wrap {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(6, 182, 212, 0.1); display: flex;
    align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.skill-svg { width: 24px; height: 24px; color: var(--primary); }
.skill-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 0.75rem;
    background: rgba(6, 182, 212, 0.08); color: var(--primary);
    border: 1px solid rgba(6, 182, 212, 0.2); font-weight: 500;
}

/* Experience Timeline */
.experience { padding: 8rem 0; }
.timeline { display: flex; flex-direction: column; gap: 2rem; }
.timeline-item { display: flex; gap: 2rem; }
.timeline-connector {
    display: flex; flex-direction: column; align-items: center;
    padding-top: 2rem;
}
.timeline-dot {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--bg); border: 3px solid var(--primary);
    flex-shrink: 0; position: relative; z-index: 2;
}
.timeline-dot.pulse {
    box-shadow: 0 0 0 0 var(--primary-glow);
    animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 var(--primary-glow); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.timeline-line {
    width: 2px; flex: 1; margin-top: 8px;
    background: linear-gradient(180deg, var(--primary), transparent);
}
.timeline-card {
    flex: 1; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; backdrop-filter: blur(10px);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.timeline-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.1);
}
.card-header { margin-bottom: 1.2rem; }
.card-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.card-date {
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    color: var(--primary); font-weight: 500;
}
.card-badge {
    padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.7rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.card-badge.current {
    background: rgba(74, 222, 128, 0.1); color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.card-header h3 { font-size: 1.15rem; font-weight: 600; }
.card-header h4 { color: var(--text-muted); font-weight: 400; font-size: 0.95rem; }
.card-list { list-style: none; }
.card-list li {
    color: var(--text-secondary); font-size: 0.88rem; padding: 0.4rem 0;
    padding-left: 1.5rem; position: relative;
}
.card-list li::before {
    content: '\25B8'; position: absolute; left: 0;
    color: var(--primary); font-size: 0.9rem;
}
.client-section { margin-top: 1rem; }
.client-badge {
    display: inline-block; padding: 0.25rem 0.75rem;
    border-radius: 6px; font-size: 0.75rem; font-weight: 600;
    background: rgba(168, 85, 247, 0.1); color: var(--accent);
    border: 1px solid rgba(168, 85, 247, 0.3); margin-bottom: 0.5rem;
}

/* Certifications Grid */
.certifications { padding: 8rem 0; }
.section-subtitle {
    color: var(--text-muted); font-size: 1rem; margin-top: 0.75rem;
}
.cert-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.cert-card {
    position: relative; padding: 2rem; border-radius: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(10px); overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.cert-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.15);
}
.cert-card-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.cert-card:hover .cert-card-glow { opacity: 0.12; }
.cert-card.cert-professional {
    border-color: rgba(255, 153, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.05), var(--bg-card));
}
.cert-card.cert-professional:hover {
    border-color: rgba(255, 153, 0, 0.6);
    box-shadow: 0 20px 50px rgba(255, 153, 0, 0.15);
}
.cert-level {
    display: inline-block; padding: 0.25rem 0.7rem; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 1.2rem;
    background: rgba(6, 182, 212, 0.1); color: var(--primary);
    border: 1px solid rgba(6, 182, 212, 0.25);
}
.cert-professional .cert-level {
    background: rgba(255, 153, 0, 0.1); color: #ff9900;
    border-color: rgba(255, 153, 0, 0.3);
}
.cert-provider-logo {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; margin-bottom: 1.2rem;
}
.aws-logo { background: rgba(255, 153, 0, 0.12); color: #ff9900; }
.hashi-logo { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.azure-logo { background: rgba(0, 120, 212, 0.12); color: #0078d4; }
.data-logo { background: rgba(6, 182, 212, 0.12); color: var(--primary); }
.cert-card h3 {
    font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem;
    line-height: 1.3;
}
.cert-desc {
    color: var(--text-muted); font-size: 0.85rem; line-height: 1.5;
    margin-bottom: 1rem;
}
.cert-id {
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
    color: var(--text-muted); opacity: 0.7;
    padding-top: 0.75rem; border-top: 1px solid var(--border);
}

/* Infrastructure Section */
.infrastructure { padding: 8rem 0; }
.infra-content { display: flex; flex-direction: column; gap: 3rem; }

.arch-diagram {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 3rem 2rem 2rem; backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
}
.arch-diagram::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient);
}
.arch-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: wrap;
}
.arch-node {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem; padding: 1rem; min-width: 90px;
    transition: transform 0.3s;
}
.arch-node:hover { transform: translateY(-4px); }
.arch-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); background: var(--bg-elevated);
}
.arch-icon svg { width: 28px; height: 28px; }
.source-node .arch-icon { border-color: rgba(148,163,184,0.3); color: var(--text-secondary); }
.cicd-node .arch-icon { border-color: rgba(74,222,128,0.3); color: #4ade80; }
.s3-node .arch-icon { border-color: rgba(255,153,0,0.3); color: #ff9900; }
.cf-node .arch-icon { border-color: rgba(6,182,212,0.3); color: var(--primary); }
.user-node .arch-icon { border-color: rgba(168,85,247,0.3); color: var(--accent); }
.arch-label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.arch-sublabel { font-size: 0.7rem; color: var(--text-muted); }

.arch-arrow {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    padding: 0 0.25rem;
}
.arrow-label {
    font-size: 0.65rem; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}
.arrow-line {
    width: 40px; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    position: relative;
}
.arrow-line::after {
    content: ''; position: absolute; right: -4px; top: -3px;
    width: 0; height: 0;
    border-left: 6px solid var(--accent);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.arch-terraform { margin-top: 2rem; }
.terraform-bar {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    padding: 0.75rem 1.5rem; border-radius: 8px;
    background: rgba(168, 85, 247, 0.06); border: 1px dashed rgba(168, 85, 247, 0.3);
    font-size: 0.8rem; color: var(--text-secondary);
}
.terraform-bar strong { color: var(--accent); }
.tf-icon { width: 18px; height: 18px; color: var(--accent); }

/* Pipeline Steps */
.pipeline-details {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.pipeline-card {
    padding: 1.5rem; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
}
.pipeline-card:hover {
    transform: translateY(-4px); border-color: var(--primary);
}
.pipeline-step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem; font-weight: 700; color: var(--primary);
    opacity: 0.5; margin-bottom: 0.5rem;
}
.pipeline-card h4 { font-size: 0.9rem; margin-bottom: 0.4rem; }
.pipeline-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.pipeline-card code {
    background: rgba(6,182,212,0.1); padding: 0.15rem 0.4rem;
    border-radius: 4px; font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; color: var(--primary);
}

/* Infra Tech Tags */
.infra-tech-stack {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
}
.infra-tag {
    padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
    background: rgba(6, 182, 212, 0.06); color: var(--primary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Education */
.education { padding: 8rem 0; }
.edu-card {
    max-width: 550px; margin: 0 auto; text-align: center;
    padding: 3rem; border-radius: 16px; background: var(--bg-card);
    border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.edu-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.edu-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.edu-card h4 { color: var(--text-muted); font-weight: 400; margin-bottom: 0.5rem; }
.edu-year {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary); font-weight: 600; font-size: 0.9rem;
}

/* Contact */
.contact { padding: 8rem 0; }
.contact-intro {
    text-align: center; color: var(--text-secondary);
    font-size: 1.1rem; margin-bottom: 3rem; max-width: 500px; margin-left: auto; margin-right: auto;
}
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.contact-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem; padding: 2rem 1rem; border-radius: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    text-decoration: none; color: inherit; backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
    transform: translateY(-6px); border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(6,182,212,0.15);
}
.contact-emoji { font-size: 2rem; }
.contact-card strong { font-size: 0.9rem; }
.contact-card span { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* Footer */
.footer {
    padding: 2.5rem 0; border-top: 1px solid var(--border);
    text-align: center; position: relative; z-index: 1;
}
.footer p { color: var(--text-muted); font-size: 0.85rem; }

/* Scroll Animations */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 8rem; gap: 3rem; }
    .hero-summary { margin: 0 auto 2rem; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-visual { width: 100%; }
    .arch-box { max-width: 100%; margin: 0 auto; overflow-x: auto; }
    .arch-pipeline { padding: 1.5rem 1rem; min-width: 0; }
    .arch-stage-node { width: 52px; height: 52px; }
    .arch-stage-node svg { width: 18px; height: 18px; }
    .arch-stage-node span { font-size: 0.55rem; }
    .arch-stage-label { font-size: 0.5rem; }
    .connector-line { width: 20px; }
    .connector-label { font-size: 0.5rem; }
    .about-content { flex-direction: column; text-align: center; }
    .about-tech-orbit { margin: 0 auto; width: 250px; height: 250px; }
    .ring-2 { width: 240px; height: 240px; }
    .ring-1 .orbit-item {
        transform: rotate(calc(var(--i) * 90deg)) translateX(75px) rotate(calc(var(--i) * -90deg)) translate(-50%, -50%);
    }
    .ring-2 .orbit-item {
        transform: rotate(calc(var(--i) * 60deg)) translateX(120px) rotate(calc(var(--i) * -60deg)) translate(-50%, -50%);
    }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .pipeline-details { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: rgba(3,7,18,0.98);
        padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    .timeline-item { flex-direction: column; gap: 0; }
    .timeline-connector { flex-direction: row; padding: 0 0 1rem 0; gap: 1rem; }
    .timeline-line { width: auto; height: 2px; flex: 1; margin: 0; }
}
@media (max-width: 600px) {
    .name-line { font-size: 2.2rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .pipeline-details { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 0.75rem; }
    .stat-value { font-size: 1.5rem; }
    .section-title { font-size: 1.6rem; }

    /* Architecture diagram — vertical on small screens */
    .arch-pipeline { flex-direction: column; align-items: center; padding: 1.5rem; }
    .arch-connector { flex-direction: column; padding: 0.4rem 0; }
    .connector-line { width: 2px; height: 28px; }
    .connector-dot-anim {
        width: 4px; height: 8px; top: -8px; left: -1px;
        animation: flow-dot-vertical 2s linear infinite;
    }
    .connector-label { writing-mode: horizontal-tb; }
    @keyframes flow-dot-vertical {
        0% { top: -8px; opacity: 0; }
        20% { opacity: 1; }
        80% { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }

    /* "How This Site Is Built" section — vertical flow */
    .arch-flow { flex-direction: column; align-items: center; }
    .arch-arrow { flex-direction: row; align-items: center; gap: 0.4rem; }
    .arrow-line { width: 2px; height: 28px; }
    .arrow-line::after {
        right: auto; top: auto; bottom: -4px; left: -3px;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 6px solid var(--accent);
        border-bottom: none;
    }

    /* Orbit — smaller and no overlap */
    .about-tech-orbit { width: 220px; height: 220px; }
    .ring-1 { width: 140px; height: 140px; }
    .ring-2 { width: 210px; height: 210px; }
    .ring-1 .orbit-item {
        transform: rotate(calc(var(--i) * 90deg)) translateX(70px) rotate(calc(var(--i) * -90deg)) translate(-50%, -50%);
    }
    .ring-2 .orbit-item {
        transform: rotate(calc(var(--i) * 60deg)) translateX(105px) rotate(calc(var(--i) * -60deg)) translate(-50%, -50%);
    }
    .orbit-item { font-size: 0.6rem; padding: 0.2rem 0.5rem; }

    /* Infrastructure section */
    .arch-flow { gap: 0; }
    .infra-tech-stack { gap: 0.5rem; }
    .infra-tag { font-size: 0.7rem; padding: 0.3rem 0.75rem; }
}
