/* ================================
   CSS CUSTOM PROPERTIES
   ================================ */
:root {
    /* Colors - Light Mode */
    --bg-primary: #FAFAF7;
    --bg-secondary: #F0EFEB;
    --bg-alt: #E8E7E2;
    --text-primary: #1A1A18;
    --text-secondary: #5C5C56;
    --text-tertiary: #8A8A82;
    --accent: #f55641;
    --accent-light: #f77565;
    --accent-bg: rgba(245, 86, 65, 0.08);
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
    --card-bg: #FFFFFF;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    --card-hover-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.1);
    --modal-bg: rgba(0, 0, 0, 0.6);
    --nav-bg: rgba(250, 250, 247, 0.9);
    --tag-bg: #F0EFEB;
    --tag-text: #5C5C56;
    --hero-gradient: linear-gradient(160deg, #FAFAF7 0%, #F0EFEB 100%);
}

body.darkmode {
    --bg-primary: #0f172a;
    --bg-secondary: #131c33;
    --bg-alt: #172140;
    --text-primary: #e2e8f0;
    --text-secondary: #ffffff;
    --text-tertiary: #64748b;
    --accent: #00b3ff;
    --accent-light: #38c9ff;
    --accent-bg: rgba(0, 179, 255, 0.1);
    --border: rgba(148, 163, 184, 0.08);
    --border-strong: rgba(148, 163, 184, 0.15);
    --card-bg: #131c33;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.4);
    --card-hover-shadow: 0 2px 12px rgba(0, 179, 255, 0.12), 0 8px 32px rgba(0,0,0,0.4);
    --modal-bg: rgba(8, 12, 24, 0.85);
    --nav-bg: rgba(15, 23, 42, 0.92);
    --tag-bg: #172140;
    --tag-text: #94a3b8;
    --hero-gradient: linear-gradient(160deg, #0f172a 0%, #131c33 100%);
    --glow: 0 0 12px rgba(0, 179, 255, 0.25), 0 0 40px rgba(0, 179, 255, 0.08);
    --glow-subtle: 0 0 8px rgba(0, 179, 255, 0.15);
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2 {
    font-family: 'Noto Sans', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--text-primary);
}

h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

p:last-child { margin-bottom: 0; }

.inline-link {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    transition: opacity 0.2s;
}
.inline-link:hover { opacity: 0.7; }

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

.section {
    padding: 6rem 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    max-width: 680px;
    margin-bottom: 1.5rem;
}

.section-intro {
    max-width: 640px;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

/* ================================
   NAVIGATION
   ================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

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

.nav-links a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--accent); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 0.85rem;
}
.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu a {
    font-family: 'Noto Sans', sans-serif;
    font-optical-sizing: auto;
    font-size: 2rem;
    color: var(--text-primary);
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ================================
   HERO
   ================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 2.5rem 2rem;
    background: var(--hero-gradient);
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 1.25rem;
    max-width: 580px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-image {
    display: flex;
    justify-content: center;
}
.hero-image img {
    max-width: 360px;
    width: 100%;
    border-radius: 16px;
    filter: grayscale(15%);
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.hero-scroll span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.scroll-line {
    flex: 1;
    height: 1px;
    background: var(--border-strong);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60px;
    background: var(--accent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
    0% { transform: translateX(-60px); }
    100% { transform: translateX(calc(100vw)); }
}

/* ================================
   ABOUT
   ================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-text h2 {
    margin-bottom: 1.75rem;
}

.about-text p {
    font-size: 1.02rem;
}

.about-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    margin: 0 auto;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat { text-align: center; }
.stat-number {
    display: block;
    font-family: 'Noto Sans', sans-serif;
    font-optical-sizing: auto;
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    line-height: 1.3;
}

/* ================================
   WHAT I DO - PILLARS
   ================================ */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pillar {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.pillar:hover {
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.pillar h3 { margin-bottom: 0.75rem; }
.pillar p { font-size: 0.95rem; }

/* ================================
   APPROACH, COGNITIVE SCIENCE
   ================================ */
.approach-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 4rem;
    align-items: center;
    margin: 2.5rem 0 4rem;
}

.approach-lead {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.approach-image { display: flex; justify-content: center; }
.approach-image img {
    max-width: 240px;
    width: 100%;
}

.roadmap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    padding-top: 1rem;
}

.roadmap-line {
    position: absolute;
    top: 50px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 15%, var(--accent) 85%, transparent 100%);
    opacity: 0.35;
    z-index: 0;
}

.roadmap-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.15s ease-out, box-shadow 0.3s, border-color 0.4s;
    will-change: transform;
}

.roadmap-step::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(
        from 0deg,
        var(--accent),
        var(--accent-light),
        transparent 50%,
        transparent
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s;
    animation: borderSpin 3s linear infinite;
}

.roadmap-step::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    background: var(--card-bg);
    z-index: 1;
}

.roadmap-step > * {
    position: relative;
    z-index: 2;
}

.roadmap-step:hover::before {
    opacity: 1;
}

.roadmap-step:hover {
    border-color: transparent;
}

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

.roadmap-node {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.roadmap-node i {
    font-size: 1.6rem;
    color: var(--accent);
}

.roadmap-number {
    position: absolute;
    top: -6px;
    right: -6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    background: var(--accent);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.roadmap-step h3 {
    font-size: 1.02rem;
    margin-bottom: 0.75rem;
    max-width: 240px;
}

.roadmap-step p {
    font-size: 0.9rem;
    max-width: 290px;
}

.approach-closing {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}


/* ================================
   THOUGHT LEADERSHIP
   ================================ */
.thinking-intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.thinking-logo {
    flex-shrink: 0;
    display: block;
    transition: opacity 0.2s;
}
.thinking-logo:hover { opacity: 0.8; }
.thinking-logo img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

.thinking-intro .section-intro {
    margin-bottom: 0;
}

.frameworks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.framework-card {
    padding: 2rem;
    border-left: 3px solid var(--accent);
    background: var(--card-bg);
    border-radius: 0 12px 12px 0;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s;
}
.framework-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.framework-number {
    font-family: 'Noto Sans', sans-serif;
    font-optical-sizing: auto;
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
    display: block;
    margin-bottom: 0.75rem;
}

.framework-card h3 { margin-bottom: 0.75rem; }
.framework-card p { font-size: 0.93rem; }

.frameworks-single {
    grid-template-columns: 1fr;
    max-width: 720px;
}

/* ================================
   WORK PORTFOLIO
   ================================ */
.work-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.work-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}
.work-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-3px);
}
.work-card.hidden {
    display: none;
}

