/* ===== Global Styles ===== */
body {
    padding: 0.5rem;
    font-family: 'Epilogue', sans-serif;
    color: #222;
    line-height: 1.6;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

/* ===== Navigation ===== */
nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    max-width: 1000px;
    /* same as other sections */
    margin: 1rem auto;
    /* centers horizontally */
    padding: 0 1rem;
    /* same horizontal padding */
}

nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #555;
}

/* ===== Intro Section ===== */
.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.intro-text {
    flex: 1 1 350px;
    min-width: 250px;
}

.intro-text h1 {
    font-size: 2rem;
    /* ~text-3xl */
    font-weight: 700;
    margin: 0.25rem 0 0.5rem;
}

.intro-text p {
    margin: 0.5rem 0;
    color: #444;
}

.intro img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.btn {
    background-color: #2D2D2D;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 3px;
}

.btn:hover {
    background-color: #444;
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 2.5rem 0 1.5rem;
}

/* ===== Carousel (Highlighted Work) ===== */
.carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 300px;
    margin: 0 10px;
    text-align: center;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.prev,
.next {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 10px;
    transition: color 0.2s;
    z-index: 99;
}

.prev:hover,
.next:hover {
    color: #888;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* ===== More Pieces Grid ===== */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.grid-item {
    text-align: center;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.grid-item p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

/* ===== Contact Section ===== */
.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #333;
    margin-bottom: 1.5rem;
}

.social-icon img {
    width: 28px;
    height: 28px;
    filter: grayscale(100%);
    transition: filter 0.2s;
}

.social-icon img:hover {
    filter: none;
}

/* Contact form */
.contact-form {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input {
    padding: 0.75rem;
    border: none;
    background-color: #f3f3f3;
    font-size: 1rem;
}

.contact-form button {
    background-color: #2D2D2D;
    color: white;
    border: none;
    padding: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    width: 150px;
}

.contact-form button:hover {
    background-color: #444;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .intro {
        flex-direction: column;
        text-align: center;
    }

    .intro-text {
        order: 2;
    }

    .intro img {
        order: 1;
        max-width: 150px;
        margin-bottom: 1rem;
    }

    .carousel-item {
        min-width: 250px;
    }
}