@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body,

html {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
}

nav {
  z-index: 100;
  position: fixed;
  width: 100%;
  height: 16vh;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Montserrat", sans-serif;
  padding: 3rem 4rem;
  color: white;
}


nav h1 {
  font-size: 1.7rem;
  font-weight: 900;
}
nav h2 {
  font-size: 0.8rem;
  font-weight: 400;
}
nav .routes {
  display: flex;
  align-items: center;
  gap: 3rem;
}

nav .routes a {
  font-size: 1.7rem;
  font-weight: 900;
  color: white;
  text-decoration: none;
  
  transition: all 0.3s ease-in-out;
}

nav .routes a:hover {
  color: gold;
  transform: scale(1.05);
}


.page1 {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}
.page1 img {
  position: absolute;
  width: 100%;
  height: 100vh;
  object-fit: fill;
  z-index: -1;
}
.page1 .herocontent {
  position: absolute;
  color: white;
  width: 90%;
  margin-left: 3rem;
}
.page1 .herocontent h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
}
.page1 .herocontent h2 {
  font-size: 1.2rem;
  font-weight: 400;
}
.discover {
  font-size: 1.2rem;
  padding: 12px 30px;
  border: 2px solid #00bfa6;
  background-color: transparent;
  color: #00bfa6;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: popin 3s ease forwards;
  margin-top: 2rem;
}

.discover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #00bfa6;
  transition: all 0.5s ease-in-out;
  z-index: -1;
}

.discover:hover::before {
  left: 0;
}

.discover:hover {
  color: white;
  transform: scale(1.05);
}