.work-card-image {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: var(--bg-alt);
}
.work-card-image img {
    max-height: 120px;
    width: auto;
}

.work-card-text {
    padding: 1.25rem 1.5rem 1.5rem;
}

.work-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.work-card-text h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}
.work-card-text p {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ================================
   CREDENTIALS
   ================================ */

   .credentials-banner {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin: 2rem 0 3rem;
    aspect-ratio: 21 / 9;
    box-shadow: var(--card-shadow);
}

.credentials-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.credentials-banner:hover img {
    transform: scale(1.02);
}

.credentials-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem 2.5rem;
}

.credentials-banner-overlay p {
    font-family: 'DM Serif Text', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    color: #fff;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.credential-block h3 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.credential-item {
    margin-bottom: 1.25rem;
}
.credential-item strong {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}
.credential-item p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.sector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sector-tag {
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    background: var(--tag-bg);
    color: var(--tag-text);
    border: 1px solid var(--border);
}

/* ================================
   CONTACT
   ================================ */
.contact-container { text-align: center; }
.contact-container h2 { margin-left: auto; margin-right: auto; }
.contact-container .section-intro { margin-left: auto; margin-right: auto; }

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    transition: all 0.25s;
    min-width: 140px;
}
.contact-link i { font-size: 1.5rem; color: var(--accent); }
.contact-link span { font-size: 0.88rem; color: var(--text-secondary); }
.contact-link:hover {
    border-color: var(--accent);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}
.footer p {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* ================================
   SCROLL TO TOP
   ================================ */
#scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
#scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}
#scroll-top-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ================================
   MODALS
   ================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--modal-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 2rem;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--tag-bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    z-index: 10;
    transition: all 0.2s;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-alt); }

.modal-body {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    min-height: 400px;
}

.modal-visual {
    background: var(--bg-alt);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    border-radius: 16px 0 0 16px;
}
/* .modal-visual img {
    max-width: 200px;
    max-height: 180px;
} */

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    transition: opacity 0.2s;
}
.modal-link:hover { opacity: 0.7; }

.modal-info {
    padding: 2.5rem;
}
.modal-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}
.modal-info h4 {
    margin-top: 1.25rem;
}
.modal-info h4:first-of-type { margin-top: 0; }
.modal-info p { font-size: 0.92rem; }

.modal-reading {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem !important;
    font-style: italic;
    color: var(--text-tertiary) !important;
}

.modal-disclaimer {
    margin-top: 1rem;
    font-size: 0.8rem !important;
    color: var(--text-tertiary) !important;
    font-style: italic;
}

/* ================================
   MODAL GALLERY
   ================================ */
.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    align-self: stretch;
}

.modal-gallery-primary {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
    cursor: zoom-in;
    border: 1px solid var(--border);
}

.modal-gallery-primary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.modal-gallery-primary:hover img {
    transform: scale(1.03);
}

