/* ===== CSS Variables ===== */
:root {
    /* Primary palette - warm, professional with maker-inspired accents */
    --color-primary: #2D5A7B;        /* Deep teal-blue (academic, trustworthy) */
    --color-primary-dark: #1E3D52;
    --color-primary-light: #4A7A9B;

    --color-accent: #E07A5F;         /* Warm coral (creativity, hands-on) */
    --color-accent-light: #F2A391;
    --color-accent-dark: #C56349;

    --color-secondary: #81B29A;      /* Sage green (growth, education) */
    --color-secondary-light: #A8D0B9;

    /* Neutrals */
    --color-bg: #FDFBF7;             /* Warm off-white */
    --color-bg-alt: #F5F1EB;
    --color-text: #2C3E50;
    --color-text-light: #5D6D7E;
    --color-text-muted: #8E99A4;
    --color-white: #FFFFFF;
    --color-border: #E8E4DD;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Other */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }

p {
    margin-bottom: var(--space-sm);
}

.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-2xl) 0;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

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

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

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

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.hero h1 {
    margin-bottom: var(--space-md);
    color: var(--color-primary-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.15;
    animation: morph 8s ease-in-out infinite;
}

.hero-accent {
    position: absolute;
    top: 30%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: var(--color-accent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morph 6s ease-in-out infinite reverse;
}

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* ===== About ===== */
.about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.about-image {
    position: sticky;
    top: 120px;
}

.image-frame {
    position: relative;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--color-accent);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.image-frame img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-primary);
    font-weight: 600;
}

.about-content h2 {
    color: var(--color-primary);
}

.about-content p {
    color: var(--color-text-light);
}

.about-content p strong {
    color: var(--color-text);
}

.credentials {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.credential {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-xs) var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-bg);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-secondary);
}

.credential-degree {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    grid-row: span 2;
    display: flex;
    align-items: center;
}

.credential-field {
    font-weight: 500;
    color: var(--color-text);
}

.credential-school {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===== Expertise ===== */
.expertise {
    background: var(--color-bg);
}

.section-intro {
    max-width: 700px;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.expertise-card {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary-light);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-white);
}

.expertise-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-primary-dark);
}

.expertise-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.expertise-card p a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-accent);
    transition: all var(--transition);
}

.expertise-card p a:hover {
    color: var(--color-accent);
}

/* ===== Quote Section ===== */
.quote-section {
    background: var(--color-primary);
    padding: var(--space-xl) 0;
}

.quote-section blockquote {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-section blockquote p {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: var(--color-white);
    line-height: 1.6;
    margin: 0;
}

.quote-section blockquote p::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-accent-light);
    line-height: 0;
    vertical-align: -0.5em;
    margin-right: 0.1em;
    opacity: 0.5;
}

/* ===== Teaching ===== */
.teaching {
    background: var(--color-white);
}

.teaching-content {
    display: grid;
    gap: var(--space-lg);
}

.teaching-intro {
    max-width: 700px;
}

.teaching-intro p {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.course-highlight {
    background: var(--color-bg);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--color-accent);
}

.course-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: var(--space-sm);
}

.course-highlight h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-primary-dark);
}

.course-highlight > p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.course-outcomes {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
}

.course-outcomes h4 {
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.course-outcomes ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.course-outcomes li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
}

.course-outcomes li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 600;
}

.teaching-highlight {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    padding: var(--space-md);
    border-radius: var(--border-radius);
}

.teaching-highlight h4 {
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.teaching-highlight p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.teaching-image {
    margin-top: var(--space-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.teaching-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 0;
}

/* ===== Impact ===== */
.impact {
    background: var(--color-bg);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.impact-card {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.impact-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
}

.impact-card.featured h3,
.impact-card.featured p {
    color: var(--color-white);
}

.impact-card.featured p {
    opacity: 0.9;
}

.impact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.impact-card.featured .impact-label {
    color: var(--color-accent-light);
}

.impact-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-primary-dark);
}

.impact-card h3 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
    transition: all var(--transition);
}

.impact-card h3 a:hover {
    color: var(--color-accent);
}

.impact-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

.impact-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-light);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===== Speaking ===== */
.speaking {
    background: var(--color-white);
}

.speaking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.speaking-list h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

.speaking-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.speaking-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-name {
    font-weight: 500;
    color: var(--color-text);
}

.event-topic {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===== Contact ===== */
.contact {
    background: var(--color-bg);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    color: var(--color-primary);
}

.contact-content > p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.contact-item {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.contact-item h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-weight: 500;
    transition: all var(--transition);
}

.contact-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.contact-link svg {
    width: 18px;
    height: 18px;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-primary-dark);
    padding: var(--space-md) 0;
    text-align: center;
}

.footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        display: none;
    }

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

    .about-image {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

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

    .impact-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-md);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

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

    .nav-toggle {
        display: flex;
    }

    section {
        padding: var(--space-xl) 0;
    }

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

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

    .impact-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .credentials {
        gap: var(--space-sm);
    }

    .credential {
        grid-template-columns: 50px 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    .btn {
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link {
        justify-content: center;
    }
}
