/* General styles */
* {
    margin: 0;
    padding: 0;
    font-family: "Montserrat";
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    width: 100%;
}
.bod {

    background-color: #b1cbf5;

}
ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;}

li i {
    flex-shrink: 0; /* Prevents the icon from shrinking */
}
.theme-content{
   padding: 5px;
}


/* Lightbulb icon */
.lightbulb-icon {
    color: rgb(255, 255, 255);
    border: 2px solid white;
    background-color: rgb(96, 148, 207);
    border-radius: 50%;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 60px;
    font-size: 1.75rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header:hover .lightbulb-icon {
    color: white;
    background-color: blue;
    border: 2px solid white;
    transform: scale(1.1);
}

/* Section heading */
.header h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 10px; /* Space between text and underline */
}

.header h2::after {
    content: "";
    display: block;
    width: 60%; /* Makes the underline match text width */
    height: 3px;
    background-color: blue;
    margin: 10px auto 0;
}

/* Theme Cards */
.theme-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
}
.theme-card-2 {
    background: white;
    padding-top: 0;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
    
}
.theme-card.Student{
    color: #007bff;
    font-size: 15px;
    margin-bottom: 10px;
}
.theme-card.Student i{
    color: #28a745;
}
.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.theme-card-2:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.organize h3{
    color: #007bff;
    font-size: 20px;
    margin-bottom: 10px;
}

.organize p{
    font-size: 16px;
    margin: 5px 0;
}

/* Card icon */
.icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}
/* .icon-container:hover{
    transform: translateY(-10px);
} */

.icon-container i {
    color: blue;
    font-size: 2rem;
}

/* Theme button */
.theme-btn {
    background: none;
    border: 2px solid blue;
    color: blue;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: blue;
    color: white;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    opacity: 0;
    animation: modalFadeIn 0.4s ease-out forwards;
}

/* Modal fade-in effect */
@keyframes modalFadeIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header Styling */
.modal-header {
    background: linear-gradient(135deg, rgb(60, 146, 211), #9ac7ea);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
}

/* Close Button Styling */
.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Problem Content Styling */
.problem-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: left;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Slide-in effect when changing problems */
.problem-item.slide-in {
    transform: translateX(100%);
    opacity: 0;
}

.problem-item.slide-out {
    transform: translateX(-100%);
    opacity: 0;
}

/* Active Problem */
.problem-item.active {
    transform: translateX(0);
    opacity: 1;
}

/* Problem Title */
.problem-item h4 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #0e0e0f;
    text-transform: uppercase;
}

/* Problem Statement & Challenge */
.problem-item p {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Footer Buttons */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: none;
}

/* Navigation Buttons */
#prevBtn, #nextBtn {
    background: blue;
    color: white;
    font-weight: bold;
    border-radius: 20px;
    padding: 8px 16px;
    transition: 0.3s ease;
}

#prevBtn:hover, #nextBtn:hover {
    background: blue;
    transform: scale(1.05);
}

/* Problem Counter */
#problemIndex {
    font-size: 18px;
    font-weight: bold;
}

.about p{
    color: #6c757d;
    font-size: 18px;
}
.theme-title{
    background-color:rgb(0, 37, 157);
    padding: 10px;
    border-radius: 15px 15px 0 0;
}

@media (max-width: 768px) {
    .header h2 {
        font-size: 1.75rem;
    }

    .theme-card {
        padding: 15px;
    }

    .theme-card h3 {
        font-size: 1.25rem;
    }

    .theme-card p {
        font-size: 0.8rem;
    }

    .theme-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    .carousel {
        position: relative;
        width: 100%; /* 80% width */
        height: 150px; /* Fixed height of 200px */
      }
}
/* Rules Section */
.rules .theme-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
}

.rules .theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.rules .icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.rules .icon-container i {
    color: blue;
    font-size: 2rem;
}



/* Rules Section */
.rules .theme-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
}

.rules .theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.rules .icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.rules .icon-container i {
    color: blue;
    font-size: 2rem;
}

.rules h3 {
    margin-bottom: 15px;
    color: #333;
}

.rules p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Contact Us Section */
.contact-container {
    text-align: center;
    padding: 40px 20px;
}

.contact-header {
    position: relative;
}

.contact-header .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: blue;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.contact-header .icon i {
    font-size: 24px;
    color: white;
}

.contact-header h2 {
    font-size: 28px;
    margin: 10px 0;
    color: #333;
}

.contact-header .underline {
    width: 50px;
    height: 3px;
    background-color: blue;
    margin: 5px auto;
}

.contact-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
    color: #333;
}

.contact-item i {
    font-size: 24px;
    color: blue;
}

.contact-item h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.contact-item p {
    margin: 5px 0;
    font-size: 16px;
    color: #666;
}

iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
    margin-top: 20px;
}
@media (max-width: 576px) {
    .contact-card {
        padding: 15px;
        margin: 15px;
    }

    .contact-item h3 {
        font-size: 16px;
    }

    .contact-item p {
        font-size: 14px;
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .contact-item div {
        flex: 1;
        min-width: 0;
    }
}



/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
    margin-right: 10px;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    justify-content:end;
    padding: 10px 0px;
}
.navbar .nav-links li a:hover{
    color: blue;
}
.navbar .nav-links a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: 600;
   
}
.nav-links ul{
    align-items: center;
    padding-top:0px ;
}

