/* Dark mode variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --accent: #2563eb;
    --border: #e5e7eb;
    --card-shadow: rgba(0, 0, 0, 0.03);
    --card-hover-shadow: rgba(0, 0, 0, 0.03);
    --profile-border: rgba(0, 0, 0, 0.08);
    --font-serif: "Fraunces", "Freight Text Pro", "Apple Garamond", serif;
}

html.dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #60a5fa;
    --border: #404040;
    --card-shadow: rgba(0, 0, 0, 0.15);
    --card-hover-shadow: rgba(0, 0, 0, 0.15);
    --profile-border: rgba(255, 255, 255, 0.15);
}

html {
    scroll-behavior: smooth;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
    color: var(--accent);
    background-color: var(--bg-secondary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
html.dark .theme-toggle .sun-icon { display: block; }
html.dark .theme-toggle .moon-icon { display: none; }

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Geist","Geist Fallback",Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol, 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 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

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

.nav svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Hero section with profile */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
    padding: 1rem 0;
}

.profile-container {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    height: 160px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: left center;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-align: left;
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-align: left;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    text-align: left;
}

.hero-desc a {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    color: white;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Content */
.content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.7;
    box-shadow: 0 2px 6px var(--card-shadow);
}

/* Content styles */
.intro-heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-section {
    margin-bottom: 3rem;
}

.about-section p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.certifications-section {
    margin-bottom: 3rem;
}

.certifications-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    margin-bottom: 0.75rem;
}

.cert-list a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cert-list a:hover {
    text-decoration: underline;
}

.site-info-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.site-info-section p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.site-info-section a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-info-section a:hover {
    text-decoration: underline;
}

.site-info-section code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 0.9em;
    background-color: var(--bg-primary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text-primary);
    word-break: break-all;
}

/* General link styles */
.content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content a:hover {
    text-decoration: underline;
}

/* Footer styles */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    text-decoration: underline;
}

.heart {
    color: #e11d48;
    display: inline-block;
    margin: 0 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.25rem;
    }

    .nav {
        flex-direction: row;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1.25rem;
        padding: 0 0.5rem;
        justify-content: flex-end;
    }

    .nav a {
        font-size: 0.875rem;
        gap: 0;
    }

    .nav a span {
        display: none;
    }

    .nav svg {
        display: block;
        width: 24px;
        height: 24px;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2.5rem;
        padding: 0.5rem 0;
        gap: 1.25rem;
    }

    .profile-container {
        width: 100px;
        height: 100px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.1rem;
        text-align: center;
    }

    .hero-desc {
        font-size: 1rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .content {
        padding: 1.5rem;
    }
}
