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

html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: #fff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  min-height: 100vh;
}

:root {
  --primary-color: #007bff; /* Bootstrap primary blue */
  --secondary-color: #6c757d; /* Bootstrap secondary */
  --accent-color: #e55039; /* Custom accent color */
  --text-color: #333;
  --light-text: #6c757d;
  --dark-bg: #111;
  --light-bg: #f8f9fa;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
}

.container-fluid {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

section {
  padding: 5rem 2rem;
  overflow-x: hidden;
  width: 100%;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}

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

.primary-btn:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

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

.secondary-btn:hover {
  background-color: #f0f7ff;
  transform: translateY(-3px);
}

.cta-btn {
  background-color: var(--accent-color);
  color: white;
  padding: 0.45rem 1.1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.85rem;
}

.cta-btn:hover {
  background-color: #c44130;
  transform: translateY(-3px);
}

.text-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
  position: relative;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 5%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  max-width: 130px;
  height: auto;
}

.navbar .logo a {
  display: block;
  line-height: 0;
}

.navbar .logo img {
  width: 100%;
  height: auto;
  display: block;
}

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

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-btn {
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  transition: var(--transition);
}

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

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section with Video */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  z-index: 1;
}

.hero-logo {
  max-width: 200px;
  margin: 0 auto 2rem;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h2 {
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Why Choose Section */
.why-choose-section {
  padding: 5rem 5%;
  text-align: center;
}

.why-choose-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

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

.why-choose-section p {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  color: var(--light-text);
}

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

.stat-card {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  min-width: 200px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.stat-card h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Services Section */
.services-section {
  background-color: var(--light-bg);
  text-align: center;
  padding: 5rem 5%;
}

.services-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-transform: uppercase;
}

.services-section h3 {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.service-card {
  background-color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: left;
  transition: var(--transition);
}

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

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: left;
}

.service-card p {
  color: var(--light-text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-card ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.service-card ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-card ul li::before {
  content: "•";
  color: var(--primary-color);
  font-size: 1.3rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Featured Section */
.featured-section {
  padding: 5rem 5%;
  text-align: center;
}

.featured-section h3 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.featured-logos,
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.logo-placeholder {
  width: 150px;
  height: 80px;
  background-color: #e9ecef;
  border-radius: var(--border-radius);
}

/* Mentor Section */
.mentor-section {
  background-color: var(--light-bg);
  padding: 5rem 5%;
  text-align: center;
}

.mentor-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.mentor-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.mentor-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background-color: #e9ecef;
  border-radius: var(--border-radius);
}

.mentor-info {
  flex: 2;
  min-width: 300px;
  text-align: left;
}

.mentor-info p {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.experience-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
}

/* Clients Section */
.clients-section {
  padding: 5rem 5%;
  text-align: center;
}

.clients-section h3 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background-color: white;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.cta-section .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: #fff;
  padding: 4rem 5% 2rem;
}

.footer-logo {
  margin-bottom: 2rem;
  max-width: 160px;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 3rem;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h4 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 50px;
  background-color: var(--primary-color);
  bottom: -8px;
  left: 0;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-section ul li {
  color: #aaa;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

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

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

.copyright, .sub-copyright {
  text-align: center;
  padding-top: 1rem;
}

.copyright {
  color: white;
  margin-bottom: 0.5rem;
}

.sub-copyright {
  font-size: 0.9rem;
  color: #aaa;
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}

/* Additional utilities that may not be in Bootstrap */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Whatsapp float button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
}

.whatsapp-float a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .nav-links.active, 
  .auth-buttons.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }
  
  .menu-toggle.active i:before {
    content: "\f00d"; /* Font Awesome 'times' icon */
  }

  .hero {
    height: 70vh;
  }

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

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

/* Media Queries */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .feature-card, .service-card {
    padding: 2rem;
  }

  .mentor-content {
    flex-direction: column;
    text-align: center;
  }

  .mentor-info {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links, .auth-buttons {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .services-grid, .footer-content {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .why-choose-section h2, 
  .services-section h2,
  .featured-section h2,
  .mentor-section h2,
  .clients-section h2,
  .cta-section h2 {
    font-size: 1.6rem;
  }
}

/* Animations */
.feature-card, 
.service-card, 
.stat-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-card.animate, 
.service-card.animate, 
.stat-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card:nth-child(3) {
  transition-delay: 0.4s;
}

.stat-card:nth-child(2) {
  transition-delay: 0.1s;
}

.stat-card:nth-child(3) {
  transition-delay: 0.2s;
}

.stat-card:nth-child(4) {
  transition-delay: 0.3s;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Global styles used across all pages */

/* Feature icons */
.feature-icon-small {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--asset-blue), var(--asset-purple));
  color: white;
  font-size: 1.2rem;
}

/* Section styling */
.section-subheading {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.section-heading {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--light-text);
}

/* Footer styling */
.footer {
  background-color: var(--footer-bg);
  color: #fff;
  padding-bottom: 1rem;
}

.footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--asset-red), var(--asset-blue));
}

.footer p {
  opacity: 0.8;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-links a::before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 8px;
  color: var(--asset-blue);
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-10px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact li i {
  width: 20px;
  margin-right: 15px;
  color: var(--asset-blue);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-5px);
  background: var(--asset-blue);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.legal-links {
  text-align: right;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 20px;
}

.legal-links a:hover {
  color: #fff;
}

.dark-theme .footer {
  background-color: var(--footer-bg);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
}

.dark-theme .footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.dark-theme .footer-contact li {
  color: rgba(255, 255, 255, 0.8);
}

.dark-theme .social-icon {
  background: rgba(255, 255, 255, 0.15);
}

.dark-theme .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Back to top button */
#back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--asset-blue);
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998; /* Increased z-index to ensure visibility */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

#back-to-top-btn.visible,
.back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

#back-to-top-btn:hover {
  transform: translateY(-5px);
  background: linear-gradient(45deg, var(--asset-blue), var(--asset-purple));
}

.dark-theme #back-to-top-btn {
  background: var(--asset-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dark-theme #back-to-top-btn:hover {
  background: linear-gradient(45deg, var(--asset-blue), var(--asset-purple));
}

/* Dark theme specific styles */
.dark-theme {
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.dark-theme .bg-light {
  background-color: var(--bg-secondary) !important;
}

.dark-theme .text-dark {
  color: var(--text-primary) !important;
}

.dark-theme .border {
  border-color: var(--form-border) !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .section-heading {
    font-size: 2rem;
  }
  
  .legal-links {
    text-align: center;
    margin-top: 1rem;
  }
  
  .copyright {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  #back-to-top-btn {
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
  
  .section-heading {
    font-size: 1.5rem;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }
  
  .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.4rem;
  }
}

/* Specific styles for school, college, and protalk pages */
body.school-page,
body.college-page,
body.protalk-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.school-page main,
body.college-page main,
body.protalk-page main {
  flex: 1;
}

body.school-page footer,
body.college-page footer,
body.protalk-page footer {
  margin-top: auto;
}

