@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

:root {
    /* ── Slate & Teal palette ── */
    --slate:           #1E2D40;
    --blue:            #2E6B8A;
    --teal:            #3BBFBF;
    --bg:              #F4F7F9;
    --white:           #FFFFFF;
    --muted:           #6B7A8D;
    --border:          #DDE3EA;

    /* Aliases used by existing HTML */
    --navy-primary:    #2E6B8A;
    --navy-dark:       #1E2D40;
    --navy-light:      #3BBFBF;
    --gold-accent:     #3BBFBF;
    --gold-light:      #5dd4d4;

    --shadow-sm: 0 1px 3px rgba(30,45,64,0.06);
    --shadow-md: 0 4px 12px rgba(30,45,64,0.09);
    --shadow-lg: 0 10px 28px rgba(30,45,64,0.12);
    --shadow-xl: 0 20px 40px rgba(30,45,64,0.16);

    /* Light mode semantic tokens */
    --bg-primary:      #FFFFFF;
    --bg-secondary:    #F4F7F9;
    --bg-card:         #FFFFFF;
    --text-primary:    #1E2D40;
    --text-secondary:  #4A5E73;
    --text-tertiary:   #6B7A8D;
    --border-color:    #DDE3EA;
    --nav-bg:          rgba(255,255,255,0.92);

    /* Gray scale (keep for components that reference them) */
    --gray-50:  #F4F7F9;
    --gray-100: #E8EEF3;
    --gray-200: #DDE3EA;
    --gray-300: #C4CDD6;
    --gray-600: #6B7A8D;
    --gray-700: #4A5E73;
    --gray-900: #1E2D40;
}

/* Dark mode */
[data-theme="dark"] {
    --bg-primary:      #0e1c2c;
    --bg-secondary:    #152030;
    --bg-card:         #1a2a3d;
    --text-primary:    #e4eef6;
    --text-secondary:  #9ab2c5;
    --text-tertiary:   #6e8fa5;
    --border-color:    #243650;
    --nav-bg:          rgba(14,28,44,0.92);
    --navy-primary:    #3BBFBF;
    --navy-light:      #5dd4d4;
    --gold-accent:     #3BBFBF;
    --gray-50:         #152030;
    --gray-100:        #1e3048;
    --gray-200:        #243650;
    --gray-300:        #2e4560;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-lg: 0 10px 28px rgba(0,0,0,0.45);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.55);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Google Sans', 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* ── NAVIGATION ── */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000; padding: 0.85rem 0;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.nav-brand .initials {
    font-size: 1.35rem; font-weight: 700;
    color: var(--slate); letter-spacing: -0.02em;
}
[data-theme="dark"] .nav-brand .initials { color: var(--teal); }

.nav-menu { display: flex; list-style: none; gap: 0.2rem; }

.nav-menu a {
    text-decoration: none; color: var(--text-secondary);
    font-weight: 500; font-size: 0.9rem;
    padding: 6px 14px; border-radius: 100px;
    transition: all 0.2s;
}
.nav-menu a:hover { color: var(--slate); background: var(--bg-secondary); }
.nav-menu a.insights-link { color: var(--blue); font-weight: 600; }
[data-theme="dark"] .nav-menu a.insights-link { color: var(--teal); }

.theme-toggle {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem; border-radius: 100px;
    cursor: pointer; font-size: 1rem;
    transition: all 0.2s; display: flex; align-items: center;
}
.theme-toggle:hover { background: var(--bg-secondary); border-color: var(--teal); }
.theme-icon { display: inline-block; line-height: 1; }
.nav-actions { display: flex; gap: 1rem; }

/* ── BUTTONS ── */
.btn {
    display: inline-block; padding: 0.75rem 1.5rem;
    border-radius: 0.6rem; font-weight: 600;
    text-decoration: none; transition: all 0.25s;
    cursor: pointer; border: none;
    font-size: 0.95rem; font-family: inherit;
}

