/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #0f0f1a, #1a1a2e);
    color: #f1f1f1;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Upper Content Section */
.uppercontent {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.box {
    width: 90%;
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

.head1 {
    font-size: 4rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.para {
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 auto;
    max-width: 800px;
}

/* Lower Content Section - "One after one" layout */
.lowercontent {
    background-color: #050c4b;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.first {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    width: 95%;
    max-width: 1000px;
    background-color: rgba(10, 10, 20, 0.5);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 0, 0, 0.2);
    flex-direction: row;
    gap: 30px;
}

/* Alternating layout for "one after one" */
.first:nth-child(even) {
    flex-direction: row-reverse;
}

.thumbnail-link {
    position: relative;
    display: block;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.thumb {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.thumbnail-link:hover .thumb {
    transform: scale(1.03);
}

.plybtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 60px;
    width: 60px;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0.9;
}

.thumbnail-link:hover .plybtn {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.plybtn img.logo {
    height: 60%;
    width: 60%;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(200%);
}

.first{
    color:red;
}

.sec{
    color:rgb(15, 224, 26);
}
.thir{
    color:rgb(245, 14, 149);
}

.fourth{
    color:rgb(6, 184, 255);
}

.topicdes {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    align-items: center; /* Horizontally center content */
    text-align: center; /* Ensures text is centered */
}

.topic {
    font-family: "Alumni Sans SC", sans-serif;
    font-size: 3.5rem;
    letter-spacing: 1px;
    text-shadow:
        1px 1px 0px #000, 2px 2px 0px #000, 3px 3px 0px #000, 4px 4px 0px rgba(0, 0, 0, 0.4);
    /* color: #ffd700; */
    margin-bottom: 15px;
    line-height: 1.1;
}

.desc {
    line-height: 1.7;
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 600px;
    color:#f1f1f1;
    margin: 0 auto; /* Center the description text */
}

/* Footer styles */
.site-footer {
    background: linear-gradient(to right, #000000, #1a1a1a);
    color: #ffffff;
    border-top: 2px solid #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 50px 20px;
    text-align: center;
}

.join-us-section {
    background-color: #0a0a1a;
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.join-us-section h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.join-us-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.footer-content {
    text-align: center;
    padding-top: 0;
}

.site-footer h3 {
    margin-bottom: 15px;
    font-size: 28px;
    letter-spacing: 1px;
}

.site-footer p {
    margin: 10px 0;
    font-size: 16px;
    opacity: 0.85;
}

.site-footer .social-icons {
    margin: 20px 0;
}

.site-footer .social-icons a {
    color: #ffffff;
    margin: 0 12px;
    font-size: 22px;
    transition: color 0.3s ease;
}

.site-footer .social-icons a:hover {
    color: #ffd700;
}

.site-footer .copyright {
    margin-top: 20px;
    font-size: 14px;
    color: #cccccc;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    font-family: 'Montserrat', sans-serif;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.primary-btn {
    background: linear-gradient(45deg, #ff8c00, #e67d00);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.4);
}

.primary-btn:hover {
    background: linear-gradient(45deg, #e67d00, #ff8c00);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.6);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}

/* Navbar specific styles for original and premium look */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar img {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.navbtn {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navnav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.navnav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffd700;
    transition: width 0.3s ease;
}

.navnav a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.navnav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(255, 215, 0, 0.8);
    color: #0a0a1a;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    background-color: #ffd700;
    transform: translateY(-3px);
}


/* Media Queries for Responsiveness */

/* For screens smaller than 1024px (tablets, larger laptops) */
@media (max-width: 1024px) {
    .head1 {
        font-size: 3.5rem;
    }

    .para {
        font-size: 1rem;
    }

    .first {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    /* Remove alternating layout on smaller screens */
    .first:nth-child(even) {
        flex-direction: column;
    }

    .topicdes {
        text-align: center; /* Center text within descriptions */
    }

    .topic {
        font-size: 2.8rem;
    }

    .desc {
        font-size: 0.95rem;
        width: 95%;
        margin: 0 auto;
    }

    .thumbnail-link {
        width: 90%;
        max-width: 500px;
    }

    .thumb {
        width: 100%;
        height: auto;
    }

    .plybtn {
        height: 50px;
        width: 50px;
    }

    .join-us-section h3 {
        font-size: 2rem;
    }

    .join-us-section p {
        font-size: 1rem;
    }
}

/* For screens smaller than 768px (common mobile/tablet breakpoint) */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .navbtn {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    .navnav {
        width: 100%;
    }

    .navnav a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: block;
    }

    .navbar.responsive .navbtn {
        display: flex;
    }

    main {
        padding: 20px 10px;
        gap: 30px;
    }

    .head1 {
        font-size: 2.5rem;
    }

    .first {
        padding: 15px;
    }

    .topic {
        font-size: 2.2rem;
    }

    .desc {
        font-size: 0.9rem;
        width: 100%;
    }

    .thumbnail-link {
        width: 95%;
    }

    .site-footer h3 {
        font-size: 24px;
    }

    .site-footer p {
        font-size: 14px;
    }

    .site-footer .social-icons a {
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btn {
        width: 80%;
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* For even smaller screens (e.g., phones) */
@media (max-width: 480px) {
    .head1 {
        font-size: 2rem;
    }

    .topic {
        font-size: 1.8rem;
    }

    .desc {
        font-size: 0.85rem;
    }

    .plybtn {
        height: 40px;
        width: 40px;
    }

    .hero-btn {
        width: 90%;
    }
}