/* ======== CSS VARIABLES ======== */
:root {
  /* Color System */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-rgb: 37, 99, 235;
  
  --secondary: #0d9488;
  --secondary-light: #14b8a6;
  --secondary-dark: #0f766e;
  --secondary-rgb: 13, 148, 136;
  
  --accent: #f97316;
  --accent-light: #fb923c;
  --accent-dark: #ea580c;
  --accent-rgb: 249, 115, 22;
  
  --success: #10b981;
  --success-rgb: 16, 185, 129;
  
  --warning: #f59e0b;
  --warning-rgb: 245, 158, 11;
  
  --error: #ef4444;
  --error-rgb: 239, 68, 68;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-rgb: 107, 114, 128;
  
  --white: #ffffff;
  --black: #000000;
  
  /* Typography */
  --font-sans: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  
  /* Spacing System (based on 8px) */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem;  /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem;    /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem;  /* 24px */
  --space-8: 2rem;    /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem;   /* 48px */
  --space-16: 4rem;   /* 64px */
  --space-20: 5rem;   /* 80px */
  --space-24: 6rem;   /* 96px */
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Box Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Z-index layers */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-max: 9999;
}

/* ======== CSS RESET ======== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--gray-800);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  background-color: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
}

p, ul, ol {
  overflow-wrap: break-word;
}

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

ul, ol {
  list-style: none;
}

/* ======== LAYOUT COMPONENTS ======== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* ======== TYPOGRAPHY ======== */
h1 {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

h5 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

h6 {
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-6);
  }
  
  h2 {
    font-size: 2rem;
    margin-bottom: var(--space-5);
  }
  
  h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
  }
  
  h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
  }

  p {
    font-size: 1.05rem;
  }
}

/* ======== HEADER & NAVIGATION ======== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) 0;
  z-index: var(--z-50);
  transition: var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .logo-img {
    max-height: 40px;
  }
}


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

.nav-menu li {
  margin-left: var(--space-6);
}

.nav-menu a {
  color: var(--gray-700);
  font-weight: 500;
  transition: var(--transition-fast);
  padding: var(--space-2) 0; /* Larger touch target */
  display: inline-block;
}

.nav-menu a:hover, 
.nav-menu a:focus, 
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  width: 2rem;
  height: 1.5rem;
  justify-content: space-between;
  cursor: pointer;
  z-index: var(--z-20);
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background-color: var(--gray-800);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 991px) {
  .header {
    padding: var(--space-4) 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    box-sizing: border-box;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: var(--z-10);
  }
  
  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-menu li {
    margin-left: 0;
    width: 80%;
    text-align: center;
  }
  
  .nav-menu a {
    display: block;
    padding: var(--space-3) 0;
    font-size: 1.25rem;
    width: 100%;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
  min-height: 44px; /* For touch targets */
  gap: var(--space-2);
}

.btn:focus {
  outline: 2px solid rgba(var(--primary-rgb), 0.5);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  min-height: 52px;
}

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

.gradient-btn:hover {
  background-color: var(--primary-dark);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

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

.btn-accent:hover {
  background-color: var(--accent-dark);
}

/* ======== HERO SECTION ======== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  max-height: 800px;
  background-color: var(--gray-800);
  /* background-image: url('../images/hero-bg.jpg'); */
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: center;
  padding-top: 76px; /* Header height */
}

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

.hero-content {
  position: relative;
  z-index: var(--z-10);
  width: 100%;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.25rem;
  margin-bottom: var(--space-4);
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
  color: var(--gray-200);
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }
  
  .hero-text p {
    font-size: 1.25rem;
  }
}

/* ======== SECTION TITLE ======== */
.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title.left-align {
  text-align: left;
}

.section-title h2 {
  font-size: 1.75rem;
  color: var(--gray-800);
  margin-bottom: var(--space-3);
}

.section-title p {
  font-size: 1.075rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray-600);
}

