/* Introduction Section */
.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 0;
    z-index: 1;
    background: #2B2B2B; /* Separate gray background for intro */
    overflow: hidden;
}

/* Wave Background Container */
.wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Common Wave Properties */
.wave {
    position: absolute;
    width: 250%;
    height: 150px; /* Adjust thickness */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)); /* Subtle glow */
    opacity: 0.25; /* Make them visible but not overpowering */
    border-radius: 50%;
    filter: blur(8px); /* Smooth, flowing effect */
    animation: waveMotion 18s linear infinite; /* Slow and fluid motion */
}

/* Additional Waves for a Layered Look */
.wave1 { top: 20%; animation-delay: 0s; }
.wave2 { top: 35%; height: 130px; opacity: 0.2; animation-delay: -4s; }
.wave3 { top: 50%; height: 180px; opacity: 0.3; animation-delay: -8s; }
.wave4 { top: 65%; height: 140px; opacity: 0.22; animation-delay: -12s; }
.wave5 { top: 80%; height: 160px; opacity: 0.18; animation-delay: -16s; }

/* Keyframes for Wave Motion */
@keyframes waveMotion {
    0% { transform: translateX(-100%) translateY(0); }
    100% { transform: translateX(100%) translateY(0); }
}

/* Adjusting Images for Complete Semi-Circle */
.intro-image {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100vh;
    overflow: hidden;
}

.intro-image.left-image { left: 0; }
.intro-image.right-image { right: 0; }

/* Ensuring Semi-Circle Images Are Not Cut Off */
.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: ellipse(55% 80% at 0% 70%);
}

.intro-image.right-image img {
    clip-path: ellipse(55% 80% at 100% 70%);
}

/* Move Text Closer to the Top */
.intro-text {
    width: 40vw;
    text-align: left;
    z-index: 2;
    padding-top: 8vh;
    padding-bottom: 2vh;
    font-size: 0.9rem;
    line-height: 1.3;
    max-width: 85%;
    word-spacing: -0.5px;
}

.intro-text h2 {
    font-size: 2.3rem;
    background: linear-gradient(90deg, #D1D1D1, #FFFFFF, #A9A9A9, #D1D1D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.3);
    text-align: center;
}

.intro-text p {
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 100%;
    text-align: left;
}

.mobile-image {
    display: block;
    width: 100%;
    max-height: 100vh;
    object-fit: cover;
    
    /* White Glow Effect */
    box-shadow: 0px 0px 20px 5px rgba(255, 255, 255, 0.8);
    border-radius: 10px; /* Optional: Add soft rounded corners */
}

/* Introduction Section */
.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 0;
    z-index: 1;
    background: #2B2B2B; /* Separate gray background for intro */
    overflow: hidden;
}

/* Wave Background Container */
.wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Common Wave Properties */
.wave {
    position: absolute;
    width: 250%;
    height: 150px; /* Adjust thickness */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)); /* Subtle glow */
    opacity: 0.25; /* Make them visible but not overpowering */
    border-radius: 50%;
    filter: blur(8px); /* Smooth, flowing effect */
    animation: waveMotion 18s linear infinite; /* Slow and fluid motion */
}

/* Additional Waves for a Layered Look */
.wave1 { top: 20%; animation-delay: 0s; }
.wave2 { top: 35%; height: 130px; opacity: 0.2; animation-delay: -4s; }
.wave3 { top: 50%; height: 180px; opacity: 0.3; animation-delay: -8s; }
.wave4 { top: 65%; height: 140px; opacity: 0.22; animation-delay: -12s; }
.wave5 { top: 80%; height: 160px; opacity: 0.18; animation-delay: -16s; }

/* Keyframes for Wave Motion */
@keyframes waveMotion {
    0% { transform: translateX(-100%) translateY(0); }
    100% { transform: translateX(100%) translateY(0); }
}

/* Adjusting Images for Complete Semi-Circle */
.intro-image {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100vh;
    overflow: hidden;
}

.intro-image.left-image { left: 0; }
.intro-image.right-image { right: 0; }

/* Ensuring Semi-Circle Images Are Not Cut Off */
.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: ellipse(55% 80% at 0% 70%);
}

.intro-image.right-image img {
    clip-path: ellipse(55% 80% at 100% 70%);
}

/* Move Text Closer to the Top */
.intro-text {
    width: 40vw;
    text-align: left;
    z-index: 2;
    padding-top: 8vh;
    padding-bottom: 2vh;
    font-size: 0.9rem;
    line-height: 1.3;
    max-width: 85%;
    word-spacing: -0.5px;
}

