/* Title section styling */
.title-image-text-section {
    width: 100%;
    height: 60vh; /* Adjust this height as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    margin-top: 250px;
    opacity: 0; /* Initially hidden */
    transform: translateY(50px); /* Initially below */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
}
body {
    padding-top: 25px; /* Add space at the top of the body */
  }


/* Add the class that makes it visible when in view */
.title-image-text-section.visible {
    opacity: 1;
    transform: translateY(0); /* Move to its natural position */
}

/* Title styling */
.full-width-title {
    font-size: 4rem; /* Large font size */
    font-weight: bold;
    text-align: center;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 90%;
}



/* Content wrapper to group image and text */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px; /* Prevents the content from stretching too wide */
    margin-top: 90px;
}

/* Left image styling */
.left-image img {
    max-width: 45%; /* Adjust the image size */
    height: auto;
}

/* Right text styling */
.right-text {
    max-width: 50%; /* Limit the width of the text */
    font-size: 1.2rem;
    color: rgb(255, 255, 255);
    padding-left: 20px;
    display: block;
}

.right-text {
    max-width: 50%; /* Limit width */
    font-size: 1.2rem;
    color: rgb(255, 255, 255);
    text-align: justify; /* Justifies text for equal-length lines */
    display: block;
    word-break: break-word; /* Ensure words wrap properly */
}


/* Button styling */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    margin-top: 20px;
    background-color: yellow;
    color: black;
    cursor: none;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: black;
    color: yellow;
}


/* Yellow Card Section */
.yellow-card-section {
    width: 100%;
    padding: 0;
    margin-top: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Yellow Card Section */
.yellow-card-section {
    width: 100%;
    padding: 0;
    margin-top: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0; /* Start with opacity 0 */
    transform: translateY(100px); /* Start the section lower to simulate being off-screen */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Add transition */
}

.yellow-card-section.visible {
    opacity: 1; /* Fade in */
    transform: translateY(0); /* Slide to normal position */
}

/* Yellow Card */
.yellow-card {
    width: 100%;
    height: 350px;
    background-color: #ffcc00;
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: -20px;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Yellow Card Title */
.yellow-card-title {
    font-size: 3rem;
    color: rgb(0, 0, 0);
    text-transform: uppercase;
    letter-spacing: 2px;
    flex: 0 0 30%;
    text-align: left;
    margin-right: 30px;
    line-height: 1.3;
    padding-right: 300px;
}

/* Right Tiles */
.right-tiles {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 250px;
    gap: 20px;
}

/* Individual Tile */
.tile {
    padding: 20px;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1rem;
    color: white;
    line-height: 1.5;
    background-color: #000000;
    transform: translateY(30px); /* Start with the tiles slightly below */
    opacity: 0; /* Start with opacity 0 */
    transition: transform 1s ease, opacity 1s ease; /* Transition effect */
}

/* Animation for each tile when the section is visible */
.tile.visible {
    transform: translateY(0); /* Move tiles into place */
    opacity: 1; /* Fade in */
}

/* Optional: Different colors for each tile */
.tile:nth-child(1) {
    background-color: #000000;
}

.tile:nth-child(2) {
    background-color: #000000;
}

.tile:nth-child(3) {
    background-color: #000000;
}

/* White Card Section Styling */
.white-card-section {
    width: 80%;
    display: flex;
    justify-content: space-between;
    margin-top: -10px;
}

/* White Card Styling */
.white-card {
    background-color: rgb(255, 255, 255);
    padding: 20px;
    width: 300px;
    height: 240px;
    text-align: left;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    color: rgb(0, 0, 0);
    margin: 10px;
    text-align: justify; /* Justifies text for equal-length lines */
    display: block;
    word-break: break-word; /* Ensure words wrap properly */
    
}

.white-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.white-card p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}



/* Gallery Section */
.gallery-section {
    width: 100%;
    height: 90vh;
    overflow: hidden;
    position: relative;
    margin-top: 250px;
    text-align: center; /* Center title */
}

/* Title Styling */
.gallery-title {
    font-size: 4rem;
    font-weight: bold;
    color: rgb(255, 238, 238);
    text-transform: uppercase;
    margin-bottom: 50px; /* Space between title and gallery */
    letter-spacing: 3px;
    text-align: center;
    position: relative;
    animation: fadeIn 1.5s ease-in-out;
}

/* Decorative Line Below Title */
.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #ff7f50, #ffca3a);
    border-radius: 2px;
    animation: slideIn 1s ease-in-out forwards;
}

