/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes line1 {
  0% {
    transform: translate(-100%, 0) rotate(-5deg) scale(0.9);
    border-radius: 50% 0 0 50%;
  }
  20% {
    transform: translate(-60%, 40px) rotate(10deg) scale(1.2);
    border-radius: 0 50% 50% 0;
  }
  40% {
    transform: translate(0%, -30px) rotate(-15deg) scale(0.8);
    border-radius: 50% 50% 0 0;
  }
  60% {
    transform: translate(40%, 50px) rotate(15deg) scale(1.3);
    border-radius: 0 0 50% 50%;
  }
  80% {
    transform: translate(60%, -40px) rotate(-10deg) scale(0.9);
    border-radius: 50% 0 50% 0;
  }
  100% {
    transform: translate(100%, 0) rotate(5deg) scale(1.1);
    border-radius: 0 50% 0 50%;
  }
}

@keyframes line2 {
  0% {
    transform: translate(100%, 0) rotate(5deg) scale(1.1);
    border-radius: 0 50% 50% 0;
  }
  20% {
    transform: translate(60%, -50px) rotate(-15deg) scale(0.8);
    border-radius: 50% 0 0 50%;
  }
  40% {
    transform: translate(0%, 40px) rotate(20deg) scale(1.3);
    border-radius: 0 0 50% 50%;
  }
  60% {
    transform: translate(-40%, -30px) rotate(-20deg) scale(0.9);
    border-radius: 50% 50% 0 0;
  }
  80% {
    transform: translate(-60%, 50px) rotate(15deg) scale(1.2);
    border-radius: 0 50% 50% 0;
  }
  100% {
    transform: translate(-100%, 0) rotate(-5deg) scale(0.9);
    border-radius: 50% 0 0 50%;
  }
}

@keyframes line3 {
  0% {
    transform: translate(-50%, -100%) rotate(45deg) scale(0.8);
    border-radius: 50% 0;
  }
  25% {
    transform: translate(-30%, -30%) rotate(60deg) scale(1.3);
    border-radius: 0 50%;
  }
  50% {
    transform: translate(0%, 0%) rotate(30deg) scale(0.9);
    border-radius: 50% 50%;
  }
  75% {
    transform: translate(30%, 30%) rotate(60deg) scale(1.2);
    border-radius: 0 50%;
  }
  100% {
    transform: translate(50%, 100%) rotate(45deg) scale(0.8);
    border-radius: 50% 0;
  }
}

@keyframes line4 {
  0% {
    transform: translate(50%, 100%) rotate(-45deg) scale(0.8);
    border-radius: 50% 0;
  }
  25% {
    transform: translate(30%, 30%) rotate(-60deg) scale(1.3);
    border-radius: 0 50%;
  }
  50% {
    transform: translate(0%, 0%) rotate(-30deg) scale(0.9);
    border-radius: 50% 50%;
  }
  75% {
    transform: translate(-30%, -30%) rotate(-60deg) scale(1.2);
    border-radius: 0 50%;
  }
  100% {
    transform: translate(-50%, -100%) rotate(-45deg) scale(0.8);
    border-radius: 50% 0;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--light), #ffffff);
  overflow: hidden;
}

.line-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.line {
  position: absolute;
  height: 8px;
  width: 200%;
  box-shadow: 0 0 20px rgba(0, 102, 204, 0.4);
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: brightness(1.2) contrast(1.2);
  will-change: transform, border-radius;
}

.line:nth-child(1) {
  top: 15%;
  height: 12px;
  animation: line1 12s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  opacity: 0.7;
  background: linear-gradient(90deg, 
    transparent 0%,
    #4facfe 20%,
    #00f2fe 40%,
    #00f2fe 60%,
    #4facfe 80%,
    transparent 100%
  );
}

.line:nth-child(2) {
  top: 35%;
  height: 10px;
  animation: line2 15s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  opacity: 0.6;
  background: linear-gradient(90deg, 
    transparent 0%,
    #f093fb 20%,
    #f5576c 40%,
    #f5576c 60%,
    #f093fb 80%,
    transparent 100%
  );
}

.line:nth-child(3) {
  top: 55%;
  height: 15px;
  animation: line1 25s ease-in-out infinite;
  opacity: 0.5;
  background: linear-gradient(90deg, 
    transparent 0%,
    #43e97b 20%,
    #38f9d7 40%,
    #38f9d7 60%,
    #43e97b 80%,
    transparent 100%
  );
}

