:root {
    /* ─── Monochromatic Palette from #257cb3 ─── */
    --color-50:  #e8f4fb;
    --color-100: #b8ddf2;
    --color-200: #7ebde4;
    --color-300: #4a9fd4;
    --color-400: #2f8dc6;
    --color-500: #257cb3;  /* BASE */
    --color-600: #1f6a9a;
    --color-700: #1a5480;
    --color-800: #143f62;
    --color-900: #0d2d45;
    --color-950: #071a2b;

    /* Color Palette */
    --bg-color: #050b14;
    --text-main: #E2E8F0;
    --text-muted: #8fa4b8;

    /* Accents — all derived from #257cb3 */
    --accent-primary: #257cb3;
    --accent-light: #4a9fd4;
    --accent-lighter: #7ebde4;
    --accent-dark: #1a5480;
    --accent-glow: rgba(37, 124, 179, 0.55);
    --gradient-start: #b8ddf2;
    --gradient-end: #257cb3;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(37, 124, 179, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    /* Elements */
    --watermark-color: rgba(37, 124, 179, 0.025);
    --galaxy-bg: radial-gradient(circle at center, rgba(10, 18, 30, 0.8) 0%, rgba(5, 11, 20, 1) 100%);
    --nav-bg: rgba(5, 11, 20, 0.7);
    --timeline-dot-bg: #050b14;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Unified Site Background */
:root {
    --site-bg:
        radial-gradient(circle at 12% 8%, rgba(37, 124, 179, 0.14), transparent 30rem),
        radial-gradient(circle at 88% 18%, rgba(78, 165, 218, 0.10), transparent 34rem),
        radial-gradient(circle at 46% 78%, rgba(26, 84, 128, 0.08), transparent 28rem),
        linear-gradient(135deg, #050b14 0%, #081420 44%, #0d2235 100%);
    --site-section-soft: rgba(37, 124, 179, 0.03);
    --card: rgba(10, 20, 35, 0.92);
    --foreground: var(--text-main);
    --muted: var(--text-muted);
}

[data-theme="light"] {
    --site-bg:
        radial-gradient(circle at 12% 8%, rgba(37, 124, 179, 0.12), transparent 30rem),
        radial-gradient(circle at 88% 18%, rgba(37, 124, 179, 0.08), transparent 34rem),
        radial-gradient(circle at 46% 78%, rgba(37, 124, 179, 0.06), transparent 28rem),
        linear-gradient(135deg, #f0f7fc 0%, #e4f0f9 46%, #dce8f3 100%);
    --site-section-soft: rgba(37, 124, 179, 0.06);
    --card: rgba(255, 255, 255, 0.92);
    --foreground: var(--text-main);
    --muted: var(--text-muted);
}

body {
    background: var(--site-bg);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image: radial-gradient(circle, rgba(37, 124, 179, 0.08) 1px, transparent 1.4px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

[data-theme="light"] body::before {
    background-image: radial-gradient(circle, rgba(37, 124, 179, 0.15) 1px, transparent 1.4px);
}

main,
section,
.hero-section,
.skills-section,
.timeline-section,
.mindset-section,
.testimonials-section,
.contact-section {
    background: transparent;
}

.hero-section,
.skills-section,
.timeline-section,
.mindset-section,
.testimonials-section,
.contact-section {
    position: relative;
}

.skills-section,
.testimonials-section {
    background:
        linear-gradient(180deg, transparent 0%, var(--site-section-soft) 44%, transparent 100%);
}

.timeline-section,
.contact-section {
    background:
        radial-gradient(circle at 50% 50%, var(--site-section-soft), transparent 62%);
}

.glass-nav,
.glass-footer {
    background: color-mix(in srgb, var(--bg-color) 72%, transparent);
}

.skills-section .badge {
    color: var(--accent-primary);
}

.skills-section .section-header h2 {
    color: var(--text-main);
}

.skills-section::before {
    background-image: radial-gradient(circle, var(--glass-border) 1px, transparent 1px);
    opacity: 0.28;
}

.skills-section::after {
    background:
        radial-gradient(circle at 50% 50%, rgba(37, 124, 179, 0.08), transparent 55%),
        radial-gradient(circle at 70% 30%, rgba(78, 165, 218, 0.06), transparent 48%);
    opacity: 1;
}

.skills-globe-container {
    background:
        radial-gradient(circle at 38% 30%, rgba(37, 124, 179, 0.08), transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(37, 124, 179, 0.03) 0 48%, rgba(37, 124, 179, 0.015) 65%, transparent 100%);
    border-radius: 50%;
}

[data-theme="light"] .skills-globe-container {
    background:
        radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.74), transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(228, 240, 249, 0.72) 0 52%, rgba(216, 234, 248, 0.38) 72%, transparent 100%);
}

.modal-content {
    background: var(--card);
}

.stat-val {
    color: var(--foreground);
}

.stat-label,
.modal-body p,
.close-modal {
    color: var(--muted);
}

[data-theme="light"] {
    --bg-color: #f0f7fc;
    --text-main: #0a2540;
    --text-muted: #4a6a85;

    --accent-primary: #1f6a9a;
    --accent-light: #257cb3;
    --accent-lighter: #4a9fd4;
    --accent-dark: #143f62;
    --gradient-start: #0a2540;
    --gradient-end: #257cb3;

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(37, 124, 179, 0.15);
    --glass-shadow: rgba(37, 124, 179, 0.08);

    --watermark-color: rgba(37, 124, 179, 0.035);
    --galaxy-bg: radial-gradient(circle at center, rgba(228, 240, 249, 0.8) 0%, rgba(216, 234, 248, 1) 100%);
    --nav-bg: rgba(240, 247, 252, 0.85);
    --timeline-dot-bg: #f0f7fc;
}

[data-theme="light"] .skills-orbit-shell {
    background:
        radial-gradient(circle at 30% 20%, rgba(37, 124, 179, 0.12), transparent 34%),
        radial-gradient(circle at 80% 70%, rgba(37, 124, 179, 0.08), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(240, 247, 252, 0.72));
}

[data-theme="light"] .planet-label {
    background: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] .orbit-core {
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 13%),
        radial-gradient(circle, rgba(37, 124, 179, 0.35), rgba(78, 165, 218, 0.14) 55%, rgba(240, 247, 252, 0.9));
}


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

html {
    scroll-behavior: smooth;
}

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

/* Background Elements */
.watermark-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-family: var(--font-heading);
    font-size: 15vw;
    font-weight: 800;
    color: var(--watermark-color);
    white-space: nowrap;
    z-index: -2;
    pointer-events: none;
    user-select: none;
}

.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: var(--accent-light);
}

