@import url(https://db.onlinewebfonts.com/c/b89af63f1d0fa3bbb52eb95ab3fcc2fa?family=Monstro);
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap");

:root {
  --primary: #f06e2a;
  --logosec: #69baed;
  --secondary: #000000;
  --tertiary: #f0e5dc;
  --aboutusbg: rgba(255, 255, 255, 0.1);
  --mainfont: "Eurostile";
  --logomainfont: "Source Serif 4";
  --logosecfont: "Lato";
}

* {
  box-sizing: border-box;
  font-family: "Ubuntu";
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--secondary);
  overflow-x: hidden;
  /* position: relative; */
}
#relode {
  position: fixed;
  height: 100vh;
  width: 100vw;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1005;
  transition: opacity 1s ease-out;
}

#relodelogo {
  width: 40vw;
  min-width: 80px;
  transition: opacity 1s ease-out;
}

.hide {
  opacity: 0;
  pointer-events: none;
}

/* Navbar Styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: var(--secondary);
  box-shadow: 0px 7px 60px 50px var(--secondary);
  position: fixed;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}
#navbarNavDesktop {
  background-color: var(--secondary);
}

.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-brand {
  display: flex;
  /* align-items: center; */
  text-decoration: none;
  justify-content: center;
}

#navlogo {
  width: 5vw;
  clip-path: inset(0% 0% 10% 0%);
}

.navbar-brand h4 {
  margin: 0;
  font-size: 1.5vw;
  font-family: var(--logomainfont);
  color: var(--primary);
}

.navbar-nav {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav-item {
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-family: var(--logosecfont);
  font-size: 1.3rem;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover {
  color: var(--primary);
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 3px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--tertiary);
  transition: all 0.3s ease-in-out;
}

/* Mobile Menu */
.navbar-nav.mobile {
  flex-direction: column;
  gap: 0.5rem;
  align-items: start;
  display: none; /* Hidden by default for mobile */
  position: absolute;
  top: 70%;
  left: 60vw;
  background-color:var(--secondary);
  padding: 1rem;
  border-radius: 10px;
}

.navbar-nav.mobile.active {
  display: flex; /* Visible when active */
  justify-content: start;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none; /* Hidden by default */
  padding: 0.5rem 0;
  list-style: none;
  position: fixed;
  color: var(--tertiary);
}

.dropdown-menu.active {
  display: block; /* Visible when active */
}

.dropdown-item {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #ffffff;
  display: block;
  font-size: 1.3rem;
  transition: background-color 0.2s ease-in-out;
}

.dropdown-item:hover {
  color: var(--primary);
}

/* Animation for the hamburger menu */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* try....................... */

.logo {
  width: 25vw;
  min-width: 80px;
}
#moto {
  color: var(--tertiary);

  font-size: 1.5vw;
  margin-top: 0.5rem;
  font-weight: 800;
}
.typewriter {
  display: flex;
  justify-content: flex-start;
  width: 23.8vw;
}
.logo-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#home {
  background-color: var(--secondary);
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  height: 200vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}
#forgap {
  height: 120vh;
  width: 100vw;
}
#title {
  display: flex;
  margin-top: 6%;
  gap: 0.5vw;
}
#club {
  color: var(--logosec);
}

/* Style for individual stars */
.star {
  position: absolute;
  background-color: white;
  border-radius: 50%; /* Makes stars circular */
  animation: moveStar 10s infinite;
  opacity: 0.8; /* Slight transparency for stars */
}

/* Keyframes for random star movement */
@keyframes moveStar {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-70vw, -30vh);
  }
  50% {
    transform: translate(-30vw, -150vh);
  }
  75% {
    transform: translate(-60vw, -20vh);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.2;
  }
}
.star {
  animation: moveStar 10s infinite, twinkle 2s infinite;
}