.section-title.left-align p {
  margin: 0;
}

@media (min-width: 768px) {
  .section-title h2 {
    font-size: 2.25rem;
  }
}

/* ======== FOOTER ======== */
.footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-info {
  max-width: 400px;
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  color: var(--white);
}

.footer-info p {
  color: var(--gray-400);
}

.social-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--gray-800);
  color: var(--white);
  transition: var(--transition-fast);
}

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

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.footer-link-column h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--white);
}

.footer-link-column ul li {
  margin-bottom: var(--space-2);
}

.footer-link-column ul li a {
  color: var(--gray-400);
  transition: var(--transition-fast);
  display: inline-block;
  padding: var(--space-1) 0;
}

.footer-link-column ul li a:hover {
  color: var(--primary-light);
  transform: translateX(3px);
}

.contact-info li {
  display: flex;
  align-items: center;
  color: var(--gray-400);
  margin-bottom: var(--space-3);
}

.contact-info li i {
  margin-right: var(--space-3);
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-6);
  text-align: center;
  color: var(--gray-500);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 2fr;
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ======== ANIMATION CLASSES ======== */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.6s ease forwards;
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: slideLeft 0.6s ease forwards;
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  animation: slideRight 0.6s ease forwards;
}

/* Animation with delay options */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@media (prefers-reduced-motion) {
  .fade-in, 
  .slide-up, 
  .slide-left, 
  .slide-right {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ======== UTILITY CLASSES ======== */
/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margin Utilities */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Flex Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Responsive Utilities */
@media (max-width: 480px) {
  .hidden-xs { display: none; }
}


@media (max-width: 767px) {
  .hidden-sm { display: none; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hidden-md { display: none; }
}

@media (min-width: 992px) {
  .hidden-lg { display: none; }
}

/* ======== HOME PAGE STYLES ======== */
/* Features Section */
.features-section {
  padding: var(--space-12) 0;
  background-color: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background-color: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.feature-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.feature-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Courses/Services Section */
.courses-section {
  padding: var(--space-12) 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.service-card {
  background-color: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  transition: var(--transition-normal);
}

.service-card:hover .icon-container {
  background-color: var(--primary);
  color: var(--white);
}

.icon-container i {
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: auto;
}

/* Feature Section */
.feature-section {
  padding: var(--space-12) 0;
  background-color: var(--gray-50);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-list {
  margin-top: var(--space-6);
}

.feature-item {
  margin-bottom: var(--space-6);
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.feature-item h3::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.feature-item p {
  color: var(--gray-600);
  padding-left: calc(16px + var(--space-2));
}

.feature-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.feature-image:hover img {
  transform: scale(1.05);
}

/* Testimonials Section */
.testimonials-section {
  padding: var(--space-12) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.testimonial-content {
  padding: var(--space-6);
  padding-bottom: var(--space-4);
  flex-grow: 1;
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: var(--space-4);
}

.testimonial-rating {
  color: var(--warning);
  margin-bottom: var(--space-4);
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding: 0 var(--space-6) var(--space-6);
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin-right: var(--space-4);
}

.author-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  padding: var(--space-12) 0;
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 150%, rgba(var(--primary-dark-rgb), 0.8) 0%, transparent 50%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  color: var(--white);
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: var(--space-8);
  color: var(--gray-200);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 768px) {
  .features-section,
  .courses-section,
  .feature-section,
  .testimonials-section,
  .cta-section {
    padding: var(--space-16) 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-content h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ======== ABOUT PAGE STYLES ======== */
/* Story Section */
.story-section {
  padding: var(--space-12) 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-text {
  margin-top: var(--space-6);
}

.story-text p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
}

.story-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.image-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background-color: var(--secondary);
  color: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.badge-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--white);
}

.badge-text {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--white);
}

/* Values Section */
.values-section {
  padding: var(--space-12) 0;
  background-color: var(--gray-50);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.value-card {
  background-color: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.value-icon {
  font-size: 2.25rem;
  color: var(--secondary);
  margin-bottom: var(--space-4);
}

.value-card h3 {
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.value-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Stats Section */
.stats-section {
  padding: var(--space-12) 0;
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  transform: translate(50%, -50%);
}

.stats-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  transform: translate(-50%, 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 1.125rem;
  color: var(--gray-200);
}

@media (min-width: 768px) {
  .story-section,
  .values-section,
  .stats-section {
    padding: var(--space-16) 0;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ======== CONTACT PAGE STYLES ======== */
/* Contact Info Section */
.contact-info-section {
  padding: var(--space-12) 0;
  background-color: var(--gray-50);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.contact-info-card {
  background-color: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
}

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

.contact-icon {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-4);
}

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

.contact-info-card h3 {
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.contact-info-card ul li {
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

/* Contact Form Section */
.contact-form-section {
  padding: var(--space-12) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-text {
  margin-top: var(--space-6);
}

.next-steps {
  background-color: var(--gray-50);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  margin-top: var(--space-6);
}

.next-steps h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-4);
}

.next-steps ol {
  list-style: none;
}

.next-steps li {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-4);
  color: var(--gray-600);
}

.next-steps li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--secondary);
  background: linear-gradient(135deg, #D1277F, #5B71B6);
  color: white;
  font-weight: 600;
  margin-right: var(--space-3);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-form-container {
  background-color: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: grid;
  gap: var(--space-4);
}

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

.form-group label {
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background-color: var(--gray-50);
  transition: var(--transition-fast);
  min-height: 44px; /* For touch targets */
}

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

.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(var(--primary-rgb), 0.2);
}

/* Map Section */
.map-section {
  padding: var(--space-12) 0;
  background-color: var(--gray-50);
}

.map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-8);
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  position: relative;
}

.map-placeholder img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-placeholder p {
  position: absolute;
  bottom: 20px;
  background-color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .contact-info-section,
  .contact-form-section,
  .map-section {
    padding: var(--space-16) 0;
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .contact-info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Responsive iframe container with 16:9 aspect ratio */
.responsive-iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.responsive-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Rest of your existing CSS stays the same */
.map-container {
  width: 100%;
  margin-top: var(--space-8);
  position: relative;
}

.map-placeholder {
  width: 100%;
  background-color: var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  position: relative;
}

.map-placeholder p {
  position: absolute;
  bottom: 20px;
  background-color: var(--white);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
  font-size: 0.9rem;
  max-width: 90%;
  text-align: center;
}

/* ======== PORTFOLIO PAGE STYLES ======== */
/* Portfolio Section */
.portfolio-section {
  padding: var(--space-12) 0;
}

/* Portfolio Filter */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12);
}

.filter-btn {
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  border: none;
  background-color: var(--gray-100);
  color: var(--gray-800);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 44px; /* For touch targets */
}

.filter-btn:hover {
  background-color: var(--gray-200);
}

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

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.project-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 500;
  transform: translateY(20px);
  transition: var(--transition-normal);
  min-height: 44px; /* For touch targets */
  display: flex;
  align-items: center;
}

.project-card:hover .project-link {
  transform: translateY(0);
}

.project-info {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: var(--space-2);
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.project-description {
  color: var(--gray-600);
  margin-bottom: auto;
}

/* Animation for filtering */
.project-card.hidden {
  display: none;
}

.project-card.visible {
  animation: fadeIn 0.5s ease forwards;
}

@media (min-width: 768px) {
  .portfolio-section {
    padding: var(--space-16) 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ======== SERVICES PAGE STYLES ======== */
/* Services Overview */
.services-overview {
  padding: var(--space-12) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

/* Service Detail */
.service-detail {
  padding: var(--space-12) 0;
}

.service-detail.bg-light {
  background-color: var(--gray-50);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.service-grid.reverse {
  direction: rtl;
}

.service-grid.reverse .service-content {
  direction: ltr;
}

.service-grid.reverse .service-image {
  direction: ltr;
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: rgba(var(--secondary-rgb), 0.1);
  color: var(--secondary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  transition: var(--transition-normal);
}

.service-content:hover .service-icon-container {
  background-color: var(--secondary);
  color: var(--white);
}

.service-icon-container i {
  font-size: 1.75rem;
}

.service-features {
  margin-top: var(--space-4);
}

.service-features li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--gray-600);
}

.service-features li::before {
  content: "•";
  color: var(--secondary);
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  line-height: 1;
  top: -0.25rem;
}

.service-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-image:hover img {
  transform: scale(1.05);
}

/* Process Section */
.process-section {
  padding: var(--space-12) 0;
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.05);
}

.process-section .section-title h2 {
  color: var(--white);
}

.process-section .section-title p {
  color: var(--gray-200);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
  position: relative;
  z-index: 1;
}

.process-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  height: 100%;
}

.process-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.process-number {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  color: var(--white);
}

.process-card p {
  color: var(--gray-200);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .services-overview,
  .service-detail,
  .process-section {
    padding: var(--space-16) 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}



.hero.internship-hero {
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  position: relative;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

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

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

@media (max-width: 768px) {
  .hero.internship-hero {
    padding: 4rem 0;
  }

  .hero .display-4 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }
}

.card.transition:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease-in-out;
}



/*gradient button */

.gradient-btn {
  background: linear-gradient(135deg, #D1277F, #5B71B6);
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.gradient-btn:hover {
  background: linear-gradient(135deg, #4e63a5, #b8206e);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}


/*gradient icon */

.gradient-icon {
  background: linear-gradient(135deg, #D1277F, #5B71B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-size: 2rem;
  transition: color 0.3s ease, -webkit-text-fill-color 0.3s ease;
}

.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
/*  border-radius: 50%;*/
  transition: background 0.3s ease;
}

/* Hover effect */
.icon-container:hover .gradient-icon {
  -webkit-text-fill-color: #ffffff;
  background: none;
}

.icon-container:hover {
  background: linear-gradient(135deg, #D1277F, #5B71B6);
}







/* Flash Message Container */
.alert {
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

/* Add smooth animation */
.alert.show {
  animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Custom Close Button (optional) */
.alert .btn-close {
  filter: invert(50%);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.alert .btn-close:hover {
  opacity: 1;
}
.alert + .alert {
  margin-top: 1rem;
}





.mobile-buttons {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  box-sizing: border-box;
  background-color: var(--gray-800);
  padding: var(--space-2);
  justify-content: space-around;
  z-index: 1000;
}

.mobile-buttons .btn {
  flex: 1;
  margin: 0 var(--space-0_5);
  color: var(--white);
  background-color: var(--primary-color);
}

@media (max-width: 768px) {
  .mobile-buttons {
    display: flex; /* Show on mobile devices */
  }
}



/* Internship Form  */


/* Popup overlay */
.popup-overlay {
  display: none;
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

/* Popup container */
.internship-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  padding: 25px 30px;
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden; /* prevent horizontal overflow */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box; /* important! */
}


.internship-popup::-webkit-scrollbar {
  width: 8px;
}

.internship-popup::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Show class */
.internship-popup.show,
.popup-overlay.show {
  display: block;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* Logo above title */
.popup-logo {
  display: block;
  margin: 0 auto 15px;
  max-width: 120px;
}

.internship-popup h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  color: #1c1c1c;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #f9f9f9;
  transition: border 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: #007bff;
  outline: none;
}

textarea {
  resize: vertical;
}

.submit-button {
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.submit-button:hover {
  background: linear-gradient(90deg, #0056b3, #003d80);
}

.info-tooltip {
  margin-left: 6px;
  color: #007bff;
  cursor: pointer;
  font-size: 16px;
}

.info-tooltip:hover {
  color: #0056b3;
}