.glow-2 {
    bottom: -100px;
    right: -100px;
    background: var(--accent-dark);
}

/* Reusable Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 124, 179, 0.25);
    box-shadow: 0 15px 40px rgba(37, 124, 179, 0.12);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-light);
    text-shadow: 0 0 10px rgba(37, 124, 179, 0.3);
}

.theme-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 0 0.5rem;
}

.theme-btn:hover {
    transform: scale(1.1);
    color: var(--text-main);
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 10% 4rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 124, 179, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 124, 179, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #3a9ad4;
}

.hero-title span {
    color: #3a9ad4;
    display: inline-block;
}

.smart-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.015em;
    perspective: 900px;
    transform-style: preserve-3d;
}

.name-letter {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 0.56em;
    line-height: 1;
    cursor: default;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.name-letter-face {
    display: block;
    color: #3a9ad4;
    -webkit-text-fill-color: #3a9ad4;
}

.name-letter-face {
    position: relative;
    z-index: 2;
}

.name-letter::after {
    content: attr(data-char);
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    color: #3a9ad4;
    -webkit-text-fill-color: #3a9ad4;
    opacity: 0.18;
    transform: translate3d(0.055em, 0.075em, -24px) rotateX(18deg);
    filter: blur(0.6px);
    pointer-events: none;
}

.name-space {
    display: inline-block;
    width: 0.34em;
    flex: 0 0 0.34em;
}

.hero-typewriter {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 3rem; /* Prevent layout shift */
}

