/* ================================================================
   COLOR PALETTE
=================================================================== */
:root {
    --ivory: #F4F3F1;
    --sage: #A1A79E;
    --evergreen: #68756d;
    --blush: #decebf;
    --terracotta: #b57b66;
    --terracotta-hover: #A86A54;
    --text-dark: #2F3A2F;
    --warm-gray: #E7E4DE;
}

/* ================================================================
   RESET & BASE
=================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--ivory);
    color: var(--text-dark);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================================
   TYPOGRAPHY
=================================================================== */
h2 {
    font-family: 'Georgia', serif;
    font-size: 36px;
    color: var(--evergreen);
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-size: 24px;
    margin-top: 25px;
    color: #000;
}

/* ================================================================
   GLOBAL LAYOUT
=================================================================== */
section {
    scroll-margin-top: 95px;
    margin-bottom: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ================================================================
   HEADER / NAV
=================================================================== */
header {
    position: sticky;
    top: 0;
    background: var(--sage);
    z-index: 1000;
}

.topnav {
    font-family: 'Noto Serif', sans-serif;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.topnav a {
    color: var(--ivory);
    margin: 0 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.topnav a:hover {
    color: var(--blush);
}

/* ================================================================
   HERO
=================================================================== */
.hero-section {
    text-align: center;
}

.hero-section h1 {
    font-size: 60px;
    font-weight: 700;
    color: var(--evergreen);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 20px;
    padding-bottom: 20px;
    border-bottom: 5px solid var(--warm-gray);
}

/* ================================================================
   ABOUT / BIO
=================================================================== */
.description {
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

#bio .description {
    margin-bottom: 20px;
}

#about {
    background-color: var(--blush);
    border-radius: 8px;
    padding: 20px 60px;
}

#about h2 {
    font-weight: 600;
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    gap: 20px;
    margin: 0 auto;
}

.about-text {
    flex: 0 0 50%;
    max-width: 500px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-image {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ivory);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ================================================================
   BUTTONS
=================================================================== */
.btn {
    display: inline-block;
    padding: 10px 18px;
    margin-top: 12px;
    background-color: var(--terracotta);
    color: var(--ivory);
    border-radius: 6px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: var(--terracotta-hover);
}

/* ================================================================
   PROJECTS
=================================================================== */
#projects h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--warm-gray);
    padding-bottom: 20px;
}

.project-image img {
    width: 400px;
    height: 200px;
    border-radius: 8px;
    object-fit: contain;
    border: 2px solid var(--blush);
}

.project-info {
    flex: 1;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ================================================================
   CONTACT
=================================================================== */
#contact {
    background-color: var(--blush);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-icons {
    padding-top: 48px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.contact-icon:hover {
    transform: scale(1.1);
}

.contact-email {
    font-size: 16px;
}

.indented-list {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
}

/* ================================================================
   PROJECT PAGE
=================================================================== */
.project-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.custom-hr {
    border: none;
    height: 1px;
    background-color: #cccccc;
    margin: 20px 0;
}

.indented-list {
    margin: 1rem 0 1rem 1.5rem;
    padding-left: 1.5rem;
}

.project-container img {
    display: block;
    width: 90%;
    height: auto;
    margin: 1.5rem auto;
    border: 4px solid var(--blush);
}

.project-container iframe {
    display: block;
    width: 90%;
    aspect-ratio: 16/9;
    margin: 1.5rem auto;
}

/* ================================================================
   TYPING ANIMATION
=================================================================== */

.cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hidden {
    display: none;
}

/* ================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 768px) {
    .hero-section h1 {
        min-height: calc(1.2em * 2);
    }
    
    .project-item {
        flex-direction: column;
        align-items: center;
    }

    .project-info {
        text-align: center;
    }

    .project-image img {
        max-width: 90%;
        display: block;
        margin: 0 auto;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 20px;
    }

    .about-image img {
        width: 200px;
        height: 200px;
    }

    .about-text p {
        font-size: 16px;
    }
}