.line:nth-child(4) {
  top: 75%;
  height: 10px;
  animation: line2 30s ease-in-out infinite;
  opacity: 0.5;
  background: linear-gradient(90deg, 
    transparent 0%,
    #fa709a 20%,
    #fee140 40%,
    #fee140 60%,
    #fa709a 80%,
    transparent 100%
  );
}

.line:nth-child(5) {
  top: 25%;
  left: -50%;
  height: 12px;
  animation: line3 22s ease-in-out infinite;
  opacity: 0.6;
  background: linear-gradient(45deg, 
    transparent 0%,
    #0ba360 20%,
    #3cba92 40%,
    #3cba92 60%,
    #0ba360 80%,
    transparent 100%
  );
}

.line:nth-child(6) {
  top: 65%;
  left: 50%;
  height: 14px;
  animation: line4 28s ease-in-out infinite;
  opacity: 0.5;
  background: linear-gradient(-45deg, 
    transparent 0%,
    #ff9a9e 20%,
    #fad0c4 40%,
    #fad0c4 60%,
    #ff9a9e 80%,
    transparent 100%
  );
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--light) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

:root {
  --primary: #2563eb;
  --secondary: #1e40af;
  --accent: #3b82f6;
  --warning: #f59e0b;
  --success: #4caf50;
  --error: #f44336;
  --dark: #1f2937;
  --light: #f8fafc;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --shadow: rgba(37, 99, 235, 0.1);
  --shadow-hover: rgba(37, 99, 235, 0.2);
  --shadow-focus: rgba(37, 99, 235, 0.25);
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-alt: linear-gradient(135deg, var(--secondary), var(--warning));
  --gradient-rainbow: linear-gradient(135deg, #2563eb 0%, #3b82f6 25%, #1e40af 50%, #f59e0b 75%, #4caf50 100%);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --letter-spacing: -0.01em;
  --z-index-dropdown: 1000;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --dark: #ffffff;
    --white: #1a1a1a;
    --light: #2d3748;
    --gray-100: #2d3748;
    --gray-200: #4a5568;
    --gray-300: #718096;
    --shadow: rgba(255, 255, 255, 0.1);
    --shadow-hover: rgba(255, 255, 255, 0.2);
  }
}

/* Enhanced focus styles for accessibility */
*:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--shadow-focus);
}

*:focus:not(:focus-visible) {
  box-shadow: none;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--shadow-focus);
}

body {
  font-family: var(--font-family-primary);
  line-height: var(--line-height-normal);
  color: var(--dark);
  overflow-x: hidden;
  background-color: #ffffff;
  letter-spacing: var(--letter-spacing);
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Improved scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Enhanced selection styling */
::selection {
  background: rgba(0, 102, 204, 0.2);
  color: var(--dark);
}

::-moz-selection {
  background: rgba(0, 102, 204, 0.2);
  color: var(--dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #2563eb !important;
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(37, 99, 235, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff !important;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  animation: logoBounce 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  transform-origin: center;
  animation: logoWiggle 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  filter: drop-shadow(0 0 8px rgba(0, 102, 204, 0.3));
}

.logo-img:hover {
  animation: logoHover 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes logoBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes logoWiggle {
  0%, 100% {
    transform: rotate(-5deg) scale(1);
  }
  25% {
    transform: rotate(5deg) scale(1.05);
  }
  50% {
    transform: rotate(-3deg) scale(1.1);
  }
  75% {
    transform: rotate(3deg) scale(1.05);
  }
}

@keyframes logoHover {
  0% {
    transform: scale(1) rotate(0);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
  100% {
    transform: scale(1.1) rotate(0);
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #ffffff !important;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f8fafc !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown .nav-link i {
  margin-left: 5px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .nav-link i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #374151;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--gray-100);
  color: #1f2937;
  padding-left: 25px;
}

.dropdown-menu a::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff !important;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  filter: blur(2px);
}

.shape1 {
  top: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: var(--primary);
  animation: morphShape 20s ease-in-out infinite;
}

.shape2 {
  bottom: 15%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: var(--secondary);
  animation: morphShape 15s ease-in-out infinite reverse;
}

.shape3 {
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: var(--accent);
  opacity: 0.03;
  animation: morphShape 25s ease-in-out infinite;
}

.shape4 {
  bottom: 30%;
  left: 20%;
  width: 250px;
  height: 250px;
  background: var(--warning);
  animation: morphShape 18s ease-in-out infinite reverse;
}

.animated-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--primary) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.05;
  animation: moveBackground 20s linear infinite;
}

@keyframes morphShape {
  0%, 100% {
    border-radius: 50%;
    transform: translate(0, 0);
  }
  25% {
    border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%;
    transform: translate(20px, -20px);
  }
  50% {
    border-radius: 60% 40% 40% 60% / 60% 40% 60% 40%;
    transform: translate(-20px, 20px);
  }
  75% {
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    transform: translate(-20px, -20px);
  }
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 30px;
  }
}

@keyframes float {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg); 
  }
  25% { 
    transform: translate(20px, -20px) rotate(5deg); 
  }
  50% { 
    transform: translate(-10px, 20px) rotate(-5deg); 
  }
  75% { 
    transform: translate(-20px, -10px) rotate(3deg); 
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.hero-copy {
  position: relative;
}

.hero-copy h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
}

.hero-copy h1::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -30px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

.text-accent {
  color: var(--primary);
  margin-top: 0.5rem;
  display: block;
  font-size: 0.9em;
}

.hero-copy p {
  font-size: 1.2rem;
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 90%;
}

/* Animation classes */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
}