.typewriter-text {
    color: var(--accent-primary);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 3px;
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.btn-glow {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 50px;
    border: 1px solid var(--accent-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(37, 124, 179, 0.2);
}

.btn-glow:hover {
    background: rgba(37, 124, 179, 0.15);
    box-shadow: 0 0 30px rgba(37, 124, 179, 0.4);
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: auto;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Sections Common */
section {
    padding: 6rem 10%;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

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

.text-center p {
    margin: 0 auto;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-lighter), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Skills Section (Orbit Map) */
.skills-section {
    position: relative;
    padding-bottom: 7rem;
}

.skills-orbit-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(37, 124, 179, 0.1), transparent 34%),
        radial-gradient(circle at 80% 70%, rgba(37, 124, 179, 0.07), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.orbit-stage {
    position: relative;
    min-height: 520px;
    isolation: isolate;
}

.orbit-stage::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(37, 124, 179, 0.18) 0 2px, transparent 3px) 0 0 / 42px 42px,
        radial-gradient(circle at center, rgba(37, 124, 179, 0.09), transparent 58%);
    opacity: 0.55;
    filter: blur(0.2px);
    z-index: -1;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(37, 124, 179, 0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(64deg);
    box-shadow: 0 0 26px rgba(37, 124, 179, 0.06), inset 0 0 24px rgba(37, 124, 179, 0.03);
}

.orbit-ring::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px dashed rgba(37, 124, 179, 0.2);
    animation: orbitSpin 26s linear infinite;
}

.orbit-ring-1 {
    width: 32%;
    height: 32%;
}

.orbit-ring-2 {
    width: 52%;
    height: 52%;
}

.orbit-ring-3 {
    width: 72%;
    height: 72%;
}

.orbit-ring-4 {
    width: 92%;
    height: 92%;
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    border: 1px solid rgba(37, 124, 179, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), transparent 13%),
        radial-gradient(circle, rgba(37, 124, 179, 0.4), rgba(78, 165, 218, 0.15) 55%, rgba(5, 11, 20, 0.8));
    box-shadow: 0 0 34px rgba(37, 124, 179, 0.25), 0 0 70px rgba(37, 124, 179, 0.12);
}

.orbit-core span {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1;
}

.orbit-core small {
    margin-top: -1.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.skill-planet {
    position: absolute;
    top: var(--y);
    left: var(--x);
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    width: 132px;
    padding: 0;
    border: 0;
    color: var(--text-main);
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: pointer;
    animation: planetFloat 4.5s ease-in-out infinite;
    animation-delay: var(--delay);
}

.planet-dot {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), transparent 18%),
        linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    box-shadow: 0 0 18px rgba(37, 124, 179, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.planet-dot::after {
    content: "";
    position: absolute;
    inset: -9px;
    border: 1px solid rgba(37, 124, 179, 0.2);
    border-radius: 50%;
    transform: scale(0.72);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.planet-label {
    max-width: 132px;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(37, 124, 179, 0.15);
    border-radius: 999px;
    background: rgba(5, 11, 20, 0.62);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.skill-planet:hover .planet-dot,
.skill-planet:focus-visible .planet-dot,
.skill-planet.is-active .planet-dot {
    transform: scale(1.35);
    box-shadow: 0 0 28px rgba(37, 124, 179, 0.45), 0 0 42px rgba(37, 124, 179, 0.2);
}

.skill-planet:hover .planet-dot::after,
.skill-planet:focus-visible .planet-dot::after,
.skill-planet.is-active .planet-dot::after {
    opacity: 1;
    transform: scale(1);
}

.skill-planet:hover .planet-label,
.skill-planet:focus-visible .planet-label,
.skill-planet.is-active .planet-label {
    border-color: rgba(37, 124, 179, 0.4);
    background: rgba(37, 124, 179, 0.1);
    color: var(--text-main);
}

.orbit-info-panel {
    align-self: center;
    min-height: 330px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: rgba(37, 124, 179, 0.04);
    box-shadow: inset 0 1px 0 rgba(37, 124, 179, 0.08);
}

.orbit-kicker {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.orbit-info-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.orbit-info-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.orbit-info-panel ul {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.4rem;
    padding: 0;
    list-style: none;
}

.orbit-info-panel li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.orbit-info-panel li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 12px rgba(37, 124, 179, 0.55);
}

.orbit-skill-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    padding-top: 0.4rem;
}

.orbit-skill-nav button {
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(37, 124, 179, 0.04);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.orbit-skill-nav button:hover,
.orbit-skill-nav button:focus-visible,
.orbit-skill-nav button.is-active {
    border-color: rgba(37, 124, 179, 0.4);
    background: rgba(37, 124, 179, 0.12);
    color: var(--text-main);
}

@keyframes orbitSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes planetFloat {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: -10px;
    }
}

/* Skills Sphere Reference Style */
.skills-section {
    position: relative;
    scroll-margin-top: 120px;
    padding: 6rem 1.5rem 8rem;
    overflow: hidden;
    background: var(--bg-color);
    color: var(--text-main);
    transition: background 0.3s ease, color 0.3s ease;
}

.skills-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--glass-border) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    pointer-events: none;
    opacity: 0.4;
}

.skills-section::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.skills-section .section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.skills-globe-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: visible;
}

