* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Center content vertically */
    justify-content: center;
    align-items: center;
    
    /* Static lines gradient from previous step */
    background: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 19px,
            rgba(90, 74, 82, 0.05) 19px,
            rgba(90, 74, 82, 0.05) 20px
        ),
        linear-gradient(135deg, #E9E1E5 0%, #E1D4DB 50%, #D9CCD2 100%);
    
    background-attachment: fixed;
    padding: 20px;
    position: relative;
    text-align: center;
    color: #5a4a52;
    
    /* * SIR - MODIFICATION
     * Added 'overflow: hidden' to prevent scrollbars
     * from the animated shapes.
    */
    overflow: hidden;
}

main {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);

    /* * SIR - MODIFICATION
     * Added 'position: relative' and 'z-index: 2'
     * to ensure this content block stays on top
     * of the new animated shapes (which are z-index: 1).
    */
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease-in-out;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    transition: opacity 0.3s ease-in-out;
}

.key-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000; /* This is already on top, no change needed */
}

.key-icon a {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
    background: linear-gradient(135deg, #E1D4DB, #D9CCD2);
    color: #5a4a52;
    border: 2px solid rgba(90, 74, 82, 0.3);
    box-shadow: 0 8px 25px rgba(90, 74, 82, 0.2);
}

.key-icon a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.key-icon a:hover::before {
    left: 100%;
}

.key-icon a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(90, 74, 82, 0.3);
    border-color: rgba(90, 74, 82, 0.4);
    background: linear-gradient(135deg, #D9CCD2, #D1C4CA);
}

.button-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-button {
    display: inline-block;
    padding: 20px 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button.one {
    background: linear-gradient(135deg, #E1D4DB, #D9CCD2);
    color: #5a4a52;
    border-color: rgba(90, 74, 82, 0.3);
    box-shadow: 0 8px 25px rgba(90, 74, 82, 0.2);
}

.nav-button.one:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(90, 74, 82, 0.3);
    border-color: rgba(90, 74, 82, 0.4);
    background: linear-gradient(135deg, #D9CCD2, #D1C4CA);
}

.nav-button.two {
    background: linear-gradient(135deg, #D9CCD2, #D1C4CA);
    color: #5a4a52;
    border-color: rgba(90, 74, 82, 0.3);
    box-shadow: 0 8px 25px rgba(90, 74, 82, 0.2);
}

.nav-button.two:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(90, 74, 82, 0.3);
    border-color: rgba(90, 74, 82, 0.4);
    background: linear-gradient(135deg, #D1C4CA, #C9BCC2);
}

.nav-button.three {
    background: linear-gradient(135deg, #D1C4CA, #C9BCC2);
    color: #5a4a52;
    border-color: rgba(90, 74, 82, 0.3);
    box-shadow: 0 8px 25px rgba(90, 74, 82, 0.2);
}

.nav-button.three:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(90, 74, 82, 0.3);
    border-color: rgba(90, 74, 82, 0.4);
    background: linear-gradient(135deg, #C9BCC2, #C1B4BA);
}

/* * SIR - NEW STYLES FOR ANIMATION * */
.shape-container {
    position: fixed; /* Fixed to viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1; /* Sits behind 'main' but on top of 'body' background */
    pointer-events: none; /* Allows clicking through the shapes */
}

.shape {
    position: absolute;
    background: rgba(90, 74, 82, 0.08); /* Faint color */
    border-radius: 50%; /* Make them circles */
    opacity: 0; /* Start invisible */
    animation: float 25s linear infinite; /* Assign animation */
    bottom: -200px; /* Start below the screen */
}

/* Different sizes and positions for variation */
.shape.s1 {
    width: 150px;
    height: 150px;
    left: 10%;
    animation-duration: 35s; /* Vary speed */
    animation-delay: -5s; /* Vary start time */
}
.shape.s2 {
    width: 200px;
    height: 200px;
    left: 40%;
    animation-duration: 30s;
    animation-delay: -15s;
}
.shape.s3 {
    width: 80px;
    height: 80px;
    left: 75%;
    animation-duration: 25s;
    animation-delay: -2s;
}
.shape.s4 {
    width: 120px;
    height: 120px;
    left: 90%;
    animation-duration: 40s;
    animation-delay: -10s;
}

/* Keyframe animation for the float effect */
@keyframes float {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1; /* Fade in */
    }
    90% {
        opacity: 1; /* Start fade out */
    }
    100% {
        transform: translateY(-120vh) scale(1.2); /* Float up past the top */
        opacity: 0;
    }
}
/* * END NEW STYLES * */


@media (max-width: 768px) {
    h1 { font-size: 2.1rem; }
    .subtitle { font-size: 1rem; }
    .button-container {
        gap: 20px;
    }
    .nav-button {
        padding: 18px 35px;
        font-size: 1.1rem;
        min-width: 160px;
    }
}

@media (max-width: 640px) {
    .button-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .nav-button {
        padding: 16px 32px;
        font-size: 1rem;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    main { padding: 1.5rem; }
    h1 { font-size: 1.8rem; }
    .subtitle { margin-bottom: 2rem; }
    .nav-button {
        padding: 14px 28px;
        font-size: 0.95rem;
        min-width: 180px;
    }
}