.slide-up-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards 0.3s;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.6s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes textGlow {
  from { filter: drop-shadow(0 0 10px rgba(254, 202, 87, 0.5)); }
  to { filter: drop-shadow(0 0 20px rgba(254, 202, 87, 0.8)); }
}

.hero-copy p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.hero-actions .btn {
  position: relative;
  overflow: hidden;
}

.hero-actions .btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0);
  transition: transform 0.6s ease-out;
}

.hero-actions .btn:hover::after {
  transform: scale(1);
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  min-height: 44px; /* Accessibility - minimum touch target */
  
  /* Enhanced hover effects */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  transition: var(--transition-fast);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: button-spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button variants */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  min-height: 36px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 52px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn-primary::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.6s;
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px var(--shadow-focus), 0 4px 15px rgba(0, 102, 204, 0.3);
}

@keyframes submitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes submitSuccess {
  0% {
    transform: scale(1) translateY(-2px);
  }
  50% {
    transform: scale(0.9) translateY(-2px);
  }
  100% {
    transform: scale(1) translateY(-2px);
  }
}

.btn-primary.submitting {
  pointer-events: none;
  opacity: 0.8;
}

.btn-primary.submitting i {
  display: inline-block;
  animation: submitSpin 1s linear infinite;
}

.btn-primary.success {
  background: var(--success, #28a745);
  animation: submitSuccess 0.5s ease forwards;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-primary.success i:before {
  content: "\f00c";
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-outline:hover::before {
  left: 0;
}

.btn-outline:hover {
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

/* Additional button variants */
.btn-secondary {
  background: var(--gradient-alt);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 102, 51, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 102, 51, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: none;
  text-transform: none;
  font-weight: var(--font-weight-medium);
}

.btn-ghost:hover {
  background: rgba(0, 102, 204, 0.1);
  transform: none;
  box-shadow: none;
}

.btn-rainbow {
  background: var(--gradient-rainbow);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  animation: rainbow-pulse 3s ease-in-out infinite;
}

@keyframes rainbow-pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
  }
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  position: relative;
  width: 600px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: containerFloat 6s ease-in-out infinite;
}

.image-frame {
  position: relative;
  width: 500px;
  height: 660px;
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1);
  transition: all 0.6s ease;
  filter: contrast(1.05) brightness(1.02);
  border-radius: 30px;
}

.hero-image:hover {
  transform: scale(1.02);
  filter: contrast(1.1) brightness(1.05);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-circle,
.float-square,
.float-triangle,
.float-plus {
  position: absolute;
  opacity: 0.6;
}

.float-circle {
  width: 60px;
  height: 60px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  top: 10%;
  right: 5%;
  animation: floatElement 8s ease-in-out infinite;
}

.float-square {
  width: 40px;
  height: 40px;
  border: 3px solid var(--secondary);
  bottom: 15%;
  left: 5%;
  transform: rotate(45deg);
  animation: floatElement 7s ease-in-out infinite 1s;
}

.float-triangle {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 40px solid var(--accent);
  top: 20%;
  left: 10%;
  animation: floatElement 6s ease-in-out infinite 0.5s;
}

.float-plus {
  font-size: 40px;
  color: var(--primary);
  bottom: 25%;
  right: 10%;
  animation: floatElement 9s ease-in-out infinite 1.5s;
  font-weight: 300;
}



@keyframes floatElement {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(5deg);
  }
  50% {
    transform: translate(0, -20px) rotate(0deg);
  }
  75% {
    transform: translate(-10px, -10px) rotate(-5deg);
  }
}

.kid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.5s ease;
}