@keyframes popin {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(100px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.page2 {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
  overflow: hidden;
  background-color: #020a13; /* Fallback background */
}

.page2 .page2img {
  position: absolute;
  width: 100%;
  height: 100vh;
  object-fit: fill;
  z-index: -1;
}



.page2content {
  height: 80%;
  width: 90%;
  margin-top: 5rem;
  background: transparent;
}
.page2content h1 {
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.page2content .events {
  width: 100%;
  position: relative;
  height: 90%;
  margin-top: 0.4rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.page2content .events::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('media/teambg.jpg') no-repeat center center/cover;
  background-color: rgba(0, 0, 0, 0.8);
  background-blend-mode: overlay;
  z-index: -1;
  filter: brightness(0.8);
}
/* Carousel Container */
.carouselbody {
  width: 100%;
  padding: 2rem 0;
  position: relative;
  margin: 2rem auto 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 15px;
}

.carousel-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  overflow: hidden;
}

.carousel {
  display: flex;
  width: 100%;
  height: 500px; /* Increased height for better visibility */
  position: relative;
  align-items: center;
  perspective: 2000px;
  overflow: visible;
}

.carousel-slide {
  width: 60%;
  height: 80%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform-style: preserve-3d;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.carousel-slide.prev {
  transform: translate(-150%, -50%) scale(0.85);
  opacity: 0.7;
  z-index: 2;
  filter: brightness(0.8);
}

.carousel-slide.next {
  transform: translate(50%, -50%) scale(0.85);
  opacity: 0.7;
  z-index: 2;
  filter: brightness(0.8);
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.carousel img.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.carousel img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Navigation Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.8rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.6);
}

.arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.arrow:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* Disable arrow buttons when needed */
.arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

/* Dots Navigation */
.carousel-controls {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
  padding: 10px 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot:hover {
  transform: scale(1.2);
}

.dot.active {
  background-color: #00bfa6;
  transform: scale(1.2);
  border-color: white;
}

/* Hide elements for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .carousel {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .carousel {
    height: 300px;
  }
  
  .arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 250px;
  }
  
  .arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .carousel {
    height: 350px;
  }
  
  .arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .carousel {
    height: 300px;
  }
  
  .carousel img {
    border-radius: 8px;
  }
  
  .arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  .carousel-container {
    width: 95%;
  }
}

@media (max-width: 600px) {
  .carousel {
    height: 250px;
  }
  
  .arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 200px;
  }
  
  .arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .carousel-controls {
    bottom: 5px;
  }
  
  .carousel-container {
    padding: 0.5rem 0;
  }
}

/* Animation for slide transition */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel img {
  animation: slideIn 0.5s ease-out forwards;
}

.page2content .events .homeevents {
  width: 70%;
  height: auto;
  object-fit: cover;
  position: relative; /* Carousel Styles */
  z-index: 2;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page2bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  background-color: #020a13; /* Fallback color */
  pointer-events: none; /* Prevent video from interfering with clicks */
}

.eventtxt {
  padding: 2rem 2rem;
  background: rgba(5, 10, 20, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  z-index: 3;
  position: absolute;
  height: 70%;
  width: 40%;
  border-radius: 12px;
  color: #ffffff;
  border: 1px solid rgba(0, 191, 166, 0.3);
  right: 3rem;
  top: 4rem;
  display: flex;
  flex-direction: column;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  justify-content: space-evenly;
}
.eventtxt h1 {
  font-size: 1.7rem;
  font-weight: 800;
}
.eventtxt h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
  margin: 1rem 0;
}
.eventbtn {
 margin-top: 2.6rem;
  padding: 0.5rem 1rem;
  border: none;
  font-size: 1rem;
  width: 40%;
}
.page4 {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
}
.page4 .page4img {
  position: absolute;
  width: 100%;
  height: 100vh;
  object-fit: fill;
  z-index: -1;
}
.knowmore {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
}
.knowmore > h2 {
  font-size: 1.7rem;
  font-weight: 800;

  color: white;
}
.knowmorecontent {
  height: 60%;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.knowmorecontentleft img {
  height: 14rem;
}
.knowmorecontentright h1 {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 2.3rem;
  margin-bottom: 1.5rem;
}
.knowmorecontentright h2 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8rem;
  color: white;
}

.footer {
  background: #020a13;
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  position: relative;
  text-align: center;
  gap: 30px;
}

.footerbg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: 0;
}

.footer-column {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 10px;
}

.footer-logo p {
  margin: 10px 0;
  font-weight: bold;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease-in-out;
}

.social-icons a img:hover {
  transform: scale(1.2);
}

.contact-section {
  border: 2px solid white;
  padding: 20px;
  border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.contact-form button {
  background: gold;
  color: black;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
}

/* Bottom footer (routes & chat) */
.footer-bottom {
  position: relative;
  z-index: 1;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #ccc;
}
.footer-left,
.footer-right {
  flex: 1;
  min-width: 250px;
  padding: 10px;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-left {
    text-align: left;
  }
  .footer-right {
    text-align: right;
  }
}

.footRoutes {
  display: flex;
  gap: 20px;
}

.footRoutes h1 {
  font-size: 1rem;
  cursor: pointer;
}

.footchat {
  display: flex;
  gap: 20px;
}

.footchat i {
  margin-right: 8px;
}

.page3 {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
}
.page3 .Carouselimg {
  position: absolute;
  width: 100%;
  height: 100vh;
  object-fit: fill;
  z-index: -1;
}
.page3 h1{
  color: white;
  margin-top: 6rem;
}
.carouselbody{
  
  height: 90%;
  width: 80%;
 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-container {
  position: relative;
  width: 80%;
  max-width: 1000px;
  height: 600px;
  perspective: 1000px;
}

.carousel {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.5s ease;
}

.carousel img {
  position: absolute;
  border-radius: 20px;
  max-width: 80%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.4;
  transform: scale(0.8);
  transition: all 0.6s ease-in-out;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}



.carousel img.active {
  opacity: 1;
  transform: scale(1) translateZ(0);
  z-index: 3;
}

.carousel img.left {
  transform: translateX(-90%) scale(0.8) rotateY(15deg); /* more spacing */
  z-index: 2;
}

.carousel img.right {
  transform: translateX(90%) scale(0.8) rotateY(-15deg); /* more spacing */
  z-index: 2;
}

.carousel-controls {
  position: absolute;
  width: 100%;
  bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #888;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #a86ff7;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.arrow.left {
  left: 10px;
  z-index: 900;
}

.arrow.right {
  right: 10px;
  z-index: 900;
}
/* Base style */
.typing-line1,
.typing-line2 {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

/* Typing animation for line 1 */
.typing-line1 {
  width: 0;
  max-width: fit-content;
  animation: typing1 3s steps(43, end) forwards,
  remove-cursor 0.1s forwards;
  border-right: 2px solid white;
}

/* Adjust the number 43 below to match exact char count */
@keyframes typing1 {
  to {
    width: 43ch; /* Match number of visible characters */
  }
}


/* Typing animation for line 2, with delay */
.typing-line2 {
  width: 0;
  max-width: fit-content;
  animation:
    typing2 1.5s steps(19, end) forwards,
    remove-cursor 0.1s forwards;
  animation-delay: 3s, 4.5s; /* second delay = 3.2 + 2.5 */
  border-right: 2px solid white;
}
@keyframes remove-cursor {
  to {
    border-right: none;
  }
}

@keyframes typing2 {
  to {
    width: 19ch;
    
  }
}




/* Blinking effect */
@keyframes blink {
  50% {
    opacity: 0;
  }
}
/* Shared Section Styling (similar to .page2) */
.projects-page,
.team-page,
.about-page {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
  overflow: hidden;
}

.projects-page video,
.team-page video,
.about-page video {
  position: absolute;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.5); /* Optional: dim the video */
}

.section-content {
  height: 80%;
  width: 90%;
  margin-top: 5rem;
  color: white;
}

.section-content h1 {
  color: white;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.section-main {
  width: 100%;
  position: relative;
  height: 90%;
  margin-top: 0.4rem;
}

.section-main .section-image {
  object-fit: cover;
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 2;
}

.section-text {
  padding: 2rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  z-index: 3;
  position: absolute;
  height: 70%;
  width: 40%;
  right: 3rem;
  top: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  backdrop-filter: blur(5px);
  color: white;
  border-radius: 1rem;
}

.section-text h1 {
  font-size: 1.7rem;
  font-weight: 800;
}

.section-text h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: white;
}

.section-btn {
  margin-top: 2.6rem;
  padding: 0.5rem 1rem;
  border: none;
  font-size: 1rem;
  width: 40%;
  cursor: pointer;
  background-color: #a86ff7;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.section-btn:hover {
  background-color: #7c4cd3;
}
.projectsbtn {
  padding: 14px 36px;
  font-size: 1rem;
  color: #0ff;
  background-color: #111;
  border: 2px solid #0ff;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transition: all 0.4s ease;
}

.projectsbtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #0ff;
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.projectsbtn:hover::before {
  width: 400%;
  height: 400%;
}

.projectsbtn:hover {
  color: #000;
  background-color: #0ff;
  box-shadow: 0 0 25px #0ff, 0 0 50px #0ff;
  transform: scale(1.05);
}
/* TEAM BUTTON */
.teambtn {
  padding: 14px 36px;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(145deg, #6c5ce7, #341f97);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 6px 12px rgba(108, 92, 231, 0.4);
  transition: all 0.4s ease;
}

.teambtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: white;
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.teambtn:hover::before {
  width: 400%;
  height: 400%;
}

.teambtn:hover {
  background: #9b59b6;
  transform: scale(1.05);
}


/* ABOUT BUTTON */
.aboutbtn {
  padding: 14px 36px;
  font-size: 1rem;
  color: #111;
  background-color: #f1c40f;
  border: 2px solid #f39c12;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 15px rgba(241, 196, 15, 0.5);
  transition: all 0.3s ease-in-out;
}

.aboutbtn:hover {
  background-color: #f39c12;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.6);
}

/* Add to <style> in <head> */
.hero-carousel {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background-color: #000;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.77,0,.18,1), opacity 0.5s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

