/* ================================================================
   index.css — Styles specific to index.html
   ================================================================ */

/* ── Hero ── */
.hero {
    padding: 80px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: #fff;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image {
    position: relative;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
}

.hero-image picture,
.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ── Featured Projects ── */
.featured-projects {
    padding: 80px 50px 24px;
    background-color: #fff;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.project-card {
    background-color: #f9f7f4;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #d4c5b0 0%, #e8dcc8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.project-info p {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.project-link {
    color: #d97757;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-link:hover {
    text-decoration: underline;
}

/* ── Illustrations Gallery (justified, same as illustration.html) ── */
.illustrations-section {
    padding: 80px 50px;
    background-color: #f9f7f4;
}

.illustrations-section .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.illustrations-section .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    flex-shrink: 0;
}

.illustrations-section .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.illustrations-section .gallery-item:hover img {
    transform: scale(1.04);
}

.illustrations-section .gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.illustrations-section .gallery-item:hover .overlay {
    background: rgba(0, 0, 0, 0.18);
}

.illustrations-section .overlay-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.illustrations-section .gallery-item:hover .overlay-title {
    opacity: 1;
    transform: translateY(0);
}

.view-more {
    text-align: center;
}

.view-more a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ── About ── */
.about-section {
    padding: 80px 50px;
    background-color: #fff;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.about-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9b5a0 0%, #e0c9a8 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.about-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.about-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.read-more {
    color: #d97757;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 16px 20px 40px;
        gap: 24px;
    }

    .hero-content h1 {
        font-size: 33px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .hero-image {
        height: auto;
    }

    .hero-image picture,
    .hero-image img {
        height: auto;
        object-fit: contain;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .illustrations-section .gallery-grid {
        gap: 6px;
    }

    .about-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .featured-projects {
        padding: 40px 20px 16px;
    }

    .illustrations-section {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .illustrations-section .gallery-grid {
        gap: 4px;
    }
}
