/* home.css - Homepage specific styles for Yusuf Özcan's portfolio */

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height:90vh;
    padding-top: 80px;
}

.hero-pic {
    width: 40vh;
    height: 40vh;
    border-radius: 8px;
    margin-right: 3rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-pic:hover img {
    transform: scale(1.05);
}

.hero-text h1 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
}

.hero-text h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.hero-text p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

/* Featured Works Section */
#featured-works {
    padding: 6rem 2rem;
    background-color: var(--secondary-bg-color); /* Use theme variable instead of hardcoded #f9f9f9 */
    transition: background-color var(--transition-speed);
}

#featured-works h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    margin: 0;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover p {
    transform: translateY(0);
}

.view-all-link {
    text-align: center;
    margin-top: 3rem;
}

.view-all-link a {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    transition: background-color var(--transition-speed) ease;
}

.view-all-link a:hover {
    background-color: var(--hover-color);
}

/* About Brief Section */
#about-brief {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#about-brief h2 {
    margin-bottom: 2rem;
}

#about-brief p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.read-more-link a {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.read-more-link a:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-pic {
        margin-right: 0;
        margin-bottom: 2rem;
        width: 50vw;
        height: 50vw;
        max-width: 250px;
        max-height: 250px;
    }

    .hero-text h1:after {
        left: 50%;
        transform: translateX(-50%);
    }

    #featured-works,
    #about-brief {
        padding: 4rem 1rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}