@media (min-width: 821px) and (max-width: 1024px) {
  .logo-container .logo {
    width: 40vw;
  }
  #moto {
    font-size: 1.5vw;
  }
  #navlogo {
    width: 8vw;
  }
  #title h4 {
    font-size: 2.5vw;
  }
  .typewriter {
    width: 39vw;
  }
  #moto {
    font-size: 2.5vw;
  }
}

@media (min-width: 481px) and (max-width: 820px) {
  .logo-container .logo {
    width: 40vw;
  }
  #moto {
    font-size: 1.7vw;
  }
  .hamburger {
    display: flex; /* Show hamburger menu on smaller screens */
  }

  .navbar-nav {
    display: none; /* Hide the main menu on small screens */
  }

  .navbar-nav.mobile {
    display: none; /* Mobile-specific menu hidden by default */
    left: 80vw;
  }
  .dropdown-menu.active {
    background-color: #000000;
    position: static;
  }
  #navlogo {
    width: 12vw;
  }
  #title h4 {
    font-size: 3.5vw;
  }
  .typewriter {
    width: 39vw;
  }
  #moto {
    font-size: 2.5vw;
  }
}

@media (min-width: 380px) and (max-width: 480px) {
  

  .logo-container .logo {
    width: 55vw;
  }
  
  .hamburger {
    display: flex; /* Show hamburger menu on smaller screens */
  }

  .navbar-nav {
    display: none; /* Hide the main menu on small screens */
  }

  .navbar-nav.mobile {
    display: none; /* Mobile-specific menu hidden by default */
  }
  .dropdown-menu.active {
    background-color: #000000;
    position: static;
  }
  #navlogo {
    width: 15vw;
  }
  #title h4 {
    font-size: 4vw;
  }
  .typewriter {
    width: 50vw;
  }
  #moto {
    font-size: 3.2vw;
  }
}
@media (max-width: 380px) {
  

  .logo-container .logo {
    width: 70vw;
  }
 
  .hamburger {
    display: flex; /* Show hamburger menu on smaller screens */
  }

  .navbar-nav {
    display: none; /* Hide the main menu on small screens */
  }

  .navbar-nav.mobile {
    display: none; /* Mobile-specific menu hidden by default */
  }
  .dropdown-menu.active {
    background-color: #000000;
    position: static;
  }
  #navlogo {
    width: 15vw;
  }
  #title h4 {
    font-size: 4vw;
  }
  #relode {
    width: 100vw;
    height: 100vh;
  }
  .typewriter {
    width: 60vw;
  }
  #moto{
    font-size: 3.8vw;
  }
}

/* About Us Css */

#AboutUs {
  background-color: var(--secondary);
  color: var(--tertiary);
  font-family: var(--mainfont);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-x: hidden;
  padding: 5% 0%;
  /* margin-top: 5%; */
}

#Aboutusheader {
  margin: 3% auto;
  font-size: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  width: 23%;
  color: var(--tertiary);
  margin-top: 1%;
  font-size: 3.5rem;
  font-family: "Ubuntu";
  font-weight: bold;
}

#Aboutusheader::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-bottom: 5px solid var(--primary);
  border-right: 5px solid var(--primary);
  bottom: 0;
  right: 0;
}

#Aboutusheader::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-top: 5px solid var(--primary);
  border-left: 5px solid var(--primary);
  top: 0;
  left: 0;
}

#p2 {
  margin: 1% 10%;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

#mainContent {
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  margin-top: 2%;
}

#mainContent > div {
  flex: 1 1 calc(45% - 20px);
  /* Adjusts width dynamically */
  max-width: 400px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.682);
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 94, 0, 0.3);
}

#mission:hover,
#vision:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(102, 81, 66, 0.4);
}

#mainContent #h1 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 20px 0;
  position: relative;
}

#p1 {
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  font-weight: lighter;
  text-align: center;
}

#p {
  margin: 2% 10%;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  background: rgba(15, 23, 42, 0.682);
  padding: 1rem;
  border-radius: 10px;
  color: var(--tertiary);
}

#spn {
  color: var(--primary);
}

#i1,
#i2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

#i1:hover,
#i2:hover {
  transform: translateY(-10px);
  color: #d97b00;
}

