/* Portfolio Hero Section */
.portfolio-hero {
    height: 100vh;
    background-image: url('../assets/img01.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(44, 44, 44, 1));
}

.hero-text {
    text-align: center;
    color: white;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-text h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Portfolio Intro Section */
.portfolio-intro {
    background-color: #2c2c2c;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.portfolio-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

/* Portfolio Gallery */
.portfolio-gallery {
    background-color: #2c2c2c;
    padding: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    opacity: 0;
    transform: translateY(50px);
    cursor: pointer;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-item.wide {
    grid-column: span 3;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 4rem;
    }

    .portfolio-intro {
        padding: 3rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}