.about-dive-into {
    position: relative; /* Create a coordinate base for the wave */
    overflow: visible !important; /* Critical for pinning */
    background: transparent !important; /* Background handled by JS */
    width: 100% !important;
    min-height: 100vh !important;
    /* REMOVED: display: flex !important; and justify-content/align-items */
    display: block !important;
    /*justify-content: center !important;
    align-items: center !important;*/
    padding: 20px 24px !important;
}

.dive-wave-bg {
    position: absolute;
    top: 10%; /* Your preferred position */
    left: 0;
    width: 100%;
    height: 80vh; /* Increased from 60vh to allow for the deeper curve depth */
    z-index: 1;
    pointer-events: none;
    overflow: visible !important; /* Forces the browser to show peaks even if they nudge outside */
    will-change: opacity, transform;
    pointer-events: none; /* Let the mouse pass THROUGH the wave... */
}

.scalable-wave {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.5;
}


.dive-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px; /* Spacing between the 4 vertical lines */
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Keeps text and cards perfectly centered */
    width: 100%;
    z-index: 2;
    perspective: 1200px;
    will-change: opacity, transform;
    pointer-events: none; /* Allows the mouse to "pass through" the text container */
    user-select: none;
}

.dive-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important; /* Standard vertical center */
    justify-content: center !important;
    gap: 16px;
    width: 100%;
    pointer-events: none !important;
}

/* Re-enables clicking/hovering on the actual text elements */
.dive-row h2, 
.dive-row span, 
.dive-row img {
    pointer-events: auto !important;
}

/* Add this near your .dive-row styles */
.dive-row .char {
    display: inline-block !important;
    transform: translateY(110%); /* Starting position for the reveal */
    will-change: transform, opacity;
}

/* The 'mask' that hides the characters while they are below the line */
.dive-row .word {
    overflow: hidden !important;
    display: inline-block !important;
    vertical-align: bottom;
    
}

/* Specific adjustment for the 4th line (Logo + nivas) */
.dive-row:last-child {
    /* Use a negative margin to pull the 4th line UP toward the 3rd line */
    margin-top: -20px !important; 
}

/* --- SVG & Font Scaling --- */

.dive-text-goblin {
    font-family: 'Goblin One', sans-serif !important;
    font-size: clamp(32px, 5vw, 72px) !important;
    line-height: 1.2 !important;
    color: #1F0165 !important;
}

.sri-bounding-box img {
    height: clamp(50px, 7vw, 120px) !important;
    width: auto;
}

.font-tamil-albert {
    font-family: 'Albert Sans', sans-serif !important;
    font-size: clamp(40px, 6vw, 80px) !important;
    font-weight: 700 !important;
    color: #1F0165 !important;
}

.dive-logo img {
    height: clamp(60px, 8vw, 124px) !important;

    width: auto;
}

.font-goblin {
    font-family: 'Goblin One', sans-serif !important;
    font-size: 72px !important;
    color: #1F0165 !important;
}


/* Container to handle the position on the screen */
.asset-container {
    position: absolute;
    z-index: 10 !important;
    pointer-events: auto; /* Allows the hover effect to work */
    display: block;       /* Ensure they have a physical presence */
    cursor: grab;               /* Shows the user they can pick it up */
    touch-action: none;         /* Required for mobile dragging */
    z-index: 999 !important;    /* Keeps them above text while dragging */
}

.asset-container:active {
    cursor: grabbing;           /* Shows the 'fist' icon when held */
}

/* STOP the idle animation when wiggling */
.asset-container:hover .floating-asset {
    animation: none !important; 
}

/* Dino: Positioned to match the first peak area */
.dino-pos {
    top: 24%; 
    left: 10%;
    width: clamp(50px, 8vw, 120px); /* Scales size based on screen width */
    aspect-ratio: 1 / 1; /* Creates a square 'hit box' for the dinosaur */
}

/* Rocket: Positioned to match the valley area */
.rocket-pos {
    bottom: 28%;
    right: 13%;
    width: clamp(70px, 10vw, 140px);
    aspect-ratio: 1 / 1; /* Creates a square 'hit box' for the rocket */
}

.floating-asset {
    width: 100%;
    height: auto;
    display: block;
    /* This ensures the image itself is NEVER distorted */
    object-fit: contain; 
    pointer-events: auto; /* ...but STOP and trigger on the assets themselves! */
    overflow: visible !important;
    transform-origin: center center !important;
}