.btn-primary { background: var(--slate); color: var(--white); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-secondary { background: var(--teal); color: var(--white); }
.btn-secondary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ── HERO ── */
.hero {
    margin-top: 72px; padding: 4rem 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.hero-content { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: center; }

.hero-title { font-size: 2.8rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.2; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 1.25rem; color: var(--blue); font-weight: 500; margin-bottom: 0.5rem; }
[data-theme="dark"] .hero-subtitle { color: var(--teal); }
.hero-location { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2rem; }

.hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }

.metric {
    text-align: center; padding: 1rem;
    background: var(--bg-card); border-radius: 0.75rem;
    box-shadow: var(--shadow-md); border: 1px solid var(--border-color);
    transition: background-color 0.3s;
}
.metric-value { font-size: 1.7rem; font-weight: 700; color: var(--blue); }
[data-theme="dark"] .metric-value { color: var(--teal); }
.metric-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.2rem; }

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

/* ── PROFILE PHOTO ── */
.hero-image { display: flex; justify-content: center; align-items: center; }

.profile-photo {
    width: 240px; height: 240px;
    border-radius: 50%;
    object-fit: cover; object-position: center 15%;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
    outline: 3px solid var(--teal);
    display: block;
}

.image-placeholder { text-align: center; }
.image-placeholder svg { border-radius: 50%; box-shadow: var(--shadow-xl); }
.image-note { margin-top: 1rem; font-size: 0.85rem; color: var(--text-secondary); font-style: italic; }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }

.section-title {
    font-size: 2.1rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem; text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle { text-align: center; color: var(--text-secondary); font-size: 1rem; margin-bottom: 3rem; }

/* ── ABOUT ── */
.about-section { background: var(--bg-primary); }
.about-content { max-width: 860px; margin: 0 auto; }
.about-content .lead { font-size: 1.1rem; font-weight: 500; color: var(--text-primary); margin-bottom: 1.5rem; line-height: 1.75; }
.about-content p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }

/* ── IMPACT ── */
.impact-section { background: var(--bg-secondary); }
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }

.impact-card {
    background: var(--bg-card); padding: 2rem;
    border-radius: 1rem; box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.impact-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.impact-card h3 { font-size: 1.1rem; color: var(--blue); margin-bottom: 0.75rem; }
[data-theme="dark"] .impact-card h3 { color: var(--teal); }
.impact-card p { color: var(--text-secondary); line-height: 1.65; }

/* ── TIMELINE ── */
.experience-section { background: var(--bg-primary); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, var(--slate), var(--teal));
}

.timeline-item { position: relative; margin-bottom: 2.5rem; }

.timeline-marker {
    position: absolute; left: -2.5rem; top: 6px;
    width: 1rem; height: 1rem; border-radius: 50%;
    background: var(--teal); border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--teal);
}

.timeline-content {
    background: var(--bg-card); padding: 1.75rem;
    border-radius: 1rem; box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, background-color 0.3s;
}
.timeline-content:hover { transform: translateX(4px); }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }
.timeline-header h3 { font-size: 1.15rem; color: var(--slate); margin-bottom: 0.2rem; }
[data-theme="dark"] .timeline-header h3 { color: var(--text-primary); }
.company { color: var(--blue); font-weight: 500; font-size: 0.92rem; }
[data-theme="dark"] .company { color: var(--teal); }
.date { color: var(--teal); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.role-summary { color: var(--text-primary); font-weight: 500; margin-bottom: 1rem; font-style: italic; font-size: 0.9rem; }

.responsibilities { list-style: none; padding-left: 0; }
.responsibilities li { position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; color: var(--text-secondary); line-height: 1.6; font-size: 0.9rem; }
.responsibilities li::before { content: '→'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ── CONSULTANCY ── */
.consultancy-section { background: var(--bg-secondary); }
.consultancy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }

.consultancy-card {
    background: var(--bg-card); padding: 2rem;
    border-radius: 1rem; box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--teal);
    transition: background-color 0.3s;
}
.consultancy-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.consultancy-header h3 { font-size: 1.1rem; color: var(--slate); }
[data-theme="dark"] .consultancy-header h3 { color: var(--text-primary); }
.badge { background: var(--teal); color: var(--white); padding: 0.2rem 0.75rem; border-radius: 100px; font-size: 0.72rem; font-weight: 600; }
.consultancy-card ul { list-style: none; padding-left: 0; margin-top: 1rem; }
.consultancy-card ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--text-secondary); line-height: 1.6; font-size: 0.9rem; }
.consultancy-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ── EXPERTISE ── */
.expertise-section { background: var(--bg-primary); }
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }

