/* =========================
   RESET / GLOBAL
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #f5f9ff, #eef3ff);
  color: #1f2937;
  overflow-x: hidden;
  line-height: 1.6;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  width: 100%;
  position: sticky;
  top: 0;
  background: white;
  padding: 15px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #111;
}

.logo {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

.college-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1e40af;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #2563eb;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #2563eb;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #1f2937;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Responsive Navbar */
@media (max-width: 768px) {
  .college-name {
    font-size: 16px;
  }

  .logo {
    height: 40px;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 250px;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  font-size: 1.4rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.hero .hero-description {
  max-width: 600px;
  font-size: 1.1rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .hero .hero-description {
    font-size: 1rem;
  }
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

.btn:active,
.btn-click {
  transform: scale(0.95);
}

.btn i {
  margin-right: 8px;
}

.btn-secondary {
  background: linear-gradient(90deg, #25d366, #128c7e);
}

.btn-secondary:hover {
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}

/* =========================
   STREAMS SECTION
   ========================= */
.streams {
  padding: 80px 20px;
  background: #ffffff;
  text-align: center;
}

.streams h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #1e40af;
}

.stream-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.card {
  background: #f8fafc;
  padding: 35px 25px;
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.card h3 {
  color: #1d4ed8;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.card p {
  color: #4b5563;
  line-height: 1.7;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #2563eb;
}

/* =========================
   WHY CHOOSE US SECTION
   ========================= */
.why-choose-us {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  text-align: center;
}

.why-choose-us h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #1e40af;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.feature {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 3rem;
  color: #2563eb;
  margin-bottom: 15px;
}

.feature h3 {
  color: #1d4ed8;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.feature p {
  color: #4b5563;
  line-height: 1.6;
}

/* =========================
   ADMISSION SECTION (HOME)
   ========================= */
.admission {
  padding: 80px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.admission h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1e40af;
}

.admission-text {
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
}

.admission-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.admission-list li {
  margin: 12px 0;
  font-size: 1.05rem;
  text-align: left;
  padding-left: 20px;
}

.admission-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================
   FACULTY SECTION
   ========================= */
.faculty {
  padding: 80px 20px;
  background: #f1f5f9;
  text-align: center;
}

.faculty h2 {
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 15px;
}

.faculty-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

.faculty-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.faculty .card {
  background: white;
  padding: 30px 20px;
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.faculty .card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #e0e7ff;
  transition: border-color 0.3s ease;
}

.faculty .card h3 {
  color: #1d4ed8;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.faculty .card .designation {
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 5px;
}

.faculty .card .qualification {
  color: #6b7280;
  font-size: 0.9rem;
}

.faculty .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.faculty .card:hover img {
  border-color: #2563eb;
}

/* =========================
   CONTACT SECTION
   ========================= */
.contact-section {
  max-width: 1000px;
  margin: auto;
  padding: 60px 20px;
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 50px;
}

.contact-details {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-details h2 {
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: #fbbf24;
  min-width: 30px;
}

.contact-info-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-info-item p {
  margin: 0;
  line-height: 1.6;
}

.contact-info-item a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.contact-info-item a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-form-container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #1e40af;
  font-size: 1.8rem;
}

.contact-form {
  max-width: 600px;
  margin: auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
  min-height: 18px;
}

input.error-border,
textarea.error-border,
select.error-border {
  border-color: #ef4444 !important;
}

.success {
  text-align: center;
  color: #10b981;
  font-weight: 600;
  margin-top: 20px;
  padding: 15px;
  background: #d1fae5;
  border-radius: 8px;
  font-size: 1rem;
}

/* =========================
   MAP SECTION
   ========================= */
.map-section {
  padding: 60px 20px;
  background: #f9fafb;
  text-align: center;
}

.map-section h2 {
  margin-bottom: 30px;
  color: #1e40af;
  font-size: 2rem;
}

.map-container {
  width: 100%;
  max-width: 1000px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  margin: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   ADMISSION FORM SECTION
   ========================= */
.admission-section {
  max-width: 700px;
  margin: 60px auto;
  padding: 40px 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.admission-section .page-title {
  text-align: center;
  font-size: 2.2rem;
  color: #1e40af;
  margin-bottom: 15px;
  position: relative;
}

.admission-section .page-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  display: block;
  margin: 15px auto 0;
  border-radius: 2px;
}

.admission-section .intro-text {
  text-align: center;
  margin-bottom: 35px;
  color: #6b7280;
  line-height: 1.7;
  font-size: 1.05rem;
}

.admission-form {
  max-width: 600px;
  margin: auto;
}

.admission-form div {
  margin-bottom: 25px;
}

.admission-form input,
.admission-form select,
.admission-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.admission-form input:focus,
.admission-form select:focus,
.admission-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admission-form textarea {
  min-height: 120px;
  resize: vertical;
}

.admission-form select {
  cursor: pointer;
  appearance: none;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%234b5563" d="M6 9L1 4h10z"/></svg>') no-repeat right 15px center;
  background-color: white;
}

.admission-form button.btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* =========================
   GALLERY SECTION
   ========================= */
.gallery-section {
  padding: 80px 20px;
  background: #0f172a;
  color: white;
}

.gallery-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

.gallery-section .gallery-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 50px;
  color: #94a3b8;
}

.gallery-block {
  margin-bottom: 60px;
}

.gallery-block h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #f1f5f9;
  text-align: center;
}

.gallery-block h3 i {
  margin-right: 10px;
  color: #60a5fa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.gallery-grid img,
.gallery-grid video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  background: #1e293b;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid img:hover,
.gallery-grid video:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* =========================
   LIGHTBOX
   ========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
  cursor: pointer;
}

.lightbox-img,
.lightbox-video {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-btn:hover {
  opacity: 0.7;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =========================
   WHATSAPP BUTTON
   ========================= */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
  }
}

/* =========================
   FOOTER
   ========================= */
footer {
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: white;
}

footer p {
  margin: 5px 0;
}

/* =========================
   FADE ANIMATION
   ========================= */
.fade-section {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 768px) {
  .streams h2,
  .faculty h2,
  .why-choose-us h2,
  .admission h2 {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .admission-section,
  .contact-section {
    padding: 40px 15px;
  }

  .contact-form-container {
    padding: 25px 20px;
  }

  .admission-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .gallery-grid img,
  .gallery-grid video {
    height: 180px;
  }

  .close-btn {
    top: 15px;
    right: 15px;
    font-size: 40px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .streams h2,
  .faculty h2 {
    font-size: 1.7rem;
  }

  .card {
    padding: 25px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}