
/* ========================================
   AMMI'S CREATIVE PORTFOLIO
   Autumn-inspired responsive website
   ======================================== */

/* 1. GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #FAF5ED;
    color: #46352B;
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

p {
    color: #766456;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Shared centered content container */
.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.section {
    padding: 85px 0;
}

.section-intro {
    max-width: 600px;
    margin-bottom: 35px;
}

.eyebrow {
    color: #AD6242;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 2. NAVIGATION BAR */

/* Flexbox aligns the logo and navigation links */
header {
    background-color: #FAF5ED;
    border-bottom: 1px solid #E9DED1;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #855037;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #B76540;
}

/* 3. HERO / INTRODUCTION SECTION */

.hero {
    min-height: 570px;
    padding: 80px 0;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        #FAF5ED 50%,
        #F0E2D1 100%
    );
}

/* Text and images sit side by side on larger screens */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
}

.hero-text {
    flex: 1 1 400px;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    margin-bottom: 22px;
}

.hero-text h1 span {
    color: #AD6242;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: 28px;
}

/* Buttons wrap when there is not enough space */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background-color: #A85D3D;
    color: #FFFFFF;
}

.button-primary:hover {
    background-color: #87462D;
}

.button-secondary {
    border: 1px solid #CDB8A4;
    color: #71442F;
}

/* Flexbox creates the featured image layout */
.hero-images {
    flex: 1 1 350px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-images img {
    width: calc(50% - 8px);
    height: 320px;
    object-fit: cover;
    border-radius: 140px 140px 18px 18px;
}

.hero-images img:nth-child(2) {
    margin-top: 55px;
}

/* 4. ABOUT ME SECTION */

.about {
    background-color: #F0E5D8;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
}

.about-decoration {
    flex: 0 1 300px;
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #D8B99B;
    border-radius: 48% 52% 45% 55%;
    padding: 35px;
    color: #69412D;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
}

.about-text {
    flex: 1 1 400px;
}

.about-text p {
    margin-bottom: 15px;
}

/* Hobby tags wrap onto multiple lines */
.hobby-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hobby {
    background: #FAF5ED;
    border: 1px solid #E2CDB9;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* 5. PORTFOLIO GALLERY */

/* Responsive cards use Flexbox rather than fixed columns */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.portfolio-card {
    flex: 1 1 290px;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background-color: #FFFFFF;
    border: 1px solid #EDE3D8;
    transition: transform 0.25s, box-shadow 0.25s;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(82, 55, 36, 0.10);
}

.portfolio-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background-color: #E8D5C1;
}

.card-content {
    padding: 23px;
}

.card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 9px;
}

.card-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.text-link {
    color: #A85D3D;
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

/* 6. CLASS PROJECTS */

.projects {
    background-color: #F0E5D8;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.project-item {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background-color: #FAF5ED;
    border: 1px solid #E3D3C2;
    border-radius: 12px;
}

.project-icon {
    flex: 0 0 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EAD5C0;
    border-radius: 12px;
    font-size: 1.5rem;
}

.project-details {
    flex: 1;
    min-width: 0;
}

.project-details h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.project-details p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* 7. CONTACT SECTION AND FOOTER */

.contact {
    padding: 75px 0;
    background-color: #714832;
    color: #FFF8EF;
    text-align: center;
}

.contact h2 {
    margin-bottom: 18px;
}

.contact p {
    color: #E8D8C8;
    max-width: 550px;
    margin: 0 auto 25px;
}

.contact .button {
    background-color: #F5E5D1;
    color: #714832;
}

footer {
    background-color: #563728;
    color: #E8D8C8;
    padding: 22px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* 8. TABLET RESPONSIVENESS */

@media (max-width: 800px) {
    .section {
        padding: 65px 0;
    }

    .hero {
        padding: 60px 0;
    }

    /* Stack hero text above images */
    .hero-content {
        flex-wrap: wrap;
        gap: 35px;
    }

    .hero-text,
    .hero-images {
        flex-basis: 100%;
    }

    .hero-images img {
        height: 300px;
    }

    /* Stack the about illustration and text */
    .about-content {
        flex-wrap: wrap;
        gap: 30px;
    }

    .about-decoration {
        flex-basis: 100%;
        min-height: 180px;
    }

    .about-text {
        flex-basis: 100%;
    }
}

/* 9. MOBILE RESPONSIVENESS */

@media (max-width: 520px) {
    .container {
        width: 92%;
    }

    /* Put navigation links beneath the logo */
    .navbar {
        padding: 12px 0;
        flex-direction: column;
        gap: 8px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .hero-text h1 {
        font-size: 2.7rem;
    }

    .hero-images {
        gap: 10px;
    }

    .hero-images img {
        width: calc(50% - 5px);
        height: 220px;
    }

    .hero-images img:nth-child(2) {
        margin-top: 30px;
    }

    /* One portfolio card per row on small screens */
    .portfolio-card {
        flex-basis: 100%;
    }

    .portfolio-card img {
        height: 220px;
    }

    .project-item {
        flex-basis: 100%;
        padding: 18px;
    }

    .section {
        padding: 55px 0;
    }
}