.expertise-category {
    background: var(--bg-card); padding: 1.75rem;
    border-radius: 1rem; box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s;
}
.expertise-category h3 { font-size: 1.05rem; color: var(--blue); margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--teal); }
[data-theme="dark"] .expertise-category h3 { color: var(--teal); }
.expertise-list { list-style: none; padding-left: 0; }
.expertise-list li { position: relative; padding-left: 1.25rem; margin-bottom: 0.6rem; color: var(--text-primary); font-size: 0.9rem; }
.expertise-list li::before { content: '▸'; position: absolute; left: 0; color: var(--teal); }

/* ── INSIGHTS TEASER ── */
.insights-section { background: var(--bg-secondary); }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }

.insight-card {
    background: var(--bg-card); padding: 1.75rem;
    border-radius: 1rem; box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.insight-card.placeholder { opacity: 0.75; }

.insight-tag {
    display: inline-block; background: var(--slate); color: var(--white);
    padding: 0.2rem 0.7rem; border-radius: 0.4rem;
    font-size: 0.72rem; font-weight: 600; margin-bottom: 0.9rem;
}
.insight-card.placeholder .insight-tag { background: var(--border-color); color: var(--muted); }
.insight-card h3 { font-size: 1rem; color: var(--text-primary); margin-bottom: 0.75rem; line-height: 1.4; }
.insight-card p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.25rem; font-size: 0.9rem; }
.insight-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; border-top: 1px solid var(--border-color); }
.insight-category { font-size: 0.82rem; color: var(--text-secondary); }
.insight-date { font-size: 0.82rem; color: var(--teal); font-weight: 600; }

/* View all CTA */
.insights-cta { text-align: center; margin-top: 2.5rem; }
.insights-cta a {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--slate); color: var(--white);
    padding: 0.75rem 2rem; border-radius: 100px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}
.insights-cta a:hover { background: var(--blue); transform: translateY(-2px); }

/* ── EDUCATION ── */
.education-section { background: var(--bg-primary); }
.education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }

.education-card {
    background: var(--bg-card); padding: 1.75rem;
    border-radius: 1rem; box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--teal);
    transition: background-color 0.3s;
}
.education-card h3 { font-size: 1rem; color: var(--blue); margin-bottom: 0.4rem; }
[data-theme="dark"] .education-card h3 { color: var(--teal); }
.institution { color: var(--text-primary); font-weight: 500; margin-bottom: 0.2rem; }
.education-card .date { color: var(--text-secondary); font-size: 0.88rem; display: block; margin-bottom: 0.4rem; }
.note { color: var(--text-secondary); font-size: 0.86rem; font-style: italic; margin-top: 0.4rem; }
.education-card .badge { margin-top: 0.6rem; display: inline-block; }

/* ── CONTACT ── */
.contact-section { background: var(--bg-secondary); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; max-width: 520px; margin-left: auto; margin-right: auto; }

.contact-card {
    background: var(--bg-card); padding: 2rem;
    border-radius: 1rem; box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center; text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.contact-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.contact-card h3 { font-size: 1rem; color: var(--blue); margin-bottom: 0.4rem; }
[data-theme="dark"] .contact-card h3 { color: var(--teal); }
.contact-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ── FOOTER ── */
.footer { background: var(--slate); color: var(--white); text-align: center; padding: 2rem 0; }
.footer p { color: rgba(255,255,255,0.6); margin: 0.2rem 0; font-size: 0.85rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-image { order: -1; }
    .profile-photo { width: 180px; height: 180px; }
    .impact-grid, .consultancy-grid, .expertise-grid, .education-grid { grid-template-columns: 1fr; }
    .insights-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-metrics { grid-template-columns: repeat(2, 1fr); }
    .hero-cta { flex-direction: column; }
    .section-title { font-size: 1.8rem; }
    .insights-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
