:root {
  /* Modern color palette */
  --primary-color: #2563eb;     
  --secondary-color: #ec4899;   
  --accent-color: #8b5cf6;      
  --success-color: #10b981;     
  --warning-color: #f59e0b;     
  --error-color: #ef4444;       
  
  /* Neutral colors */
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-light: #f9fafb;
  --bg-dark: #111827;
  
  /* Shadows with softer feel */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Montserrat", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/*  dark theme */
[data-theme="dark"] {
  --primary-color: #4cc9f0;
  --secondary-color: #f72585;
  --accent-color: #9d4edd;
  --text-color: #f1faee;
  --text-light: #b5c2c7;
  --bg-color: #121212;
  --bg-light: #1e1e24;
  --bg-dark: #0b090a;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base responsive container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
  position: relative;
  display: inline-block;
}

.underline {
  height: 4px;
  width: 70px;
  background: var(--secondary-color);
  margin: 0 auto;
  margin-top: var(--spacing-xs);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
  position: relative;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 30px; 
  right: 20px;
  z-index: 1000;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 60px;
  height: 30px;
  background-color: var(--bg-dark);
  border-radius: 100px;
  position: relative;
  padding: 5px;
  transition: background-color var(--transition-normal);
}

.toggle-label .fa-sun {
  color: #ffbe0b;
}

.toggle-label .fa-moon {
  color: #a9def9;
}

.toggle-ball {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: white;
  transition: transform var(--transition-normal);
}

#theme-switch {
  opacity: 0;
  position: absolute;
}

#theme-switch:checked + .toggle-label .toggle-ball {
  transform: translateX(30px);
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: all var(--transition-normal);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

[data-theme="dark"] .header {
  background-color: rgba(17, 24, 39, 0.8);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, background-color;
}

/* Fix for navbar background color in dark mode */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

/* Dark mode specific override with higher specificity */
[data-theme="dark"] .navbar-scrolled,
[data-theme="dark"] .header.scrolled,
[data-theme="dark"] .navbar.scrolled {
  background-color: rgba(17, 24, 39, 0.95) !important; /* Dark background in dark mode */
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 60px;
  height: auto;
  margin-right: var(--spacing-sm);
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  margin-left: var(--spacing-md);
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 1.5px;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all var(--transition-normal);
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: #fff;
  padding: 0 2rem;
  overflow: hidden;
  background-attachment: fixed;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Custom gradient overlay for better text contrast */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

/* Ensure content is above overlay */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(0,0,0,0.4); /* Semi-transparent background without blur */
  backdrop-filter: none; /* Remove blur effect */
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  animation: fadeInAndOut 5s forwards; /* Shortened to 5 seconds total */
  opacity: 0;
  text-align: center;
}

.hero-content h1 {
  white-space: nowrap; /* Prevents text from breaking across lines */
}

/* Animation for hero content to fade in and then out*/
@keyframes fadeInAndOut {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* Remove the hover effect that brings content back */
.hero:hover .hero-content {
  animation: fadeInAndOut 5s forwards;
}

.hero-content h1 {
  font-size: 3.8rem !important; 
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  animation: heroHeading 1s ease forwards;
  opacity: 0;
}

.hero-content h2 {
  font-size: 2.2rem !important; 
  font-weight: 600;
  margin-bottom: 1rem;
}

/* For smaller screens, scale the text instead of wrapping */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem; 
    white-space: normal;
    hyphens: manual; /* Control where hyphenation happens */
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }


  .theme-toggle {
    position: fixed;
    top: 25px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    width: 95%; /* Wider container */
    padding: 1.5rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem !important; /* Smaller text to fit on one line */
    word-wrap: normal !important; /* Don't break words */
    white-space: normal !important;
    word-break: keep-all !important; /* Prevent breaking within words */
    overflow-wrap: break-word;
    line-height: 1.2;
  }
}

/* For very small screens */
@media (max-width: 380px) {
  .hero-content h1 {
    font-size: 1.5rem !important; /* Even smaller for tiny phones */
  }
  
  .hero-content h2 {
    font-size: 1rem !important;
  }
}