/* Glow Effect */
.gallery-title:hover {
    text-shadow: 0 0 10px rgba(255, 238, 238, 0.8), 
                 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide-In Animation for Decorative Line */
@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}




/* Gallery Container */
.gallery-container {
    padding-bottom: 20px;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding-top: 20px;
}

/* Left and Right Fade Effects */
.fade-left {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5%; /* Adjust fade width */
    height: 81%;
    background: linear-gradient(to right, rgb(50, 182, 253), rgba(255, 255, 255, 0));
    z-index: 2;
}

.fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5%; /* Adjust fade width */
    height: 81%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgb(50, 182, 253));
    z-index: 2;
}

.fade-left {
    left: 0;
}

.fade-right {
    right: 0;
}

/* Gallery Layout (Three rows, horizontal scroll) */
.gallery {
    display: grid;
    grid-template-columns: repeat(20, 1fr); /* 5 images per row */
    grid-template-rows: repeat(2, auto); /* 2 rows for the images */
    gap: 110px 100px; /* No gap between rows */
    width: 400%;
    animation: scrollAnimation 200s linear infinite;
}
/* Each Gallery Item */
.gallery-item {
    width: 150%; /* Fill width of each column */
    height:150%; /* Fill height of each row */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Image styling: Make images smaller */
.gallery-item img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover; /* Ensures the image fits inside the box without stretching */
}

/* Horizontal scrolling animation */
@keyframes scrollAnimation {
    0% {
        transform: translateX(5%);
    }
    99% {
        transform: translateX(-100%); /* End position, just before reset */
    }
    100% {
        transform: translateX(100%); /* Reset to the right side to repeat */
    }
}

/* Sponsor Section Styling */
.sponsor-section {
    width: 100%;
    text-align: center;
    margin-top: 250px;
}

/* Title Styling */
.sponsor-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

/* Title Underline Animation */
.sponsor-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ffca3a;
    animation: slideIn 1s ease-in-out forwards;
}

/* Sponsor Logo Grid */
.sponsor-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid */
    gap: 30px;
    align-items: center;
    justify-content: center;
}

/* Individual Sponsor Logo Styling */
.sponsor-logo img {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect on Sponsor Logos */
.sponsor-logo img:hover {
    transform: scale(1.15) rotate(3deg); /* Slight zoom and tilt */
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.5);
}

/* Keyframes for Title Underline Animation */
@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sponsor-title {
        font-size: 2.5rem;
    }

    .sponsor-logos {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .sponsor-title {
        font-size: 2rem;
    }

    .sponsor-logo img {
        max-width: 120px;
    }
}


/* Footer Styling */
.footer {
    width: 100%;
    margin-top: 150px;
    padding: 20px 0;
    background-color: #333;
    color: white;
    text-align: center;
    position: relative;
    bottom: 0;
}

