.gallery-container {
    min-height: 100vh;
    background-color: #EAEAEA;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: right;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: 100px;
    margin-left: 0px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0; 
    transform: translateY(20px); 
    animation: fadeIn 3s forwards; 
}

.hero-content p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #daa520;
    opacity: 0; 
    transform: translateY(20px); 
    animation: fadeIn 4s forwards; 
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-top: 0px;
    
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
    padding: 0 2rem;
}

/* Animations */
.animate-fade {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-fade-delay {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}



/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 35vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
}

.portfolio-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
}

.portfolio-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.portfolio-content .subtitle {
    color: #daa520;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.portfolio-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
}

.portfolio-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portfolio-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-image:hover img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 968px) {
    .portfolio-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .portfolio-section .portfolio-image {
        order: -1; /* This ensures image always appears first */
    }

    .portfolio-section.reverse .portfolio-image {
        order: -1; /* Maintain image first even in reverse sections */
    }

    .portfolio-content {
        padding: 1rem 0;
    }

    .portfolio-content h2 {
        font-size: 2rem;
    }

    .portfolio-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .portfolio-container {
        padding: 2rem 1rem;
    }

    .portfolio-section {
        gap: 1.5rem;
    }

    .portfolio-image {
        height: 250px;
    }
}

/* Swiper Styles */
.swiper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.swiper-slide {
    width: 100%;
    height: 400px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: #daa520;   
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    color: #daa520;
}

.swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background: #000;
    opacity: 1;
}

@media (max-width: 768px) {
    .swiper-slide {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        height: 250px;
    }
}