/* Mobile-specific theme toggle position */
@media (max-width: 768px) {
  /* This rule will override all others due to !important */
  .theme-toggle {
    position: fixed !important;
    top: 35px !important; /* Lower position */
    right: 15px !important;
    z-index: 101 !important;
  }
  
  /* Make toggle button easier to tap */
  .toggle-label {
    width: 45px;
    height: 25px;
  }
  
  /* Make the toggle ball responsive */
  .toggle-ball {
    width: 21px;
    height: 21px;
  }
  
  /* Adjust hamburger menu for proper alignment with toggle */
  .nav-toggle {
    position: relative;
    z-index: 102;
    margin-right: 55px;
    margin-top: 3px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 1.2rem !important;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

/* Fix video controls positioning and visibility */
.video-controls {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 10; /* Higher z-index to stay above overlay */
  opacity: 1; /* Fully visible */
  transition: all 0.3s ease;
  display: flex;
}

/* Modern video controls styling */
.video-control-btn {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-control-btn:hover {
  transform: translateY(-3px);
  background: var(--primary-color);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
}

.video-control-btn:active {
  transform: translateY(-1px);
}

.video-control-btn i {
  font-size: 18px;
  transition: all 0.2s ease;
}

/* Make sure controls are NOT affected by the hero content animation */
.video-controls {
  animation: none !important;
}

/* Section Dividers */
.section-divider {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin-bottom: -1px;
    z-index: 1;
}

.section-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    transform: translateY(1px);
}

.section-divider .shape-fill {
    fill: var(--primary-color);
}

.section-divider-alt .shape-fill {
    fill: var(--accent-color, #f8f9fa);
}

/* Floating Background Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(5px);
}

.shape1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    left: -150px;
    top: 20%;
    animation: float 25s ease-in-out infinite;
}

.shape2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), transparent);
    right: -100px;
    top: 60%;
    animation: float 18s ease-in-out infinite reverse;
}

.shape3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(225deg, #ffcc00, transparent);
    left: 15%;
    bottom: 10%;
    animation: float 15s ease-in-out infinite 2s;
}

.shape4 {
    width: 150px;
    height: 150px;
    background: linear-gradient(315deg, #ff6b6b, transparent);
    right: 20%;
    top: 15%;
    animation: float 20s ease-in-out infinite 3s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -15px) rotate(5deg);
    }
    50% {
        transform: translate(20px, 10px) rotate(-5deg);
    }
    75% {
        transform: translate(-10px, 15px) rotate(3deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.about-image:hover {
  transform: scale(1.02);
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
  color: var(--accent-color);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.feature i {
  font-size: 2rem;
  color: var(--primary-color);
}

/* Achievements Section */
.achievements-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.achievement-item {
  background-color: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0);
}

.trophy {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  transition: transform var(--transition-normal);
}

.achievement-item:hover .trophy {
  transform: scale(1.2);
  color: var(--secondary-color);
}

.achievement-item h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--accent-color);
}

/* Gallery Section */
.gallery-container {
  position: relative;
}

.gallery-wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  height: 500px;
  box-shadow: var(--shadow-lg);
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-slide:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.gallery-control {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.gallery-control:hover {
  background-color: var(--primary-color);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-sm);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-light);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.dot.active,
.dot:hover {
  background-color: var(--primary-color);
}

/* Modern gallery navigation */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5;
  border-radius: 50%;
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

/* Slideshow for building images */
.slideshow-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
}

.slideshow-inner {
  position: relative;
  width: 100%;
  height: 400px; /* Fixed height for consistency */
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slideshow-slide.active {
  opacity: 1;
  z-index: 2;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Events Section */
.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.event-card {
  background-color: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0);
}

.event-date {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.event-date .day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: 1rem;
  text-transform: uppercase;
}

.event-details {
  padding: var(--spacing-sm);
  flex-grow: 1;
}

.event-details h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
  color: var(--accent-color);
}

.event-time,
.event-location {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
}

.event-time i,
.event-location i {
  margin-right: 5px;
}