#skills-canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
    cursor: grab;
}

#skills-canvas:active {
    cursor: grabbing;
}

[data-theme="dark"] .skills-globe-container {
    background:
        radial-gradient(circle at 38% 30%, rgba(37, 124, 179, 0.1), transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(5, 11, 20, 0.8) 0 52%, rgba(10, 18, 30, 0.9) 100%);
    border-color: rgba(37, 124, 179, 0.1);
    box-shadow:
        inset 0 0 70px rgba(0, 0, 0, 0.5),
        0 34px 100px rgba(0, 0, 0, 0.4);
}

/* Skill Detail Popup */
.skill-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    padding: 3rem 2rem;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--card);
    border: 1px solid var(--glass-border);
}

.skill-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--foreground);
}

.skill-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.modal-body h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-lighter), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.skill-stats {
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.stat-val {
    display: block;
    font-weight: 800;
    color: var(--foreground);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#skills-canvas {
    cursor: grab;
}

#skills-canvas:active {
    cursor: grabbing;
}

.bg-dot-pattern {
    background-image: radial-gradient(circle, var(--glass-border) 1px, transparent 1px);
    background-size: 24px 24px;
}

.skills-section .badge {
    border: 0;
    background: transparent;
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    box-shadow: none;
}

.skills-section .section-header h2 {
    margin-top: 0.45rem;
    color: var(--text-main);
    font-size: clamp(3rem, 5.6vw, 4.35rem);
    line-height: 0.95;
}

.skills-sphere-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 540px;
}

.skills-sphere {
    position: relative;
    width: min(520px, 82vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.8), transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(228, 240, 249, 0.76) 0 52%, rgba(200, 225, 245, 0.5) 68%, rgba(220, 238, 250, 0.12) 100%),
        repeating-linear-gradient(32deg, transparent 0 18px, rgba(37, 124, 179, 0.09) 19px 20px),
        repeating-linear-gradient(148deg, transparent 0 22px, rgba(37, 124, 179, 0.08) 23px 24px);
    border: 1px solid rgba(37, 124, 179, 0.2);
    box-shadow:
        inset 0 0 70px rgba(37, 124, 179, 0.12),
        inset 18px 18px 80px rgba(255, 255, 255, 0.58),
        0 34px 100px rgba(37, 124, 179, 0.1);
}

.skills-sphere::before,
.skills-sphere::after {
    content: "";
    position: absolute;
    inset: 5%;
    border-radius: 50%;
    pointer-events: none;
}

