*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
}
#gradient-bg {
    position: fixed;      /* Stays fixed while scrolling */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;          /* Sends it behind all content */
    transition: background 0.2s ease; /* Optional smooth update */
}

.first-heading{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#name{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2046c4;
    margin-top: 0.5em;
}

.card {
            background: #2046c4;
            border-radius: 1.5rem;
            padding: 2.5rem;
            max-width: 720px;
            width: 100%;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* ── typewriter area ── */
        .typewriter-area {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.4rem;
            flex-wrap: wrap;
            margin-bottom: 2.5rem;
        }

        .prefix {
            color: #a0aec0;
            font-size: 1.8rem;
            font-weight: 300;
            letter-spacing: 1px;
        }

        #typewriter {
            color: #fbbf24;
            font-size: 2rem;
            font-weight: 600;
            min-width: 120px;
            text-align: left;
            border-right: 3px solid #fbbf24;
            animation: blink 0.8s step-end infinite;
            font-family: 'Courier New', monospace;
        }

        @keyframes blink {
            0%,
            100% {
                border-color: #fbbf24;
            }
            50% {
                border-color: transparent;
            }
        }

        /* ── description container ── */
        .desc-container {
            position: relative;
            min-height: 120px;
            margin-top: 1rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .desc-item {
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px);
            transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
            background: #1e2538;
            padding: 1.2rem 1.8rem;
            border-radius: 1rem;
            border-left: 4px solid #fbbf24;
            color: #e2e8f0;
            font-size: 1.05rem;
            line-height: 1.6;
            max-width: 520px;
            width: 100%;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            text-align: left;
            position: absolute;
        }

        .desc-item.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            position: relative;
        }

        .desc-container .desc-item:not(.active) {
            position: absolute;
            pointer-events: none;
        }

        /* ── small screens ── */
        @media (max-width: 480px) {
            .card {
                padding: 2rem 1.2rem;
            }
            #typewriter {
                font-size: 1.4rem;
                min-width: 80px;
            }
            .prefix {
                font-size: 1.3rem;
            }
            .desc-item {
                font-size: 0.95rem;
                padding: 1rem 1.2rem;
            }
        }

.summary{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
    max-width: 1300px;
    width: 100%;
    margin: auto;
}

/* 1. Treat the whole container as a single, shrinkable unit */
.ppimage {
    display: inline-block;    /* Container hugs the content (text + image) */
    max-width: 100%;          /* CRUCIAL: Prevents the whole block from overflowing on mobile */
    text-align: center;       /* Centers the heading and image nicely */
    border: 2px solid #2046c4; /* Optional: Move the border here to frame the whole "card" */
    padding: 10px;            /* Optional: Give it some breathing room */
    border-radius: 8px;       /* Optional: Rounded corners for the whole block */
}

/* 2. Fix the image to scale perfectly while keeping aspect ratio */
.ppimage img {
    display: block;           /* Removes the annoying gap below the image */
    max-width: 100%;          /* Image shrinks if the container is smaller than it */
    height: auto;             /* Height adjusts automatically -> ASPECT RATIO IS SAVED */
    
    /* If you want the border strictly on the image instead of the parent: */
    border: 2px solid #2046c4; 
    box-sizing: border-box;   /* IMPORTANT: Ensures the border doesn't break max-width */
}

/* 3. Make the sub-heading responsive too */
.sub-heading {
    margin-bottom: 8px;
    font-size: clamp(0.8rem, 2.5vw, 1.2rem); /* Text scales smoothly */
    color: #05164e;
}














.contact{
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: large;
    color: #2046c4;
}
.contact-details{
    color: #05164e;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.contact-details p{
    color: #2046c4;
}