:root {
  --primary: #1a365d;
  --primary-dark: #12283d;
  --primary-light: #2c5282;
  --secondary: #d69e2e;
  --secondary-light: #ecc94b;
  --accent: #3182ce;
  --light: #f7fafc;
  --dark: #2d3748;
  --text: #4a5568;
  --text-light: #718096;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.7;
  touch-action: manipulation;
}

/* Background Layer */
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  z-index: -2;
}

/* Particle Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background-color: rgba(214, 158, 46, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: float 15s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(214, 158, 46, 0.3);
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(calc(var(--move-x) * 1px), calc(var(--move-y) * 1px));
  }

  50% {
    transform: translate(
      calc(var(--move-x) * -1px),
      calc(var(--move-y) * -1px)
    );
  }

  75% {
    transform: translate(
      calc(var(--move-x) * 0.5px),
      calc(var(--move-y) * 0.5px)
    );
  }
}

/* Enhanced Splash Screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 1.5s forwards 2s;
  overflow: hidden;
}

/* Splash screen particles container */
.splash-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Splash particles using the same style as hero particles */
.splash-particle {
  position: absolute;
  background-color: rgba(214, 158, 46, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: float 15s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(214, 158, 46, 0.3);
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Splash content on top of particles */
.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding-bottom: 100px;
  /* Space for loading bar */
}

.splash-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite alternate;
  filter: drop-shadow(0 0 10px rgba(214, 158, 46, 0.4));
  background: white;
  padding: 10px;
  border-radius: 15px;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.splash-text {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0 20px;
}

.anniversary-badge {
  background: rgba(214, 158, 46, 0.25);
  color: var(--secondary-light);
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 30px;
  display: inline-block;
  margin: 15px 0 30px 0;
  /* Increased bottom margin to 30px */
  border: 2px solid var(--secondary-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(214, 158, 46, 0.25);
}

/* Loading Bar */
.loading-container {
  position: absolute;
  bottom: 50px;
  /* Reduced from 60px */
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 300px;
  z-index: 2;
  text-align: center;
}

.loading-text {
  color: white;
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.loading-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.loading-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    to right,
    var(--secondary-light),
    var(--secondary)
  );
  border-radius: 3px;
  transition: width 0.4s ease-out;
  box-shadow: 0 0 15px rgba(214, 158, 46, 0.4);
}

/* Main Content */
.scroll-container {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 2.5s;
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section with framed logo - Reduced top padding */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  /* Reduced top padding from 80px to 40px */
  color: white;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.03)" d="M0,100 L100,0 L100,100"></path></svg>');
  background-size: 100% 100%;
  opacity: 0.4;
  z-index: -1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0;
  width: 100%;
}

.school-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 10px;
  transition: transform 0.4s ease-out;
  background: white;
  padding: 10px;
  border-radius: 15px;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0 15px;
}

.hero-title span {
  color: var(--secondary-light);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary-light);
  border-radius: 2px;
  transform: scaleX(0.9);
  transform-origin: left;
}

.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.5rem);
  margin-bottom: 25px;
  opacity: 0.9;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  padding: 0 15px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 0 15px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  color: var(--primary);
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 280px;
}

.cta-button:active {
  transform: translateY(2px);
}

.cta-button.outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  box-shadow: none;
}

.cta-button.outline:active {
  background: rgba(255, 255, 255, 0.15);
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-10px) translateX(-50%);
  }

  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Section Styling */
.section {
  padding: 60px 0;
  position: relative;
}

.section-light {
  background: white;
}

.section-gray {
  background: #f7fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--primary);
  padding-bottom: 10px;
  position: relative;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
}

/* About Section */
.about-content {
  max-width: 950px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.gujarati-text {
  font-family: "Shruti", "Nirmala UI", sans-serif;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

/* Timeline Section */
.timeline-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
  border-radius: 4px;
  z-index: 0;
}

.timeline-header {
  text-align: center;
  margin-bottom: 60px;
}

.timeline-header h2 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.timeline-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.achievement-badge {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  display: inline-block;
  margin: 15px 0;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(214, 158, 46, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 80px;
  padding-left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 80px;
  padding-right: 0;
}

.timeline-content {
  position: relative;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--secondary);
}

.timeline-item:nth-child(even) .timeline-content {
  border-left: none;
  border-right: 4px solid var(--accent);
}

.timeline-content::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background: white;
  top: 30px;
  transform: rotate(45deg);
  z-index: -1;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -15px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -15px;
}

.timeline-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--secondary);
  box-shadow: 0 0 0 6px rgba(214, 158, 46, 0.2);
  z-index: 2;
  top: 30px;
}

.timeline-item:nth-child(odd) .timeline-icon {
  right: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
  color: var(--accent);
  box-shadow: 0 0 0 6px rgba(49, 130, 206, 0.2);
}

.timeline-year {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.timeline-item:nth-child(even) .timeline-year {
  color: var(--accent);
}

.timeline-year::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
}

.timeline-item:nth-child(even) .timeline-year::after {
  background: var(--accent);
}

.timeline-text {
  color: var(--text);
  line-height: 1.7;
  font-size: 1.05rem;
}

.timeline-item.highlight .timeline-content {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.95)
  );
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

.timeline-item.highlight .timeline-content::after {
  content: "🌟";
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 24px;
}

