/*
Theme Name: Nxt Gen EduCentre
Description: A modern, responsive educational website theme with animations and interactive effects
Version: 1.0
Author: Nxt Gen EduCentre
Author URI: http://sign-x.in/
Text Domain: nxtgen-educentre
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@300;400;500&display=swap');

/* CSS Variables */
:root { 
  --primary: #2d6cdf; 
  --accent: #eb8500; 
  --bg: #f7f8fa; 
  --text: #222; 
  --card-bg: #fff; 
  --footer-bg: #222; 
  --footer-text: #eee; 
  --shadow: 0 4px 24px rgba(44, 62, 80, 0.08); 
}

/* Reset and Base Styles */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body { 
  font-family: 'Roboto', Arial, sans-serif; 
  background: var(--bg); 
  color: var(--text); 
  line-height: 1.6; 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
  overflow-x: hidden; 
}

/* WordPress Admin Bar Adjustment */
.admin-bar header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar header {
    top: 46px;
  }
}

/* Floating background elements */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-shape {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  top: 10%;
  left: 10%;
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  top: 20%;
  right: 15%;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  animation-delay: 2s;
}

.floating-shape:nth-child(3) {
  bottom: 30%;
  left: 5%;
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 50%;
  animation-delay: 4s;
}

.floating-shape:nth-child(4) {
  bottom: 20%;
  right: 10%;
  width: 70px;
  height: 70px;
  background: var(--accent);
  border-radius: 50%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Logo animation */
.navbar img {
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
  100% { box-shadow: 0 2px 20px rgba(45, 108, 223, 0.3); }
}

/* Header Styles */
header { 
  position: sticky; 
  top: 0; 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px); 
  box-shadow: var(--shadow); 
  z-index: 100; 
  transition: all 0.3s; 
  animation: slideDown 0.7s cubic-bezier(.77,0,.18,1) 0.1s both; 
}

header:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.12);
}

@keyframes slideDown { 
  from { transform: translateY(-100%); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; } 
}

.navbar { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 1rem 2rem; 
}

.nav-links { 
  display: flex; 
  gap: 2rem; 
}

.nav-links a { 
  text-decoration: none; 
  color: var(--text); 
  font-family: 'Montserrat', sans-serif; 
  font-weight: 500; 
  font-size: 1.1rem; 
  position: relative; 
  transition: all 0.3s; 
  padding: 0.5rem 1rem; 
  border-radius: 8px; 
}

.nav-links a::after { 
  content: ''; 
  display: block; 
  height: 2px; 
  width: 0; 
  background: var(--primary); 
  transition: width 0.3s; 
  position: absolute; 
  left: 0; 
  bottom: -4px; 
}

.nav-links a:hover, 
.nav-links .current-menu-item a { 
  color: var(--primary); 
  background: rgba(45, 108, 223, 0.1); 
  transform: translateY(-2px); 
}

.nav-links a:hover::after, 
.nav-links .current-menu-item a::after { 
  width: 100%; 
}

.search-bar input { 
  padding: 0.5rem 1rem; 
  border: 1px solid #ddd; 
  border-radius: 20px; 
  font-size: 1rem; 
  outline: none; 
  transition: all 0.3s; 
  background: rgba(255, 255, 255, 0.8); 
}

.search-bar input:focus { 
  border: 1.5px solid var(--primary); 
  background: white; 
  transform: scale(1.05); 
  box-shadow: 0 4px 12px rgba(45, 108, 223, 0.2); 
}

/* Hero Section */
.hero { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  min-height: 250px; 
  background: linear-gradient(120deg, #e3eafc 0%, #f7f8fa 100%); 
  text-align: center; 
  padding: 2rem 1rem 1rem 1rem; 
  animation: fadeIn 1.2s 0.2s both; 
  position: relative; 
  overflow: hidden; 
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1523240798132-8757214e76ba?auto=format&fit=crop&w=1200&q=80') center center/cover no-repeat;
  opacity: 0.6;
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite;
  filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

@keyframes heroZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: heroContentSlide 1.5s ease-out 0.5s both;
}

@keyframes heroContentSlide {
  from { 
    opacity: 0; 
    transform: translateY(50px) scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

.hero h1 { 
  font-family: 'Montserrat', serif; 
  font-size: 2.8rem; 
  color: #ffffff; 
  margin-bottom: 0.5rem; 
  font-weight: 700; 
  text-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4); 
  animation: titleGlow 2s ease-in-out infinite alternate; 
}

@keyframes titleGlow {
  0% { text-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4); }
  100% { text-shadow: 0 4px 25px rgba(0,0,0,0.8), 0 2px 12px rgba(45, 108, 223, 0.4); }
}

.hero p { 
  font-size: 1.2rem; 
  color: #ffffff; 
  max-width: 700px; 
  margin: 0 auto; 
  animation: textFadeIn 2s ease-out 1s both; 
  text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3); 
}

