/* ========================
   1. VARIABLES & RESET
   ======================== */
:root {
    --primary: #007f4e;
    --primary-dark: #006840;
    --primary-rgb: 0, 127, 78;
    --on-primary: #ffffff;
    --white: #ffffff;
    --light: #f4f8f6;
    --dark: #0d1712;
    --surface: #ffffff;
    --surface-alt: #f4f8f6;
    --heading: #0d1712;
    --text: #2d3748;
    --text-light: #718096;
    --border: rgba(var(--primary-rgb), 0.12);
    --shadow: rgba(var(--primary-rgb), 0.12);
    --shadow-hover: rgba(var(--primary-rgb), 0.24);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
    --nav-height: 72px;
    --font-display: 'Space Grotesk', sans-serif;
}

:root[data-theme="dark"] {
    --primary: #12e3a0;
    --primary-dark: #0abd85;
    --primary-rgb: 18, 227, 160;
    --on-primary: #04140d;
    --surface: #0d1712;
    --surface-alt: #121f18;
    --heading: #eef6f2;
    --text: #c3d1cb;
    --text-light: #83968d;
    --border: rgba(18, 227, 160, 0.22);
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(18, 227, 160, 0.28);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

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

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

ul {
    list-style: none;
}

h1, h2, h3, .hero-role, .stat-number, .nav-logo, .footer-logo-text {
    font-family: var(--font-display);
    letter-spacing: -0.015em;
}

h1, h2, h3, h4, p, span, a {
    transition: color var(--transition);
}

/* ========================
   2. SCROLL REVEAL
   ======================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc(var(--stagger, 0) * 80ms);
}

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

/* ========================
   3. UTILITIES
   ======================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    background: var(--surface);
    transition: background var(--transition);
}

.section-alt {
    background: var(--surface-alt);
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 16px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary);
    margin-bottom: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--heading);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* ========================
   4. NAVBAR
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 24px var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px) rotate(12deg);
}

.theme-toggle__icon {
    font-size: 0.95rem;
}

.theme-toggle__icon--light {
    display: none;
}

[data-theme="dark"] .theme-toggle__icon--dark {
    display: none;
}

[data-theme="dark"] .theme-toggle__icon--light {
    display: inline-block;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

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

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 100px;
    padding: 7px 18px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--heading);
    margin-bottom: 12px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-role {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-slogan {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    font-weight: 400;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.hero-photo-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 380px;
}

.hero-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -24px;
    background: radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.18), transparent 70%);
    border-radius: 32px;
    z-index: 0;
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 24px 64px var(--shadow-hover);
}

/* ========================
   6. STATS BAND
   ======================== */
.stats-band {
    background: var(--dark);
    padding: 56px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 0 16px;
}

.stat-number {
    display: block;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 28px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo-text span {
    color: var(--primary);
}

.footer-slogan {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    transition: color var(--transition);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    margin-bottom: 11px;
}

.footer-contact i {
    color: rgba(255, 255, 255, 0.75);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 28px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ========================
   8. ABOUT
   ======================== */
.about-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-cta {
    margin-top: 12px;
}

.about-facts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 24px;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
}

.fact-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fact-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.fact-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    overflow-wrap: break-word;
}

a.fact-link:hover {
    color: var(--primary);
}

/* ========================
   9. SKILLS (BENTO GRID)
   ======================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bento-cell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.bento-cell:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.bento-cell--wide {
    grid-column: span 2;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}

.bento-cell h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading);
}

.bento-cell p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
}

.bento-cell--wide h3 {
    font-size: 1.3rem;
}

.bento-cell--wide p {
    font-size: 0.98rem;
}

/* ========================
   10. EXPERIENCE & EDUCATION (TIMELINE)
   ======================== */
.timeline {
    max-width: 760px;
    margin: 0 auto;
}

.timeline-entry {
    display: flex;
    gap: 28px;
    padding-bottom: 40px;
}

.timeline-entry:last-child {
    padding-bottom: 0;
}

.timeline-rail {
    position: relative;
    width: 12px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
    margin-top: 6px;
    z-index: 1;
}

.timeline-rail::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: -40px;
    left: 50%;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-entry:last-child .timeline-rail::before {
    display: none;
}

.timeline-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
}

.timeline-date {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 4px;
}

.timeline-place {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 18px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-summary {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* ========================
   11. PROJECTS
   ======================== */
.projects-group {
    margin-bottom: 64px;
}

.projects-group:last-child {
    margin-bottom: 0;
}

.projects-group__header {
    margin-bottom: 28px;
}

.projects-group__header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 6px;
}

.projects-group__header p {
    font-size: 0.92rem;
    color: var(--text-light);
    max-width: 620px;
}

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

.project-grid--compact {
    grid-template-columns: repeat(4, 1fr);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.project-card__cat {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.project-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--heading);
    margin: 4px 0;
}

.project-card__url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.project-card__url i {
    font-size: 0.7rem;
}

.projects-group__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.projects-group__more:hover {
    gap: 12px;
}

/* ========================
   12. CERTIFICATIONS
   ======================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.cert-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.cert-card__body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.cert-card__body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.4;
}

.cert-card__issuer {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================
   13. CONTACT
   ======================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 56px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 16px;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 8px 28px var(--shadow);
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-card__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-light);
}

.contact-card__value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

.contact-form {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    align-self: flex-start;
    border: none;
}

/* ========================
   14. MEDIA QUERIES
   ======================== */

/* Tablet */
@media (max-width: 900px) {
    .nav-links {
        gap: 20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-slogan {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-photo-wrap {
        max-width: 280px;
    }

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

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

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

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

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

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        padding: 44px 20px 36px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .section {
        padding: 72px 0;
    }

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

    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 14px;
        margin-bottom: 24px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero .btn-primary,
    .hero .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px var(--shadow);
        padding: 16px 0;
        gap: 0;
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions {
        gap: 14px;
    }

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

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

    .bento-cell--wide {
        grid-column: auto;
    }

    .timeline-entry {
        gap: 16px;
        padding-bottom: 28px;
    }

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

    .project-grid,
    .project-grid--compact {
        grid-template-columns: 1fr;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* ========================
   15. REDUCED MOTION
   ======================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-item {
        opacity: 1;
        transform: none;
    }
}

/* ========================
   16. DARK MODE — NEON ACCENTS
   ======================== */
[data-theme="dark"] .nav-logo span,
[data-theme="dark"] .hero h1 span,
[data-theme="dark"] .section-header h2 span {
    text-shadow: 0 0 18px rgba(var(--primary-rgb), 0.55);
}

[data-theme="dark"] .hero-badge {
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.25);
}

[data-theme="dark"] .timeline-dot {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.18), 0 0 14px rgba(var(--primary-rgb), 0.65);
}

[data-theme="dark"] .fact-icon,
[data-theme="dark"] .bento-icon,
[data-theme="dark"] .contact-card__icon {
    box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 0 22px rgba(var(--primary-rgb), 0.4);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.6);
}

[data-theme="dark"] .theme-toggle:hover {
    box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.35);
}
