/* Root Styles */
:root {
  --primary-blue: #0047a5;
  --primary-yellow: #cfcf0c;
  --text-color: #ffffff;
  --dark-bg: #121212;
  --light-bg: #f9f9f9;
  --light-text: #333333;
  --dark-card: #1e1e1e;
  --light-card: #ffffff;
  --blue-gradient: linear-gradient(135deg, #0047a5 0%, #0066cc 100%);
  --yellow-gradient: linear-gradient(135deg, #cfcf0c 0%, #ebeb2e 100%);
  --card-shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.3);
  --card-shadow-light: 0 8px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --glow-blue: 0 0 40px rgba(0, 71, 165, 0.3);
  --glow-yellow: 0 0 40px rgba(255, 255, 5, 0.3);

  /* Dynamic colors */
  --bg-primary: var(--light-bg);
  --bg-secondary: var(--light-card);
  --bg-tertiary: var(--light-bg);
  --text-primary: var(--light-text);
  --text-secondary: #666666;
  --card-shadow: var(--card-shadow-light);
  --border-color: #e0e0e0;
  --border-color-light: #eeeeee;
  --border-color-heavy: #cccccc;
}

/* Dark mode variables */
.dark-mode {
  --bg-primary: var(--dark-bg);
  --bg-secondary: var(--dark-card);
  --bg-tertiary: #1a1a1a;
  --text-primary: var(--text-color);
  --text-secondary: #b0b0b0;
  --card-shadow: var(--card-shadow-dark);
  --border-color: #333333;
  --border-color-light: #2c2c2c;
  --border-color-heavy: #444444;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

/* Mobile Nav Active State */
body.mobile-nav-active {
  overflow: hidden;
}

/* Overlay for when mobile menu is open */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000; /* Below nav menu (1001), above other content */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}

body.mobile-nav-active::before {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- SUMMER CAMP PROMO STYLES (Consolidated and Corrected) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 2rem;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--card-shadow-dark);
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.modal-overlay.visible .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-header h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.modal-body p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer .btn-primary {
  font-size: 1.1rem;
  padding: 15px;
  font-weight: 700;
}

.modal-footer .whatsapp-cta {
  background: #25d366;
  color: #fff;
  border: none;
}

.modal-footer .whatsapp-cta:hover {
  background: #128c7e;
}
/* --- END PROMO STYLES --- */

/* Theme Toggle -- MOVED to bottom-left */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: var(--bg-secondary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--glow-blue);
}

.theme-toggle i {
  font-size: 20px;
  color: var(--primary-blue);
  transition: var(--transition);
}

/* Typography */
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient-blue {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-yellow {
  background: var(--yellow-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--blue-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 71, 165, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

.btn-secondary {
  background: var(--yellow-gradient);
  color: var(--dark-bg);
  box-shadow: 0 4px 15px rgba(255, 255, 5, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-yellow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--bg-primary-translucent, rgba(249, 249, 249, 0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}

.dark-mode .header {
  background: var(--bg-primary-translucent, rgba(18, 18, 18, 0.85));
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-cart {
  position: relative;
  color: var(--text-primary);
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}
.btn-cart:hover {
  color: var(--primary-blue);
  background-color: var(--border-color);
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--primary-blue);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  font-weight: bold;
  border: 2px solid var(--bg-secondary);
  display: none; /* Hidden by default */
}

/* NEW: Animated Hamburger Menu Button */
.nav-toggle {
  display: none; /* Hidden on desktop */
  position: relative;
  width: 30px;
  height: 22px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1002;
  margin-left: 0.5rem;
}

.hamburger-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.hamburger-bar:nth-child(1) {
  top: 0;
}
.hamburger-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-bar:nth-child(3) {
  bottom: 0;
}

/* Animate to 'X' when menu is active */
body.mobile-nav-active .nav-toggle .hamburger-bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
body.mobile-nav-active .nav-toggle .hamburger-bar:nth-child(2) {
  opacity: 0;
}
body.mobile-nav-active .nav-toggle .hamburger-bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--blue-gradient);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  background: var(--yellow-gradient);
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 60%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 50px 0;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.card-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--blue-gradient);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.7;
  filter: blur(20px);
}

.floating {
  animation: heroFloat 3s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-image-placeholder {
  text-align: center;
  color: var(--primary-blue);
}

.hero-image-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-image-placeholder span {
  font-size: 1.2rem;
  font-weight: 600;
}

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 2;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

/* Services Section */
.services {
  padding: 100px 0;
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 71, 165, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-blue);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  position: relative;
}

.tech-teaching {
  background: var(--blue-gradient);
}

.tech-solutions {
  background: var(--yellow-gradient);
  color: var(--dark-bg) !important;
}

.web3 {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.service-link:hover {
  transform: translateX(5px);
}

/* New Courses Section */
.courses {
  padding: 100px 0;
  background: var(--bg-primary);
}

.courses-footer-note {
  text-align: center;
  margin-top: 3rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.courses-footer-note a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}
.courses-footer-note a:hover {
  text-decoration: underline;
}

/* Tech Solutions Section */
.tech-solutions {
  padding: 100px 0;
  background: var(--bg-primary);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.solution-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-blue);
}

.solution-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
}

.solution-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.solution-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.solution-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.solution-features span {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.solutions-cta {
  text-align: center;
}

/* ZMS Section */
.zms-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.zms-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.zms-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.zms-features {
  margin-bottom: 2rem;
}

.zms-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 15px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.zms-feature:hover {
  transform: translateX(10px);
  box-shadow: var(--card-shadow);
}

.zms-feature i {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.feature-content h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.zms-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.zms-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.zms-mockup {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--card-shadow);
  position: relative;
  border: 1px solid var(--border-color);
}

.mockup-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--yellow-gradient);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.7;
  filter: blur(20px);
}