.skills-sphere::before {
    background:
        repeating-radial-gradient(circle at center, transparent 0 39px, rgba(37, 124, 179, 0.12) 40px 41px),
        repeating-linear-gradient(90deg, transparent 0 44px, rgba(37, 124, 179, 0.08) 45px 46px);
    opacity: 0.62;
    transform: rotate(-8deg);
}

.skills-sphere::after {
    border: 1px solid rgba(37, 124, 179, 0.1);
    background:
        linear-gradient(30deg, transparent 48%, rgba(37, 124, 179, 0.14) 49%, transparent 50%),
        linear-gradient(115deg, transparent 48%, rgba(37, 124, 179, 0.12) 49%, transparent 50%),
        radial-gradient(circle at center, transparent 52%, rgba(37, 124, 179, 0.1) 53%, transparent 54%);
    opacity: 0.9;
}

.sphere-focus {
    position: absolute;
    top: 45%;
    left: 52%;
    z-index: 4;
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    transform: translate(-50%, -50%);
}

.sphere-focus-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a9fd4, #1a5480);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 18px 38px rgba(37, 124, 179, 0.25);
}

.sphere-focus-label {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sphere-skill {
    position: absolute;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    width: 132px;
    border: 0;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    transform: translate(-50%, -50%);
    animation: sphereSkillFloat 4.8s ease-in-out infinite;
}

.sphere-skill-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--skill-color, var(--accent-primary));
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(37, 124, 179, 0.12);
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.sphere-skill-label {
    max-width: 150px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sphere-skill:hover .sphere-skill-icon,
.sphere-skill:focus-visible .sphere-skill-icon,
.sphere-skill.is-active .sphere-skill-icon {
    transform: scale(1.12);
    filter: saturate(1.15);
}

.sphere-skill:hover .sphere-skill-label,
.sphere-skill:focus-visible .sphere-skill-label,
.sphere-skill.is-active .sphere-skill-label {
    opacity: 1;
    transform: translateY(2px);
}

.sphere-skill.is-muted .sphere-skill-icon {
    opacity: 0.33;
    filter: grayscale(0.7);
}

/* Skill colors — all shades of #257cb3 */
.skill-talent {
    top: 7%;
    left: 50%;
    --skill-color: #1a5480;
}

.skill-compliance {
    top: 34%;
    left: 11%;
    --skill-color: #257cb3;
    animation-delay: -1s;
}

.skill-interviewing {
    top: 37%;
    left: 89%;
    --skill-color: #4a9fd4;
    animation-delay: -2.2s;
}

.skill-engagement {
    top: 76%;
    left: 33%;
    --skill-color: #1f6a9a;
    animation-delay: -0.5s;
}

.skill-performance {
    top: 77%;
    left: 72%;
    --skill-color: #7ebde4;
    animation-delay: -2.8s;
}

.skill-onboarding {
    top: 94%;
    left: 50%;
    --skill-color: #2f8dc6;
    animation-delay: -1.8s;
}

.skill-documentation {
    top: 53%;
    left: 36%;
    --skill-color: #0d2d45;
    animation-delay: -3.2s;
}

.skill-coaching {
    top: 21%;
    left: 32%;
    --skill-color: #143f62;
    animation-delay: -1.4s;
}

.skill-policy {
    top: 20%;
    left: 68%;
    --skill-color: #b8ddf2;
    animation-delay: -2.6s;
}

@keyframes sphereSkillFloat {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: -12px;
    }
}

/* Timeline Section */
.timeline-section {
    background: rgba(37, 124, 179, 0.015);
}

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

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), var(--accent-light), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 30px;
    width: 14px;
    height: 14px;
    background: var(--timeline-dot-bg);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(37, 124, 179, 0.5);
    z-index: 2;
}

.timeline-content {
    position: relative;
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(37, 124, 179, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Mindset Section */
.mindset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mindset-card {
    text-align: center;
    padding: 3rem 2rem;
}

.mindset-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(37, 124, 179, 0.2));
}

.mindset-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.mindset-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
    background: rgba(37, 124, 179, 0.015);
    padding-bottom: 8rem;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 3rem;
}

