:root {
    --bg-color: #ffffff;
    --text-color: #ff330a;
    --secondary-text: #000000;
    --accent-color: #000000;
    --spacing-unit: 1rem;
    --container-width: 800px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky header */
}

body {
    font-family: 'Domine', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
    /* Prevent content from being hidden */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 2rem;
    /* Reduced top padding since body has padding-top */
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    /* Slight grey contrast */
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.8s ease-out;
}

.nav-links {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-start;
    /* Changed to left align */
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-text);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

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

/* Header / Profile */
.hero-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
}

.profile-section {
    text-align: center;
    flex: 0 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.profile-img {
    width: 248px;
    height: 248px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid var(--text-color);
}

.name {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--secondary-text);
    font-weight: 300;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.cartoon-map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 0 auto;
}

.img-cartoon {
    width: 300px;
    height: 300px;
    border-radius: 30%;
    display: block;
    object-fit: cover;
    /* transition: transform 0.3s ease; */
}

/* Map Widget */
.map-widget {
    width: 300px;
    /* Slightly wider than the image for better map view */
    height: 300px;
    border-radius: 5%;
    /* Rounded corners but distinct from the image */
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    border: 1px solid #eee;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.map-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--secondary-text);
    pointer-events: none;
    /* Let clicks pass through to map if needed, though map is static here mostly */
}

#map-minimal {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Sections */
.section {
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.section:nth-child(2) {
    animation-delay: 0.2s;
}

.section:nth-child(3) {
    animation-delay: 0.4s;
}

.section:nth-child(4) {
    animation-delay: 0.6s;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.0rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section-content {
    font-size: 1.05rem;
    color: var(--secondary-text);
}

/* Experience */
.experience-item {
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.company {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.job-desc {
    color: var(--secondary-text);
}

/* Projects */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-card {
    border: 1px solid #eee;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
    overflow: hidden;
    border-radius: 8px;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.project-desc {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.project-link:hover {
    opacity: 0.7;
}

/* Footer / Social */
.footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    animation: fadeIn 1s ease-out 0.8s forwards;
    opacity: 0;
}

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

.social-links a {
    color: var(--text-color);
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #555;
    transform: scale(1.1);
}

.copyright {
    font-size: 0.8rem;
    color: #aaa;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .name {
        font-size: 2rem;
    }

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