.event-description {
  font-size: 0.95rem;
  margin-top: var(--spacing-xs);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 5px;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--accent-color);
}

.contact-form {
  background-color: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.form-error {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding-top: var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  width: 80px;
  margin-bottom: var(--spacing-sm);
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: white;
  transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-newsletter form {
  display: flex;
  margin-top: var(--spacing-xs);
}

.footer-newsletter input {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
  font-family: var(--font-primary);
}

.footer-newsletter button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.footer-newsletter button:hover {
  background-color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-color);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--error-color);
}

#modalTitle {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

/* Admissions Section */
.admissions-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Add these styles for the admissions intro text */
.admissions-info {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.admissions-info h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.admissions-info p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Make the process steps more visually appealing */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.step-icon span {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin-top: 2rem;
}

.cta-box h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-box .btn {
  margin-top: 1rem;
  background-color: white;
  color: var(--primary-color);
}

/* Enhance mobile responsiveness */
@media (max-width: 768px) {
  .admissions-info h3 {
    font-size: 1.8rem;
  }
  
  .admissions-info p {
    font-size: 1rem;
  }
  
  .hero-content {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding: 1.5rem;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.2rem; /* Smaller text on mobile */
    white-space: normal; /* Allow wrapping on very small screens */
    hyphens: manual; /* Control where hyphenation happens */
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }

  /* Fix theme toggle and hamburger menu overlap */
  .theme-toggle {
    top: 70px; /* Move below the header */
    right: 15px;
    z-index: 99;
  }
  
  /* Alternative positioning option */
  /* Uncomment this and comment out the above if you prefer the theme toggle on the left */
  /*
  .theme-toggle {
    top: 20px;
    right: auto;
    left: 15px;
    z-index: 99;
  }
  */
  
  /* Make the header slightly taller to fit toggle button */
  .header {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  
  /* Make sure nav toggle is visible and properly positioned */
  .nav-toggle {
    position: relative;
    z-index: 100;
    margin-right: 10px;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content h2 {
    font-size: 1.2rem !important;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

/* Academic Programs Section */
.programs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.program-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  text-align: center;
}

.program-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.program-features {
  text-align: left;
  margin: 1.5rem 0;
  list-style: none;
}

.program-features li {
  margin-bottom: 0.5rem;
}

.program-features li i {
  color: var(--success-color);
  margin-right: 0.5rem;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.curriculum-highlights {
  text-align: center;
  margin-top: 4rem;
}

.highlights-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.highlight-item {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.highlight-item i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Faculty Section */
.faculty-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-light);
}

.faculty-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.faculty-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: var(--bg-light);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow: var(--shadow-md);
}

.faculty-img {
  height: 250px;
  overflow: hidden;
}

.faculty-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.faculty-card:hover .faculty-img img {
  transform: scale(1.05);
}

.faculty-info {
  padding: 1.5rem;
  text-align: center;
}

.designation {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.bio {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.faculty-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.faculty-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--primary-color); /* Missing color property */
}

.faculty-social a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.faculty-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(139, 92, 246, 0.1); /* Light purple */
  z-index: 1;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  min-height: 300px;
}

.testimonial-item {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateX(20px);
  visibility: hidden;
}

.testimonial-item.active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.testimonial-content {
  background-color: var(--bg-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.quote-icon {
  font-size: 2rem;
  color: var(--accent-color);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.prev-testimonial,
.next-testimonial {
  background-color: var(--bg-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.prev-testimonial:hover,
.next-testimonial:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin-bottom: var(--spacing-md);
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--spacing-lg);
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 0 0 var(--spacing-md) 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-content h1 {
    font-size: 2.2rem; /* Smaller text on mobile */
    white-space: normal; /* Allow wrapping on very small screens */
    hyphens: manual; /* Control where hyphenation happens */
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .gallery-wrapper {
    height: 350px;
  }

  .admissions-info h3 {
    font-size: 1.8rem;
  }
  
  .admissions-info p {
    font-size: 1rem;
  }

  /* Fix theme toggle and hamburger alignment on mobile */
  .theme-toggle {
    position: fixed;
    top: 20px; /* Match the navbar height */
    right: 20px;
    z-index: 101;
  }
  
  /* Make toggle slightly smaller on mobile */
  .toggle-label {
    width: 45px;
    height: 24px;
  }
  
  .toggle-ball {
    width: 20px;
    height: 20px;
  }
  
  /* Adjust hamburger menu position */
  .nav-toggle {
    position: relative;
    z-index: 102;
    margin-left: auto;
    margin-right: 55px; /* Space for theme toggle */
  }
  
  /* Make navbar flex container to help with alignment */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
  }
  
  /* Logo sizing adjustment */
  .logo img {
    width: 40px;
    height: auto;
  }
}

/* Mobile Optimization for School of Eminence Website */

/* Improved Hero Section Mobile Styling */
@media (max-width: 768px) {
  /* Better hero content container */
  .hero-content {
    margin: 0 auto;
    width: 90%;
    padding: 1.5rem;
    background: rgba(0,0,0,0.6); /* Darker background for better readability */
  }
  
  /* Better text sizing and no text break */
  .hero-content h1 {
    font-size: 2rem !important;
    white-space: normal !important; /* Override the nowrap */
    word-break: break-word;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-content h2 {
    font-size: 1.2rem !important;
    line-height: 1.3;
  }
  
  /* Fix button alignment */
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* Navbar and theme toggle fixes */
  .header {
    padding: 8px 0;
  }
  
  .logo img {
    width: 40px;
    height: auto;
  }
  
  .logo-text h1 {
    font-size: 1.2rem;
  }
  
  /* Fix hamburger menu position */
  .nav-toggle {
    margin-right: 60px; /* Make space for theme toggle */
    z-index: 102;
  }
  
  /* Move theme toggle to top right without overlapping */
  .theme-toggle {
    top: 15px;
    right: 15px;
    z-index: 101;
  }
  
  .toggle-label {
    width: 50px;
    height: 26px;
  }
  
  /* Ensure hamburger menu opens properly */
  .nav-menu {
    top: 60px;
    height: calc(100vh - 60px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 20px;
  }
  
  .nav-item {
    margin: 0 0 15px 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
    display: block;
  }
  
  /* Fix section spacing on mobile */
  .section-padding {
    padding: 40px 0;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* Smaller phones optimization */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem !important;
  }
  
  .hero-content h2 {
    font-size: 1rem !important;
  }
  
  /* Single column layouts for small screens */
  .about-features,
  .programs-container,
  .achievements-container,
  .faculty-cards,
  .events-container,
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* Adjust card widths */
  .achievement-item,
  .program-card,
  .faculty-card,
  .event-card {
    width: 100%;
    margin: 0 auto 15px;
  }
  
  /* Full width contact form */
  .contact-container {
    display: block;
  }
  
  .contact-form {
    margin-top: 30px;
  }
  
  /* Better font sizes for small screens */
  body {
    font-size: 15px;
  }
  
  /* Fix modal for small screens */
  .modal-content {
    width: 95%;
    padding: 15px;
  }
  
  /* Fix video controls positioning */
  .video-controls {
    bottom: 15px;
    right: 15px;
  }
  
  .video-control-btn {
    width: 40px;
    height: 40px;
  }
}

/* Fix for chat assistant on mobile */
@media (max-width: 768px) {
  .chat-assistant {
    width: 90%;
    height: 60vh;
    bottom: 20px;
    right: 5%;
  }
  
  .chat-toggle {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1.2rem !important;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .gallery-wrapper {
    height: 250px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.achievement-item:hover, .faculty-card:hover, .step:hover {
  transform: translateY(-5px) translateZ(0);
}

/* Fix for navigation overlap with section headings */
section {
  scroll-margin-top: 90px; /* This should be slightly more than your header height */
}

/* Additional adjustments for section padding */
section.section-padding {
  padding-top: calc(var(--spacing-xl) + 20px); /* Add extra padding at the top */
}

/* Ensure first section (hero) doesn't need this adjustment */
section.hero {
  scroll-margin-top: 0;
  padding-top: 0;
}