.quote-icon {
    font-family: serif;
    font-size: 6rem;
    color: var(--accent-primary);
    line-height: 0;
    opacity: 0.3;
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.author strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.author span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-card {
    text-align: center;
    padding: 3rem 4rem;
    min-width: 250px;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(37, 124, 179, 0.2));
}

.contact-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-light);
    text-shadow: 0 0 10px rgba(37, 124, 179, 0.4);
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
}

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

/* Animations (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-typewriter {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }

    .skills-section {
        padding: 4.5rem 1rem 5rem;
    }

    .skills-section .section-header h2 {
        font-size: 3.2rem;
    }

    .skills-sphere-wrap {
        min-height: 470px;
    }

    .skills-sphere {
        width: min(390px, 86vw);
    }

    .sphere-focus-icon {
        width: 58px;
        height: 58px;
        font-size: 1.1rem;
    }

    .sphere-focus-label {
        font-size: 0.7rem;
    }

    .sphere-skill {
        width: 92px;
    }

    .sphere-skill-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 0.82rem;
    }

    .sphere-skill-label {
        max-width: 96px;
        font-size: 0.58rem;
        letter-spacing: 0.06em;
    }

    .skills-orbit-shell {
        grid-template-columns: 1fr;
        padding: 1.1rem;
    }

    .orbit-stage {
        min-height: 470px;
    }

    .orbit-core {
        width: 92px;
        height: 92px;
    }

    .orbit-core span {
        font-size: 1.8rem;
    }

    .skill-planet {
        width: 102px;
    }

    .planet-label {
        max-width: 102px;
        font-size: 0.58rem;
        letter-spacing: 0.04em;
    }

    .orbit-info-panel {
        min-height: auto;
        padding: 1.35rem;
    }

    .orbit-info-panel h3 {
        font-size: 1.45rem;
    }
    
    .galaxy-container {
        height: 500px;
    }
    
    .skill-info-panel {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        transform: none;
    }
    
    .nav-links {
        display: none; /* Add hamburger later if needed, hiding for simplicity now */
    }
}

/* Final background harmonization overrides */
body {
    background: var(--site-bg) !important;
    background-attachment: fixed;
}

main,
section,
.hero-section,
.skills-section,
.timeline-section,
.mindset-section,
.testimonials-section,
.contact-section {
    background-color: transparent !important;
}

.hero-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(37, 124, 179, 0.1), transparent 34rem),
        radial-gradient(circle at 88% 70%, rgba(26, 84, 128, 0.08), transparent 34rem) !important;
}

.skills-section {
    background:
        linear-gradient(180deg, transparent 0%, var(--site-section-soft) 44%, transparent 100%) !important;
    color: var(--text-main) !important;
}

.timeline-section,
.contact-section {
    background:
        radial-gradient(circle at 50% 50%, var(--site-section-soft), transparent 62%) !important;
}

.testimonials-section {
    background:
        linear-gradient(180deg, transparent 0%, var(--site-section-soft) 50%, transparent 100%) !important;
}

.skills-section .badge {
    color: var(--accent-primary) !important;
}

.skills-section .section-header h2 {
    color: var(--text-main) !important;
}

.skills-section::before {
    background-image: radial-gradient(circle, var(--glass-border) 1px, transparent 1px) !important;
    opacity: 0.28 !important;
}

.skills-section::after {
    background:
        radial-gradient(circle at 50% 50%, rgba(37, 124, 179, 0.08), transparent 55%),
        radial-gradient(circle at 70% 30%, rgba(37, 124, 179, 0.06), transparent 48%) !important;
    opacity: 1 !important;
}

.skills-globe-container {
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 30%, rgba(37, 124, 179, 0.08), transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(37, 124, 179, 0.03) 0 48%, rgba(37, 124, 179, 0.015) 65%, transparent 100%) !important;
}

[data-theme="light"] .skills-globe-container {
    background:
        radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.74), transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(228, 240, 249, 0.72) 0 52%, rgba(216, 234, 248, 0.38) 72%, transparent 100%) !important;
}