.mockup-content {
  text-align: center;
  color: var(--primary-blue);
}

.mockup-content i {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.mockup-content span {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: var(--bg-primary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 15px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.contact-item:hover {
  transform: translateX(5px);
  box-shadow: var(--card-shadow);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-text h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact-form-wrapper .form-group .g-recaptcha {
  margin-bottom: 1rem;
}

.contact-text span {
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.social-link:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
}

.contact-form-wrapper {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 165, 0.1);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-secondary);
  transition: var(--transition);
  pointer-events: none;
  background: var(--bg-primary);
  padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 1rem;
  font-size: 0.8rem;
  color: var(--primary-blue);
}

.form-group textarea {
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 50px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
  display: inline-block;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.footer-social a:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px) rotate(15deg);
  box-shadow: var(--glow-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* --- CART PREVIEW STYLES --- */
.cart-preview {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: var(--bg-secondary);
  border-radius: 15px;
  box-shadow: var(--card-shadow-dark);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  z-index: 1050;
  transform: translateX(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease, visibility 0s 0.4s;
}
.cart-preview.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease;
}
.cart-preview-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}
.cart-preview-close:hover {
  color: var(--text-primary);
}
.cart-preview-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}
.cart-preview-items {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 5px; /* for scrollbar */
}
.cart-preview-items::-webkit-scrollbar {
  width: 5px;
}
.cart-preview-items::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
.cart-preview-items::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
}
.cart-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.cart-preview-item-details {
  display: flex;
  flex-direction: column;
}
.cart-preview-item-name {
  color: var(--text-primary);
  font-weight: 500;
}
.cart-preview-item-plan {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.cart-preview-item .item-price {
  color: var(--text-primary);
  font-weight: 500;
}
.cart-preview .empty-message {
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem 0;
}
.cart-preview-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid var(--border-color);
}
#cart-preview-total-price {
  color: var(--primary-blue);
  font-weight: 700;
}

/* --- CHECKOUT PAGE STYLES --- */
.checkout-section {
  padding: 150px 0 100px;
  min-height: 100vh;
}
.checkout-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}
.order-summary,
.checkout-form-container {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}
.order-summary h3,
.checkout-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
#summary-items-container {
  margin-bottom: 2rem;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color-light);
}
.summary-item:last-child {
  border-bottom: none;
}
.summary-item .item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.summary-item .item-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.summary-item .item-plan {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.summary-item .item-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  min-width: 120px;
}
.summary-item .remove-item-btn {
  background: transparent;
  border: none;
  color: #e74c3c;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0 0 0 1rem;
}
.remove-item-btn:hover {
  transform: scale(1.2);
  color: #c0392b;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 2px solid var(--border-color);
  font-size: 1.2rem;
  font-weight: bold;
}
#summary-total-price {
  font-size: 1.8rem;
  color: var(--primary-blue);
}
.empty-cart-message {
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 0;
}
.empty-cart-message a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}
.payment-info {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
}
.payment-info h4 {
  margin-bottom: 0.5rem;
}
.payment-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
#place-order-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
#place-order-btn:disabled:hover {
  transform: none;
}

/* Client-side flash message styling */
.client-flash-message {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: relative;
  z-index: 9999;
  font-weight: 500;
}
.client-flash-message.success {
  background: linear-gradient(135deg, #28a745, #20c997);
}
.client-flash-message.info {
  background: linear-gradient(135deg, #17a2b8, #007bff);
}
.client-flash-message.error {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

/* Mobile Responsive Design */
@media (max-width: 992px) {
  .checkout-wrapper {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px; /* Give the menu a max width */
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  }
  .dark-mode .nav-links {
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .cart-preview {
    width: calc(100vw - 40px);
    max-width: 320px;
    left: auto;
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .services-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper,
  .zms-content {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    width: 45px;
    height: 45px;
    bottom: 15px;
    left: 15px;
  }

  .cart-preview {
    right: 15px;
    bottom: 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .stat {
    min-width: 100px;
  }
}
