body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #111111;
    color: #ffffff;
    overflow: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

.slides {
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

.slide {
    position: relative;
    height: 100vh;
    height: -webkit-fill-available;
    display: none; /* Changed from flex to none */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    background: linear-gradient(145deg, #111111 0%, #222222 100%);
    text-align: center;
    overflow: hidden;
    padding-bottom: 5rem;
    overflow-y: auto;
}

#slide1 {
    display: flex; /* Ensure first slide is visible */
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #FFD700;
    transform: scaleX(0);
    transform-origin: left;
    animation: slideIn 1s ease-out forwards;
}

.slide a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slide a:hover {
    color: #357abd;
    text-decoration: underline;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

h2 {
    font-size: 2.5rem;
    color: #FFE55C;
    animation: fadeInUp 0.8s ease-out;
}

p {
    font-size: 1.8rem;
    color: #FFE55C;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

ul {
    list-style: none;
    padding: 0;
    text-align: center;
    animation: fadeIn 1.2s ease-out;
}

li {
    margin: 1.2rem 0;
    font-size: 1.6rem;
    color: #FFF;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
}

li:nth-child(1) { animation-delay: 0.2s; }
li:nth-child(2) { animation-delay: 0.4s; }
li:nth-child(3) { animation-delay: 0.6s; }
li:nth-child(4) { animation-delay: 0.8s; }

.nav {
    position: fixed;
    bottom: 3rem;
    display: flex;
    gap: 1rem;
    font-size: 1.4rem;
    z-index: 100;
}

.nav span {
    padding: 1rem 2rem;
    background: #FFD700;
    color: #000;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nav span:hover {
    background: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.transition-fade {
    transition: 0.6s;
    opacity: 1;
    transform: translateX(0);
}

html.is-animating .transition-fade {
    opacity: 0;
    transform: translateX(100px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    to { transform: scaleX(1); }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

.video-grid iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease;
}

.video-grid iframe:hover {
    transform: scale(1.05);
}

/* Adjust base font sizes for mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1.4rem;
    }

    li {
        font-size: 1.2rem;
        margin: 0.8rem 0;
    }

    .nav {
        bottom: 1rem;
        width: 100%;
        justify-content: center;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .nav span {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .video-grid iframe {
        height: 180px;
    }

    /* Fix for mobile browser viewport height issues */
    .slide {
        height: 100vh;
        height: -webkit-fill-available;
        padding: 1rem;
        overflow-y: auto;
    }

    /* Ensure content doesn't overlap with navigation */
    .slide {
        padding-bottom: 5rem;
    }
}

/* Fix for mobile browser viewport height issues */
html {
    height: -webkit-fill-available;
}
