/* ================================================
   SCHOOL GUIDE IT CONSULTANCY - 2026 DESIGN
   Modern, Interactive, Competitive Design
   ================================================ */

:root {
  --primary: #022779;
  --primary-dark: #011540;
  --accent: #ff7d02;
  --accent-light: #ffb366;
  --bg-dark: #022779;
  --bg-light: #f5f5f5;
  --text-dark: #000;
  --text-light: #333;
  --success: #10b981;
  --danger: #ef4444;
  --border: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: white;
  overflow-x: hidden;
}

/* ================================================
   SCROLLBAR STYLING
   ================================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  line-height: 1.6;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: #022779;
  transition: all 0.3s ease;
}

a:hover {
  color: #ff7d02;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: #022779;
  color: white;
  border-color: #022779;
}

.btn-primary:hover {
  background: #011540;
  border-color: #011540;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(2, 39, 121, 0.3);
}

.btn-secondary {
  background: white;
  color: #022779;
  border-color: white;
  font-weight: bold;
}

.btn-secondary:hover {
  background: #f0f0f0;
  color: #022779;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

.btn-accent {
  background: #ff7d02;
  color: white;
  border-color: #ff7d02;
}

.btn-accent:hover {
  background: #ffb366;
  border-color: #ffb366;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 12px 30px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  background: white;
  position: sticky;
  top: 0;
  z-index: 998;
  padding: 1rem 0;
  transition: all 0.3s ease;
  border: none !important;
  box-shadow: none !important;
}

.navbar.navbar-transparent {
  background: #022779;
}

.navbar.navbar-transparent .nav-link {
  color: white !important;
  font-weight: 600;
}

.navbar.navbar-transparent .nav-link::after {
  background: rgba(255, 255, 255, 0.7);
}

.navbar.navbar-transparent .navbar-toggler {
  border-color: white;
}

.navbar.navbar-transparent .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.navbar-transparent .navbar-brand img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  width: 200px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 600;
  color: #022779 !important;
  margin: 0 10px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ff7d02;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active,
.nav-link:active {
  color: #ff7d02 !important;
}

.navbar-toggler {
  border: 2px solid #022779;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(2, 39, 121, 0.25);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  background: #022779;
  color: white;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  animation: slideInDown 0.8s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: slideInUp 0.8s ease 0.2s backwards;
  color: white;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease 0.4s backwards;
}

.hero-image {
  animation: float 3s ease-in-out infinite;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ================================================
   FEATURES / STATS
   ================================================ */
.stats-section {
  padding: 80px 0;
  background: white;
}

