:root {
            --accent-1: #f87373;
            --accent-2: #F1C40F;
            --accent-3: #4D96FF;
            --accent-4: #6BCB77;
            --accent-5: #FF9F45;
            --glass-bg: rgba(255, 255, 255, 0.8);
            --glass-border: rgba(255, 255, 255, 0.9);
            --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        

        .mydiv{
            background: linear-gradient(135deg, #e2edff 0%, #7caeff 100%);
        }

        /* --- HEADER --- */
        #myhead {
            text-align: center;
            padding: 4rem 1rem 1rem;
            width: 100%;
        }

        #subhead {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(1.8rem, 5vw, 3rem); /* Responsive font size */
            font-weight: 800;
            background: linear-gradient(to right, #2c3e50, #3498db);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 0.5rem;
            line-height: 1.2;
            padding: 0 10px;
        }

        /* --- TIMELINE CONTAINER --- */
        .premium-timeline {
            position: relative;
            max-width: 1400px;
            margin: 0 auto;
            min-height: 600px; 
            display: flex;
            justify-content: space-between;
            padding: 40px;
            perspective: 1000px;
            padding-bottom: 100px; /* Space at bottom */
        }

        /* --- SVG LINE (Desktop Only) --- */
        .svg-connector {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        .zigzag-path {
            fill: none;
            stroke: url(#lineGradient);
            stroke-width: 5;
            stroke-linecap: round;
            stroke-dasharray: 2000;
            stroke-dashoffset: 2000;
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
            opacity: 0; /* Hidden initially */
            transition: opacity 0.5s;
        }

        /* Active State for Line */
        .zigzag-path.in-view {
            opacity: 1;
            animation: drawLine 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        }

        /* --- STEPS --- */
        .step {
            position: relative;
            z-index: 1;
            width: 18%; /* Desktop Width */
            display: flex;
            flex-direction: column;
            align-items: center;
            
            /* Hidden Initial State */
            opacity: 0;
            transform: scale(0.8) translateY(50px);
            transition: all 0.5s ease-out;
        }

        /* Active State for Step */
        .step.in-view {
            animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }

        /* Animation Delays (Staggered effect) */
        .step.in-view:nth-child(1) { animation-delay: 0.1s; }
        .step.in-view:nth-child(2) { animation-delay: 0.2s; }
        .step.in-view:nth-child(3) { animation-delay: 0.3s; }
        .step.in-view:nth-child(4) { animation-delay: 0.4s; }
        .step.in-view:nth-child(5) { animation-delay: 0.5s; }

        /* Desktop Positioning (ZigZag) */
        @media (min-width: 993px) {
            .step:nth-child(odd) { justify-content: flex-start; margin-top: 20px; }
            .step:nth-child(even) { justify-content: flex-end; margin-bottom: 20px; flex-direction: column-reverse; }
        }

        /* --- ICONS --- */
        .icon-circle {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            box-shadow: 0 0 0 6px rgba(255,255,255,0.6), var(--shadow);
            z-index: 2;
            transition: transform 0.3s ease;
        }

        .step:hover .icon-circle { transform: scale(1.1); }

        /* Specific Colors */
        .s1 .icon-circle { color: var(--accent-1); border: 2px solid var(--accent-1); }
        .s2 .icon-circle { color: var(--accent-2); border: 2px solid var(--accent-2); }
        .s3 .icon-circle { color: var(--accent-3); border: 2px solid var(--accent-3); }
        .s4 .icon-circle { color: var(--accent-4); border: 2px solid var(--accent-4); }
        .s5 .icon-circle { color: var(--accent-5); border: 2px solid var(--accent-5); }

        /* --- CARDS --- */
        .card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            padding: 1.5rem;
            border-radius: 20px;
            text-align: center;
            width: 100%;
            margin: 20px 0;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
            position: relative;
        }

        .step:hover .card { transform: translateY(-5px); }

        .card h3 {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #888;
            margin-bottom: 5px;
        }

        .card h4 {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 8px;
            line-height: 1.3;
        }
        
        .s1 h4 { color: var(--accent-1); }
        .s2 h4 { color: #d3ac0b; }
        .s3 h4 { color: var(--accent-3); }
        .s4 h4 { color: var(--accent-4); }
        .s5 h4 { color: var(--accent-5); }

        .card p {
            font-size: 0.85rem;
            color: #555;
            line-height: 1.5;
        }

        /* --- KEYFRAMES --- */
        @keyframes drawLine { to { stroke-dashoffset: 0; } }
        
        @keyframes popIn { 
            0% { opacity: 0; transform: scale(0.8) translateY(50px); } 
            100% { opacity: 1; transform: scale(1) translateY(0); } 
        }

        /* --- MOBILE RESPONSIVE --- */
        @media (max-width: 992px) {
            .premium-timeline {
                flex-direction: column;
                padding: 10px 20px;
                height: auto;
                min-height: auto;
            }

            /* Hide Desktop SVG */
            .svg-connector { display: none; }

            /* Mobile Vertical Line */
            .premium-timeline::before {
                content: '';
                position: absolute;
                left: 50px; /* Align with icon center */
                top: 20px;
                bottom: 20px;
                width: 3px;
                background: #ddd;
                z-index: 0;
            }

            .step {
                width: 100%;
                flex-direction: row !important; /* Force Horizontal layout */
                justify-content: flex-start !important;
                align-items: flex-start;
                margin: 0 0 30px 0 !important;
                
                /* Reset Transform for mobile so it slides from bottom properly */
                transform: translateY(30px); 
            }

            .icon-circle {
                width: 60px;
                height: 60px;
                font-size: 1.4rem;
                flex-shrink: 0;
                margin-right: 15px;
                background: #fff; /* Cover the line */
            }

            .card {
                flex: 1;
                margin: 0;
                text-align: left;
                padding: 1rem;
                width: auto;
            }

            /* Mobile Card Arrow */
            .card::before {
                content: '';
                position: absolute;
                left: -7px;
                top: 20px;
                width: 14px;
                height: 14px;
                background: var(--glass-bg);
                transform: rotate(45deg);
                border-left: 1px solid var(--glass-border);
                border-bottom: 1px solid var(--glass-border);
            }
        }