/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  animation: bgChange 100s infinite alternate;
  overflow-x: hidden;
}

/* Background animation with 5 colors */
@keyframes bgChange {
  0%   { background: #0f2027; }   /* deep blue */
  20%  { background: #1e3e4b; }   /* purple */
  40%  { background: #3d4143; }   /* pink */
  60%  { background: #0f3342; }   /* green */
  80%  { background: #1b2326; }   /* cyan */
  100% { background: #0f2027; }   /* dark navy */
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus {
  top: 6px;
}

/* Navigation Bar */
nav {
  background: linear-gradient(90deg, #0f3460, #533483);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
nav .logo {
  font-size: 1.6em;
  font-weight: bold;
  letter-spacing: 1px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
nav a {
  color: #f0db4f;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, transform 0.3s;
}
nav a:hover {
  color: #fff;
  transform: scale(1.1);
}
.apply-btn {
  background: #77e40a;
  padding: 8px 15px;
  border-radius: 5px;
  color: #333 !important;
  transition: background 0.3s;
}
.apply-btn:hover {
  background: #218838;
}

/* Hero Section */
.hero {
  background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7') center/cover no-repeat;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.hero-text {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 700px;
  animation: fadeInDown 1.5s ease;
}
.hero h1 {
  font-size: 3em;
  margin-bottom: 10px;
}
.hero h2 {
  font-size: 1.8em;
  color: #f0db4f;
}
.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
}
.hero .btn:hover {
  transform: scale(1.1);
  background: #218838;
}

/* Sections */
section {
  
  padding: 70px 40px;
  text-align: center;
}
section h2  {
  font-size: 2em;
  margin-bottom: 20px;
  color: #efedf1;
  position: relative;
  
}
section ul li {
  color: #f3f0f0;
  margin-bottom: 10px;
  font-size: 1rem;
}
section h4,p {
  color: #f2f203;
  margin-bottom: 10px;
  font-size: 1rem;
}
section .btn {
  box-shadow: 0 6px 15px rgba(20, 4, 4, 0.863);
  display: inline-block;
  background: linear-gradient(90deg,#175c63, #70430d);   /* blue button */
  color: #efe9e9;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
}

.syllabus-white .btn:hover {
  background: #3730a3;
  transform: translateY(-2px);
}


section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #f0db4f;
  margin: 10px auto;
  border-radius: 2px;
}

/* Card Layout */
.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background: linear-gradient(135deg, #b1ca95, #cb95d0);
  border-radius: 12px;
  padding: 15px;
  width: 180px;
  box-shadow: 0 6px 15px rgba(246, 240, 240, 0.863);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  will-change: transform;
}

.card:hover {
  
  box-shadow: 0 12px 25px rgba(17, 3, 3, 0.932);
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center 10%; /* 👈 shifts image content DOWN */
  border-radius: 10px;
  display: block;
}


.card h3 {
  margin: 10px 0 3px;
  font-size: 1em;
  color: #07264d;
}

.card p {
  font-size: 0.9em;
  color: #000000;
}

/* Footer */
footer {
  background: linear-gradient(90deg,#533483, #0f3460);
  color: white;
  text-align: center;
  padding: 25px;
  font-size: 0.95em;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-section h3 {
  margin-bottom: 10px;
  color: #f0db4f;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #f0db4f;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal Classes */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse Animation for Cards */
.pulse {
  animation: pulse 0.6s ease-in-out;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Contact Grid */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: flex-start;
}
.contact-info {
  flex: 1;
  min-width: 280px;
  text-align: left;
}
.contact-info p {
  font-size: 1.1em;
  margin: 10px 0;
}
.contact-map {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  height: 200px;
  box-shadow: 0 4px 10px rgba(238, 231, 231, 0.697);
  border-radius: 8px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* Custom background for About section */
.about-animated1 {
  color: #e8ebef;
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Elian-style wave animation */
.wave-text {
  font-size: 2.5em;
  color: #f2c121;
  animation: wave 2.5s infinite ease-in-out;
}

@keyframes wave {
  0% { transform: translateY(0); }
  25% { transform: translateY(-10px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}

/* Dot Flow Background */
.dot-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Individual dots */
.dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(90deg, #0f3460, #670feb);
  border-radius: 50%;
  animation: moveDots 20s linear infinite;
  will-change: transform;
}

/* Keyframes for flowing dots */
@keyframes moveDots {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(50vh) translateX(50vw);
    opacity: 1;
  }
  100% {
    transform: translateY(0) translateX(100vw);
    opacity: 0.3;
  }
}

/* Optional: different speeds for variety */
.dot:nth-child(2) { animation-duration: 25s; background: rgb(241, 6, 6); width: 10px; height: 10px; }
.dot:nth-child(3) { animation-duration: 30s; background: rgba(13, 235, 13, 0.99); width: 14px; height: 14px; }
.dot:nth-child(4) { animation-duration: 35s; background: rgba(5, 5, 82, 0.8); width: 11px; height: 11px; }
.dot:nth-child(5) { animation-duration: 40s; background: rgba(229, 229, 24, 0.977); width: 13px; height: 13px; }

/* Mouse Glow 
:root {
  --x: 50%;
  --y: 50%;
  --glow-color: rgba(0, 255, 200, 0.4);
}

.mouse-glow {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    circle 150px at var(--x) var(--y),
    var(--glow-color),
    transparent 80%
  );
  transition: background 0.1s ease;
}*/

.events-section {
  padding: 60px 20px;
  
  text-align: center;
}

.events-section h2 {
  font-size: 2.5em;
  color: #ede9ef;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px #ccc;
}

.events-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.event-card {
  background: linear-gradient(to right, #f0f4ff, #e8f0fe);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(203, 194, 194, 0.899);
  width: 300px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid #4b0082;
}

.event-info {
  padding: 20px;
}

.event-info h3 {
  font-size: 1.5em;
  color: #4b0082;
  margin-bottom: 10px;
}

.event-info p {
  font-size: 1em;
  color: #151414;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #4b0082;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: radial-gradient(circle at top left, #6a11cb, #2575fc); color: #fff;
}

/* Gallery Section */
.gallery-section {
  padding: 70px 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.gallery-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(219, 214, 214, 0.632);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 10px;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(21, 4, 4, 0.978);
}

.gallery-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.gallery-card p {
  font-weight: bold;
  color: #0f3460;
}

/* Lazy Loading Placeholder */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}
.lazy.loaded {
  opacity: 1;
}

/* Student Table */
.student-table {
  width: 90%;
  margin: 30px auto;
  border-collapse: collapse;
  box-shadow: 0 6px 15px rgba(238, 234, 234, 0.855);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.student-table th, .student-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.student-table th {
  background: linear-gradient(90deg, #0f3460, #533483);
  color: #fff;
}

.student-table tr:hover {
  background: rgba(240, 219, 79, 0.2);
}

/* Student Search */
.student-search {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

/* Small Dark Mode Toggle with Hover & Touch */
.dark-mode-toggle {
  position: fixed;
  top: 18px;
  right: 1px;
  z-index: 1001;

  width: 30px;
  height: 30px;
  border-radius: 50%;

  background: #222;
  color: #fff;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  cursor: pointer;

  transition: 
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover effect (desktop) */
.dark-mode-toggle:hover {
  background: #444;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(231, 225, 225, 0.844);
}

/* Touch / Click effect (mobile) */
.dark-mode-toggle:active {
  transform: scale(0.95);
  background: #555;
}


/* Dark Mode Styles */
.dark-mode {
  background: #121212;
  color: #fff;
}
.dark-mode nav {
  background: linear-gradient(90deg, #1a1a1a, #333);
}
.dark-mode .card {
  background: linear-gradient(135deg, #444, #666);
  color: #fff;
}
.dark-mode .card h3, .dark-mode .card p {
  color: #fff;
}
.dark-mode footer {
  background: linear-gradient(90deg, #333, #1a1a1a);
}
.dark-mode .student-table {
  background: #333;
  color: #fff;
}
.dark-mode .student-table th {
  background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .hero h1 {
    font-size: 2em;
  }
  .hero h2 {
    font-size: 1.5em;
  }
  .card-container {
    flex-direction: column;
    align-items: center;
  }
  .student-table {
    font-size: 0.8em;
  }
  .event-card {
    flex-direction: column;
    text-align: center;
  }
  .event-image img {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
  }
  .event-info {
    text-align: center;
  }
  .contact-grid {
    flex-direction: column;
  }
  .footer-container {
    flex-direction: column;
  }
}
/* ================= Student Form ================= */
.student-form {
  margin: 30px auto;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;

  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgb(243, 235, 235);
}

/* Inputs */
.student-form input {
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  outline: none;
}

.student-form input:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

/* Button */
.student-form button {
  padding: 12px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.student-form button:hover {
  background: #218838;
  transform: translateY(-1px);
}

/* ================= View Students Button ================= */
.view-students-btn {
  display: block;
  margin: 25px auto;
  padding: 12px 22px;
  background: #0a3cff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.view-students-btn:hover {
  background: #082fcf;
  transform: translateY(-1px);
}

/* ================= Edit Inputs (Table) ================= */
.edit-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #bbb;
  border-radius: 5px;
  font-size: 0.9em;
}

.edit-input:focus {
  border-color: #0a3cff;
  outline: none;
}


/* Action Buttons */
.edit-btn, .save-btn, .cancel-btn {
  padding: 5px 10px;
  margin: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
}
.edit-btn {
  background: #ffc107;
  color: #000;
}
.save-btn {
  background: #28a745;
  color: #fff;
}
.cancel-btn {
  background: #dc3545;
  color: #fff;
}
.edit-btn:hover {
  background: #e0a800;
}
.save-btn:hover {
  background: #218838;
}
.cancel-btn:hover {
  background: #c82333;
}
.three-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px;
}

/* Make all three sections look equal */
.three-sections section {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 16px;
}

/* Responsive for mobile */
@media (max-width: 992px) {
  .three-sections {
    grid-template-columns: 1fr;
  }
}
.edit-btn { background:#3498db; color:#fff; }
.save-btn { background:#2ecc71; color:#fff; }
.cancel-btn { background:#f39c12; color:#fff; }
.delete-btn { background:#e74c3c; color:#fff; }

button {
  padding: 5px 10px;
  border: none;
  margin: 2px;
  cursor: pointer;
}

.view-more-container {
  text-align: center;
  margin-top: 30px;
}

.view-more-btn {
  padding: 12px 28px;
  background-color: #004aad; /* college blue */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.view-more-btn:hover {
  background-color: #003080;
  transform: translateY(-2px);
}