.navbar .register-btn {
    background: rgb(1, 119, 1);
    border-radius: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    color: rgb(255, 255, 255);
}
.register-btn{
width: 100px;
height: 40%;
padding: 10px;
color: white;
}

.nav-links .register-li .register-btn{
    color: #fff;
}
.nav-links .register-li .register-btn:hover{
    color: #fff;
    background-color: #1ed30e;
}
/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: black;
    transition: 0.3s;
}
.hero-content{
    height: 90%;
}
.hero-content .hero-text{
    height:30% ;
    white-space: nowrap;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}
.hero-content1{
   display: flex;
   flex-direction: column;
   justify-content: center;
   gap: 7px;
}
.hero-content .hero-content2 .gen1,.gen2{
    height: 10%;
   
    font-size: 70px;
    font-weight: bold;
    color: rgb(24, 22, 22);
}
/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
    .hero-content2 .gen1  {
        font-weight: bold;
        font-size: 35px;
        display: block; /* Ensures GEN and BRAINIACS'25 appear separately */
    }
    .hero-content2 .gen2 {
        font-weight: bold;
        font-size: 35px;
        display: block; /* Ensures GEN and BRAINIACS'25 appear separately */
    }
}

/* Scrolling Text */
.scroll-text-container {
    width: 100%;
    overflow: hidden;
    background: blue;
    white-space: nowrap;
    position: relative;
    color: white;
}

.scroll-text {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
    animation: scrollText 23s linear infinite;
}

@keyframes scrollText {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 120vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.557); */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 24px;
    font-weight: 600;
}

.hero h1 {
    font-size: 50px;
    font-weight: bold;
}

.hero h3 {
    font-size: 22px;
    margin: 10px 0;
    color: rgb(255, 255, 255);
}

.hero p {
    font-size: 20px;
}
.navbar {
    padding: 15px 50px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: black;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    color: blue;
}

.btn-success {
    border-radius: 20px;
}

.navbar-toggler {
    border: none;
    outline: none;
}

/* Center items on mobile */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        padding-top: 10px;
    }
}
/* Position the hamburger button */
.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1050;
    font-size: 24px;
    padding: 5px 15px;
}

/* Adjust Sidebar Width */
.offcanvas {
    width: 250px;
}


.year-selector {
    margin: 20px;
}
.year-selector button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    cursor: pointer;
    background-color: #ddd;
    border-radius: 10px;
}
.year-selector button.active {
    background-color: #0066ff;
    color: white;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.gallery img {
    width: 350px;
    height: 450px;
    object-fit:cover;
    border-radius: 10px;
    transition: transform 0.3s;
    position: relative;
}
.gallery .image-container {
    position: relative;
    cursor: pointer;
}
.gallery .image-container:hover img {
    transform: scale(1.1);
}
.gallery .image-container .hover-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: none;
}
.gallery .image-container:hover .hover-text {
    display: block;
}
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}
.fullscreen img {
    max-width: 90%;
    max-height: 90%;
}

 
.carousel {
    position: relative;
    width: 80%; /* 80% width */
    height: 550px; /* Fixed height of 200px */
    margin: 50px auto; /* Centers the carousel */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }
  
  /* Carousel Inner */
 /* Carousel Inner */
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth sliding transition */
    height: 100%; /* Ensure inner container takes full height */
  }
  
  /* Carousel Item */
  .carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    height: 100%; /* Ensure item takes full height */
    transition: transform 0.5s ease-in-out; /* Smooth transition for individual slides */
  }
  
  .carousel-item img {
    width: 100%;
    height: 100%; /* Ensure image takes full height */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    display: block;
  }
  
  /* Carousel Caption */
  .carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(62, 62, 62, 0.452);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
  }
  
  .carousel-caption h5 {
    margin: 0 0 10px;
    font-size: 1.5em;
  }
  
  .carousel-caption p {
    margin: 0;
    font-size: 1em;
  }
  
  /* Carousel Controls */
  .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2em;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }
  
  .carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  .carousel-control.prev {
    left: 10px;
  }
  
  .carousel-control.next {
    right: 10px;
  }
/* 

  .countdown-timer {
    margin-top: 2rem;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.timer-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.timer-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
}

.timer-item .timer-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
} */

.theme-card2 {
    padding: 0;
    padding-top: 5px;
}
.p{
    font-size: 13px;
}

/* timer */
.countdown-timer {
    margin-top: 1.5rem;
    padding: 1rem;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.timer-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    min-width: 100px; /* Ensure consistent width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timer-item:hover {
    transform: scale(1.1); /* Add hover effect */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.countdown-message {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333; /* or any color that matches your design */
    font-weight: bold;
}

.timer-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    animation: pulse 1s infinite alternate; /* Add pulse animation */
}

.timer-item .timer-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* Pulse animation */
@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
   
    .timer {
        gap: 1rem; /* Reduce gap for smaller screens */
    }

    .timer-item {
        padding: 1rem;
        min-width: 80px; /* Adjust width for mobile */
    }

    .timer-item span {
        font-size: 2rem; /* Reduce font size for mobile */
    }

    .timer-item .timer-label {
        font-size: 0.9rem; /* Reduce label size for mobile */
    }
}