/*
intro.css
Modernized UI with Glassmorphism, Responsive Scaling, and Header Offset
*/

:root {
    /* ADJUST THIS: Set to the actual height of your header (e.g., 80px or 10vh) */
    --header-height: 80px; 
    
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --accent-color: #3b82f6;
}

/* --- Layout Container --- */

.intro-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* FIX: This creates space for your header so content isn't covered */
    padding-top: var(--header-height);

    /* Background with dark overlay for readability */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/Intro.png'); /* relative path from CSS file */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.intro-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    gap: 4rem;
    z-index: 10;
}

/* --- Left Text Column --- */

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    /* Soft entrance animation */
    animation: fadeInUp 0.8s ease-out forwards;
}

.intro-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    text-shadow: var(--text-shadow);
    letter-spacing: -0.02em;
}

.intro-text p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* --- Right Image Column --- */

.intro-images {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    /* Subtle 3D effect */
    transform: perspective(1000px) rotateY(-5deg); 
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intro-images:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.intro-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease;
}

.intro-images img.active {
    opacity: 1;
    transform: scale(1);
}

.intro-images img:not(.active) {
    opacity: 0;
    transform: scale(1.1);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Adjustments --- */

@media (max-width: 1024px) {
    .intro-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .intro-text {
        align-items: center;
        text-align: center;
        padding: 2rem;
    }
    
    .intro-images {
        max-width: 550px;
        margin: 0 auto;
        transform: none;
    }
    
    .intro-images:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 600px) {
    .intro-section {
        /* Adds extra space on mobile if your mobile header is taller */
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 3rem;
        height: auto; /* Allow section to grow with content */
    }

    .intro-content {
        padding: 1.5rem;
        gap: 2rem;
    }

    .intro-text {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .intro-text h1 {
        font-size: 2.2rem;
    }

    .intro-images {
        aspect-ratio: 1/1;
        border-radius: 16px;
    }
}