/* ============================================================
   Chandan B — Personal Website
   Professional Dark Theme
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
    --bg-dark:        #050c1a;
    --bg-medium:      #091225;
    --bg-light:       #0d1a35;
    --bg-card:        rgba(255, 255, 255, 0.03);
    --bg-card-hover:  rgba(255, 255, 255, 0.06);

    --accent-blue:    #3b82f6;
    --accent-cyan:    #06b6d4;
    --accent-purple:  #8b5cf6;
    --accent-green:   #10b981;
    --accent-aws:     #ff9900;

    --text-primary:   #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    --border:         rgba(255, 255, 255, 0.06);
    --border-hover:   rgba(59, 130, 246, 0.35);

    --gradient:       linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-warm:  linear-gradient(135deg, #6366f1, #8b5cf6);

    --shadow:    0 25px 60px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);

    --radius:    12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --nav-height: 68px;
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ===== Reset & Base ===== */
*, *::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 {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; }

strong { color: var(--text-primary); }

/* ===== Utilities ===== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 5px 16px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 100px;
    margin-bottom: 20px;
    background: rgba(6, 182, 212, 0.05);
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.section-subtitle {
    margin-top: 18px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.93rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.btn-lg {
    padding: 17px 42px;
    font-size: 1rem;
}

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-slow);
}

#navbar.scrolled {
    background: rgba(5, 12, 26, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: opacity var(--transition);
}

.nav-logo:hover { opacity: 0.8; }

.logo-bracket {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 7px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}

.contact-nav {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue) !important;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-nav:hover {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.4);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

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

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: var(--nav-height) 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.12;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-blue), transparent);
    top: -150px;
    left: -150px;
    animation: floatOrb 9s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    bottom: -100px;
    right: -100px;
    animation: floatOrb 11s ease-in-out infinite reverse;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-purple), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb 13s ease-in-out infinite 2s;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); }
    33%       { transform: translateY(-25px) scale(1.04); }
    66%       { transform: translateY(15px) scale(0.97); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-green);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 100px;
    margin-bottom: 32px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero-name {
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    background: linear-gradient(160deg, #ffffff 0%, #cbd5e1 60%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 28px;
    letter-spacing: -0.005em;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.85;
}

.hero-cloud-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.cloud-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    transition: all var(--transition);
    font-family: 'JetBrains Mono', monospace;
}

.cloud-badge:hover { transform: translateY(-3px); }

.cloud-badge.aws   { color: #ff9900; border-color: rgba(255, 153, 0, 0.25); }
.cloud-badge.azure { color: #2ea3f2; border-color: rgba(46, 163, 242, 0.25); }
.cloud-badge.gcp   { color: #ea4335; border-color: rgba(234, 67, 53, 0.25); }
.cloud-badge.k8s   { color: #5a9cf5; border-color: rgba(90, 156, 245, 0.25); }

.cloud-badge.aws:hover   { background: rgba(255, 153, 0, 0.08); }
.cloud-badge.azure:hover { background: rgba(46, 163, 242, 0.08); }
.cloud-badge.gcp:hover   { background: rgba(234, 67, 53, 0.08); }
.cloud-badge.k8s:hover   { background: rgba(90, 156, 245, 0.08); }

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.8), transparent);
    animation: scrollAnim 2.2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    40%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
    80%  { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
    100% { opacity: 0; }
}

/* ===== Stats ===== */
.stats-section {
    padding: 0 0 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--border);
    gap: 1px;
}

.stat-card {
    background: var(--bg-medium);
    padding: 44px 20px;
    text-align: center;
    transition: background var(--transition);
}

.stat-card:hover {
    background: var(--bg-card-hover);
}

.stat-number {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-label {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== About ===== */
.about-section {
    background: var(--bg-medium);
}

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

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 22px;
    font-size: 1.02rem;
    line-height: 1.85;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.highlight-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.highlight-item i {
    color: var(--accent-cyan);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    transition: border-color var(--transition);
}

.profile-card:hover {
    border-color: var(--border-hover);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.profile-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 28px;
}

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

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.83rem;
    color: var(--text-secondary);
}

.detail-row i {
    color: var(--accent-blue);
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-row a {
    color: var(--text-secondary);
    transition: color var(--transition);
    word-break: break-all;
}

.detail-row a:hover { color: var(--accent-cyan); }

/* ===== Skills ===== */
.skills-section {
    background: var(--bg-dark);
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

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

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.skill-cat-header i {
    color: var(--accent-cyan);
    font-size: 1rem;
}

.skill-cat-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    display: inline-block;
    padding: 5px 11px;
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    transition: all var(--transition);
    cursor: default;
}

.tag:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--accent-cyan);
}

