﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
}

.container {
    display: flex;
    height: 100vh;
}

/* LEFT SECTION */
.left-section {
    width: 45%;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 80px 60px 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    /* SCROLL ONLY IF CONTENT > HEIGHT */
    overflow-y: auto;
    overflow-x: hidden; /* X scrolling completely disabled */

    max-height: 100vh; /* Total screen se zyada scroll NAHI hoga */
    box-sizing: border-box;
}

    /* Subheadings */
    .left-section h3 {
        font-size: 0.85rem;
        margin-top: 14px;
        font-weight: bold;
        color: #ffd700;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeSlideIn 1s forwards;
    }


@media (max-width: 1275px) {
    .left-section {
        overflow-y: auto;
    }
}

/* Above 1275px → No scroll */
@media (min-width: 1450px) {
    .left-section {
        overflow-y: hidden;
    }
}
@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-section p {
    font-size: 1rem;
    line-height: 1.3;
    opacity: 0;
    animation: fadeInText 1.5s forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.left-section::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 3px);
    background-size: 50px 50px;
    animation: floatParticles 20s linear infinite;
}

@keyframes floatParticles {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-200px);
    }
}

/* Main Heading */
.left-section h1 {
    font-size: 1.65rem;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #fff, #ffd700, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Ordered List */
.left-section ol li {
    margin-bottom: 9px;
    font-size: 0.9rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideFadeIn 0.8s forwards;
    position: relative;
    padding-left: 25px;
}

    .left-section ol li::before {
        position: absolute;
        left: 0;
        color: #ffd700;
        font-weight: bold;
    }

@keyframes slideFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.left-section ol li:nth-child(1) {
    animation-delay: 0.3s;
}

.left-section ol li:nth-child(2) {
    animation-delay: 0.5s;
}

.left-section ol li:nth-child(3) {
    animation-delay: 0.7s;
}

.left-section ol li:nth-child(4) {
    animation-delay: 0.9s;
}

.left-section ol li:nth-child(5) {
    animation-delay: 1.1s;
}

/* Unordered List */
.left-section ul li {
    margin-bottom: 11px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.8s forwards;
    position: relative;
    padding-left: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .left-section ul li:hover {
        transform: scale(1.05);
    }

    .left-section ul li::before {
        content: "✔";
        position: absolute;
        left: 0;
        color: #ffd700;
        font-weight: bold;
        transform: scale(0);
        animation: bounceIn 0.5s forwards;
    }

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.left-section ul li:nth-child(1) {
    animation-delay: 0.3s;
}

.left-section ul li:nth-child(2) {
    animation-delay: 0.5s;
}

.left-section ul li:nth-child(3) {
    animation-delay: 0.7s;
}

.left-section ul li:nth-child(4) {
    animation-delay: 0.9s;
}

.left-section ul li:nth-child(5) {
    animation-delay: 1.1s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glow */
.left-section p strong {
    color: #ffd700;
    text-shadow: 0px 0px 15px rgba(255,215,0,0.9);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 5px rgba(255,215,0,0.6);
    }

    50% {
        text-shadow: 0 0 20px rgba(255,215,0,1);
    }

    100% {
        text-shadow: 0 0 5px rgba(255,215,0,0.6);
    }
}

/* RIGHT SECTION */
.right-section {
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    opacity: 0;
    transform: translateX(-80px);
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

iframe {
    width: 85%;
    height: 85%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    animation: fadeInIframe 0.8s ease-in forwards;
    animation-delay: 1.2s;
}

@keyframes fadeInIframe {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.new-feature {
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
    display: inline-block;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px #00c6ff, 0 0 20px #007bff;
    }

    to {
        box-shadow: 0 0 20px #00c6ff, 0 0 30px #007bff;
    }
}


/* ========================================================= */
/* =============== RESPONSIVE FIXES ADDED =================== */
/* ========================================================= */

@media (max-width: 950px) {

    .container {
        flex-direction: column-reverse; /* RIGHT FIRST, LEFT BELOW */
        height: auto;
    }

    .left-section {
        width: 100%;
        padding: 40px 30px;
        height: auto;
        overflow-y: auto; /* prevent content cut */
    }

    .right-section {
        width: 100%;
        padding: 20px 0;
        height: auto;
    }

    iframe {
        width: 95%;
        height: 420px;
    }
}

@media (max-width: 600px) {

    .left-section {
        padding: 30px 20px;
    }

        .left-section h1 {
            font-size: 1.3rem;
        }

        .left-section h3 {
            font-size: 0.9rem;
        }

        .left-section p,
        .left-section ul li {
            font-size: 0.85rem;
            line-height: 1.4;
        }

    iframe {
        width: 100%;
        height: 380px;
    }
}
