.about-section-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-color: #9eb3c0;
    color: white;
    flex-wrap: wrap;
    height: 360px; /* Fixed height for desktop */
}

.about-text-2 {
    flex: 1;
    min-width: 280px;
    max-width: 600px;
    padding-right: 40px;
}

.about-text-2 h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-text-2 p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fffacd;
}

.about-image-2 {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.about-image-2 img {
    width: 100%;
    max-width: 500px; /* Increased max width */
    height: auto; /* Auto height maintains aspect ratio */
    max-height: 340px; /* Fits within 360px section */
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    object-fit: cover; /* Changed to cover for better fill */
}

/* Tablet adjustments */
@media (max-width: 992px) {
    .about-text-2 {
        padding-right: 30px;
    }

    .about-text-2 h1 {
        font-size: 2rem;
    }

    .about-text-2 p {
        font-size: 1rem;
    }

    .about-image-2 img {
        max-width: 450px;
        max-height: 320px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .about-section-2 {
        flex-direction: column;
        text-align: center;
        height: auto; /* Let height adjust naturally on mobile */
        padding: 30px 5%;
    }

    .about-text-2 {
        padding-right: 0;
        margin-bottom: 25px;
        max-width: 100%;
    }

    .about-text-2 h1 {
        font-size: 1.8rem;
    }

    .about-text-2 p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .about-image-2 {
        width: 100%;
        min-width: 100%;
    }

    .about-image-2 img {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 300px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .about-section-2 {
        padding: 25px 4%;
    }

    .about-text-2 h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .about-text-2 p {
        font-size: 0.9rem;
    }

    .about-image-2 img {
        max-height: 250px;
        border-radius: 8px;
    }
}






    
    .sf-about-section-3 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        flex-wrap: wrap;
    }

    .sf-about-image-3 {
        flex: 1;
        min-width: 280px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sf-about-image-3 img {
        width: 100%;
        max-width: 500px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .sf-about-text-3 {
        flex: 1;
        min-width: 280px;
    }

    .sf-about-text-3 h2 {
        font-size: 2rem;
        color: #1a1a1a;
        margin-bottom: 20px;
    }

    .sf-about-text-3 p {
        font-size: 1rem;
        line-height: 1.6;
        color: #555;
    }

    /* Responsive adjustments */
    @media (max-width: 992px) {
        .sf-about-text-3 h2 {
            font-size: 1.8rem;
        }
        .sf-about-text-3 p {
            font-size: 0.95rem;
        }
    }

    @media (max-width: 768px) {
        .sf-about-section-3 {
            flex-direction: column;
            text-align: center;
            padding: 30px 10px;
        }

        .sf-about-text-3 {
            margin-bottom: 20px;
        }

        .sf-about-image-3 img {
            max-width: 90%;
        }
    }






        .sf-gallery-section {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .sf-gallery-section p {
        margin-bottom: 30px;
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        background-color: #fff;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

    .hover-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.6);
        color: #fff;
        padding: 10px;
        text-align: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gallery-item:hover .hover-overlay {
        opacity: 1;
    }

    /* Responsive text */
    @media (max-width: 768px) {
        .sf-gallery-section p {
            font-size: 0.95rem;
        }
    }





    .sf-portfolio-section {
    padding: 60px 5%;
    background: #f8fafc;
}

/* GRID SYSTEM */
.sf-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ITEM BOX */
.sf-portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* IMAGE */
.sf-portfolio-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: 0.5s ease;
}

/* HOVER OVERLAY */
.sf-hover-content {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    opacity: 0;
    transition: 0.4s ease;
}

/* HOVER EFFECT */
.sf-portfolio-item:hover img {
    transform: scale(1.1);
}

.sf-portfolio-item:hover .sf-hover-content {
    opacity: 1;
}

/* TABLET */
@media (max-width: 992px) {
    .sf-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-portfolio-img img {
        height: 220px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .sf-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .sf-portfolio-img img {
        height: auto;
    }
}





.sf-video-section {
    position: relative;
    width: 100%;
    height: 360px; /* Fixed height */
    background: url('../img/video_bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Dark overlay */
.sf-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

/* Content */
.sf-video-container {
    position: relative;
    z-index: 2;
    color: #fff;
}

.sf-video-content h2 {
    margin-top: 15px;
    font-size: 32px;
    font-weight: bold;
}

/* Play Button */
.sf-video-btn {
    width: 80px;
    height: 80px;
    background: #ff3d00;
    color: white;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: auto;
    transition: 0.3s ease;
    box-shadow: 0 0 20px rgba(255,61,0,0.6);
}

.sf-video-btn:hover {
    transform: scale(1.1);
    background: #ff5722;
}

/* Responsive */
@media (max-width: 768px) {
    .sf-video-section {
        height: auto;
        padding: 80px 15px;
    }

    .sf-video-content h2 {
        font-size: 22px;
    }

    .sf-video-btn {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
}