@media (max-width: 768px) {
  #mainContent {
    flex-direction: column;
    align-items: center;
  }

  #mainContent > div {
    width: 100%;
  }

  #Aboutusheader {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    width: 23%;
    top: 60px;
    left: auto;
    margin-bottom: 3%;
    color: var(--tertiary);
  }

  #Aboutusheader::before {
    width: 10px;
    height: 10px;
    border-top: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
  }

  #p2 {
    font-size: 8px;
    margin-top: 15%;
  }

  #Aboutusheader::after {
    width: 10px;
    height: 10px;
    border-bottom: 3px solid var(--primary);
    border-right: 3px solid var(--primary);
  }

  #mainContent > div:hover {
    transform: none;
    box-shadow: 0;
  }

  #mainContent {
    gap: 30px;
  }
  #p {
    margin-top: 30px;
  }
}

/* memories. . . . . . .  */

#memories {
  font-family: "Ubuntu";
  text-align: center;
  font-size: 3.5rem;
  margin-top: 5rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #ff6b00, #4a5cd1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

/* #memories:hover {
    transform: scale(1.5);
} */

.web {
  border-radius: 50%;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 20px;
}

.container {
  position: relative;
  padding: 10px 50px;
  width: 50%;
  animation: movedown 1s linear forwards;
  opacity: 0;
  border-radius: 50%;
}

.text-box {
  padding: 20px 30px;
  position: relative;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}

.text-box h2 {
  font-family: "Ubuntu";
  color: var(--primary);
  font-weight: lighter;
  font-size: 25px;
  color: #91ea;
}
.text-box p {
  padding-top: 10px;
  font-size: 15px;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.container img {
  position: absolute;
  width: 50px;
  border-radius: 5px;
  right: -20px;
  top: 40px;
  z-index: 10;
}

@keyframes movedown {
  0% {
    opacity: 1;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

.container:nth-child(1) {
  animation-delay: 0s;
}

.container:nth-child(2) {
  animation-delay: 0.3s;
}

.container:nth-child(3) {
  animation-delay: 0.6s;
}

.container:nth-child(4) {
  animation-delay: 0.9s;
}

.container:nth-child(5) {
  animation-delay: 1.2s;
}
.container:nth-child(6) {
  animation-delay: 1.5s;
}

.container:nth-child(7) {
  animation-delay: 1.8s;
}

.right img {
  left: -20px;
}

.left-arrow {
  height: 0;
  width: 0;
  position: absolute;
  top: 28px;
  z-index: 1;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid var(--tertiary);
  right: -13px;
}

.right-arrow {
  height: 0;
  width: 0;
  position: absolute;
  top: 28px;
  z-index: 1;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid var(--tertiary);
  left: -13px;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 100%;
  background: var(--tertiary);
  top: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -1;
  animation: moveline 2s linear forwards;
}

@keyframes moveline {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}

@media screen and (max-width: 768px) {
  .timeline {
    margin: 50px auto;
  }
  .timeline::after {
    left: 31px;
  }
  .container {
    width: 100%;
    padding-left: 80px;
    padding-right: 25px;
  }
  .text-box {
    font-size: 13px;
  }
  .right {
    left: 0;
  }
  .left img,
  .right img {
    left: 1px;
  }
  .left-arrow,
  .right-arrow {
    border-right: 15px solid var(--tertiary);
    border-left: 0;
    left: -15px;
  }
}

@media screen and (max-width: 480px) {
  #memories {
    font-size: 50px;
    padding-top: 20px;
  }
  .container {
    padding: 10px 20px;
  }
  .text-box {
    font-size: 12px;
  }
  .container img {
    width: 40px;
    display: none;
  }
  .left-arrow,
  .right-arrow {
    border-width: 10px;
  }
}

/* style for  contactUs */
textarea {
  font-family: "Ubuntu", sans-serif;
  background: var(--secondary);
}

#ContactUs {
  width: 100%;
  height: 100%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.Full-form {
  width: 90%;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
  /* z-index: 1000; */
  /* overflow: hidden; */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 10%;
}

.contact-form {
  background: rgba(15, 23, 42, 0.742);
  position: relative;
}

.contact-form:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: rgba(15, 23, 42, 0.742);
  transform: rotate(45deg);
  top: 50px;
  left: -13px;
}

#main-contact {
  padding: 2.3rem 2.2rem;
  /* z-index: 10; */
  overflow: hidden;
  position: relative;
}

