/* ============================
   EDUFLOX MARKETING WEBSITE
   Modern School Management Solution
   ============================ */

/* ============================
   CSS VARIABLES (Theme)
   ============================ */
:root {
  /* Primary Colors */
  --primary-color: #2a7df0;
  --primary-dark: #1e5bb8;
  --primary-light: #5ba0f5;
  
  /* Secondary Colors */
  --secondary-color: #f4f4f4;
  --secondary-dark: #e0e0e0;
  
  /* Text Colors */
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  
  /* Background Colors */
  --background-color: #fff;
  --background-dark: #f9f9f9;
  
  /* Accent Colors */
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Container Width */
  --container-width: 1200px;
}

/* ============================
   RESET & BASE STYLES
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================
   UTILITY CLASSES
   ============================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  z-index: 1;
}

.btn-primary > * {
  position: relative;
  z-index: 2;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Catchy Button Animation */
.btn-primary {
  position: relative;
  overflow: hidden;
  animation: pulse 2s ease-in-out infinite;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:active {
  transform: scale(0.95);
}

/* Pulse Animation for Important Buttons */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(42, 125, 240, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(42, 125, 240, 0);
  }
}

/* Special animation for hero buttons */
.hero-content .btn {
  animation: fadeInUp 0.8s ease 0.4s both;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Shine/Shimmer effect on buttons */
.btn-primary::after {
  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;
}

.btn-primary:hover::after {
  left: 100%;
}

/* Extra attention for request access form button */
.request-form .btn-primary {
  animation: pulse 2s ease-in-out infinite, glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(42, 125, 240, 0.5), 0 0 10px rgba(42, 125, 240, 0.3);
  }
  50% {
    box-shadow: 0 0 10px rgba(42, 125, 240, 0.8), 0 0 20px rgba(42, 125, 240, 0.5), 0 0 30px rgba(42, 125, 240, 0.3);
  }
}

.btn-large {
  width: 100%;
  padding: 1.125rem 2rem;
  font-size: 1.125rem;
}

/* ============================
   HEADER / NAVIGATION
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  width: 100px;
  height: 100px;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

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

.nav-list {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================
   HERO SLIDER / CAROUSEL
   ============================ */
.hero-section {
  margin-top: 130px;
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}


.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}



.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* important */
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}


.hero-image {
  position: absolute; /* prevent image from affecting layout */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* show full image without cropping */
  object-position: center;
  z-index: 0;
  max-width: none; /* prevent image intrinsic width from limiting size */
  display: block;
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

/* .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
} */

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 900px;
  width: 90%;
  padding: var(--spacing-md);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 4px 40px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

/* Subtitle removed - not needed */
/* .hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.2s both;
} */

.hero-content .btn {
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Hero Navigation Arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem;
  border-radius: 50%;
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
}

.hero-nav:hover {
  /* background-color: rgba(255, 255, 255, 0.3); */
  /* background-color: rgba(var(--primary-color), 0.1); */
  transform: translateY(-50%) scale(1.1);
}

.hero-prev {
  left: var(--spacing-sm);
}

.hero-next {
  right: var(--spacing-sm);
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.indicator {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator.active {
  background-color: #fff;
  width: 32px;
  border-radius: 6px;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}


/* ============================
   ABOUT THE APP SECTION
   ============================ */
.about-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--background-color);
}

.about-intro {
  font-size: 1.125rem;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl) auto;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.feature-card {
  background-color: var(--background-color);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
}

.about-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* ============================
   CLIENTELE SECTION
   ============================ */
.clientele-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--background-dark);
  overflow: hidden;
}

.clientele-slider-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.clientele-slider {
  display: flex;
  gap: var(--spacing-lg);
  animation: scroll 30s linear infinite;
}

.client-logo {
  flex-shrink: 0;
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.client-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.client-logo img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Infinite Scroll Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.clientele-slider:hover {
  animation-play-state: paused;
}

/* ============================
   TESTIMONIALS SECTION
   ============================ */
.testimonials-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--background-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
}

.testimonial-card {
  background-color: var(--background-color);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Avatar removed - no longer needed */
/* .testimonial-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
} */

.quote-icon {
  color: var(--primary-light);
  opacity: 0.3;
  margin-bottom: var(--spacing-sm);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.testimonial-author {
  text-align: center;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--secondary-color);
}

.author-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.9375rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* ============================
   REQUEST ACCESS SECTION
   ============================ */
.request-access-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
}

.request-access-section .section-title,
.request-access-section .section-subtitle {
  color: #fff;
}

.request-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--background-color);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-input {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(42, 125, 240, 0.1);
}

.form-input::placeholder {
  color: var(--text-lighter);
}

.form-message {
  display: none;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-sm);
}

.form-message.show {
  display: flex;
  animation: slideDown 0.3s ease;
}

.form-success {
  background-color: #d1fae5;
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.form-error {
  background-color: #fee2e2;
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.form-message svg {
  flex-shrink: 0;
}

.form-message p {
  margin: 0;
  font-weight: 500;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background-color: var(--text-color);
  color: #fff;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-company-info {
  margin-top: var(--spacing-sm);
}

.company-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.company-tagline {
  font-size: 0.9375rem;
  color: var(--text-lighter);
  line-height: 1.6;
}

/* Logo filter removed to show original colors */
/* .footer-brand .logo {
  filter: brightness(0) invert(1);
} */

.footer-brand .brand-name {
  color: #fff;
}

.footer-tagline {
  margin-top: var(--spacing-sm);
  color: var(--text-lighter);
  font-size: 0.9375rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: #fff;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-lighter);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copyright {
  color: var(--text-lighter);
  font-size: 0.875rem;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    height: 500px;
  }
  
  .hero-content {
    width: 85%;
    padding: var(--spacing-sm);
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-nav {
    padding: 0.75rem;
  }
  
  .hero-prev {
    left: var(--spacing-sm);
  }
  
  .hero-next {
    right: var(--spacing-sm);
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .footer-column {
    text-align: center;
  }
  
  .client-logo {
    width: 150px;
  }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
  .nav-list {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--background-color);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    z-index: 999;
  }
  
  .nav-list.active {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .hero-section {
    height: 500px;
    margin-top: 70px;
  }
  
  .hero-content {
    width: 90%;
    padding: var(--spacing-sm);
  }
  
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-content .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  .hero-nav {
    padding: 0.625rem;
    width: 40px;
    height: 40px;
  }
  
  .hero-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .hero-prev {
    left: 0.5rem;
  }
  
  .hero-next {
    right: 0.5rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .request-form-wrapper {
    padding: var(--spacing-md);
  }
  
  .client-logo {
    width: 120px;
    height: 80px;
  }
}

/* Large Screens (1400px and above) */
@media (min-width: 1400px) {
  :root {
    --container-width: 1320px;
  }
  
  .hero-section {
    height: 750px;
  }
  
  .section-title {
    font-size: 3rem;
  }
}
