/* Custom CSS for School Website */

/* Root Variables - EDIT: Customize colors here */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white: #ffffff;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar{
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  /*background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);*/
  background: url('images/Main/School-768x363.jpeg') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.3); /* semi-transparent black */
  border-radius: 2rem;           /* makes it rounded */
  padding: 2rem;                 /* optional: adds inner space */
  backdrop-filter: blur(1px);    /* adds a frosted-glass effect */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* soft shadow */
}

.hero-buttons .btn {
  margin: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

/* Statistics Cards */
.stat-card {
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

.stat-card h3 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Feature Cards */
.feature-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Staff Cards */
.staff-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.staff-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--light-color);
  transition: all 0.3s ease;
}

.staff-card:hover .staff-photo {
  border-color: var(--primary-color);
}

.staff-card h5 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.staff-card .text-muted {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Event Cards */
.event-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-content {
  padding: 1.5rem;
  position: relative;
}

.event-date {
  position: absolute;
  top: -20px;
  right: 20px;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem;
  border-radius: 10px;
  text-align: center;
  min-width: 60px;
}

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

.event-date .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Gallery Styles */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 123, 255, 0.9);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Download Cards */
.download-card {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.download-icon {
  margin-right: 1rem;
  flex-shrink: 0;
}

.download-content h5 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.download-content p {
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Contact Styles */
.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  background: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-details h5 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.contact-details p {
  margin-bottom: 0;
  color: var(--secondary-color);
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
  background: var(--dark-color) !important;
}

footer h5, footer h6 {
  color: var(--white);
  margin-bottom: 1rem;
}

footer p, footer li {
  color: #adb5bd;
}

footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--white);
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--white);
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  z-index: 1000;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .stat-card h3 {
    font-size: 2rem;
  }
  
  .staff-photo {
    width: 120px;
    height: 120px;
  }
  
  .event-date {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin: 0 auto 1rem auto;
  }
  
  .download-card {
    flex-direction: column;
    text-align: center;
  }
  
  .download-icon {
    margin: 0 0 1rem 0;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .hero-buttons .btn {
    display: block;
    margin: 0.5rem auto;
    width: 200px;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .gallery-image {
    height: 200px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--info-color);
}

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  footer {
    display: none !important;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .hero-section {
    background: none !important;
    color: var(--dark-color) !important;
  }
  
  .hero-section * {
    color: var(--dark-color) !important;
  }
}
