*{
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', Times, serif;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
body{
  background: white;
  color: black;
  overflow-x: hidden;
}
#header{
  width: 100%;
  height: 100vh;
  background-image: url(images/wallpaper.jpg);
  background-size: cover;
  background-position: center;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container{
  padding: 50px 5%;
}
nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
nav ul li{
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
}
nav ul li a{
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  position: relative;
}
nav ul li a::after{
  content: '';
  width: 0%;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}
nav ul li a:hover::after{
  width: 100%;

}
.header-text{
  color: #fff;
  margin-top: 15%;
  font-size: 40px;
}
.header-text h1{
  color: #fff;
  font-size: 80px;
  margin-top: 20px;
}
.header-text h1 span{
  color: black;
}

/*--------------logo start----*/
.logo {
  font-size: 58px;
  font-weight: bold;
  font-family: 'Times New Roman', Times, serif;
  color: black;
  cursor: default;
  border-bottom: 3px solid #ff004f;
}

.logo span {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Add the bounce effect on hover */
.logo span:hover {
  animation: bounce 0.6s;
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-12px); }
  60%  { transform: translateY(4px); }
  100% { transform: translateY(0); }
}
/*--------------logo end------*/
/*---------------------------------about--------------------------------*/
#about-section {
  padding: 50px 5%;
}

.section-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 40px;
}

.section-title a {
  text-decoration: none;
  color: black;
  margin-top: 40px;
  border-bottom: 2px solid #ff004f;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.left-image img {
  margin-top: 10px;
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
}
.image-footer {
  margin-top: 60px;
  font-size: large;
  font-style: italic;
  text-align: center;
  padding: 10px 0;
  color: white;
  background: #ff004f;
  border-radius: 10px;

}
.right-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.bio-text {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.photo-grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}
/*------------------------courses by theme-------------------------*/
#courses-theme{
  text-align: center;
}
.courses-list{
  text-align: left;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 40px;
  margin-top: 40px;

}
.courses-list div{
  background: #262626;
  padding: 40px;
  font-size: 13px;
  font-weight: 300;
  border-radius: 15px;
  transition: background 0.5s, transform 0.5s;
}
.courses-list div i{
  color: #fff;
  font-size: 50px;
  margin-bottom: 30px;
}
.courses-list div h2{
  color: #fff;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 15px;
}
.courses-list div p{
  text-decoration: none;
  color: white;
  font-size: 20px;
  margin-top: 20px;
  display: inline-block;
}
.courses-list div ol{
  padding: 15px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  margin-top: 20px;
  display: inline-block
}
.courses-list div:hover{
  background: #ff004f;
  transform: translate(-10px);

}
/*---------------------Labs & More---------------------------------*/
#labs-section {
  text-align: center;
}
.labs-section .container {
  text-align: center;
  max-width: 100%;
}
.sub-title {
  font-size: 48px;
  margin-bottom: 30px;
  border-bottom: 2px solid #ff004f;
  display: inline-block;
  text-align: center;
}
.labs-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}

.labs-text {
  flex: 1 1 40%;
  min-width: 280px;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
.labs-text h2{
  margin-top: 15px;
  color: #ff004f;
  flex: 1 1 40%;
  min-width: 280px;
  font-size: 25px;
  line-height: 1.6;
  text-align: left;
}
.labs-text ol{
  margin-left: 15px;
  margin-top: 15px;
  flex: 1 1 40%;
  min-width: 280px;
  font-size: 16px;
  line-height: 1.6;
}
.slider {
  flex: 1 1 55%;
  position: relative;
  max-width: 600px;
  overflow: hidden;
  border-radius: 10px;
}
.slide {
  display: none;
  position: relative;
}
.slide.active {
  display: block;
}
.slide img {
  width: 100%;
  display: block;
  border-radius: 10px;
}
.caption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: white;
  background-color: #ff004f;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 20px;
  font-weight: bold;
}
.slider button.prev, .slider button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transition: background-color 0.3s;
}
.slider button.prev:hover, .slider button.next:hover {
  background-color: #ff004f;
}
.slider button.prev {
  left: 10px;
}
.slider button.next {
  right: 10px;
}
/*-------------------------Campus Involvements--------------------*/
#campus-inv{
  text-align: center;
}
.camp-sub-title {
  font-size: 48px;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid black;  
  display: inline-block;  
}