.image-wrapper:hover .kid {
  transform: scale(1);
}

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 3rem;
  opacity: 0.8;
}

/* Curriculum Section */
.curriculum {
  background: var(--light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(0, 102, 204, 0.1);
}

.glow {
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.1);
}

.glow:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 102, 204, 0.2);
}

.glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.glow:hover::before {
  transform: scaleX(1);
}

.card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.age {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-body p {
  color: #666;
  margin-bottom: 1rem;
}

.bullets {
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Offerings Section */
.offerings {
  background: var(--white);
}

/* Gallery Section */
.gallery-section {
  background: var(--light);
  padding: 6rem 0;
  overflow: hidden;
}

.gallery-container {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0;
}

.gallery-section .section-title {
  margin-bottom: 1rem;
  color: var(--dark);
}

.gallery-section .section-subtitle {
  margin-bottom: 4rem;
  color: var(--dark);
  opacity: 0.8;
}

.infinite-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  border-radius: 20px;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  animation: infiniteScroll 25s linear infinite;
  width: calc(280px * 8 + 1.5rem * 7);
  padding: 0 1rem;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-item {
  position: relative;
  width: 280px;
  height: 210px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.gallery-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  transform-origin: center;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  padding: 3rem 2rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  backdrop-filter: blur(3px);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Handle image loading errors */
.gallery-item.image-error {
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.image-error::before {
  content: "📷";
  font-size: 3rem;
  opacity: 0.3;
}

.gallery-item.image-error .gallery-overlay {
  transform: translateY(0);
  background: rgba(0, 0, 0, 0.6);
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-280px * 4 - 1.5rem * 4));
  }
}

/* Tablet-specific animation */
@media (max-width: 1024px) and (min-width: 769px) {
  @keyframes infiniteScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-240px * 4 - 1.2rem * 4));
    }
  }
}

/* Mobile-specific animation */
@media (max-width: 768px) {
  @keyframes infiniteScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-200px * 4 - 1rem * 4));
    }
  }
}

/* Responsive adjustments for gallery */
@media (max-width: 1024px) and (min-width: 769px) {
  .infinite-gallery {
    max-width: 1000px;
  }
  
  .gallery-item {
    width: 240px;
    height: 180px;
  }
  
  .gallery-track {
    gap: 1.2rem;
    animation: infiniteScroll 20s linear infinite;
    width: calc(240px * 8 + 1.2rem * 7);
  }
}

@media (max-width: 768px) {
  .infinite-gallery {
    max-width: 100%;
    padding: 0.5rem 0;
  }
  
  .gallery-item {
    width: 200px;
    height: 150px;
  }
  
  .gallery-track {
    gap: 1rem;
    animation: infiniteScroll 18s linear infinite;
    width: calc(200px * 8 + 1rem * 7);
  }
  
  .gallery-overlay {
    padding: 2rem 1.5rem 1rem;
  }
  
  .gallery-overlay h4 {
    font-size: 1rem;
  }
  
  .gallery-overlay p {
    font-size: 0.8rem;
  }
  
  .gallery-section {
    padding: 3rem 0;
  }
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.offer {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.offer-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.offer h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.offer p {
  color: #666;
  line-height: 1.6;
}

/* Feedback Section */
.feedback {
  background: var(--light);
  padding: 80px 0;
}

.feedback .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.feedback-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 173, 30, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.feedback-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.feedback-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  border-radius: 20px 20px 0 0;
}

.feedback-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.stars i {
  color: #ffd700;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feedback-content p {
  color: #666;
  line-height: 1.8;
  font-style: normal;
  margin-bottom: auto;
  text-align: left;
  font-size: 1.1rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.feedback-content p::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: serif;
}

.feedback-content p::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  bottom: 4rem;
  right: 1.5rem;
  font-family: serif;
}

