body {
  background-color: 1C1C1C;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(165, 72, 72, 0);
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.head-rudra{
display: flex;
align-items: center;

}

.logo{
width: 100px;
height: 100px;
}


.nav{
  display: flex;
  color: white;
  margin-right: 60px;
  cursor: pointer;
  transition: color 0.3s ease;
  gap: 30px;
}


.nav div {
  position: relative;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.nav div::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 80%;
  height: 3px;
  background: rgb(10, 216, 226);
  transition: transform 0.3s ease;
}

.nav div:hover::after {
  transform: translateX(-50%) scaleX(1);
}


.nav h3 {
  margin: 0;
  color: #fff;
  font-weight: 500;
}

.nav div:hover h3 {
  color: #ffcc00;;
}

.head-rudra h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
  background: linear-gradient(to right, #ff0000, #ffd900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}



/* Hamburger Button */
.hamburger {
display: none;
flex-direction: column;
justify-content: end;
gap: 5px;
cursor: pointer;
padding: 10px;
}

.hamburger span {
height: 3px;
width: 25px;
background: white;
border-radius: 2px;
}

/* Responsive Breakpoint */
@media (max-width: 768px) {
.hamburger {
  display: flex;
}

.nav {
  display: none;
  flex-direction: column;
  width: 100%;
  background-color: #11111100;
  padding: 10px 0;
}

.nav.show {
  display: flex;
}

.nav div {
  padding: 10px;
  text-align: center;
}

.nav div::after {
  content: '';
  position: absolute;
  bottom: -5px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 30%;
  height: 3px;
  background: rgb(10, 216, 226);
  transition: transform 0.3s ease;
}

.header {
  flex-direction: column;
  align-items: center;
}

.head-rudra {
  width: 100%;
  justify-content: space-between;
}
}


.dept{
color: white;
justify-content: center;
text-align: center;
font-size: 2.2rem;
margin-bottom: 30px;
padding-bottom: 50px;
padding-top: 20px;
}

.row {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 30px;
}



.card h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}



.names {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  font-size: 14px;
  color: rgb(12, 12, 12)
}

.info-btn {
  margin-top: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.info-btn:hover {
  background-color: #5a90c9;
}


.card {
  position: relative;
  width: 400px;
  padding: 16px;
  border-radius: 10px;
  background: rgb(255, 255, 255);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  overflow: hidden;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 115, 0, 0.6);  /* Adds soft orange glow */
}



.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.extra-info {
  display: none;
  animation: fadeIn 0.5s ease forwards;
  text-align: left;
  font-size: 15px;
  color: rgb(10, 10, 10);
  line-height: 1.6;
  padding-top: 10px;
}

.card.expanded .card-image,
.card.expanded h2,
.card.expanded .names,
.card.expanded .info-btn {
  display: none;
}

.card.expanded .extra-info {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.close-btn {
  margin-top: 20px;
  padding: 8px 16px;
  background-color: blue;
  color:#c1f1bda4;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.close-btn:hover {
  background-color:lightskyblue;
}

.extra-info {

 
  border-radius: 5px;
  animation: fadeIn 0.3s ease-in-out;
  font-size: 15px;
  line-height: 1.6;
  color:rgb(14, 13, 13);
  margin-top: 10px;
}

.close-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: blue;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background-color: skyblue;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.row .card:nth-child(1) { animation-delay: 0.2s; }
.row .card:nth-child(2) { animation-delay: 0.4s; }
/* Add more delays if needed */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Mobile View (Phones) */
@media (max-width: 480px) {
  .header {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .head-rudra {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  .head-rudra h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    width: 100%;
  }

  .row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .card {
    width: 90%;
  }

  .card h2 {
    font-size: 18px;
  }

  .card-image {
    height: 160px;
  }

  .names p {
    font-size: 13px;
    padding: 0 10px;
    text-align: center;
  }

  .info-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
}


/* Tablet View (Small Tablets and Portrait Tablets) */
@media (min-width: 481px) and (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .head-rudra {
    flex-direction: row;
    justify-content: space-between;
    width: 90%;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .head-rudra h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    width: 100%;
  }

  .row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .card {
    width: 85%;
  }
}


/* Laptop/Desktop View (Default) */
@media (min-width: 769px) {
  .nav {
    flex-direction: row;
    justify-content: flex-end;
  }

  .row {
    flex-direction: row;
    justify-content: center;
  }

  .card {
    width: 400px;
  }
}

.image_name {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.car {
  
  height: auto;
}

.car:hover {
  animation: shake 0.5s;
}

/* Shake keyframes */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

.image_name:hover img {
  animation: vanishIn 1.5s;
}