.Contacttitle {
  color: var(--tertiary);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.input-container {
  position: relative;
  margin: 1rem 0;
}
.title {
  color: #ccc;
}

.ContactInput {
  width: 100%;
  outline: none;
  border: 0;
  /* border: 1.5px solid var(--tertiary); */
  padding: 0.6rem 1.2rem;
  color: var(--tertiary);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 25px;
  background-color: transparent;
  z-index: 0;
  box-shadow: 0 4px 10px rgba(81, 81, 81, 0.375);
}
#msg {
  resize: none;
}

.input-container input::placeholder {
  color: var(--tertiary);
}

.input-container textarea::placeholder {
  color: var(--tertiary);
}

#send {
  padding: 0.6rem 1.3rem;
  background: linear-gradient(60deg, rgb(21, 32, 44), rgb(37, 75, 109));
  font-size: 0.95rem;
  color: var(--tertiary);
  line-height: 1;
  border-radius: 25px;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  margin: 0;
  border: 0;
}

#send:hover {
  background-color: transparent;
  color: var(--tertiary);
}

.input-container span {
  position: absolute;
  top: 0;
  left: 25px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  padding: 0 0.4rem;
  color: transparent;
  pointer-events: none;
  z-index: 500;
}

.input-container span:before,
.input-container span:after {
  content: "";
  position: absolute;
  width: 10%;
  opacity: 0;
  transition: 0.3s;
  height: 5px;
  background: rgba(15, 23, 42, 0.742);
  top: 50%;
  transform: translateY(-50%);
  border: rgba(15, 23, 42, 0.742) 2px solid;
}

.input-container span:before {
  left: 50%;
}

.input-container span:after {
  right: 50%;
}

.input-container.focus label {
  top: 0;
  transform: translateY(-50%);
  left: 25px;
  font-size: 0.8rem;
}

.input-container.focus span:before,
.input-container.focus span:after {
  width: 50%;
  opacity: 1;
}

#msg {
  resize: none;
  overflow: hidden;
}

.contact-info {
  padding: 2.3rem 2.2rem;
  position: relative;
  background-color: transparent;
  border: rgba(15, 23, 42, 0.95) 4px solid;
}

.contact-info .title {
  color: var(--primary);
}

.text {
  color: var(--tertiary);
  margin: 1.5rem 0 2rem 0;
  line-height: 150%;
}

.information {
  display: flex;
  color: var(--tertiary);
  margin: 0.7rem 0;
  align-items: center;
  font-size: 0.95rem;
}

.icon {
  width: 28px;
  margin-right: 0.7rem;
  color: orange;
}

.social-media {
  color: orange;
}

.social-media p {
  color: var(--tertiary);
}

.social-icons {
  display: flex;
  gap: 4%;
  margin-top: 0.5rem;
}

.social-icons a {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: linear-gradient(60deg, rgb(21, 32, 44), rgb(37, 75, 109));
  color: rgb(255, 255, 255);
  text-align: center;
  line-height: 35px;
  margin-right: 0.5rem;
  transition: 0.3s;
}

.social-icons a:hover {
  transform: scale(1.05);
}

.square {
  position: absolute;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(181%, 11%);
  opacity: 0.2;
}