@keyframes textFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Main Content */
.main-content { 
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 0 1rem; 
  animation: fadeIn 1.2s 0.4s both; 
}

.main-content .features-section {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 2rem !important;
  margin: 3rem 0 !important;
}

@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(40px); } 
  to { opacity: 1; transform: translateY(0); } 
}

/* Features Section */
.features-section { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 2rem; 
  margin: 3rem 0; 
}

.feature-card { 
  background: var(--card-bg); 
  border-radius: 18px; 
  box-shadow: var(--shadow); 
  padding: 2rem; 
  text-align: center; 
  transition: all 0.3s; 
  position: relative; 
  overflow: hidden; 
  animation: slideInUp 1.1s 0.6s both; 
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 108, 223, 0.1), transparent);
  transition: left 0.5s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 12px 32px rgba(44, 62, 80, 0.15); 
}

@keyframes slideInUp { 
  from { opacity: 0; transform: translateY(60px); } 
  to { opacity: 1; transform: translateY(0); } 
}

.feature-card h3 { 
  font-family: 'Montserrat', serif; 
  color: var(--primary); 
  font-size: 1.5rem; 
  margin-bottom: 1rem; 
}

.feature-card p { 
  color: #666; 
  line-height: 1.6; 
}

/* CTA Section */
.cta-section { 
  text-align: center; 
  margin: 4rem 0; 
  padding: 3rem 2rem; 
  background: linear-gradient(135deg, var(--primary), var(--accent)); 
  border-radius: 20px; 
  color: white; 
  animation: slideInUp 1.1s 0.8s both; 
}

.cta-section h2 { 
  font-family: 'Montserrat', serif; 
  font-size: 2.5rem; 
  margin-bottom: 1rem; 
}

.cta-section p { 
  font-size: 1.2rem; 
  margin-bottom: 2rem; 
  opacity: 0.9; 
}

.cta-button { 
  display: inline-block; 
  background: white; 
  color: var(--primary); 
  padding: 1rem 2rem; 
  border-radius: 50px; 
  text-decoration: none; 
  font-family: 'Montserrat', sans-serif; 
  font-weight: 600; 
  font-size: 1.1rem; 
  transition: all 0.3s; 
  position: relative; 
  overflow: hidden; 
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 108, 223, 0.1), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover { 
  transform: translateY(-3px) scale(1.05); 
  box-shadow: 0 8px 25px rgba(0,0,0,0.2); 
}

/* Courses Grid */
.courses-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: 2rem; 
  margin: 3rem 0; 
}

.course-card { 
  background: var(--card-bg); 
  border-radius: 18px; 
  box-shadow: var(--shadow); 
  overflow: hidden; 
  transition: all 0.3s; 
  position: relative; 
  animation: slideInUp 1.1s 0.6s both; 
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 108, 223, 0.1), transparent);
  transition: left 0.5s;
}

.course-card:hover::before {
  left: 100%;
}

.course-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 12px 32px rgba(44, 62, 80, 0.15); 
}

.course-card h3 { 
  font-family: 'Montserrat', serif; 
  color: var(--primary); 
  font-size: 1.4rem; 
  margin-bottom: 1rem; 
  padding: 1.5rem 1.5rem 0.5rem; 
}

.course-card p { 
  color: #666; 
  line-height: 1.6; 
  padding: 0 1.5rem 1.5rem; 
}

/* Universities Grid */
.universities-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 2rem; 
  margin: 3rem 0; 
}

.university-card { 
  background: var(--card-bg); 
  border-radius: 18px; 
  box-shadow: var(--shadow); 
  padding: 2rem; 
  text-align: center; 
  transition: all 0.3s; 
  position: relative; 
  overflow: hidden; 
  animation: slideInUp 1.1s 0.6s both; 
}

