/* Krishna Gurukul School - Modern CSS Redesign */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lato:wght@300;400;500&display=swap');

/* CSS Variables for Color Palette */
:root {
  --primary-navy: #001f3f;
  --secondary-teal: #1ABC9C;
  --accent-gold: #F39C12;
  --neutral-gray: #f4f7f6;
  --text-charcoal: #333333;
  --white: #ffffff;
  --shadow-light: rgba(0, 31, 63, 0.1);
  --shadow-medium: rgba(0, 31, 63, 0.15);
  --transition-smooth: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-charcoal);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-weight: 400;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--neutral-gray);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 20px var(--shadow-light);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: 0 4px 30px var(--shadow-medium);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.logo img {
  height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-charcoal);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--secondary-teal);
  background-color: rgba(26, 188, 156, 0.1);
}

.nav-link.active {
  color: var(--secondary-teal);
  font-weight: 600;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-btn {
  background: var(--secondary-teal);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.language-btn:hover {
  background: var(--primary-navy);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-charcoal);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.8) 0%, rgba(0, 31, 63, 0.6) 50%, rgba(26, 188, 156, 0.4) 100%), url('../images/School outdoor.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  background: rgba(0, 31, 63, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s both;
  color: #f8f9fa;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  font-weight: 500;
  line-height: 1.6;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--secondary-teal), #16a085);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-smooth);
  animation: fadeInUp 1s ease 0.6s both;
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 31, 63, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-teal), var(--accent-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-charcoal);
  line-height: 1.6;
}

/* Welcome Section */
.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.welcome-content h2 {
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

.welcome-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.principal-image {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 40px var(--shadow-medium);
}

/* Gallery Preview */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 31, 63, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: var(--white);
  opacity: 0;
  transition: var(--transition-smooth);
}

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

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-teal));
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--accent-gold);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.cta-btn:hover {
  background: var(--white);
  color: var(--primary-navy);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
  background: var(--primary-navy);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-section p,
.footer-section li {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-section a:hover {
  color: var(--secondary-teal);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--secondary-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icons a:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    box-shadow: 0 5px 20px var(--shadow-medium);
    padding: 1rem 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .welcome {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .feature-card,
  .gallery-item {
    margin-bottom: 1rem;
  }

  .cta h2 {
    font-size: 2rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-navy {
  color: var(--primary-navy);
}

.text-teal {
  color: var(--secondary-teal);
}

.text-gold {
  color: var(--accent-gold);
}

.bg-navy {
  background-color: var(--primary-navy);
}

.bg-teal {
  background-color: var(--secondary-teal);
}

.bg-gold {
  background-color: var(--accent-gold);
}

.bg-gray {
  background-color: var(--neutral-gray);
}

.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } 