:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #0f172a;
    --text-muted: #6b7280;
    --bg-light: #f3f5fb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 5rem 0;
}

.section-gray {
    background: var(--bg-light);
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

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

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f172a, #1e40af 50%, #3b82f6);
    color: white;
    padding: 6rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-copy .credentials {
    font-size: 1rem;
    letter-spacing: 0.03rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-copy .tagline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

.meta-chip strong {
    font-size: 1.1rem;
    display: block;
}

.hero-narrative {
    opacity: 0.95;
    margin-bottom: 2rem;
}

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

.btn {
    padding: 0.85rem 1.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.btn-link {
    background: transparent;
    color: white;
    border: none;
    padding-left: 0;
    text-decoration: underline;
}

.hero-profile-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.hero-portrait {
    margin-bottom: 1rem;
    border-radius: 1.25rem;
    overflow: hidden;
}

.hero-portrait img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 300px;
}

.hero-portrait figcaption {
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.5rem 0.75rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.profile-stats .stat {
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.profile-stats .stat span {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-tags span {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.snapshot-row {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.snapshot-card {
    position: relative;
    padding: 1rem;
    border-radius: 1rem;
    color: white;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.snapshot-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 64, 175, 0.6));
}

.snapshot-card > * {
    position: relative;
    z-index: 1;
}

.snapshot-year {
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
}

/* Story */
.story-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.story-lead p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.story-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.story-highlights strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.value-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.value-card h3 {
    margin-bottom: 0.5rem;
}

.value-card ul {
    list-style: none;
    color: var(--text-muted);
}

.value-card li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Journey */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.journey-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 2rem;
    color: white;
    min-height: 270px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.15);
}

.journey-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.6));
}

.journey-card > * {
    position: relative;
    z-index: 1;
}

.journey-era {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    color: var(--accent-color);
}

.journey-card ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.journey-card li {
    margin-bottom: 0.4rem;
}

.journey-foundation h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.journey-insights {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.insight-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.insight-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Experience */
.experience-section .section-title {
    margin-bottom: 1.5rem;
}

.experience-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.experience-mosaic article {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.experience-mosaic h3 {
    color: var(--primary-color);
}

.experience-mosaic ul {
    margin-top: 0.75rem;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.experience-list {
    max-width: 1000px;
    margin: 0 auto;
}

.experience-item {
    background: var(--bg-white);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.experience-item.highlight {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.exp-header .date {
    color: var(--text-muted);
    font-weight: 600;
}

.company {
    font-weight: 600;
    color: var(--text-dark);
}

.details {
    color: var(--text-muted);
    font-style: italic;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    background: var(--bg-white);
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
}

.portfolio-header {
    margin-bottom: 0.75rem;
}

.project-tag {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    color: var(--accent-color);
}

.portfolio-card ul {
    margin-top: 0.75rem;
    color: var(--text-muted);
    padding-left: 1.2rem;
}

/* Skills */
.skill-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.skill-pills {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-pills span {
    background: var(--bg-light);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.skill-category {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.skill-category ul {
    list-style: none;
    color: var(--text-muted);
}

.skill-category li {
    margin-bottom: 0.6rem;
    padding-left: 1rem;
    position: relative;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.credential-stack h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.cert-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* Awards */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.award-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.award-year {
    font-weight: 700;
    color: var(--primary-color);
}

.legacy-quote {
    margin-top: 2rem;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    background: rgba(255, 255, 255, 0.8);
}

/* Contact */
.contact-section {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    text-align: center;
}

.contact-section .section-title {
    color: white;
}

.contact-lead {
    max-width: 720px;
    margin: 0 auto 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-copy h1 {
        font-size: 2.2rem;
    }

    .experience-item,
    .portfolio-card,
    .skill-category,
    .cert-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-copy h1 {
        font-size: 1.8rem;
    }

    .hero-copy .tagline {
        font-size: 1rem;
    }

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