.intro-text h2 {
    font-size: 2.3rem;
    background: linear-gradient(90deg, #D1D1D1, #FFFFFF, #A9A9A9, #D1D1D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.3);
    text-align: center;
}

.intro-text p {
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 100%;
    text-align: left;
}

.mobile-image {
    display: block;
    width: 100%;
    max-height: 100vh;
    object-fit: cover;
    
    /* White Glow Effect */
    box-shadow: 0px 0px 20px 5px rgba(255, 255, 255, 0.8);
    border-radius: 10px; /* Optional: Add soft rounded corners */
}

/* XS (Extra Small Devices) */
@media (max-width: 475px) {
    .container {
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 3%;
        min-height: 70vh; /* Further reduced height */
        width: 90vw; /* Matches welcome section width */
        margin: 0 auto; /* Centers it */
    }

    /* Hide Semi-Circle Images */
    .intro-image {
        display: none;
    }

    /* Show Mobile Image */
    .mobile-image {
        display: block;
        width: 100%;
        max-height: 45vh; /* Further reduced */
        object-fit: cover;
    }

    .intro-text {
        width: 85%;
        font-size: 0.85rem; /* Reduced */
        padding: 5px;
        text-align: center;
    }

    .intro-text h2 {
        font-size: 1.2rem; /* Smaller */
    }

    .intro-text p {
        font-size: 0.75rem;
    }
}

/* SM (Small Devices) */
@media (max-width: 640px) {
    .container {
        max-width: 450px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .intro {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        min-height: 75vh;
        width: 88vw; /* Adjusted */
    }

    /* Hide Semi-Circle Images */
    .intro-image {
        display: none;
    }

    /* Show Mobile Image */
    .mobile-image {
        display: block;
        width: 100%;
        height: 45vh;
    }

    .intro-text {
        width: 85%;
        font-size: 0.95rem;
    }

    .intro-text h2 {
        font-size: 1.5rem;
    }

    .intro-text p {
        font-size: 0.8rem;
    }
}

/* MD (Medium Devices) */
@media (max-width: 768px) {

    /* Hide Semi-Circle Images */
    .intro-image {
        display: none;
    }

}

/* LG (Large Devices) */
@media (max-width: 1024px) {

    /* Hide Semi-Circle Images */
    .intro-image {
        display: none;
    }

}

/* XL (Large Screens & Above) */
@media (min-width: 1025px) {
    .intro {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 100%;
        min-height: 100vh;
        padding-top: 0;
        z-index: 1;
        background: #2B2B2B;
        overflow: hidden;
    }

    /* Show Semi-Circle Images */
    .intro-image {
        display: block;
        position: absolute;
        top: 0;
        width: 50vw;
        height: 100vh;
        overflow: hidden;
    }

    .intro-image.left-image { left: 0; }
    .intro-image.right-image { right: 0; }

    .intro-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        clip-path: ellipse(55% 80% at 0% 70%);
    }

    .intro-image.right-image img {
        clip-path: ellipse(55% 80% at 100% 70%);
    }

    /* Hide Mobile Image */
    .mobile-image {
        display: none;
    }
}


/* ✅ Media Query for 1440px Screens */
@media (min-width: 1440px) {
    .intro-text {
        width: 38vw; /* Reduce width to avoid overlap */
        font-size: 1.3rem; /* Large but controlled */
        padding-top: 10vh;
        max-width: 75%;
        text-align: center; /* Ensures neat alignment */
    }

    .intro-text h2 {
        font-size: 3rem;
    }

    .intro-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .intro-image img {
        clip-path: ellipse(55% 82% at 0% 75%);
    }

    .intro-image.right-image img {
        clip-path: ellipse(55% 82% at 100% 75%);
    }
}

/* ✅ Media Query for 2560px Screens (4K) */
@media (min-width: 2560px) {
    .intro-text {
        width: 36vw; /* Narrower to ensure it doesn't reach images */
        font-size: 1.6rem; /* Increased but still within limits */
        padding-top: 12vh;
        max-width: 70%;
        text-align: center;
    }

    .intro-text h2 {
        font-size: 3.8rem; /* Slightly bigger for hierarchy */
    }

    .intro-text p {
        font-size: 1.3rem; /* Clearer and well-spaced */
        line-height: 1.9;
    }

    .intro-image img {
        clip-path: ellipse(58% 88% at 0% 80%);
    }

    .intro-image.right-image img {
        clip-path: ellipse(58% 88% at 100% 80%);
    }
}

/* 📌 Fix Text Overlapping Images Between 1024px - 1200px */
@media (min-width: 1024px) and (max-width: 1200px) {
    .intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 5%;
        min-height: 85vh;
        width: 90vw; /* Ensures correct width */
        margin: 0 auto; /* Centers it */
    }

    /* Hide Semi-Circle Images at 1024px */
    .intro-image {
        display: none;
    }

    .mobile-image {
        display: block;
        width: 100%;
        max-height: 100vh;
        object-fit: cover;

    /* Ensure Text is Centered */
    .intro-text {
        width: 85%;
        font-size: 1rem;
        padding: 5px;
        text-align: center;
    }

    .intro-text h2 {
        font-size: 1.8rem;
    }

    .intro-text p {
        font-size: 0.85rem;
    }
}
}