.feedback-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 173, 30, 0.2);
  margin-top: auto;
  flex-shrink: 0;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

  .author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
  }

  .author-info span {
    font-size: 0.9rem;
    color: #666;
  }

  /* Enhanced feedback section for desktop */
  @media (min-width: 1200px) {
    .feedback-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
    }
    
    .feedback-card {
      padding: 2rem;
    }
  }

  @media (min-width: 992px) and (max-width: 1199px) {
    .feedback-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
    }
    
    .feedback-card {
      padding: 1.8rem;
    }
  }

  @media (min-width: 768px) and (max-width: 991px) {
    .feedback-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }
  }

  @media (max-width: 767px) {
    .feedback-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .feedback-card {
      padding: 2rem;
      margin: 0 auto;
      max-width: 500px;
      min-height: 300px;
    }
    
    .feedback-content p::before,
    .feedback-content p::after {
      font-size: 2rem;
    }
    
    .feedback-content p::before {
      top: 0.5rem;
      left: 1rem;
    }
    
    .feedback-content p::after {
      bottom: 3rem;
      right: 1rem;
    }
  }/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3,
.footer h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer p {
  color: var(--white);
  margin-bottom: 1rem;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.socials a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.link-list {
  list-style: none;
}

.link-list li {
  margin-bottom: 0.5rem;
}

.link-list a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-list a:hover {
  color: var(--secondary);
}

.link-list i {
  margin-right: 0.5rem;
  color: var(--primary);
}

.copy {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: var(--white);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Form Styles */
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  background: var(--light);
  padding: 2rem;
  border-radius: 20px;
}

.contact-info h3 {
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.contact-info .info-item i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.map-container {
  margin-top: 3rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Enhanced Responsive Design */

/* Desktop improvements for larger screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .hero-copy h1 {
    font-size: 4.5rem;
    line-height: 1.1;
  }
  
  .program-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* Large Desktop improvements for extra wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-inner {
    max-width: 1400px;
    gap: 6rem;
  }
  
  .hero-copy h1 {
    font-size: 5rem;
  }
  
  .program-grid,
  .cards-grid,
  .features-grid {
    max-width: 1400px;
    gap: 4rem;
  }
  
  .team-grid {
    max-width: 1400px;
    gap: 3rem;
  }
}

/* Tablet Landscape (1024px and down, but above 768px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    max-width: 100%;
    padding: 0 30px;
  }
  
  .hero {
    min-height: 80vh;
    padding-top: 100px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.3;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

/* Tablet Portrait (768px and down) */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    z-index: 999;
  }

  .logo-img {
    height: 40px;
    max-width: 160px;
  }

  .nav-menu.active {
    left: 0;
  }

  .container {
    padding: 0 20px;
  }
  
  .hero {
    min-height: 70vh;
    padding-top: 90px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .section-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card, .offer {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .page-header {
    padding: 6rem 0 3rem;
  }
  
  .page-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }

  /* Page Header Responsive Styles */
  .page-title {
    font-size: 2.5rem;
  }

  .contact-hero h1 {
    font-size: 2.5rem;
  }

  /* Mobile dropdown styles */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--light);
    margin-top: 10px;
    border-radius: 5px;
  }

  .dropdown .nav-link i {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .kid {
    width: 300px;
    height: 300px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Old feedback tablet styles replaced by new responsive grid above */
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .logo-img {
    height: 35px;
    max-width: 140px;
  }
  
  .navbar {
    padding: 0.8rem 0;
  }
  
  .nav-menu {
    top: 60px;
    padding: 1.5rem 0;
  }
  
  .nav-link {
    padding: 0.8rem 0;
    font-size: 1.1rem;
  }
  
  .hero {
    min-height: 60vh;
    padding-top: 80px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }
  
  .grid {
    gap: 1rem;
  }
  
  .card, .offer {
    padding: 1.2rem;
    border-radius: 15px;
  }
  
  .card h3, .offer h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .card p, .offer p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .page-header {
    padding: 5rem 0 2.5rem;
  }
  
  .page-title {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }
  
  .page-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Enhanced touch targets for mobile */
  .btn, .nav-link, a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improved spacing for mobile forms */
  .form-group {
    margin-bottom: 1.2rem;
  }
  
  .form-control {
    padding: 0.9rem;
    font-size: 1rem;
    border-radius: 8px;
  }
  
  /* Mobile-optimized footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-grid {
    gap: 1.5rem;
  }
  
  .footer h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .footer p, .footer a {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .kid {
    width: 250px;
    height: 250px;
  }

  /* Old feedback mobile styles replaced by new responsive grid above */
}

/* Additional animations for enhanced visual experience */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

/* Scroll animations */
.js .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.js .animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback for when JavaScript is disabled or fails to load */
.no-js .animate-on-scroll,
noscript .animate-on-scroll,
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure content is visible after a delay if JavaScript doesn't work */
.js .animate-on-scroll {
  animation: fallback-show 0.1s ease 3s forwards;
}

@keyframes fallback-show {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Header Styles - Updated Blue Theme */
.page-header {
  background: transparent !important;
  padding: 8rem 0 4rem;
  text-align: center;
  color: var(--dark) !important;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Our Story Section */
.our-story {
  background: var(--white);
  padding: 80px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* About page image containers */
.about-container {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 102, 204, 0.15);
  background: var(--white);
  z-index: 2;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #666;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--light);
  border-radius: 15px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.story-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow);
}

/* Mission & Vision */
.mission-vision {
  background: var(--light);
  padding: 80px 0;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.mv-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
}

.mv-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.mv-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.mv-card p {
  color: #666;
  line-height: 1.7;
}

/* Our Values */
.our-values {
  background: var(--white);
  padding: 80px 0;
}

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

.value-item {
  text-align: center;
  padding: 2rem;
  background: var(--light);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.value-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.value-item p {
  color: #666;
  line-height: 1.6;
}

/* Our Team */
.our-team {
  background: var(--light);
  padding: 80px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-member {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
}

.member-photo {
  height: 250px;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  padding: 2rem;
}

.member-info h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.member-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.member-info p {
  color: #666;
  line-height: 1.6;
}

/* Why Choose Us */
.why-choose {
  background: var(--white);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: var(--light);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
  background: var(--white);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.feature-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature-item p {
  color: #666;
  line-height: 1.6;
}

/* Programs Page Styles */
.program-detail {
  background: var(--white);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.program-card {
  background: var(--light);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-hover);
}

.program-header {
  background: var(--gradient);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.program-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.program-age {
  font-size: 1rem;
  opacity: 0.9;
}

.program-content {
  padding: 2rem;
}

.program-features {
  list-style: none;
  margin-bottom: 2rem;
}

.program-features li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: #666;
  line-height: 1.6;
}

.program-features li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--warning);
  font-size: 1.2rem;
}

.program-highlights {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  margin-top: 1.5rem;
}

.program-highlights h5 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.highlight-list {
  list-style: none;
}

.highlight-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.highlight-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Contact Page Styles */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .story-grid,
  .mv-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .story-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .values-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .program-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 6rem 0 3rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .mv-card,
  .value-item,
  .feature-item {
    padding: 1.5rem;
  }
}

/* Contact Page Styles */
.contact-hero {
  background: var(--gradient);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
}

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

.contact-hero-content {
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.contact-main {
  padding: 60px 0;
  background: #f8f9fa;
  margin: 0;
  width: 100%;
  min-height: 100vh;
}

.contact-main .container {
  background: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.8rem;
  box-shadow: none;
  border: 1px solid #e9ecef;
  transition: none;
  height: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

/* Static styling for Visit Our School section */
.contact-info {
  min-height: 350px;
}

.contact-info .contact-card {
  transition: none;
  transform: none;
  min-height: 350px;
  padding: 1.5rem;
  background: #f8f9fa;
  box-shadow: none;
  border: 1px solid #e9ecef;
}

.contact-info .contact-details {
  gap: 0.8rem;
}

.contact-info .address-block {
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.contact-info .contact-item {
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.contact-info .contact-item i {
  padding: 0.5rem;
  font-size: 1rem;
}

/* Remove all hover effects from contact-info section */
.contact-info .contact-card:hover {
  transform: none;
  box-shadow: none;
  background: #f8f9fa;
}

/* Remove hover effects from contact form section */
.contact-form-section .contact-card {
  transition: none;
}

.contact-form-section .contact-card:hover {
  transform: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f0f0f0;
}

.contact-card-header i {
  font-size: 1.3rem;
  color: var(--primary);
  background: rgba(255, 107, 107, 0.1);
  padding: 0.6rem;
  border-radius: 10px;
}

.contact-card-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: flex-start;
}

.address-block {
  background: transparent;
  padding: 1.2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.address-block h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.address-block p {
  color: #666;
  line-height: 1.5;
  margin: 0;
  font-size: 0.9rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.contact-item i {
  font-size: 1.1rem;
  color: var(--secondary);
  background: rgba(78, 205, 196, 0.1);
  padding: 0.6rem;
  border-radius: 8px;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.contact-item div {
  flex: 1;
}

.contact-item strong {
  display: block;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.contact-item p {
  color: #666;
  margin: 0.2rem 0;
  line-height: 1.5;
  font-size: 0.85rem;
}

.form-description {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group label {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  width: 100%;
  box-sizing: border-box;
}

/* Full-width form groups (outside of form-row) */
.contact-form > .form-group {
  width: 100%;
  margin-bottom: 1.2rem;
}

.contact-form > .form-group input,
.contact-form > .form-group select,
.contact-form > .form-group textarea {
  width: 100%;
  box-sizing: border-box;
}

.checkbox-group {
  margin: 1rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkmark {
  position: relative;
}

.btn-full {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Enhanced form security styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.character-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

.character-count.warning {
  color: var(--warning);
}

.character-count.error {
  color: var(--error);
}

.security-notice {
  background: linear-gradient(135deg, #e8f5e8, #d4edda);
  color: var(--success);
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.security-notice i {
  margin-right: 0.5rem;
  color: var(--success);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary);
  transition: all 0.3s ease;
}

.checkbox-label a:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* Form validation indicators */
.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1) !important;
}

.form-group::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-group.valid::after {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  opacity: 1;
  background: none;
  width: auto;
  height: auto;
}

.form-group.error::after {
  content: '✗';
  color: var(--error);
  font-weight: bold;
  opacity: 1;
  background: none;
  width: auto;
  height: auto;
}

/* Submit button states */
#submitButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--gray-400) !important;
  transform: none !important;
}

#submitButton.submitting {
  background: linear-gradient(135deg, #6c757d, #495057) !important;
  pointer-events: none;
}

#submitButton.submitting i {
  animation: spin 1s linear infinite;
}

#submitButton.success {
  background: var(--success) !important;
  animation: pulse 0.5s ease-in-out;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Enhanced focus styles for accessibility */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

/* Form loading overlay */
.form-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.form-loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-300);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Honeypot field styles (ensure it's completely hidden) */
input[name="website_url"],
label[for="website_url"] {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
}

/* Rate limiting message styles */
.rate-limit-notice {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  color: var(--dark);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
  border: 1px solid var(--gray-300);
  font-weight: 500;
}

/* Progressive enhancement for JavaScript disabled */
.no-js .security-notice {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.no-js .security-notice::before {
  content: "JavaScript is disabled. Some security features may not work properly. ";
}

.btn-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--gradient);
  color: var(--white);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  margin-top: 1rem;
}

.btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  color: var(--white);
}

.card-action {
  margin-top: 1rem;
  text-align: center;
}

/* Program Detail Pages Styles */
.program-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}

.program-image .featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.program-description h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.program-description .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.program-description p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

.schedule-item {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease;
}

.schedule-item:hover {
  transform: translateY(-5px);
}

.schedule-item .time {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.schedule-item .activity h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.schedule-item .activity p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.outcome-category {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.outcome-category:hover {
  transform: translateY(-5px);
}

.outcome-category h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

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

.info-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.info-card h3 i {
  color: var(--primary);
}

.info-card p {
  color: #666;
  line-height: 1.6;
}

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

.area-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.area-card:hover {
  transform: translateY(-5px);
}

.area-header {
  background: var(--gradient);
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.area-header i {
  font-size: 1.5rem;
}

.area-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.area-content {
  padding: 1.5rem;
}

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

.activity-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
}

.activity-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.activity-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.activity-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

.activity-card p {
  color: #666;
  line-height: 1.6;
}

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

.academic-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.academic-card:hover {
  transform: translateY(-5px);
}

.academic-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.academic-header i {
  font-size: 1.5rem;
}

.academic-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.academic-content {
  padding: 1.5rem;
}

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

.readiness-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.readiness-card:hover {
  transform: translateY(-5px);
}

.readiness-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.readiness-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.readiness-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* Responsive Design for Program Detail Pages */
@media (max-width: 768px) {
  .program-overview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .program-image .featured-image {
    height: 300px;
  }
  
  .schedule-grid,
  .outcomes-grid,
  .info-grid,
  .curriculum-areas,
  .activities-grid,
  .academic-areas,
  .readiness-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .program-description h2 {
    font-size: 1.8rem;
  }
  
  .program-description .lead {
    font-size: 1.1rem;
  }
}

.map-section {
  padding: 80px 0 0;
  background: white;
}

.map-header {
  text-align: center;
  margin-bottom: 3rem;
}

.map-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.map-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
  .contact-hero {
    padding: 100px 0 60px;
  }
  
  .contact-hero h1 {
    font-size: 2.2rem;
  }
  
  .contact-main {
    padding: 40px 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 95%;
  }
  
  .contact-card {
    padding: 1.5rem;
    min-height: 400px;
  }
  
  /* Give contact form more space on tablet */
  .contact-form-section .contact-card {
    max-width: 100%;
  }
  
  .contact-info .contact-card {
    min-height: 280px;
    padding: 1.2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .map-header h2 {
    font-size: 2rem;
  }
}

/* Team Member Styles */
.team-member {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 102, 204, 0.1);
  background: var(--white);
  z-index: 2;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-photo {
  position: relative;
  overflow: hidden;
}



.float-circle,
.float-square,
.float-triangle,
.float-plus {
  position: absolute;
  opacity: 0.6;
}

.float-circle {
  width: 40px;
  height: 40px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  top: 10%;
  right: 5%;
  animation: floatElement 8s ease-in-out infinite;
}

.float-square {
  width: 30px;
  height: 30px;
  border: 3px solid var(--secondary);
  bottom: 15%;
  left: 5%;
  transform: rotate(45deg);
  animation: floatElement 7s ease-in-out infinite 1s;
}

.float-triangle {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 30px solid var(--accent);
  top: 20%;
  left: 10%;
  animation: floatElement 6s ease-in-out infinite 0.5s;
}

.float-plus {
  font-size: 30px;
  color: var(--primary);
  bottom: 25%;
  right: 10%;
  animation: floatElement 9s ease-in-out infinite 1.5s;
  font-weight: 300;
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
    border-radius: 15px 15px 0 0;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 80px 0 40px;
  }
  
  .contact-hero h1 {
    font-size: 2rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-card-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .address-block,
  .contact-item {
    padding: 1rem;
  }
  
  .map-header h2 {
    font-size: 1.8rem;
  }
}

/* Enhanced Mobile & Tablet Layout Improvements */

/* Tablet-specific enhancements */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
    align-items: center;
  }
  
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Enhanced tablet portrait styles */
@media (max-width: 768px) and (min-width: 481px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .program-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .program-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Tablet-optimized images */
  .hero-image img {
    max-width: 100%;
    height: auto;
  }
  
  .about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
  }
}

/* Enhanced mobile-specific improvements */
@media (max-width: 480px) {
  /* Mobile navigation improvements */
  .nav-menu {
    background: linear-gradient(135deg, var(--white), var(--light));
    border-radius: 0 0 20px 20px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  
  .nav-menu li {
    border-bottom: 1px solid var(--gray-200);
    margin: 0;
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .dropdown-menu {
    background: var(--light);
    margin-top: 0;
    padding: 0.5rem 0;
  }
  
  .dropdown-menu a {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
  
  /* Mobile hero optimizations */
  .hero-image {
    order: -1;
    margin-bottom: 1rem;
  }
  
  .hero-image img {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  
  /* Mobile cards and content */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    text-align: center;
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  /* Mobile forms */
  .contact-form {
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  .contact-info .contact-card {
    min-height: 250px;
    padding: 1rem;
  }
  
  .contact-info .contact-details {
    gap: 0.6rem;
  }
  
  .contact-info .address-block {
    padding: 0.8rem;
  }
  
  .contact-info .contact-item {
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }
  
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid var(--gray-300);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
  }
  
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 173, 30, 0.1);
  }
  
  /* Mobile program cards */
  .program-card {
    padding: 1.5rem;
    text-align: center;
  }
  
  .program-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .program-card .age-range {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
  }
  
  .program-card .features {
    text-align: left;
    margin: 1rem 0;
  }
  
  .program-card .features li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  /* Mobile gallery optimizations */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item {
    border-radius: 10px;
    overflow: hidden;
  }
  
  .gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
  }
  
  /* Mobile footer */
  .footer {
    text-align: center;
  }
  
  .footer-brand {
    margin-bottom: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-social {
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}