/* Achievement Stats Styles */
.achievement-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 60px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.achievement-stats.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item {
  text-align: center;
  min-width: 150px;
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.stat-item:hover {
  border: 1px solid var(--secondary);
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(214, 158, 46, 0.1), rgba(214, 158, 46, 0.05));
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.stat-number::after {
  content: " ";
  position: absolute;
  right: -18px;
  top: 0;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Special case for 80/100% */
.stat-number.special::after {
  content: "%";
}

.stat-number.special::before {
  content: "/";
  display: inline-block;
  margin: 0 2px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
  color: var(--secondary);
  transform: translateY(3px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .timeline-container::before {
    left: 40px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 80px !important;
    padding-right: 20px !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd) .timeline-icon,
  .timeline-item:nth-child(even) .timeline-icon {
    left: 10px;
    right: auto;
  }

  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    right: auto;
  }

  .timeline-content {
    border-left: 4px solid var(--secondary) !important;
    border-right: none !important;
  }

  .timeline-item:nth-child(even) .timeline-year {
    color: var(--secondary);
  }

  .timeline-item:nth-child(even) .timeline-year::after {
    background: var(--secondary);
  }

  .achievement-stats {
    gap: 20px;
  }

  .stat-item {
    min-width: 120px;
    padding: 20px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .timeline-header h2 {
    font-size: 2rem;
  }

  .achievement-badge {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .timeline-item {
    padding-left: 60px !important;
  }

  .timeline-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    left: 5px !important;
  }

  .timeline-content {
    padding: 20px;
  }

  .achievement-stats {
    gap: 15px;
  }

  .stat-item {
    min-width: calc(50% - 20px);
    padding: 15px 10px;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 200px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.gallery-item.active .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--secondary-light);
  font-weight: 700;
}

.gallery-caption p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Video Section */
.video-container {
  max-width: 950px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.video-container::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Alumni Form Section */
.form-wrapper {
  max-width: 850px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-title {
  color: var(--primary);
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  position: relative;
  padding-bottom: 10px;
}

.form-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 3px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--dark);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
  outline: none;
  background: white;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-option input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--secondary);
}

.radio-option label {
  font-weight: normal;
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  color: var(--text);
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  width: 100%;
  margin-top: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-lg);
}

.submit-btn:active {
  transform: translateY(2px);
  background: var(--primary-light);
}

.submit-btn i {
  margin-left: 6px;
}

/* Form row adjustments */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

/* Footer */
footer {
  padding: 60px 0 30px;
  background: var(--primary);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,100 L100,0 L100,100"></path></svg>');
  background-size: 100% 100%;
  opacity: 0.4;
}

.footer-logo {
  width: 100px;
  margin-bottom: 20px;
  transition: transform 0.4s ease-out;
  position: relative;
  z-index: 1;
  background: white;
  padding: 10px;
  border-radius: 15px;
}

.footer-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer-subtitle {
  max-width: 650px;
  margin: 0 auto 25px;
  opacity: 0.9;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  padding: 0 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
  position: relative;
  z-index: 1;
}

.social-link {
  color: white;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.social-link:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.copyright {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.copyright span {
  color: var(--secondary-light);
  font-weight: 600;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  border: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:active {
  transform: translateY(2px) scale(0.98);
}

/* Responsive Adjustments */
@media (min-width: 400px) {
  .splash-logo {
    width: 120px;
    height: 120px;
  }

  .splash-text {
    font-size: 2rem;
  }

  .anniversary-badge {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .school-logo {
    width: 120px;
    height: 120px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cta-button {
    width: auto;
  }

  .loading-container {
    max-width: 350px;
  }
}

@media (min-width: 576px) {
  .section {
    padding: 80px 0;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .about-content,
  .form-wrapper {
    padding: 30px;
  }

  .radio-group {
    flex-direction: row;
    gap: 20px;
  }

  .form-row {
    flex-direction: row;
  }

  .footer-logo {
    width: 120px;
  }

  .footer-title {
    font-size: 2.2rem;
  }

  .loading-container {
    max-width: 400px;
  }
}

@media (min-width: 768px) {
  .splash-logo {
    width: 140px;
    height: 140px;
  }

  .splash-text {
    font-size: 2.4rem;
  }

  .hero-content {
    padding: 40px 0;
    /* Reduced from 80px */
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding: 20px 50px;
  }

  .timeline-item:nth-child(odd) {
    left: 0;
  }

  .timeline-item:nth-child(even) {
    left: 50%;
  }

  .timeline-item:nth-child(odd)::after {
    right: -10px;
    left: auto;
  }

  .timeline-item:nth-child(even)::after {
    left: -10px;
  }

  .form-wrapper {
    padding: 40px;
  }

  .form-title {
    font-size: 2.2rem;
  }

  .footer-title {
    font-size: 2.4rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .back-to-top {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .section-title h2 {
    font-size: 2.8rem;
  }

  .footer-title {
    font-size: 2.8rem;
  }
}

@media (hover: hover) {
  .cta-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
  }

  .cta-button.outline:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
  }

  .about-content:hover,
  .form-wrapper:hover,
  .timeline-content:hover,
  .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
  }

  .gallery-item:hover img {
    transform: scale(1.1);
  }

  .gallery-item:hover .gallery-caption {
    transform: translateY(0);
  }

  .school-logo:hover,
  .footer-logo:hover {
    transform: scale(1.1) rotate(-5deg);
  }

  .social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  .submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
  }

  .submit-btn:hover i {
    transform: translateX(5px);
  }

  .hero-title:hover span::after {
    transform: scaleX(1);
  }

  .section-title:hover h2::after {
    width: 80px;
  }
}

/* pop up style */
.instruction-popup {
  font-family: 'Poppins', sans-serif;
  text-align: left;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.instruction-title {
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 15px;
}
.instruction-content {
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}
.instruction-content ol {
  margin: 10px 0;
  padding-left: 25px;
}
.instruction-content li {
  margin-bottom: 8px;
}
.instruction-confirm-btn {
  font-weight: bold;
  padding: 8px 20px;
}