.university-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 108, 223, 0.1), transparent);
  transition: left 0.5s;
}

.university-card:hover::before {
  left: 100%;
}

.university-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 12px 32px rgba(44, 62, 80, 0.15); 
}

.university-card h3 { 
  font-family: 'Montserrat', serif; 
  color: var(--primary); 
  font-size: 1.4rem; 
  margin-bottom: 1rem; 
}

.university-card p { 
  color: #666; 
  line-height: 1.6; 
}

/* Downloads Grid */
.downloads-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 2rem; 
  margin: 3rem 0; 
}

.download-card { 
  background: var(--card-bg); 
  border-radius: 18px; 
  box-shadow: var(--shadow); 
  padding: 2rem; 
  text-align: center; 
  transition: all 0.3s; 
  position: relative; 
  overflow: hidden; 
  animation: slideInUp 1.1s 0.6s both; 
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 108, 223, 0.1), transparent);
  transition: left 0.5s;
}

.download-card:hover::before {
  left: 100%;
}

.download-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 12px 32px rgba(44, 62, 80, 0.15); 
}

.download-card h3 { 
  font-family: 'Montserrat', serif; 
  color: var(--primary); 
  font-size: 1.4rem; 
  margin-bottom: 1rem; 
}

.download-card p { 
  color: #666; 
  line-height: 1.6; 
  margin-bottom: 1.5rem; 
}

.download-button { 
  display: inline-block; 
  background: var(--primary); 
  color: white; 
  padding: 0.8rem 1.5rem; 
  border-radius: 8px; 
  text-decoration: none; 
  font-family: 'Montserrat', sans-serif; 
  font-weight: 600; 
  transition: all 0.3s; 
  position: relative; 
  overflow: hidden; 
}

.download-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.download-button:hover::before {
  left: 100%;
}

.download-button:hover { 
  background: var(--accent); 
  transform: translateY(-2px) scale(1.03); 
  box-shadow: 0 8px 20px rgba(235, 133, 0, 0.4); 
}

/* Contact Form */
.contact-section { 
  flex: 2 1 350px; 
  background: var(--card-bg); 
  border-radius: 18px; 
  box-shadow: var(--shadow); 
  padding: 2rem 2rem 2rem 2.5rem; 
  display: flex; 
  flex-direction: column; 
  gap: 1.2rem; 
  animation: slideInLeft 1.1s 0.5s both; 
  transition: all 0.3s; 
  position: relative; 
  overflow: hidden; 
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 108, 223, 0.1), transparent);
  transition: left 0.5s;
}

.contact-section:hover::before {
  left: 100%;
}

.contact-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
}

@keyframes slideInLeft { 
  from { opacity: 0; transform: translateX(-60px); } 
  to { opacity: 1; transform: translateX(0); } 
}

.contact-section h2 { 
  font-family: 'Montserrat', serif; 
  color: var(--accent); 
  font-size: 2rem; 
  margin-bottom: 0.5rem; 
}

.contact-form { 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
}

.contact-form input, 
.contact-form textarea { 
  padding: 0.8rem 1rem; 
  border: 1px solid #ccc; 
  border-radius: 8px; 
  font-size: 1rem; 
  font-family: 'Roboto', Arial, sans-serif; 
  transition: all 0.3s; 
  background: rgba(255, 255, 255, 0.9); 
}

.contact-form input:focus, 
.contact-form textarea:focus { 
  border: 2px solid var(--primary); 
  background: white; 
  transform: scale(1.02); 
  box-shadow: 0 4px 12px rgba(45, 108, 223, 0.2); 
  outline: none; 
}

.contact-form textarea { 
  min-height: 100px; 
  resize: vertical; 
}

.contact-form button { 
  background: var(--primary); 
  color: #fff; 
  border: none; 
  border-radius: 8px; 
  padding: 0.8rem 1.5rem; 
  font-size: 1.1rem; 
  font-family: 'Montserrat', sans-serif; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s; 
  position: relative; 
  overflow: hidden; 
}

.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.contact-form button:hover::before {
  left: 100%;
}

.contact-form button:hover { 
  background: var(--accent); 
  transform: translateY(-2px) scale(1.03); 
  box-shadow: 0 8px 20px rgba(235, 133, 0, 0.4); 
}