/* Footer Text */
.footer p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Mobile Media Query */
@media (max-width: 768px) {
    /* Title section */
    .title-image-text-section {
        margin-top: 250px; /* Reduced space */
    }

    .full-width-title {
        font-size: 2.5rem; /* Smaller font size for mobile */
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }



    .right-text {
        max-width: 80%;
        font-size: 1.2rem;
        padding-left: 0; /* Remove padding */
        align-items: center;
    }

    .cta-button {
        width: 100%;
        padding: 12px 0;
        font-size: 1rem;
    }

    .gallery-section {
        display: none;
    }

    .yellow-card {
        flex-direction: column;
        height: auto; /* Allow yellow card to be flexible */
        padding: 20px;
    }

    .yellow-card-title {
        font-size: 2rem;
        margin-right: 0;
        padding-right: 0px;
    }

    .right-tiles {
        max-width: 100%;
        gap: 10px;
    }

    

    .tile {
        width: 30%; /* Make each tile take full width */
        margin-top: 20px;
        margin-left: 30%;
        margin-bottom: 20px;
    }

    .white-card-section {
        flex-direction: column;
        align-items: center;
    }

    .white-card {
        width: 100%;
        margin: 10px 0;
    }



    .sponsor-logos {
        grid-template-columns: repeat(2, 1fr); /* Two logos per row */
        scale: 0.9;
    }

    .footer {
        font-size: 0.9rem; /* Smaller font size */
    }
}


/* Container for the animation */
.container {
    position: relative;
    width: 100%;
    height: 200px; /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 45px;
  }


  
  /* Each square */
  .container .square {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .container .square:nth-child(2) {
    transform: translate(-25%, -25%) rotateX(180deg);
    filter: hue-rotate(60deg);
  }
  
  .container .square:nth-child(3) {
    transform: translate(25%, 25%) rotate(180deg);
    filter: hue-rotate(180deg);
  }
  
  /* Animation of square */
  .container .square::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #0f0;
    box-shadow: 0 0 0 8px #0f03, 0 0 0 15px #0f01;
    animation: animateSquare 4s linear infinite;
  }
  
  @keyframes animateSquare {
    0% {
      transform: translate(2px, 2px);
    }
    25% {
      transform: translate(178px, 2px);
    }
    50% {
      transform: translate(178px, 178px);
    }
    75% {
      transform: translate(2px, 178px);
    }
    100% {
      transform: translate(2px, 2px);
    }
  }
  
  /* Spinning effect for squares */
  .container .square span {
    position: absolute;
    inset: 10px;
    overflow: hidden;
    transform: rotate(calc(90deg * var(--i)));
  }
  
  .container .square span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: #0f0;
    transform: translateX(-100%);
    animation: animate 4s linear infinite;
    animation-delay: calc(1s * var(--i));
  }
  
  @keyframes animate {
    0% {
      transform: translateX(-100%);
    }
    50%, 100% {
      transform: translateX(100%);
    }
  }
  

  /* Mobile optimization */
  @media (max-width: 768px) {
    .container {
      height: 150px; /* Reduce height for mobile screens */
      padding: 10px;
    }
  
    .container .square {
      width: 150px; /* Reduce size of squares */
      height: 150px;
    }
  
    .container .square::before {
      width: 15px; /* Smaller animated block */
      height: 15px;
      box-shadow: 0 0 0 6px #0f03, 0 0 0 12px #0f01;
    }
  
    @keyframes animateSquare {
      0% {
        transform: translate(2px, 2px);
      }
      25% {
        transform: translate(98px, 2px); /* Adjust path for smaller squares */
      }
      50% {
        transform: translate(98px, 98px);
      }
      75% {
        transform: translate(2px, 98px);
      }
      100% {
        transform: translate(2px, 2px);
      }
    }
  
    .container .square span::before {
      height: 3px; /* Thinner lines for smaller squares */
    }
  }


/* Join Us Section Styling */
#join-us-section {
    background: linear-gradient(135deg, #0066cc, #003d99); /* Gradient blue background */
    color: white;
    padding: 50px 20px; /* Increase padding for better spacing */
    text-align: left;
    margin: 20px;
    border-radius: 10px; /* Smooth corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    animation: fadeIn 1.5s ease-in-out;
}

/* Container Styling */
#join-us-section .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Gallery Section Animation */
.gallery-title,
.gallery-content {
    opacity: 0; /* Initially hidden */
    transform: translateY(50px); /* Start slightly below */
    transition: all 0.8s ease-in-out; /* Smooth transition */
}

/* Visible State for Scroll Animation */
.gallery-visible .gallery-title,
.gallery-visible .gallery-content {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
}

/* Title Styling */
#join-us-section h2 {
    font-size: 2rem;
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    margin-bottom: 30px; /* Space below the title */
    animation: slideUp 1.5s ease-in-out forwards;
}