/* ===== Experience Timeline ===== */
.experience-section {
    background: var(--bg-medium);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 20px;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 28px;
}

.marker-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--gradient);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 0 6px rgba(59, 130, 246, 0.06);
}

.marker-line {
    flex: 1;
    width: 1px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.05));
    margin-top: 10px;
    min-height: 32px;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.timeline-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-sm);
}

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

.card-company {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: var(--shadow-sm);
}

.company-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.project-tag {
    font-size: 0.76rem;
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
}

.role-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 100px;
    font-size: 0.73rem;
    color: var(--accent-blue);
    white-space: nowrap;
    font-weight: 500;
    flex-shrink: 0;
}

.card-points {
    list-style: none;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.card-points li {
    display: flex;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
}

.card-points li::before {
    content: '▸';
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 1px;
}

.card-points li strong { color: var(--text-primary); }

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tech-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.07);
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 6px;
    font-size: 0.73rem;
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
}

/* ===== Certifications ===== */
.cert-section {
    background: var(--bg-dark);
}

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

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    gap: 18px;
    transition: all var(--transition);
    align-items: flex-start;
}

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

.cert-card.featured {
    border-color: rgba(255, 153, 0, 0.25);
    background: rgba(255, 153, 0, 0.03);
}

.cert-icon {
    width: 46px;
    height: 46px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.cert-icon i {
    font-size: 1.25rem;
    color: var(--accent-blue);
}

.cert-icon-aws {
    background: rgba(255, 153, 0, 0.1);
}

.cert-icon-aws i {
    color: var(--accent-aws);
}

.cert-card:hover .cert-icon {
    transform: scale(1.1);
}

.cert-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 7px;
    line-height: 1.4;
}

.cert-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.cert-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    background: rgba(255, 153, 0, 0.12);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 100px;
    font-size: 0.67rem;
    color: var(--accent-aws);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== Education ===== */
.education-section {
    background: var(--bg-medium);
    padding: 80px 0;
}

.education-card {
    display: flex;
    gap: 32px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px 48px;
    max-width: 680px;
    margin: 0 auto;
    transition: all var(--transition);
}

.education-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.edu-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.edu-icon i {
    font-size: 1.8rem;
    color: white;
}

.edu-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.edu-school {
    color: var(--accent-cyan);
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.edu-year {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

/* ===== Contact ===== */
.contact-section {
    background: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 52px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: all var(--transition);
    display: block;
}

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

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.contact-icon i {
    font-size: 1.3rem;
    color: white;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-card span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
    word-break: break-word;
}

.contact-card:hover span,
.contact-card:hover h3 {
    color: var(--accent-cyan);
}

.contact-cta {
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-medium);
    border-top: 1px solid var(--border);
    padding: 52px 0;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ===== Scroll-triggered Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grid children */
.skills-grid .skill-category:nth-child(2) { transition-delay: 0.05s; }
.skills-grid .skill-category:nth-child(3) { transition-delay: 0.10s; }
.skills-grid .skill-category:nth-child(4) { transition-delay: 0.15s; }
.skills-grid .skill-category:nth-child(5) { transition-delay: 0.20s; }
.skills-grid .skill-category:nth-child(6) { transition-delay: 0.25s; }
.skills-grid .skill-category:nth-child(7) { transition-delay: 0.30s; }
.skills-grid .skill-category:nth-child(8) { transition-delay: 0.35s; }

.cert-grid .cert-card:nth-child(2) { transition-delay: 0.07s; }
.cert-grid .cert-card:nth-child(3) { transition-delay: 0.14s; }
.cert-grid .cert-card:nth-child(4) { transition-delay: 0.21s; }
.cert-grid .cert-card:nth-child(5) { transition-delay: 0.28s; }
.cert-grid .cert-card:nth-child(6) { transition-delay: 0.35s; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.5); }

/* ===== Selection ===== */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        order: -1;
    }

    .profile-card {
        position: static;
        max-width: 400px;
    }

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

@media (max-width: 768px) {
    .section { padding: 72px 0; }

    /* Mobile Nav */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(5, 12, 26, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    }

    .nav-links.open { display: flex; }
    .nav-hamburger  { display: flex; }

    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius);
        width: 100%;
    }

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

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

    /* Timeline */
    .timeline-item {
        grid-template-columns: 24px 1fr;
        gap: 12px;
    }

    .timeline-card {
        padding: 22px 20px;
    }

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

    /* Certs */
    .cert-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Education */
    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    /* About */
    .about-highlights {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-name {
        font-size: clamp(2.6rem, 14vw, 4rem);
    }
}

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

    .hero-cloud-badges {
        gap: 7px;
    }

    .cloud-badge {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

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