/* Sidebar */
.sidebar-section { 
  flex: 1 1 280px; 
  display: flex; 
  flex-direction: column; 
  gap: 1.5rem; 
  align-items: center; 
  animation: slideInRight 1.1s 0.7s both; 
}

@keyframes slideInRight { 
  from { opacity: 0; transform: translateX(60px); } 
  to { opacity: 1; transform: translateX(0); } 
}

.sidebar-section h3 { 
  font-family: 'Montserrat', serif; 
  color: var(--primary); 
  font-size: 1.4rem; 
  margin-bottom: 1rem; 
}

.sidebar-links { 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  width: 100%; 
}

.sidebar-link { 
  background: var(--card-bg); 
  border-radius: 14px; 
  box-shadow: var(--shadow); 
  padding: 1rem 1.5rem; 
  text-align: center; 
  font-size: 1.1rem; 
  color: var(--primary); 
  text-decoration: none; 
  font-family: 'Montserrat', sans-serif; 
  font-weight: 500; 
  transition: all 0.3s; 
  position: relative; 
  overflow: hidden; 
  animation: fadeIn 1.2s 0.8s both; 
}

.sidebar-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.sidebar-link:hover::before {
  left: 100%;
}

.sidebar-link:hover { 
  background: var(--primary); 
  color: #fff; 
  transform: translateY(-8px) scale(1.05); 
  box-shadow: 0 12px 24px rgba(45, 108, 223, 0.3); 
}

/* Footer */
.footer { 
  background: var(--footer-bg); 
  color: var(--footer-text); 
  padding: 2rem 0 1rem 0; 
  margin-top: auto; 
  font-size: 1rem; 
  box-shadow: 0 -2px 12px rgba(44, 62, 80, 0.07); 
  animation: fadeIn 1.2s 1.1s both; 
  position: relative; 
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.footer-content { 
  max-width: 1200px; 
  margin: 0 auto; 
  display: flex; 
  flex-wrap: wrap; 
  gap: 2rem; 
  justify-content: space-between; 
  align-items: flex-start; 
  padding: 0 2rem; 
}

.footer-col { 
  flex: 1 1 220px; 
  margin-bottom: 1.2rem; 
  animation: fadeInUp 1s ease-out 1.2s both; 
}

.footer-col h4 { 
  color: var(--accent); 
  font-family: 'Montserrat', serif; 
  margin-bottom: 0.7rem; 
  font-size: 1.1rem; 
  animation: glow 2s ease-in-out infinite alternate; 
}

@keyframes glow {
  0% { text-shadow: 0 0 5px rgba(235, 133, 0, 0.5); }
  100% { text-shadow: 0 0 15px rgba(235, 133, 0, 0.8); }
}

.footer-col p, 
.footer-col a { 
  color: var(--footer-text); 
  font-size: 1rem; 
  text-decoration: none; 
  margin-bottom: 0.3rem; 
  display: block; 
  transition: all 0.3s; 
}

.footer-col a:hover { 
  color: var(--primary); 
  transform: translateX(5px); 
}

.footer-bottom { 
  text-align: center; 
  color: #bbb; 
  font-size: 0.95rem; 
  margin-top: 1.2rem; 
  animation: fadeIn 1s ease-out 1.5s both; 
}

/* Scroll-triggered animations */
.scroll-animate {
  opacity: 1 !important;
  transform: none !important;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* WordPress Specific Styles */
.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.wp-block-quote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
}

.wp-block-button .wp-block-button__link {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: all 0.3s;
}

.wp-block-button .wp-block-button__link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 900px) { 
  .main-content, 
  .footer-content { 
    flex-direction: column; 
    gap: 2.5rem; 
    padding: 0 1rem; 
  } 
  .navbar { 
    flex-direction: column; 
    gap: 1rem; 
    padding: 1rem 1rem; 
  } 
  .hero h1 { 
    font-size: 2rem; 
  } 
  .hero p { 
    font-size: 1rem; 
  }
  .hero { 
    min-height: 180px; 
    padding: 1.5rem 1rem 1rem 1rem; 
  } 
  .features-section,
  .courses-grid,
  .universities-grid,
  .downloads-grid { 
    grid-template-columns: 1fr; 
  } 
}

@media (min-width: 1200px) {
  .main-content .features-section {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 600px) {
  html, body {
    overflow-x: hidden;
  }
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }
  .navbar img {
    max-width: 80px;
    height: auto;
    margin-bottom: 0.5rem;
  } 
} 