/* ABOUT PAGE STYLES */

/* Section 1: Introduction */
.about-intro {
    padding: 8rem 4rem 6rem 4rem;
    max-width: 1250px;
    margin: 0 auto;
}

.intro-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 6rem;
    align-items: center;
}

.intro-image {
    width: 400px;
    height: 400px;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: rgb(30, 30, 30);
}

.intro-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgb(85, 85, 85);
    margin-bottom: 1.5rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Section 2: Photo Gallery */
.photo-gallery {
    padding: 0;
    margin: 0;
    background: rgb(255, 255, 255);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 100%;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Creates square aspect ratio */
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay p {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Section 3: Skills */
.skills-section {
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-container h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    color: rgb(30, 30, 30);
}

.skills-category {
    margin-bottom: 4rem;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: rgb(50, 50, 50);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-box {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-box.design {
    border-color: rgb(234, 164, 102);
    color:  rgb(234, 164, 102);;
    background: rgba(102, 126, 234, 0.05);
}

.skill-box.design:hover {
    background: rgb(234, 133, 124);
    color: white;
}

.skill-box.technical {
    border-color: rgb(100, 236, 220);
    color: rgb(100, 236, 220);;
    background: rgba(107, 255, 238, 0.05);
}

.skill-box.technical:hover {
    background: rgb(181, 130, 244);
    color: white;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .intro-container {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }

    .intro-image {
        width: 350px;
        height: 350px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .about-intro {
        padding: 6rem 2rem 4rem 2rem;
    }

    .intro-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-image {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }

    .intro-text h1 {
        font-size: 2.5rem;
    }

    .intro-text p {
        font-size: 1.05rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-section {
        padding: 4rem 2rem;
    }

    .skills-container h2 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .skills-category h3 {
        font-size: 1.3rem;
    }

    .skill-box {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .intro-text h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-overlay p {
        font-size: 1rem;
    }

    .skills-container h2 {
        font-size: 2rem;
    }

    .skill-box {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}