/* ============================================
   VAMSI KAKANI — DEVOPS PORTFOLIO
   Premium Light Theme Stylesheet
   ============================================ */

:root {
    --bg-primary: #FAFAF8;
    --bg-secondary: #F3F5F7;
    --bg-white: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #64748B;
    --accent: #2563EB;
    --accent-light: #0EA5E9;
    --success: #16A34A;
    --border: #E5E7EB;
    --border-light: #F0F0F0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 0.2s ease;
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: var(--accent);
    color: white;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition-slow);
}

.navbar.scrolled {
    height: 60px;
    background: rgba(250, 250, 248, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.brand-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

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

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--accent);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-cta:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

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

.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);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

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

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

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

.btn-ghost:hover {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.04);
}

.btn-full {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--success);
    margin-bottom: 36px;
    padding: 8px 16px;
    background: rgba(22, 163, 74, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

/* Pipeline Visualization */
.pipeline-viz {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.pipeline-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: center;
}

.pipeline-stages {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.pipeline-node {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    width: 200px;
    position: relative;
}

.pipeline-node:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.04);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.pipeline-node:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.node-icon {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.node-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.pipeline-line {
    width: 2px;
    height: 16px;
    background: var(--border);
    position: relative;
}

.pipeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.pipeline-node:hover + .pipeline-line::before {
    opacity: 0.3;
}

/* ============================================
   TECH STRIP
   ============================================ */
.tech-strip {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    overflow: hidden;
}

.strip-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    overflow: hidden;
}

.strip-track {
    display: flex;
    gap: 40px;
    animation: scroll-strip 30s linear infinite;
    width: max-content;
}

.tech-item {
    flex-shrink: 0;
}

.tech-mono {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: color var(--transition);
}

.tech-item:hover .tech-mono {
    color: var(--accent);
}

@keyframes scroll-strip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 32px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    max-width: 600px;
}

.section-subtext {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 500px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-primary);
}

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

.about-photo {
    margin-bottom: 28px;
    max-width: 180px;
}

.about-photo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--border), var(--shadow-md);
    transition: box-shadow var(--transition-slow);
}

.about-photo:hover img {
    box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg);
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.philosophy-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.philosophy-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.philosophy-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
}

.philosophy-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.philosophy-number {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.philosophy-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.philosophy-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   TIMELINE / JOURNEY
   ============================================ */
.journey {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    margin-top: 48px;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border);
    transition: all var(--transition);
}

.timeline-item.active .timeline-marker,
.timeline-item:hover .timeline-marker {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.timeline-content {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    transition: all var(--transition);
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-role {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-skill {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.timeline-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--success);
    padding: 8px 16px;
    background: rgba(22, 163, 74, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.skill-category {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
}

.skill-category:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow-md);
}

.category-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.skill-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.skill-card:hover {
    background: rgba(37, 99, 235, 0.04);
    transform: translateX(4px);
}

.skill-card:hover::after {
    content: attr(data-desc);
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    background: var(--text-primary);
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.skill-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-indicator {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--success);
    padding: 3px 8px;
    background: rgba(22, 163, 74, 0.08);
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* ============================================
   PIPELINE SECTION
   ============================================ */
.pipeline-section {
    background: var(--bg-secondary);
}

.full-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 32px 0;
    margin-bottom: 32px;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.pipeline-stage:hover {
    transform: translateY(-4px);
}

.pipeline-stage.active-stage .stage-icon {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.stage-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all var(--transition);
}

.pipeline-stage:hover .stage-icon {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-md);
}

.stage-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    max-width: 70px;
}

.pipeline-connector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 32px;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: var(--border);
}

.connector-arrow {
    font-size: 14px;
    color: var(--border);
    margin-left: -4px;
}

.pipeline-detail {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    min-height: 120px;
    display: none;
}

.pipeline-detail.visible {
    display: block;
}

.detail-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.detail-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.detail-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.detail-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.detail-tech {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    margin-top: 12px;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--bg-primary);
}

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

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-card:hover::before {
    opacity: 1;
}

.project-number {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

.tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 3px;
}

.project-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-architecture {
    margin-bottom: 20px;
}

.arch-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.arch-arrow {
    color: var(--accent);
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.detail-item {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

/* ============================================
   ARCHITECTURE LAB
   ============================================ */
.architecture-lab {
    background: var(--bg-secondary);
}

.arch-diagrams {
    margin-bottom: 24px;
}

.arch-diagram {
    display: none;
}

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

.diagram-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.arch-nodes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.arch-node {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    width: 280px;
}

.arch-node:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.arch-node.active {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.04);
}

.arch-node-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.arch-node-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.arch-connector {
    font-size: 18px;
    color: var(--border);
    text-align: center;
    line-height: 1;
    padding: 4px 0;
}

.arch-info-panel {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    min-height: 80px;
}

.arch-info-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   KNOWLEDGE MAP
   ============================================ */
.knowledge-map-section {
    background: var(--bg-primary);
}

.knowledge-map {
    margin-top: 48px;
}

.map-root {
    text-align: center;
}

.map-root-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 3px;
    color: white;
    background: var(--accent);
    padding: 16px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.map-branches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.map-branch {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
    text-align: left;
}

.map-branch:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.branch-header {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.branch-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branch-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.branch-item:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.12);
    margin-bottom: 12px;
    line-height: 1;
}

.service-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-tech .tech-mono {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 3px;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   METRICS SECTION
   ============================================ */
.metrics {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metrics .section-container {
    padding: 60px 32px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.metric-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ============================================
   RESUME SECTION
   ============================================ */
.resume {
    background: var(--bg-primary);
}

.resume-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.resume-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.resume-actions {
    display: flex;
    gap: 12px;
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.resume-section-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
}

.resume-item {
    margin-bottom: 24px;
}

.resume-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.resume-item-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.resume-item-detail {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.contact-link:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.contact-link-icon {
    font-size: 18px;
    color: var(--accent);
}

.contact-link-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.copy-btn {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.copy-btn:hover {
    opacity: 1;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-form-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font-primary);
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-primary);
    color: white;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 32px 32px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 32px;
}

.footer-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.footer-title {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.footer-tags {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        display: none;
    }

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

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

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

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

    .map-branches {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .resume-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 999;
    }

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

    .nav-links .nav-link {
        font-size: 20px;
        padding: 14px 24px;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .section-container {
        padding: 60px 20px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 40px);
        padding-bottom: 40px;
    }

    .hero-container {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

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

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

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

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .metric-number {
        font-size: 28px;
    }

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

    .full-pipeline {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 0;
    }

    .pipeline-stage {
        min-width: 72px;
    }

    .stage-icon {
        width: 48px;
        height: 48px;
        font-size: 10px;
    }

    .pipeline-connector {
        width: 20px;
    }

    .arch-nodes {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        align-items: flex-start;
        padding-bottom: 16px;
    }

    .arch-node {
        min-width: 240px;
    }

    .resume-card {
        padding: 24px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .philosophy-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .map-branches {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .strip-track {
        animation: none;
    }
}

/* ============================================
   FOCUS STATES
   ============================================ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}