.stat-card {
  text-align: center;
  padding: 40px 25px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  background: white;
  border: 2px solid transparent;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(66, 133, 244, 0.2);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-flex;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.stat-icon i {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon i {
  transform: scale(1.15) rotate(5deg);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.stat-label {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.stat-description {
  font-size: 0.85rem;
  color: #333;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.stat-card:hover .stat-description {
  opacity: 1;
  transform: translateY(0);
}

/* School Card */
.stat-card-schools .stat-icon {
  background: linear-gradient(135deg, #022779 0%, #ff7d02 100%);
  color: white;
}

.stat-card-schools::before {
  background: #022779;
}

.stat-card-schools {
  border-color: rgba(2, 39, 121, 0.3);
}

.stat-card-schools .stat-number {
  color: #022779;
}

.stat-card-schools .stat-label {
  color: #000;
}

.stat-card-schools:hover {
  background: linear-gradient(135deg, rgba(2, 39, 121, 0.05), rgba(255, 125, 2, 0.05));
}

/* Users Card */
.stat-card-users .stat-icon {
  background: linear-gradient(135deg, #022779 0%, #ff7d02 100%);
  color: white;
}

.stat-card-users::before {
  background: #022779;
}

.stat-card-users {
  border-color: rgba(2, 39, 121, 0.3);
}

.stat-card-users .stat-number {
  color: #022779;
}

.stat-card-users .stat-label {
  color: #000;
}

.stat-card-users:hover {
  background: linear-gradient(135deg, rgba(2, 39, 121, 0.05), rgba(255, 125, 2, 0.05));
}

/* Systems Card */
.stat-card-systems .stat-icon {
  background: linear-gradient(135deg, #ff7d02 0%, #022779 100%);
  color: white;
}

.stat-card-systems::before {
  background: linear-gradient(90deg, #ff7d02, #022779);
}

.stat-card-systems {
  border-color: rgba(255, 125, 2, 0.3);
}

.stat-card-systems .stat-number {
  color: #ff7d02;
}

.stat-card-systems .stat-label {
  color: #000;
}

.stat-card-systems:hover {
  background: linear-gradient(135deg, rgba(255, 125, 2, 0.05), rgba(2, 39, 121, 0.05));
}

/* Uptime Card */
.stat-card-uptime .stat-icon {
  background: linear-gradient(135deg, #ffffff 0%, #022779 100%);
  color: #022779;
}

.stat-card-uptime::before {
  background: linear-gradient(90deg, #ffffff, #022779);
}

.stat-card-uptime {
  border-color: rgba(2, 39, 121, 0.3);
}

.stat-card-uptime .stat-number {
  color: #022779;
}

.stat-card-uptime .stat-label {
  color: #000;
}

.stat-card-uptime:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(2, 39, 121, 0.05));
}

@media (max-width: 768px) {
  .stat-card {
    padding: 30px 15px;
    margin-bottom: 20px;
  }
  
  .stat-icon {
    width: 60px;
    height: 60px;
  }
  
  .stat-icon i {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* ================================================
   PRODUCTS SHOWCASE
   ================================================ */
.products-section {
  padding: 100px 0;
  background: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.product-card {
  background: linear-gradient(135deg, #022779 0%, #ff7d02 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 3px;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(2, 39, 121, 0.2);
}

.product-image {
  width: 100%;
  height: clamp(120px, 25vw, 180px);
  object-fit: cover;
  background: linear-gradient(135deg, #022779 0%, #ff7d02 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-content {
  padding: 25px;
  background: white;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 9px;
  margin-top: 3px;
}

.product-name {
  font-size: 1.2rem;
  color: #022779;
  margin-bottom: 1rem;
  font-weight: 700;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
}

.product-description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-features li {
  padding: 8px 0;
  font-size: 0.85rem;
  color: #333;
  line-height: 1.5;
}

.product-features li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: bold;
  margin-right: 8px;
}

.product-footer {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.product-badge {
  display: none;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-section {
  padding: 100px 0;
  background: #022779;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-text h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: white;
}

.about-highlight {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-left: 4px solid #ff7d02;
  margin: 2rem 0;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   TEAM SECTION
   ================================================ */
.team-section {
  padding: 100px 0;
  background: #f5f5f5;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.team-member {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  cursor: pointer;
  position: relative;
}

.team-member:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(66, 133, 244, 0.3);
}

.member-image {
  background: #022779;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 39, 121, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  gap: 10px;
}

.team-member:hover .image-overlay {
  opacity: 1;
}

.image-overlay i {
  font-size: 3rem;
  animation: bounce 0.6s ease infinite;
}

.image-overlay span {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.member-info {
  padding: 30px 20px;
  background: white;
  transition: background 0.3s ease;
}

.team-member:hover .member-info {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.member-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #000;
  font-weight: 600;
}

.member-role {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: inline-block;
  background: linear-gradient(135deg, #022779, #ff7d02);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.team-member:hover .member-role {
  background: linear-gradient(135deg, #022779, #ff7d02);
  transform: scale(1.05);
}

.member-role i {
  margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.member-bio {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 15px 0 0 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.team-member:hover .social-icons {
  opacity: 1;
  transform: translateY(0);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #022779, #ff7d02);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 8px 20px rgba(2, 39, 121, 0.4);
}

/* ================================================
   MISSION, VISION, VALUES
   ================================================ */
.values-section {
  padding: 100px 0;
  background: white;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  border: 3px solid transparent;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(2, 39, 121, 0.1) 0%, rgba(255, 125, 2, 0.15) 100%);
  transition: all 0.4s ease;
  z-index: 0;
}

.value-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: #ff7d02;
  box-shadow: 0 20px 50px rgba(255, 125, 2, 0.3);
}

.value-card:hover::before {
  left: 0;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounce 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.value-card h3 {
  color: #022779;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.value-card:hover h3 {
  color: #ff7d02;
}

.value-card p {
  color: #333;
  line-height: 1.8;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-section {
  padding: 100px 0;
  background: #022779;
  color: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  color: white;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  min-width: 30px;
  color: #fff;
}

.contact-text h4 {
  color: white;
  margin-bottom: 0.5rem;
}

.contact-text p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.contact-form h3 {
  color: #022779;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #000;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #022779;
  box-shadow: 0 0 0 3px rgba(2, 39, 121, 0.1);
}

.form-group textarea {
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #ff7d02;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-section a:hover {
  color: white;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 30px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.95);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.footer .social-link:hover {
  background: white;
  color: #022779;
  transform: translateY(-3px);
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

@media (max-width: 1024px) {
  .container {
    max-width: 95%;
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 100%;
    padding: 0 12px;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 10px;
}

.section-title h2 {
  color: #022779;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.section-title p {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 600px;
  color: #333;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #022779, #ff7d02);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: #022779;
}

.text-accent {
  color: var(--accent);
}

.text-light {
  color: var(--text-light);
}

.mt {
  margin-top: 40px;
}

.mb {
  margin-bottom: 40px;
}

.py {
  padding: 100px 0;
}

.hidden {
  display: none;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(66, 133, 244, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================================================
   CLIENTS / TOP SCHOOLS SECTION
   ================================================ */
.clients-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(2, 39, 121, 0.05) 0%, rgba(255, 125, 2, 0.05) 100%);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 50px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

/* All cards in single row */
.client-level-1,
.client-level-2 {
  grid-row: 1;
}

/* Responsive Layout */
@media (max-width: 1280px) {
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
}

@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .client-card {
    padding: 22px 14px;
  }

  .client-logo-container {
    width: 80px;
    height: 80px;
    margin-bottom: 14px;
  }

  .client-card h3 {
    font-size: 1.05rem;
    min-height: auto;
    margin: 10px 0;
    line-height: 1.3;
  }

  .client-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0;
  }

  .client-card {
    padding: 15px 10px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }

  .client-logo-container {
    width: 70px;
    height: 70px;
    margin-bottom: 0;
    margin-right: 15px;
    flex-shrink: 0;
  }

  .client-card h3 {
    font-size: 0.95rem;
    min-height: auto;
    margin: 0;
    display: block;
  }
}

.client-card {
  background: white;
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(66, 133, 244, 0.15);
  border-color: rgba(66, 133, 244, 0.3);
}

.client-logo-container {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  border: 2px solid rgba(66, 133, 244, 0.1);
  transition: all 0.3s ease;
}

.client-card:hover .client-logo-container {
  border-color: rgba(66, 133, 244, 0.3);
  background: linear-gradient(135deg, #e8f0fe 0%, #f0e6ff 100%);
}

.client-logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}

.client-card h3 {
  margin: 15px 0;
  font-size: 1.2rem;
  line-height: 1.4;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-link {
  color: var(--text-dark);
  font-weight: 700;
  transition: all 0.3s ease;
}

.client-link:hover {
  color: var(--primary);
}

.client-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

/* ================================================
   CLIENT CARD SCHOOL COLOR VARIANTS
   ================================================ */

/* JSMJC - Dark Green */
.client-card-jsmjc {
  background: linear-gradient(135deg, #003d08 0%, #004d0e 100%);
  color: #f5f4d3;
}

.client-card-jsmjc .client-logo-container {
  border-color: rgba(245, 244, 211, 0.3);
  background: rgba(245, 244, 211, 0.1);
}

.client-card-jsmjc:hover {
  box-shadow: 0 15px 40px rgba(0, 61, 8, 0.4);
  transform: translateY(-8px);
}

.client-card-jsmjc:hover .client-logo-container {
  background: rgba(245, 244, 211, 0.2);
  border-color: rgba(245, 244, 211, 0.6);
}

.client-card-jsmjc h3 {
  color: #ffffff;
}

.client-card-jsmjc .client-link {
  color: #ffffff;
  font-weight: 700;
}

.client-card-jsmjc .client-link:hover {
  color: #fff;
  text-decoration: underline;
}

.client-card-jsmjc p {
  color: rgba(245, 244, 211, 0.95);
}

/* APHS - Dark Navy Indigo */
.client-card-aphs {
  background: linear-gradient(135deg, #030180 0%, #0a0496 100%);
  color: white;
}

.client-card-aphs .client-logo-container {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.client-card-aphs:hover {
  box-shadow: 0 15px 40px rgba(3, 1, 128, 0.4);
  transform: translateY(-8px);
}

.client-card-aphs:hover .client-logo-container {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.client-card-aphs h3 {
  color: #ffffff;
}

.client-card-aphs .client-link {
  color: #ffffff;
  font-weight: 700;
}

.client-card-aphs .client-link:hover {
  color: #fff;
  text-decoration: underline;
}

.client-card-aphs p {
  color: rgba(255, 255, 255, 0.95);
}

/* SMHS - Dark Maroon Red */
.client-card-smhs {
  background: linear-gradient(135deg, #990202 0%, #b30303 100%);
  color: white;
}

.client-card-smhs .client-logo-container {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.client-card-smhs:hover {
  box-shadow: 0 15px 40px rgba(153, 2, 2, 0.4);
  transform: translateY(-8px);
}

.client-card-smhs:hover .client-logo-container {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.client-card-smhs h3 {
  color: #ffffff;
}

.client-card-smhs .client-link {
  color: #ffffff;
  font-weight: 700;
}

.client-card-smhs .client-link:hover {
  color: #fff;
  text-decoration: underline;
}

.client-card-smhs p {
  color: rgba(255, 255, 255, 0.95);
}

/* SAS - Dark Navy Blue with Gold */
.client-card-sas {
  background: linear-gradient(135deg, #141654 0%, #1a1f7a 100%);
  color: white;
}

.client-card-sas .client-logo-container {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.client-card-sas:hover {
  box-shadow: 0 15px 40px rgba(20, 22, 84, 0.4);
  transform: translateY(-8px);
}

.client-card-sas:hover .client-logo-container {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.client-card-sas h3 {
  color: #ffffff;
}

.client-card-sas .client-link {
  color: #ffffff;
  font-weight: 700;
}

.client-card-sas .client-link:hover {
  color: #fff;
  text-decoration: underline;
}

.client-card-sas p {
  color: rgba(255, 255, 255, 0.95);
}

/* Veritas - Green & Gold */
.client-card-veritas {
  background: linear-gradient(135deg, #5a8c3a 0%, #7bb147 100%);
  color: white;
}

.client-card-veritas .client-logo-container {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.client-card-veritas:hover {
  box-shadow: 0 15px 40px rgba(90, 140, 58, 0.4);
  transform: translateY(-8px);
}

.client-card-veritas:hover .client-logo-container {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.client-card-veritas h3 {
  color: #ffffff;
}

.client-card-veritas .client-link {
  color: #ffffff;
  font-weight: 700;
}

.client-card-veritas .client-link:hover {
  color: #fff;
  text-decoration: underline;
}

.client-card-veritas p {
  color: rgba(255, 255, 255, 0.95);
}

/* ================================================
   FILE BROWSER / IFRAME SECTION
   ================================================ */
.filebrowser-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.filebrowser-frame {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.filebrowser-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filebrowser-header h3 {
  color: white;
  margin: 0;
}

.filebrowser-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filebrowser-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.filebrowser-content {
  min-height: 600px;
}

.filebrowser-content iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* ================================================
   ANIMATION UTILITIES
   ================================================ */
.fade-in {
  animation: fadeIn 0.6s ease;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

.scale-in {
  animation: scaleIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .container {
    padding: 0 20px;
  }
}

/* Tablet (768px - 1024px) */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    font-size: 0.95rem;
    padding: 12px 24px;
  }

  .hero-image {
    margin-top: 40px;
  }

  .hero-image > div {
    height: 300px !important;
  }

  .carousel-slide {
    padding: 30px 20px !important;
  }

  .carousel-slide i {
    font-size: 3rem !important;
  }

  .carousel-slide h3 {
    font-size: 1.5rem !important;
  }

  .carousel-slide p {
    font-size: 0.9rem !important;
  }

  .stats-section {
    padding: 40px 0;
  }

  .stat-item {
    margin-bottom: 30px;
  }

  .stat-card {
    margin-bottom: 20px;
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .products-section {
    padding: 40px 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .product-image {
    height: clamp(120px, 22vw, 180px) !important;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .about-section {
    padding: 40px 0;
  }

  .about-content {
    margin-top: 30px;
  }

  .values-section {
    padding: 40px 0;
  }

  .contact-section {
    padding: 40px 0;
  }

  .team-section {
    padding: 40px 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .member-image {
    height: 250px;
  }

  .member-info {
    padding: 25px 15px;
  }

  .member-bio {
    font-size: 0.9rem;
    margin: 12px 0 0 0;
  }

  .clients-section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .py {
    padding: 40px 0;
  }

  .footer {
    padding: 40px 0 20px 0;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .footer-section {
    margin-bottom: 20px;
  }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* Mobile (480px - 768px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero {
    padding: 50px 0;
    min-height: 600px;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .hero-image {
    margin-top: 30px;
  }

  .hero-image > div {
    height: 250px !important;
  }

  .carousel-slide {
    padding: 20px 15px !important;
  }

  .carousel-slide i {
    font-size: 2.5rem !important;
    margin-bottom: 15px;
  }

  .carousel-slide h3 {
    font-size: 1.3rem !important;
    margin-bottom: 10px;
  }

  .carousel-slide p {
    font-size: 0.85rem !important;
    margin-bottom: 15px;
  }

  .carousel-slide a {
    font-size: 0.85rem;
  }

  .stats-section {
    padding: 30px 0;
  }

  .stat-card {
    margin-bottom: 15px;
    padding: 20px;
  }

  .stat-card.stat-card-users .stat-number {
    font-size: 2.2rem;
  }

  .stat-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
  }

  .stat-icon i {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.95rem;
  }

  .stat-description {
    font-size: 0.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-card {
    padding: 0;
  }

  .product-image {
    height: clamp(100px, 18vw, 140px) !important;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-content {
    padding: 15px;
  }

  .product-name {
    font-size: 1.1rem;
  }

  .product-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .product-description {
    font-size: 0.9rem;
    margin: 10px 0;
  }

  .product-features {
    font-size: 0.85rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-member {
    margin-bottom: 0;
  }

  .member-image {
    height: 220px;
  }

  .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .member-info {
    padding: 20px 15px;
  }

  .member-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .member-role {
    font-size: 0.85rem;
    margin: 8px 0;
    padding: 5px 10px;
  }

  .member-bio {
    font-size: 0.85rem;
    margin: 12px 0 0 0;
  }

  .social-icons {
    gap: 10px;
    margin-top: 12px;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    padding: 0 15px;
    gap: 20px;
    margin-top: 30px;
  }

  .client-level-1,
  .client-level-2 {
    grid-row: auto;
  }

  .client-card {
    padding: 18px 12px;
    border-radius: 10px;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(66, 133, 244, 0.1) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 160px;
    width: 100%;
  }

  .client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.15) !important;
  }

  .client-logo-container {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    border: 1px solid rgba(66, 133, 244, 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .client-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
  }

  .client-card h3 {
    font-size: 0.85rem;
    height: 35px;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    overflow: hidden;
  }

  .client-card p {
    display: none;
  }

  .client-link {
    color: #022779 !important;
    text-decoration: none;
  }

  .client-link:hover {
    color: #ff7d02 !important;
    text-decoration: underline;
  }

  .section-title h2 {
    font-size: 1.3rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 15px;
  }

  .footer {
    padding: 30px 0 15px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-section {
    margin-bottom: 15px;
  }

  .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .footer-section p {
    font-size: 0.9rem;
  }

  .footer-section ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
  }

  .footer-social {
    gap: 10px;
  }

  .social-link {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .navbar {
    padding: 10px 0;
    position: sticky !important;
    top: 0;
    z-index: 999 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .navbar-brand img {
    max-height: 40px;
  }

  .navbar.navbar-transparent {
    background: #022779 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  .navbar.navbar-transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0.5rem !important;
  }

  .py {
    padding: 30px 0;
  }

  /* Contact form responsive */
  .contact-form .form-group {
    margin-bottom: 12px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Buttons on mobile */
  .btn {
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 50px;
  }

  .btn-lg {
    font-size: 0.95rem;
    padding: 12px 20px;
  }

  /* Feature cards on mobile - centered icons and text */
  .feature-card {
    text-align: center;
  }

  .feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
  }

  .feature-card h4 {
    text-align: center;
  }

  .feature-card p {
    text-align: center;
  }

  /* Generic feature cards with inline styles */
  div[style*="grid"] div[style*="background: white; padding: 30px"] {
    text-align: center !important;
  }

  div[style*="background: white; padding: 30px"] i {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  div[style*="background: white; padding: 30px"] h4 {
    text-align: center !important;
  }

  div[style*="background: white; padding: 30px"] p {
    text-align: center !important;
  }
}
