/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f7fb;
  color: #222;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #00264d, #004d99);
  color: white;
  padding: 15px 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  background: white;
  padding: 5px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: rotate(8deg) scale(1.1);
}

.title h1 {
  font-size: 28px;
  letter-spacing: 1px;
  font-weight: 700;
  text-align: center;
}

.title p {
  font-size: 15px;
  opacity: 0.9;
  text-align: center;
}

/* NAVBAR */
.navbar {
  background: #004d99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 0;
}

.navbar li {
  margin: 0 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 8px 10px;
  transition: 0.3s;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: #00bfff;
  transition: 0.3s;
  border-radius: 3px;
}

.navbar a:hover::after {
  width: 100%;
}

.navbar a:hover {
  color: #00bfff;
}

/* BANNER */
.banner {
  position: relative;
  text-align: center;
}

.banner img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  filter: brightness(60%);
  border-bottom: 4px solid #e4e445;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 2px 2px 10px #000;
  animation: fadeIn 1.5s ease-in-out;
}

.banner-text h2 {
  font-size: 42px;
  font-weight: 700;
}

.banner-text p {
  font-size: 18px;
  margin-top: 10px;
}

/* SECTION HEADINGS */
section {
  padding: 70px 20px;
  text-align: center;
}

h2 {
  color: #003366;
  font-size: 32px;
  margin-bottom: 25px;
  position: relative;
  font-weight: 700;
}

h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #004d99, #00bfff);
  margin: 12px auto;
  border-radius: 5px;
}

/* COURSES */
.course-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.course-card {
  border-radius: 15px;
  padding: 25px;
  width: 280px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #000;
}

/* Individual Course Colors */
.course-card:nth-child(1) { background: #e0f7fa; }
.course-card:nth-child(2) { background: #fff3e0; }
.course-card:nth-child(3) { background: #e8f5e9; }
.course-card:nth-child(4) { background: #fce4ec; }
.course-card:nth-child(5) { background: #f3e5f5; }
.course-card:nth-child(6) { background: #e1f5fe; }
.course-card:nth-child(7) { background: #fffde7; }
.course-card:nth-child(8) { background: #f9fbe7; }

.course-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.20);
  border-color: #00e5ff;
  background: linear-gradient(135deg, #52a9c6, #5bf8eb);
  color: #fff;
}

.course-card h3, .course-card p {
  transition: color 0.3s;
}

.course-card:hover h3, .course-card:hover p {
  color: #fff;
}

/* FACULTY */
.faculty-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.faculty-card {
  background: white;
  border-radius: 12px;
  width: 240px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.faculty-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: #ff4081;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.faculty-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #004d99;
  transition: 0.3s ease;
}

.faculty-card:hover img {
  border-color: #ff4081;
}

/* CONTACT */
.contact-container {
  max-width: 500px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  font-family: inherit;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00bfff;
  box-shadow: 0 0 8px rgba(0,191,255,0.4);
}

.contact-form button {
  padding: 12px;
  background: linear-gradient(90deg, #004d99, #00bfff);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover {
  background: linear-gradient(90deg, #00bfff, #4a43d5);
  transform: scale(1.05);
}

/* FOOTER */
footer {
  background: #00264d;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  border-top: 2px solid #00bfff;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
  }
  .course-list,
  .faculty-list {
    flex-direction: column;
    align-items: center;
  }
  .banner-text h2 {
    font-size: 30px;
  }
}