.work-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 40px;
  margin-top: 40px;
}
.work{
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.work img{
  width: 100%;
  border-radius: 0px;
  display: block;
  transition: transform 0.5s;
}
.layer{
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0,0, 0.6), #ff004f);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 40px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}
.layer h3{
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 20px;
}
.layer a{
  margin-top: 20px;
  color: #ff004f;
  text-decoration: none;
  font-size: 18px;
  line-height: 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
}
.work:hover img{
  transform: scale(1.1);
}
.work:hover .layer{
  height: 100%;
}
/*-------------------------Professional Development---------------*/
#professional-dev{
  padding: 50px 5%;
  text-align: center;
}
.prof-sub-title {
  font-size: 48px;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid #ff004f;  
  display: inline-block;  
}
.projects-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 40px;
  margin-top: 40px;
}
.projects{
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  color: black;
}
.projects img{
  width: 100%;
  border-radius: 0px;
  display: block;
  transition: transform 0.5s;
}
.prof-layer{
  width: 100%;
  height: 0;
  color: #fff;
  background: linear-gradient(rgba(0, 0,0, 0.6), #ff004f);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 40px;
  text-align: center;
  font-size: 20px;
  transition: height 0.5s;
}
.prof-layer h3{
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 20px;
}
.prof-layer a{
  margin-top: 20px;
  color: #ff004f;
  text-decoration: none;
  background: #fff;
  font-size: 18px;
  line-height: 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
}
.projects:hover img{
  transform: scale(1.1);
}
.btn{
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid #ff004f;
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  transition: background 0.5s;
}
.projects:hover .prof-layer{
  height: 100%;
}
/*----------------------------Contact-----------------------------*/
#contact{
  padding: 50px 5%;
}
.cont-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px; /* Adds spacing between left and right sections */
}
.contact-left{
  flex-basis: 35%;
}
.contact-right{
  flex-basis: 60%;
}
.contact-left p{
  margin-top: 30px;  
}
.contact-left p i{
  color: #ff004f;
  margin-right: 15px;
  font-size: 25px;
}
.social-icons{
  margin-top: 30px;
}
.social-icons a{
  display: inline-block;
  text-decoration: none;
  font-size: 30px;
  margin-right: 15px;
  color: #ababab;
  transition: transform 0.5s;
}
.social-icons a:hover{
  color: #ff004f;
  transform: translateY(-5px);
}
.btn.btn2{
  display: inline-block;
  background: #ff004f;
}
.btn.btn2.clicked {
  transform: scale(0.95);
  background-color: #ab1f49; /* Optional: change color on click */
  transition: transform 0.1s, background-color 0.2s;
}
.contact-right doerm{
  width: 100%;
}
form input, form textarea{
  width: 100%;
  border: 0;
  outline: none;
  background: #262626;
  padding: 15px;
  margin: 15px;
  color: #fff;
  font-size: 18px;
  border-radius: 6px;
}
form .btn2{
  margin: 15px;
  padding: 14px 60px;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
}
.copyright {
  color: #fff;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  padding: 25px 0;
  background: #262626;
  text-align: center;
}
.copyright i{
  color: #ff004f;
}
/*-------------------------Toggling button-------------------*/
/* Toggle Switch */
.theme-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-block;
  width: 50px;
  height: 25px;
  z-index: 1000;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 25px;
}

.theme-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3.5px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .theme-slider {
  background-color: #333;
}

input:checked + .theme-slider:before {
  transform: translateX(24px);
}
/* Dark mode styles */
.dark-mode {
  background-color: #121212;
  color: white;
}

.dark-mode a {
  color: white;
}

.dark-mode .header-text span {
  color: black;
}
/* ------------------- Responsive Design ------------------- */
nav .fa-solid{
  display: none;
}
@media only screen and (max-width:600px){
  #header{
    background-image: url(images/phonewallpaper.jpg);
  }
  .header-text{
    margin-top: 100%;
    font-size: 30px;
  }
  .header-text h1{
    font-size: 50px;
      
  }
  nav .fa-solid{
    display: block;
    font-size: 40px;
    color: white;
  }
  nav ul{
    background: #ff004f;
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: 0.5s; 
  }
  nav ul li{
    display: block;
    margin: 25px;
  }
  nav ul .fa-solid{
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }
  .sub-title{
    font-size: 40px;
  }
  .section-title{
    font-size: 40px;
  }
  .camp-sub-title{
    font-size: 40px;
  }
  .prof-sub-title{
    font-size: 40px;
  }
  .cont-container {
    font-size: 40px;
    width: 100%;
    flex-basis: content;
  }
  .row {
    flex-direction: column;
    align-items: center;
  }
  .contact-left, .contact-right{
    flex-basis: 100%;
    text-align: center;
  }
  .contact-left p{
    text-align: center;
  }
  .contact-left p i{
    margin-right: 0;
  }
  .social-icons a{
    text-align: center;
    font-size: 40px;
  }
  .btn{
    margin: 20px 0;
    width: 100%;
    padding: 14px;
  }
  .contact-right form input, .contact-right form textarea{
    width: 100%;
    margin: 10px 0;
  }
  .contact-right form .btn2{
    width: 100%;
    margin: 10px 0;
  }
  .courses-list{
    grid-template-columns: 1fr;
  }
  .labs-content{
    flex-direction: column;
  }
  .labs-text, .slider{
    flex: 1 1 100%;
    max-width: 100%;
  }
  .work-list{
    grid-template-columns: 1fr;
  }
  .projects-list{
    grid-template-columns: 1fr;
  } 
  .tab-links{
    font-size: 16px;
    margin-right: 20px;
  }
}
#msg{
  color: #61b752;
  margin-top: 10px;
  display: block;
}