@media (max-width: 850px) {
  .Full-form {
    grid-template-columns: 1fr;
  }

  .contact-info:before {
    bottom: initial;
    top: -75px;
    right: 65px;
    transform: scale(0.95);
  }

  .contact-form:before {
    top: -13px;
    left: initial;
    right: 70px;
  }

  .square {
    transform: translate(140%, 43%);
    height: 350px;
  }

  .big-circle {
    bottom: 75%;
    transform: scale(0.9) translate(-40%, 30%);
    right: 50%;
  }

  .text {
    margin: 1rem 0 1.5rem 0;
  }

  .social-media {
    padding: 1.5rem 0 0 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
  }

  .contact-info:before {
    display: none;
  }

  .square,
  .big-circle {
    display: none;
  }

  #main-contact,
  .contact-info {
    padding: 1.7rem 1.6rem;
  }

  .text,
  .information,
  .social-media p {
    font-size: 0.8rem;
  }

  .title {
    font-size: 1.15rem;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .icon {
    width: 23px;
  }

  .ContactInput {
    padding: 0.45rem 1.2rem;
  }

  .btn {
    padding: 0.45rem 1.2rem;
  }
}

.credit {
  color: var(--tertiary);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  margin-top: 3%;
}

.credit a {
  text-decoration: none;
  color: #fbab7e;
  font-weight: bold;
}

/* footer. . . . . . . .  */

/* footer Css */
#footer {
  background: linear-gradient(black, rgb(18, 28, 39));
  padding-top: 50px;
  margin-bottom: 0;
  margin-top: 4%;
  color: var(--tertiary);
}

.footcontainer {
  width: 90%;
  max-width: 1140px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content {
  flex: 1 1 30%;
  min-width: 250px;
  text-align: center;
}

h3 {
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
}

.footer-content p {
  margin: auto;
  padding: 7px;
}

.footer-content ul {
  text-align: center;
  padding: 0;
  list-style-type: none;
}

.list li {
  width: auto;
  text-align: center;
  padding: 4px;
  position: relative;
}

.list li::before {
  content: "";
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 100%;
  width: 0;
  height: 2px;
  transition-duration: 0.5s;
}

.list li:hover::before {
  width: 70px;
  color: var(--primary);
  background: var(--primary);
}

.social-icons1 {
  text-align: center;
  padding: 0;
  list-style: none;
}

.social-icons1 li {
  display: inline-block;
  padding: 5px;
}

.social-icons1 i {
  color: var(--tertiary);
  font-size: 25px;
}
li a:hover {
  color: var(--primary);
}

.social-icons1 i:hover {
  color: var(--primary);
}

a {
  text-decoration: none;
  color: var(--tertiary);
}

a:hover {
  color: var(--primary);
}

.social-icons1 i:hover {
  color: var(--primary);
}

.bottom-bar {
  text-align: center;
  padding: 10px 0;
  margin-top: px;
}

.bottom-bar p {
  color: var(--tertiary);
  margin: 0;
  font-size: 16px;
  padding: 7px;
}

/* Media Queries of Footer*/
@media (max-width: 768px) {
  #contactForm {
    width: 90%;
  }

  #contactheader {
    font-size: 40px;
  }

  #contactp {
    margin-left: 5%;
    margin-right: 5%;
    font-size: 0.9em;
  }

  #contactForm button {
    width: 50%;
  }

  .footer-content {
    flex: 1 1 100%;
    min-width: auto;
  }

  h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  #contactheader {
    font-size: 32px;
  }

  #contactp {
    font-size: 0.8em;
  }

  #contactForm button {
    width: 70%;
  }

  .social-icons i {
    font-size: 20px;
  }
}

/* style for events section */
/* General Styling */

body {
  /* background-color: #000; */

  overflow-x: hidden;
}

#Events {
  padding: 2rem 1rem;
  font-family: "Ubuntu", sans-serif;
}

.heading {
  text-align: center;
  margin-bottom: 3rem;
}

.heading h1 {
  font-family: "Ubuntu";
  text-align: center;
  font-size: 3.5rem;
  margin-top: 5rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #ff6b00, #4a5cd1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

/* Event Cards Container */
#photo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
}