/* FIX: The 'f' clipping (Line 60 of your CSS) */
.dive-row .word {
    overflow: hidden !important;
    display: inline-block !important;
    vertical-align: bottom;
    padding-top: 0.3em !important;    /* Creates 'headroom' for the f curve */
    margin-top: -0.3em !important;    /* Pulls it back so the layout doesn't shift */
}

/* --- GALLERY TRACK --- */
.dive-gallery-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10; /* Sits above the text but below the CTA */
    pointer-events: none; /* Allows mouse to interact with text and buttons */
    display: flex;
    align-items: center; /* This centers cards vertically over the text area */
    overflow: hidden;    /* Keeps cards from showing until they enter the screen */
    pointer-events: none;
    transform: none !important; /* Let GSAP handle the x movement entirely */
}

.dive-gallery-track {
    display: flex;
    align-items: center;
    gap: 6vw; /* Tighter gap like MoMoney */
    padding-left: 100vw; /* Starts the first card exactly at the right edge */
    height: 100%;
    will-change: transform;
}

/* --- THE CARDS (Figma Dimensions) --- */
.dive-card {
    position: relative;
    flex-shrink: 0;
    height: clamp(400px, 70vh, 600px); /* Larger height for better text coverage */ 
    background: transparent !important;  /* Removes the white box */
    padding: 0 !important;
    box-shadow: none !important; /* Let the image handles its own shadow/look */
    transform: translateY(var(--offset)) rotate(var(--rot));
    overflow: visible; /* Changed to visible to prevent clipping rotated images */
}

.dive-card img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain so images aren't cropped */
    display: block;
}

/* --- GALLERY END CTA --- */
.gallery-end-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers it perfectly */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 5; /* Sits UNDER the sliding cards (z:10) but ABOVE the background wave (z:1) */
    pointer-events: auto !important; /* Makes the button interactive */
    /* INCREASE THIS VALUE: Adjust from 60px to 80px depending on your preference */
    gap: 64px;
}

.explore-btn {
    margin-top: 40px;
    padding: 14px 36px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    font-family: 'Albert Sans', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease;
}

.explore-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Styling to match Home Hero exactly */
.diveinto-footer {
    position: absolute;
    bottom: clamp(24px, 4vw, 40px); /* Matches hero footer spacing */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100; /* Stays on top of everything */
    opacity: 0;   /* Initial state is hidden for reveal */
    pointer-events: none;
}

.diveinto-footer span {
    font-family: 'Geist Mono', sans-serif !important; /* Matches hero */
    font-weight: 400;
    font-size: 16px; /* Explicit size requested */
    color: #c2a8ff;  /* Matches hero color */
    letter-spacing: -0.01em;
    text-transform: lowercase;
}


/* --- 4. MOBILE RESPONSIVENESS (Dive Into Section) --- */
@media (max-width: 768px) {
    
    /* 1. Scale down "Dive into the world of" */
    .dive-text-goblin {
        font-size: 28px !important; 
        line-height: 1.1 !important;
    }

    /* 2. Scale down "(sri) நிவாஸ்" */
    .font-tamil-albert {
        font-size: 40px !important;
        margin-bottom: 5px !important;
    }

    /* 3. THE LAST LINE (Logo + nivas) */
    
    /* Shrink the "nivas" text specifically */
    .font-goblin {
        font-size: 44px !important; 
    }

    /* Shrink the Logo so it stays on the same line */
    .dive-logo img {
        height: 80px !important; 
        width: auto !important;
    }

    /* Force the row to stay horizontal without wrapping */
    .dive-row:last-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        white-space: nowrap !important;
        margin-top: -10px !important; /* Tighter vertical spacing */
    }

    /* 4. Adjust the floating assets (Dino/Rocket) for smaller screens */
    .dino-pos {
        top: 15% !important;
        left: 5% !important;
    }
    
    .rocket-pos {
        bottom: 15% !important;
        right: 5% !important;
    }

    /* 1. SHRINK THE CARDS: Reducing height for mobile viewports */
    .dive-card {
        /* Dropped from 70vh to 50vh for better screen fit */
        height: 35vh !important; 
        width: auto !important; /* Let the aspect ratio handle the width */
        min-height: 300px !important;
    }

    /* 2. TIGHTEN THE TRACK: Less space between cards on small screens */
    .dive-gallery-track {
        gap: 32vw !important; /* Closer spacing than desktop */
    }

    /* 3. OPTIONAL: Scale the background wave to match */
    .dive-wave-bg {
        height: 60vh !important; /* Keeps the wave behind the smaller cards */
        top: 20% !important;
    }

    /* 4. Center the CTA Button better for thumbs */
    .gallery-end-cta {
        gap: 32px !important; /* Tighter vertical spacing */
    }
}