.glass-nav,
.glass-footer {
    background: color-mix(in srgb, var(--bg-color) 72%, transparent) !important;
}

.modal-content {
    background: var(--card) !important;
}

/* Compact skill popup */
.modal-overlay {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
}

.skill-modal {
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal-content {
    width: min(88vw, 360px) !important;
    max-width: 360px !important;
    padding: 2rem 1.65rem 1.75rem !important;
    border-radius: 18px !important;
    background: color-mix(in srgb, var(--card) 94%, transparent) !important;
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.22),
        0 0 0 1px var(--glass-border) !important;
}

.skill-modal.active .modal-content {
    transform: translateY(0) scale(1) !important;
}

.close-modal {
    top: 0.75rem !important;
    right: 0.85rem !important;
    font-size: 1.25rem !important;
    line-height: 1;
}

.skill-icon-large {
    font-size: 2.75rem !important;
    margin-bottom: 1rem !important;
}

.modal-body h3 {
    font-size: 1.65rem !important;
    margin-bottom: 0.75rem !important;
}

.modal-body p {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 1.35rem !important;
}

.skill-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    padding-top: 1rem !important;
}

.skill-stats .stat {
    padding: 0.75rem 0.65rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--glass-bg) 75%, transparent);
    border: 1px solid var(--glass-border);
}

.stat-val {
    font-size: 0.98rem;
}

.skill-stats .stat-label {
    margin-top: 0.25rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

/* ─── Experience Details ─── */
.timeline-company {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.timeline-details li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.timeline-details li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(37, 124, 179, 0.4);
}

/* ─── Education Section ─── */
.education-section {
    position: relative;
    background: radial-gradient(circle at 50% 50%, var(--site-section-soft), transparent 62%);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    text-align: left;
    padding: 2.5rem 2rem;
}

.edu-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.education-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.education-card h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.edu-institution {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.edu-date {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: rgba(37, 124, 179, 0.08);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ─── Certifications Section ─── */
.certifications-section {
    position: relative;
    background: linear-gradient(180deg, transparent 0%, var(--site-section-soft) 44%, transparent 100%);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.cert-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--accent-primary);
}

.cert-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(37, 124, 179, 0.06), transparent 60%);
    pointer-events: none;
}

.cert-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 124, 179, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cert-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.3;
}

.cert-issuer {
    color: var(--accent-primary);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.cert-details {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ─── Certificate Card Hover ─── */
.cert-card[data-cert-id] {
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card[data-cert-id]:hover {
    border-left-color: #3a9ad4;
    box-shadow: 0 12px 36px rgba(37, 124, 179, 0.15);
}

.cert-view-hint {
    display: block;
    margin-top: 0.75rem;
    color: var(--accent-primary);
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.cert-card:hover .cert-view-hint {
    opacity: 1;
}

/* ─── Certificate Popup Modal ─── */
.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modal.active {
    opacity: 1;
    visibility: visible;
}

.cert-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cert-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card, rgba(10, 20, 35, 0.96));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modal.active .cert-modal-content {
    transform: translateY(0) scale(1);
}

.cert-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
}

.cert-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.cert-modal-img-wrap {
    width: 100%;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: rgba(37, 124, 179, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.cert-modal-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Placeholder state when no image is loaded yet */
.cert-modal-img-wrap img[src=""],
.cert-modal-img-wrap img:not([src]) {
    display: none;
}

.cert-modal-img-wrap:has(img[src=""]),
.cert-modal-img-wrap:has(img:not([src])) {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-modal-img-wrap:has(img[src=""])::after,
.cert-modal-img-wrap:has(img:not([src]))::after {
    content: "📜 Certificate image coming soon";
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.cert-modal-info {
    padding: 1.5rem 2rem 2rem;
}

.cert-modal-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cert-modal-info .cert-issuer {
    margin-bottom: 0.35rem;
}

.cert-modal-info .cert-details {
    margin-bottom: 0;
}

/* ─── Responsive additions ─── */
@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
    }

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

    .timeline-details li {
        font-size: 0.85rem;
    }

    .cert-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .cert-modal-info {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}