/* Event Card Styling */
.event-card {
  position: relative;
  perspective: 1000px; /* Enables 3D perspective for the flip effect */
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3; /* Maintains aspect ratio */
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

/* Add flipping effect when the card has the flipped class */
.card-inner.flipped {
  transform: rotateY(180deg);
}
.event-card:hover .card-inner {
  transform: rotateY(180deg); /* Flip the card on hover */
}

.event-card:hover {
  box-shadow: 0px 8px 20px #ffffff33; /* Box shadow effect on hover */
}
.card-back:hover p {
  color: #fff; /* Highlighted text color */
}

/* Front and Back Faces */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Front of the Card */
.card-front {
  background: #000;
}

.card-front img {
  width: 100%;
  height: 100%;
  /* object-fit: contain; Prevent image cropping */
  border-radius: 15px;
  border: 2px solid #ffffff33;
}

/* Back of the Card */
.card-back {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  transform: rotateY(180deg);
  padding: 1rem;

  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff33;
}
.completed-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  background: green;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.completed-button:hover {
  background: green;
  transform: scale(1.05);
}

.completed-button:active {
  transform: scale(1);
}
#apply {
  background: red;
}
/* Responsive Design */
@media (max-width: 1024px) {
  #photo {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .heading h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  #photo {
    /*       grid-template-columns: 1fr; */
  }

  .heading h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .heading h1 {
    font-size: 1.5rem;
  }

  .card-back {
    font-size: 1rem;
    padding: 0.5rem;
  }
}

#domain h1 {
  font-family: "Ubuntu";
  text-align: center;
  font-size: 3.5rem;
  margin-top: 5rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #ff6b00, #4a5cd1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.domain-card {
  background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
  padding: 2rem;
  border-radius: 15px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.domain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-color, #ff6b00) 0%,
    var(--secondary-color, #4a5cd1) 100%
  );
}

.domain-card:nth-child(4n + 1) {
  --accent-color: #ff6b00;
  --secondary-color: #cc4400;
}

.domain-card:nth-child(4n + 2) {
  --accent-color: #4a5cd1;
  --secondary-color: #1a237e;
}

.domain-card:nth-child(4n + 3) {
  --accent-color: #cc4400;
  --secondary-color: #ff6b00;
}

.domain-card:nth-child(4n + 4) {
  --accent-color: #1a237e;
  --secondary-color: #4a5cd1;
}

.domain-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(var(--accent-color), 0.2);
}

.domain-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  border-radius: 50%;
  transition: transform 0.3s ease;
  /* background: rgba(255, 255, 255, 0.05); */
}

.domain-card:hover .domain-icon {
  transform: scale(1.1);
}
.domain-title {
  font-family: "Ubuntu";
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(var(--accent-color), 0.3);
}

.domain-description {
  color: #ccc;
  line-height: 1.8;
  font-size: 1.1rem;
  flex-grow: 1;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  #visitorheader {
    margin-top: 2%;
  }
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
    /* padding: 0.5rem; */
  }
}

@media (max-width: 540px) {
  .domains-grid {
    grid-template-columns: repeat(1, 1fr);
    /* padding: 0.5rem; */
  }
}

