/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fefefe;
  color: #333;
  scroll-behavior: smooth;
}

/* Header Section */
.header {
  height: 100vh;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../image/jupiter clg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Nav Bar */
nav {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

nav .icon {
  color: white;
  font-size: 26px;
  display: none;
  cursor: pointer;
}

.nav-links {
  flex: 1;
  text-align: right;
}

.nav-links ul {
  list-style: none;
}

.nav-links ul li {
  display: inline-block;
  margin: 0 15px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00c6ff;
}

/* Hero Text */
.text-box {
  z-index: 1;
  color: white;
  padding-top: 80px;
}

.text-box h1 {
  font-size: 48px;
}

.tagline {
  font-size: 16px;
  color: #ccc;
  margin-top: 10px;
  height: 24px;
}

.hero-btn {
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  color: white;
  padding: 12px 28px;
  margin-top: 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease-in-out;
}

.hero-btn:hover {
  transform: scale(1.05);
}

/* Scroll Down Icon */
.scroll-down {
  width: 30px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 25px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-down::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  margin: 8px auto;
  animation: scroll 1.5s infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); }
  50% { transform: translateY(10px); opacity: 0.7; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Sections */
section {
  padding: 60px 10%;
}

h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
}

p {
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #555;
}

/* Cards (Courses, Campus, Faculty) */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  width: 280px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
}

/* Footer */
.footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 30px 10%;
  font-size: 14px;
}

.footer a {
  color: #00aaff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  nav .icon {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    background: #000;
    transition: right 0.5s ease;
  }

  .nav-links ul {
    padding-top: 60px;
  }

  .nav-links ul li {
    display: block;
    text-align: left;
    margin: 20px;
  }

  .text-box h1 {
    font-size: 32px;
  }

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

  .card img {
    height: 200px;
  }
}