/* Button Styling */
.join-button {
    background-color: #ffcc00;
    color: #333;
    padding: 15px 40px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px; /* More rounded button */
    display: inline-block;
    cursor: none;
    transition: background-color 0.3s, transform 0.3s;
    animation: fadeIn 2s ease-in-out forwards;
}

/* Hover Effects for Button */
.join-button:hover {
    background-color: #e6b800; /* Darker yellow on hover */
    transform: scale(1.1); /* Slight zoom on hover */
}

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

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


/* Mobile optimization */
@media (max-width: 768px) {
    #join-us-section {
        padding: 30px 10px; /* Reduce padding on mobile */
        
    }

    #join-us-section h2 {
        font-size: 1rem; /* Smaller font size for better readability */
        margin-top: 10px;
    }

    .join-button {
        font-size: 1rem; /* Smaller button text */
        padding: 12px 25px; /* Smaller button padding */
        margin-right: 5px; /* Adjust the margin between text and button */
    }
}



/* Very small screens like phones in portrait mode */
@media (max-width: 480px) {
    #join-us-section h2 {
        font-size: 1rem; /* Further reduce font size */
        margin-bottom: 10px; /* Tighten space below title */
    }

    .join-button {
        font-size: 0.85rem; /* Even smaller button text */
        padding: 10px 20px; /* Further reduce padding for the button */
    }
}

.mobile-logo-section {
    display: none; /* Hide by default */
    
}



/* Show the section only on mobile */
@media (max-width: 768px) {
    .mobile-logo-section {
        margin-top: -200px;
        display: block;
        text-align: center;
    }

    .mobile-logo {
        width: 150px; /* Adjust size as needed */
        height: auto;
    }
}


.footer {
    cursor: none;
    text-align: center;
    background: #222;
    color: white;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    cursor: none;
}

.footer-btn {
    cursor: none;
    text-decoration: none;
    color: white;
    font-size: 14px;
    padding: 5px 10px;
    border: none;
    background: none;
}

/* Make buttons vertical on mobile */
@media (max-width: 768px) {
    .footer-buttons {
        flex-direction: column;
        align-items: center;
    }
    .footer {
        cursor: none;
        text-align: center;
        background: #222;
        color: white;
    }
}

/* Contact Button */
.contact-btn {
    display: block;
    cursor: none;
    text-align: center;
    margin: 15px auto;
    padding: 8px 12px;
    background: rgb(255, 255, 255);
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    width: fit-content;
}


/* Email Section */
.footer-email {
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-size: 14px;
    gap: 5px;
    color: whitesmoke;
}
.email-link {
    color: white;  /* Keeps the text white */
    text-decoration: none; /* Removes the underline */
}
.footer-email i {
    font-size: 16px;
}

.university-name {
    margin-bottom: 10px;
    font-weight: bold;
}

/* chatbot image */
/* Chatbot Image */
.sticky-image {
    position: fixed; /* Fixes the position */
    bottom: 95px; /* Adjust this value to position it above the chatbot */
    right: 3px; /* Position it on the right side */
    z-index: 1000; /* Ensure it stays above other elements */
}

.sticky-ver2 {
    width: 130px; /* Adjust the size as needed */
    height: auto; /* Maintain aspect ratio */
}

/* Mobile Specific Adjustments */
/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .sticky-image {
        bottom: 90px; /* Adjust this value for smaller screens */
        right: -1px; /* Keep it on the right */
        left: auto; /* Ensure it doesn’t shift left */
        width: 100px; /* Smaller width for mobile */
    }

    .sticky-ver2 {
        width: 100px; /* Adjust size for smaller screens */
    }
}