.modal-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.modal-gallery-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.modal-gallery-thumbs img:hover {
    opacity: 0.85;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ================================
   LIGHTBOX
   ================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(8, 8, 16, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 4rem 5rem;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

body.darkmode .lightbox-close:hover,
body.darkmode .lightbox-prev:hover,
body.darkmode .lightbox-next:hover {
    box-shadow: var(--glow-subtle);
    border-color: rgba(0, 179, 255, 0.4);
}


/* ================================
   ANIMATIONS
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   DARK MODE - GRADIENT HEADERS
   ================================ */
body.darkmode h1,
body.darkmode h2 {
    background: linear-gradient(135deg, #00b3ff 0%, #a855f7 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================================
   DARK MODE - BLUE GLOW EFFECTS
   ================================ */
body.darkmode .pillar:hover {
    box-shadow: var(--glow);
    border-color: rgba(0, 179, 255, 0.3);
}

body.darkmode .pillar-icon {
    box-shadow: var(--glow-subtle);
}

body.darkmode .framework-card {
    border-left-color: var(--accent);
}
body.darkmode .framework-card:hover {
    box-shadow: var(--glow);
}

body.darkmode .thinking-logo img {
    box-shadow: var(--glow-subtle);
}

body.darkmode .work-card:hover {
    box-shadow: var(--glow);
    border-color: rgba(0, 179, 255, 0.2);
}

body.darkmode .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0f172a;
    box-shadow: var(--glow-subtle);
}

body.darkmode .btn-primary {
    background: var(--accent);
    color: #0f172a;
}
body.darkmode .btn-primary:hover {
    box-shadow: var(--glow);
    opacity: 1;
}

body.darkmode .btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--glow-subtle);
}

body.darkmode .contact-link:hover {
    border-color: rgba(0, 179, 255, 0.3);
    box-shadow: var(--glow);
}

body.darkmode .stat-number {
    text-shadow: 0 0 20px rgba(0, 179, 255, 0.3);
}

body.darkmode .nav-logo {
    text-shadow: 0 0 16px rgba(0, 179, 255, 0.2);
}

body.darkmode .hero-label {
    text-shadow: 0 0 20px rgba(0, 179, 255, 0.25);
}

body.darkmode .sector-tag {
    border-color: rgba(0, 179, 255, 0.1);
}

body.darkmode .modal {
    border: 1px solid rgba(0, 179, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 179, 255, 0.08), 0 16px 48px rgba(0, 0, 0, 0.5);
}

body.darkmode .scroll-line::after {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(0, 179, 255, 0.5);
}

body.darkmode .work-tag {
    border: 1px solid rgba(0, 179, 255, 0.15);
}

body.darkmode .theme-toggle:hover {
    box-shadow: var(--glow-subtle);
}

body.darkmode #scroll-top-btn:hover {
    box-shadow: var(--glow-subtle);
}

body.darkmode .lesson-card:hover {
    filter: none;
}

body.darkmode .roadmap-node {
    box-shadow: var(--glow-subtle);
}
body.darkmode .roadmap-step:hover .roadmap-node {
    box-shadow: var(--glow);
}
body.darkmode .roadmap-number {
    color: var(--bg-primary);
    box-shadow: 0 0 6px rgba(0, 179, 255, 0.4);
}

body.darkmode .credentials-banner {
    box-shadow: var(--glow-subtle);
}
body.darkmode .credentials-banner:hover {
    box-shadow: var(--glow);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero h1 { max-width: none; }
    .hero-sub { max-width: none; }
    .hero-cta { justify-content: center; }
    .hero-image { order: -1; }
    .hero-image img { max-width: 260px; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { order: -1; text-align: center; }

    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .pillars { grid-template-columns: 1fr; }
    .frameworks { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .credentials-grid { grid-template-columns: 1fr; gap: 2rem; }

    .modal-body { grid-template-columns: 1fr; }
    .modal-visual { border-radius: 16px 16px 0 0; padding: 2rem; }
    .modal-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
    .lightbox { padding: 2rem 1rem; }
    .lightbox-close { top: 1rem; right: 1rem; width: 38px; height: 38px; }
    .lightbox-prev { left: 0.5rem; width: 38px; height: 38px; }
    .lightbox-next { right: 0.5rem; width: 38px; height: 38px; }
    #lightbox-image { max-height: 70vh; }

    .approach-grid { grid-template-columns: 1fr; gap: 2rem; }
    .approach-image { order: -1; }
    .approach-image img { max-width: 200px; }
    .roadmap { grid-template-columns: 1fr; gap: 2.5rem; }
    .roadmap-line { display: none; }

    .credentials-banner { aspect-ratio: 16 / 10; }
    .credentials-banner-overlay { padding: 1.25rem 1.5rem; }
}

@media (max-width: 680px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-menu { display: flex; }

    .section { padding: 4rem 0; }
    .hero { padding: 6rem 1.5rem 2rem; }
    .container { padding: 0 1.5rem; }
    .nav { padding: 1rem 1.5rem; }

    .work-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .contact-links { flex-direction: column; align-items: center; }
    .contact-link { width: 100%; max-width: 280px; }
    .work-filters { justify-content: center; }
}
