/* =============================================
   GMHPS KOTTE BIDHI - ADVANCED MODERN STYLES
   ============================================= */

/* CSS Variables */
:root {
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --accent-color: #fbbc04;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background: #f0f4f8;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 500;
  color: #333 !important;
  padding: 10px 20px !important;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover {
  color: #667eea !important;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('IMAGES/bh 03 (1).png') center center/cover no-repeat;
  opacity: 0.4;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(30, 58, 95, 0.9) 0%, 
    rgba(13, 27, 42, 0.85) 50%,
    rgba(30, 58, 95, 0.9) 100%);
}

/* Animated Shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -50px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -50px;
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 30%;
  animation-delay: -15s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, 50px) rotate(90deg);
  }
  50% {
    transform: translate(0, 100px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, 50px) rotate(270deg);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 1000px;
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subheading {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-btn {
  display: inline-block;
  padding: 18px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(255, 107, 53, 0.5);
  color: #fff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 26px;
  height: 26px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.6);
  border-right: 3px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  margin: 0 auto;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* =============================================
   SECTIONS GENERAL
   ============================================= */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 3rem;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
#about {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-card {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.about-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

.about-image-wrap:hover {
  transform: scale(1.02);
}

.about-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats Counter */
.stats-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 30px 0;
  border-top: 2px solid #e2e8f0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}

/* =============================================
   CURRICULUM SECTION
   ============================================= */
#curriculum {
  background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 100%);
}

.curriculum-card {
  background: #fff;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  height: 100%;
}

.curriculum-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.curriculum-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.curriculum-card:hover img {
  transform: scale(1.1);
}

.curriculum-card .card-body {
  padding: 25px;
}

.curriculum-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.curriculum-card .card-text {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================================
   FACILITIES SECTION
   ============================================= */
#facilities {
  background: #f8fafc;
}

.facility-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  height: 100%;
  border: 2px solid transparent;
}

.facility-card:hover {
  transform: translateY(-10px);
  border-color: #667eea;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.facility-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: #fff;
}

.facility-card h5 {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.facility-card p {
  color: #64748b;
  font-size: 0.95rem;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
#gallery {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: #667eea;
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 20px;
  transition: var(--transition-smooth);
}

.lightbox-nav:hover {
  color: #667eea;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 70px 0 30px;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-smooth);
}

footer ul li a:hover {
  color: #667eea;
  padding-left: 10px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
}

.footer-contact li i {
  color: #667eea;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: var(--gradient-primary);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding-top: 25px;
  text-align: center;
  color: #64748b;
}

/* =============================================
   SCROLL TO TOP BUTTON
   ============================================= */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  z-index: 9999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

/* =============================================
   ANIMATIONS
   ============================================= */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation for Cards */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 991px) {
  section {
    padding: 80px 0;
  }
  
  .about-card {
    padding: 30px;
  }
  
  .stats-section {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-heading {
    font-size: 2rem;
  }
  
  .hero-subheading {
    font-size: 1rem;
  }
  
  .hero-btn {
    padding: 15px 35px;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-card {
    padding: 25px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .nav-link {
    padding: 8px 15px !important;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-section {
    flex-direction: column;
  }
}