/*Scroll bar*/
/* body::-webkit-scrollbar {
  display: none;
} */
body::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(transparent, #00c6ff);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(transparent, #30ff00);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

@keyframes float {
  0% {
    transform: translatey(0px);
  }
  50% {
    transform: translatey(-12px);
  }
  100% {
    transform: translatey(0px);
  }
}
@keyframes Left {
  0% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(-12px);
  }
  100% {
    transform: translateX(0px);
  }
}
@keyframes Right {
  0% {
    transform: translate(0px);
  }
  50% {
    transform: translate(12px);
  }
  100% {
    transform: translate(0px);
  }
}
@keyframes diagonalLeft {
  0% {
    transform: translate(0px, 0px);
  }
  50% {
    transform: translate(-20px, 20px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}
@keyframes diagonalRight {
  0% {
    transform: translate(0px, 0px);
  }
  50% {
    transform: translate(20px, -20px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

.hero-text {
  width: 500px;
  margin-top: 10%;
  margin-right: 200px;
  text-align: left;
}

.hero-text h1 {
  font-size: 55px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.hero-text p {
  font-size: 22px;
  margin-bottom: 30px;
  color: #fff;
}

.hero-text .join-btn {
  background-color: #407bff;
  color: #fff;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
}

.hero-image {
  position: relative;
  max-width: 400px;
  margin-top: 13%;
}

.hero-image img {
  width: 120%;
  height: auto;
}

.Collaborate,
.ideas,
.Growth,
.tech,
.Challenges {
  position: absolute;
  background-color: #407bff;
  color: #fff;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
}

.Collaborate {
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  animation: float 6s linear infinite;
}

.ideas {
  top: 40%;
  left: 8%;
  transform: translateX(-50%);
  animation: Left 6s linear infinite;
}

.Growth {
  top: 50%;
  left: 80%;
  transform: translateX(-50%);
  animation: Right 6s linear infinite;
}

.tech {
  bottom: 5%;
  right: -20%;
  animation: diagonalLeft 6s linear infinite;
}

.Challenges {
  top: 80%;
  left: -10%;
  animation: diagonalRight 6s linear infinite;
}

@media (max-width: 768px) {
  #visitorheader {
    margin-top: 2%;
  }

  .hero-text {
    margin-top: 0;
    margin-bottom: 30px;
    /* text-align: center; */
    width: 80%;
    margin-right: 0;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .hero-text p {
    font-size: 18px;
  }

  .hero-text .join-btn {
    padding: 10px 20px;
    font-size: 16px;
  }

  .hero-image {
    margin-top: 0;
    max-width: 300px;
  }

  .hero-image img {
    width: 100%;
  }

  .Collaborate,
  .ideas,
  .Growth,
  .tech,
  .Challenges {
    font-size: 12px;
    padding: 8px 15px;
  }

  .Collaborate {
    top: 5%;
    left: 50%;
  }

  .ideas {
    top: 40%;
    left: 10%;
    animation: diagonalLeft s linear infinite;
  }

  .Growth {
    top: 45%;
    left: 75%;
  }

  .tech {
    bottom: 2%;
    right: 10%;
  }

  .Challenges {
    top: 70%;
    left: 5%;
  }
}

@media (max-width: 480px) {
  .hero-text {
    margin-top: 0;
    margin-bottom: 20px;
    width: 90%;
  }
  .hero-text h1 {
    font-size: 30px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-text .join-btn {
    font-size: 14px;
  }

  .hero-image {
    max-width: 250px;
  }

  .Collaborate,
  .ideas,
  .Growth,
  .tech,
  .Challenges {
    font-size: 5px;
    padding: 6px 10px;
  }
  #visitorheader {
    margin-top: 2%;
  }
}

/* Fade-in animation for scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in-text.visible {
  opacity: 1;
  transform: translateY(0);
}
.popup-contact {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.popup-content-contact {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

.popup-content-contact button {
  margin-top: 10px;
  padding: 8px 16px;
  background: linear-gradient(60deg, rgb(21, 32, 44), rgb(37, 75, 109));
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-content-contact button:hover {
  background: linear-gradient(60deg, rgb(37, 75, 109), rgb(21, 32, 44));
}

#counter-visitor {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: bold;
  color: #fff;
  padding: 8px 20px;
  border-radius: 10px;
  margin-top: 5%;
}
#label-visitor {
  background: linear-gradient(145deg, #33445f, #2c3137);
  color: #f1f1f1;
  padding: 7px 15px;
  /* border-radius: 10px 0 0 10px; */
  margin-right: 5px;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3),
    inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}
#count-visitor {
  background: linear-gradient(60deg, rgb(37, 75, 109), rgb(21, 32, 44));
  padding: 7px 15px;
  /* border-radius: 0 10px 10px 0; */
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3),
    inset -2px -2px 4px rgba(255, 255, 255, 0.1);
  color: #fff;
}
