/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Blue and White Theme */
  --primary-color: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary-color: #0284c7;
  --accent-color: #0ea5e9;
  --accent-dark: #0369a1;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-light: #64748b;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --light-blue: #eff6ff;
  --border-color: #e2e8f0;
  --dark-bg: #0f172a;
  --shadow: 0 10px 25px rgba(30, 64, 175, 0.1);
  --shadow-hover: 0 20px 40px rgba(30, 64, 175, 0.15);
  --shadow-dark: 0 25px 50px rgba(15, 23, 42, 0.25);
  --gradient: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
  --gradient-alt: linear-gradient(135deg, #0ea5e9 0%, #1e40af 100%);
  --gradient-light: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --border-radius: 16px;
  --border-radius-sm: 12px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Inter", sans-serif;
  --font-heading: "Playfair Display", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  font-family: var(--font-secondary);
}

.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  font-family: var(--font-secondary);
  min-height: 48px;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
  left: 100%;
}

.btn:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow);
  border: 2px solid #dbdbdb;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.05);
  border-color: rgb(0 180 255);
}

.btn-primary:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
  border-color: var(--white);
  box-shadow: var(--shadow);
  text-shadow: none;
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1.25rem 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(30, 64, 175, 0.08);
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.75rem 0;
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.12);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.625rem;
  color: #653d25;
  transition: var(--transition);
  text-transform: uppercase;
  font-family: "Poppins";
}

.nav-logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-family: var(--font-secondary);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(99, 102, 241, 0.1);
}

.bar {
  width: 28px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.9) 0%,
    rgba(14, 165, 233, 0.85) 50%,
    rgba(30, 64, 175, 0.9) 100%
  );
  z-index: 2;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    transparent 20%,
    rgba(15, 23, 42, 0.1) 70%
  );
  animation: pulseOverlay 4s ease-in-out infinite;
}

@keyframes pulseOverlay {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.1;
  }
}

.hero-content {
  z-index: 3;
  max-width: 900px;
  padding: 0 24px;
  position: relative;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hero-badge i {
  color: #fbbf24;
}

.hero .highlight {
  -webkit-text-fill-color: #e6ff82;
  background-clip: text;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(30, 64, 175, 0.3);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-style: italic;
  opacity: 0.98;
  font-family: var(--font-heading);
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-family: var(--font-secondary);
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  gap: 0.75rem;
  min-width: 200px;
  border-radius: 16px;
  min-height: 56px;
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.2);
}

.btn-large:hover {
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

.btn-large span {
  display: flex;
  align-items: center;
  font-weight: 700;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-item i {
  color: #fbbf24;
}

.hero-stats {
  transform: translateX(-50%);
  display: flex;
  gap: 4rem;
  z-index: 3;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.stat-info {
  text-align: left;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-secondary);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* About Section */
.about {
  background: var(--light-blue);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.values {
  margin-top: 2rem;
}

.values h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-weight: 600;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* Services Section */
.services {
  background: var(--white);
}

/* Service Search Bar */
.service-search {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.search-container {
  width: 100%;
  max-width: 800px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 60px;
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.1);
  transition: var(--transition);
  overflow: hidden;
}

.search-input-wrapper:hover {
  border-color: var(--primary-light);
  box-shadow: 0 12px 40px rgba(30, 64, 175, 0.15);
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 12px 40px rgba(30, 64, 175, 0.2);
}

.search-icon {
  position: absolute;
  left: 24px;
  color: var(--text-light);
  font-size: 1.125rem;
  z-index: 2;
  transition: var(--transition);
}

.search-input-wrapper:focus-within .search-icon {
  color: var(--primary-color);
}

#serviceSearchInput {
  width: 100%;
  padding: 20px 60px 20px 60px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-primary);
}

#serviceSearchInput::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.clear-search {
  position: absolute;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.clear-search:hover {
  background: var(--light-gray);
  color: var(--text-primary);
}

.search-results {
  position: static;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 12px 40px rgba(30, 64, 175, 0.15);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-item:hover {
  background: var(--light-blue);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.search-result-content {
  flex: 1;
}

.search-result-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.search-result-category {
  font-size: 0.875rem;
  color: var(--text-light);
  background: var(--light-gray);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

.no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}

.service-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 60px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.1);
  position: relative;
}

.tab-btn {
  padding: 16px 32px;
  border: 2px solid var(--border-color);
  background: var(--white);
  color: var(--text-secondary);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.08);
}

.tab-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.tab-btn span {
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.tab-btn.active::before,
.tab-btn:hover::before {
  left: 0;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.15);
}

.tab-btn:not(.active):hover {
  background: rgba(30, 64, 175, 0.05);
  border-color: var(--primary-light);
}

.tab-btn.active {
  animation: tabPulse 2s ease-in-out infinite;
}

@keyframes tabPulse {
  0%,
  100% {
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.15);
  }
  50% {
    box-shadow: 0 16px 32px rgba(30, 64, 175, 0.2);
  }
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-btn {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.25);
}

.service-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-price {
  background: rgba(30, 64, 175, 0.04);
  border: 1px solid rgba(30, 64, 175, 0.12);
  color: #475569;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
  box-shadow: none;
  transition: var(--transition);
  letter-spacing: 0.025em;
}

.service-price::before {
  content: "";
  margin-right: 0;
}

.service-card:hover .service-price {
  background: rgba(30, 64, 175, 0.06);
  border-color: rgba(30, 64, 175, 0.18);
  color: #334155;
  transform: none;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
}

.service-btn {
  background: var(--gradient);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.service-btn:hover::before {
  left: 100%;
}

.service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
  filter: brightness(1.05);
}

.service-btn:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.service-btn:active {
  transform: translateY(0);
}

/* Student Special Section */
.student-special {
  background: var(--white);
  padding: 60px 0;
}

.student-programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.program-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--white);
}

.program-btn {
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  margin-top: 1rem;
}

.program-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials {
  background: var(--light-blue);
  position: relative;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  display: none;
  text-align: center;
  padding: 2rem;
}

.testimonial-card.active {
  display: block;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-content {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-dark);
  position: relative;
  border: 1px solid var(--border-color);
}

.testimonial-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: #fbbf24;
}

.testimonial-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-style: italic;
  font-family: var(--font-secondary);
}

.client-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.client-avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

.client-info h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.client-info span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: var(--font-secondary);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clients Section */
.clients {
  background: var(--white);
  position: relative;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.client-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.client-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transition: left 0.3s ease;
}

.client-card:hover::before {
  left: 0;
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.client-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--border-color);
  transition: var(--transition);
  position: relative;
}

.client-logo::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.client-card:hover .client-logo::after {
  opacity: 1;
}

.client-card:hover .client-logo {
  border-color: transparent;
  transform: scale(1.05);
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  transition: var(--transition);
  filter: grayscale(20%);
}

.client-card:hover .client-logo img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.client-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.client-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: var(--font-secondary);
}

.clients-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.clients .stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--light-blue);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.clients .stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background: var(--white);
  border-color: var(--primary-light);
}

.clients .stat-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.clients .stat-item:hover .stat-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
}

.clients .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.clients .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-secondary);
}

/* Contact Section */
.contact {
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.contact-details h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-secondary);
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
  background: var(--light-gray);
  color: var(--text-primary);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.form-group input:not(:placeholder-shown),
.form-group select:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  border-color: var(--primary-light);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-group select::-ms-expand {
  display: none;
}

.form-group select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%231e40af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Form animations */
.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
}

/* Form help text */
.form-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.4;
  font-style: italic;
}

#customServiceGroup {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
  }
}

#customServiceGroup textarea {
  resize: vertical;
  min-height: 80px;
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
}

#customServiceGroup textarea:focus {
  background-color: var(--white);
  border-color: var(--primary-color);
}

/* Enhanced submit button in modal */

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: "CatComic", sans-serif;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-section p {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links 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: var(--transition);
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

.developer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
  animation: developerAnimation 0.5s ease-in-out infinite;
}

.developer-link:hover {
  color: var(--white);
  text-decoration: underline;
}

@keyframes developerAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.back-to-top.show {
  display: flex;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  transform: scale(0.7) translateY(-50px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: var(--gradient);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: modalFloat 6s ease-in-out infinite;
}

@keyframes modalFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.modal-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.modal-title-section h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-title-section p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal form {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.modal .form-group {
  margin-bottom: 0;
}

.modal .form-group:nth-child(7),
.modal .form-group:nth-child(8),
.modal .form-group:nth-child(9),
.modal .btn-full {
  grid-column: 1 / -1;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-family: var(--font-secondary);
  transition: var(--transition);
  background: var(--white);
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.modal input::placeholder,
.modal textarea::placeholder {
  color: var(--text-light);
}

.modal select {
  cursor: pointer;
}

.modal textarea {
  resize: vertical;
  min-height: 100px;
}

.modal .btn-full {
  margin-top: 1rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Career Section */
.career {
  background: var(--light-blue);
  position: relative;
  overflow: hidden;
}

.career::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.05) 0%,
    rgba(59, 130, 246, 0.1) 100%
  );
  z-index: 1;
}

.career-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 2;
}

.career-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-dark);
}

.career-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition);
  filter: brightness(0.9) contrast(1.1);
  transform: scale(1.05);
}

.career-image:hover img {
  transform: scale(1.15);
  filter: brightness(1) contrast(1.2);
}

.career-text {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-dark);
  position: relative;
  margin-left: -4rem;
  z-index: 3;
  border: 1px solid var(--border-color);
}

.career-text::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #adcff3;
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.career-text:hover::before {
  opacity: 1;
}

.career-text h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.career-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.career-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.career-text ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--light-blue);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.career-text ul li:hover {
  transform: translateX(5px);
  background: rgba(59, 130, 246, 0.1);
}

.career-text ul li i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 20px;
  flex-shrink: 0;
}

.career-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient);
  border-radius: 0 4px 4px 0;
}

.career-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.career-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  transition: var(--transition);
}

.career-benefit:hover {
  border-color: var(--primary-light);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.career-benefit i {
  color: var(--primary-color);
  font-size: 1.3rem;
  width: 24px;
  flex-shrink: 0;
}

.career-benefit span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Animated decorations */
.career-text::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

/* Responsive: Career Section */
@media (max-width: 900px) {
  .career-content {
    grid-template-columns: 1fr;
  }
  .career-text {
    margin-left: 0;
    margin-top: -2rem;
  }
  .career-image img {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .career-text {
    padding: 1.5rem;
  }
  .career-image img {
    height: 200px;
  }
  .career-benefits {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(30, 64, 175, 0.1);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
  }

  .nav-link::after {
    bottom: 5px;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo {
    font-size: 1.4rem;
  }

  .logo-img {
    height: 35px;
  }
}

/* Hero Section Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 6rem 1rem 2rem;
  }

  .hero-content {
    padding: 1rem 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 280px;
    padding: 16px 24px;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .stat-item {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    text-align: left;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .btn-large {
    padding: 14px 18px;
    font-size: 0.9rem;
  }
}

/* Section Headers Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.7rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }
}

/* About Section Responsive */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-image img {
    height: 300px;
    object-fit: cover;
  }
}

/* Services Section Responsive */
@media (max-width: 768px) {
  .service-tabs {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    max-width: 400px;
    margin: 0 auto 3rem;
  }

  .tab-btn {
    width: 100%;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }
}

/* Student Special Section Responsive */
@media (max-width: 768px) {
  .student-programs {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .program-card {
    padding: 1.5rem;
    text-align: center;
  }
}

/* Testimonials Responsive */
@media (max-width: 768px) {
  .testimonial-content {
    padding: 2rem 1.5rem;
  }

  .testimonial-content p {
    font-size: 1rem;
  }

  .client-info {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .testimonial-nav {
    gap: 1rem;
  }

  .nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* Contact Section Responsive */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
    padding: 2rem 1.5rem;
  }

  .contact-item {
    padding: 1rem;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  .form-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1.5rem 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* Career Section Responsive - Enhanced */
@media (max-width: 768px) {
  .career-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .career-text {
    margin-left: 0;
    margin-top: 0;
    padding: 2rem 1.5rem;
  }

  .career-image {
    order: -1;
  }

  .career-image img {
    height: 250px;
    object-fit: cover;
  }

  .career-benefits {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .career-benefit {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .career-text {
    padding: 1.5rem 1rem;
  }

  .career-image img {
    height: 200px;
  }

  .career-text h3 {
    font-size: 1.4rem;
  }

  .career-text p {
    font-size: 0.95rem;
  }
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
    max-height: calc(95vh - 2rem);
    border-radius: var(--border-radius);
  }

  .modal-header {
    padding: 1.5rem 1rem;
  }

  .modal-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .modal-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .modal-title-section h2 {
    font-size: 1.3rem;
  }

  .modal form {
    padding: 1.5rem 1rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 0.5rem;
    width: calc(100% - 1rem);
    max-height: calc(95vh - 1rem);
  }

  .modal-header {
    padding: 1.25rem 0.75rem;
  }

  .modal form {
    padding: 1.25rem 0.75rem;
  }

  .modal-title-section h2 {
    font-size: 1.2rem;
  }

  .modal-title-section p {
    font-size: 0.9rem;
  }
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-section h3 {
    margin-bottom: 1rem;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
  }

  .footer-bottom p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Back to Top Button Responsive */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* General Button Improvements for Mobile */
@media (max-width: 768px) {
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    min-height: 48px; /* Better touch target */
  }

  .btn-large {
    padding: 16px 24px;
    font-size: 1rem;
    min-height: 52px;
  }

  .service-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

/* Image Optimization for Mobile */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }

  .hero-image {
    object-position: center center;
  }
}

/* Typography Fine-tuning for Mobile */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    line-height: 1.5;
  }

  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.1rem;
  }
  h5 {
    font-size: 1rem;
  }
  h6 {
    font-size: 0.9rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Utility Classes for Mobile */
@media (max-width: 768px) {
  .mobile-center {
    text-align: center !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }

  .mobile-hide {
    display: none !important;
  }

  .mobile-block {
    display: block !important;
  }
}

/* Fix Overflow Issues */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
  }

  .container {
    overflow-x: hidden;
  }
}

/* Additional Mobile Optimizations */

/* Improve touch targets and spacing */
@media (max-width: 768px) {
  /* Enhanced button touch targets */
  .service-btn,
  .program-btn {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .feature-item {
    width: fit-content;
    margin: auto;
  }

  /* Better modal positioning on mobile */
  .modal {
    padding: 0.5rem;
  }

  /* Improve form field spacing */
  .form-group {
    margin-bottom: 1.25rem;
  }

  /* Better testimonial slider for touch */
  .testimonial-slider {
    touch-action: pan-x;
  }

  /* Improve hero stats layout */
  .hero-stats {
    border-radius: var(--border-radius);
    margin: 2rem 1rem 0;
  }

  /* Better section spacing */
  section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: 5rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .hero-content {
    padding: 0.75rem 0.75rem;
  }

  .feature-item {
    width: fit-content;
    margin: auto;
  }

  .btn-large {
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  .service-card,
  .program-card {
    padding: 1rem;
  }

  /* Mobile search bar adjustments */
  .search-container {
    padding: 0 1rem;
  }

  .search-input-wrapper {
    border-radius: 25px;
  }

  #serviceSearchInput {
    padding: 16px 50px 16px 50px;
    font-size: 0.9rem;
  }

  #serviceSearchInput::placeholder {
    font-size: 0.85rem;
  }

  .search-icon {
    left: 18px;
    font-size: 1rem;
  }

  .clear-search {
    right: 18px;
    width: 28px;
    height: 28px;
  }

  .testimonial-content {
    padding: 1.5rem 1rem;
  }

  .contact-form {
    padding: 1.25rem 0.75rem;
  }

  .career-text {
    padding: 1.25rem 0.75rem;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 80vh;
    padding-top: 4rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }

  .btn-large {
    width: auto;
    min-width: 140px;
  }
}

/* Fix for very long service names on mobile */
@media (max-width: 480px) {
  .service-card h3 {
    font-size: 1rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .tab-btn span {
    font-size: 0.85rem;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
  /* Larger touch targets for navigation */
  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Better focus indicators */
  .btn:focus,
  .nav-link:focus,
  .service-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  /* Improve text contrast in overlays */
  .hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.8) 0%,
      rgba(30, 64, 175, 0.7) 50%,
      rgba(14, 165, 233, 0.6) 100%
    );
  }
}

/* Loading optimization for mobile images */
@media (max-width: 768px) {
  .hero-image,
  .about-image img,
  .career-image img {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
  }
}

/* Smooth scrolling improvements for mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }
}

/* Responsive: Clients Section */
@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .client-card {
    padding: 1.5rem;
  }

  .client-logo {
    width: 100px;
    height: 100px;
  }

  .client-card h3 {
    font-size: 1.2rem;
  }

  .client-card p {
    font-size: 0.9rem;
  }

  .clients-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .clients .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .clients .stat-number {
    font-size: 2rem;
  }

  .clients .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .client-card {
    padding: 1.2rem;
  }

  .client-logo {
    width: 80px;
    height: 80px;
  }

  .client-card h3 {
    font-size: 1.1rem;
  }

  .client-card p {
    font-size: 0.85rem;
  }

  .clients-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .clients .stat-item {
    padding: 1rem;
  }

  .clients .stat-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .clients .stat-number {
    font-size: 1.8rem;
  }

  .clients .stat-label {
    font-size: 0.75rem;
  }
}

/* Tree Plantation Popup Modal */
.tree-plantation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.popup-content {
  position: relative;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideInScale 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInScale {
  from {
    transform: scale(0.7) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.popup-header {
  position: relative;
  padding: 25px 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-icon {
  font-size: 3rem;
  color: #dcfce7;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.popup-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.popup-body {
  padding: 20px 25px;
  text-align: center;
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 10px;
  line-height: 1.3;
}

.popup-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  font-family: var(--font-secondary);
  margin-bottom: 25px;
  line-height: 1.4;
}

.popup-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  opacity: 0.95;
}

.feature-item i {
  font-size: 1.1rem;
  color: #dcfce7;
  width: 20px;
  text-align: center;
}

.popup-actions {
  padding: 0 25px 25px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-popup {
  padding: 14px 24px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-popup::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.btn-popup:hover::before {
  left: 100%;
}

.btn-popup.btn-join {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  color: #16a34a;
  border: 2px solid #22c55e;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-popup.btn-join:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-popup.btn-join i {
  font-size: 1.1rem;
}

.btn-popup.btn-verify {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.btn-popup.btn-verify:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-popup.btn-verify i {
  font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    margin: 20px;
  }

  .popup-header {
    padding: 20px 20px 0;
  }

  .popup-body {
    padding: 15px 20px;
  }

  .popup-title {
    font-size: 1.3rem;
  }

  .popup-subtitle {
    font-size: 0.9rem;
  }

  .popup-actions {
    padding: 0 20px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .btn-popup {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
  }

  .popup-features {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .popup-content {
    width: 98%;
    margin: 10px;
  }

  .popup-title {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .popup-subtitle {
    font-size: 0.85rem;
  }

  .btn-popup {
    font-size: 0.9rem;
    padding: 14px 20px;
  }
} /* Tree Plantation Modal */
.tree-modal .modal-content {
  max-width: 900px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  border-radius: var(--border-radius-lg);
}

.tree-modal-header {
  padding: 0;
  position: relative;
  border-bottom: none;
}

.tree-hero-section {
  position: relative;
  height: 200px;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  overflow: hidden;
}

.tree-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tree-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.8) 0%,
    rgba(22, 163, 74, 0.9) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.tree-hero-content {
  text-align: center;
  color: white;
}

.tree-icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.tree-hero-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tree-hero-content p {
  font-size: 1rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tree-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.tree-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.tree-modal-body {
  padding: 2rem;
}

.tree-info-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f0fdf4;
  border-radius: var(--border-radius);
  border: 1px solid #bbf7d0;
}

.tree-step {
  text-align: center;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.step-content h4 {
  color: #166534;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.step-content p {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tree-form {
  background: white;
  border-radius: var(--border-radius);
  margin: 1rem 0;
}

.tree-form h3 {
  color: #166534;
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tree-form .form-group {
  margin-bottom: 1rem;
}

.tree-form input,
.tree-form select,
.tree-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  font-family: var(--font-secondary);
}

.tree-form input:focus,
.tree-form select:focus,
.tree-form textarea:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.checkbox-group {
  margin: 1.5rem 0;
}

.checkbox-box {
  width: auto !important;
  margin-right: 0.5rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-container:hover .checkmark {
  border-color: #22c55e;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: #22c55e;
  border-color: #22c55e;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.btn-tree {
  width: 100%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1rem;
}

.btn-tree:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-2px);
}

/* Certificate Verification Modal */
.certificate-modal .modal-content {
  max-width: 800px;
  width: 95%;
}

.certificate-modal-header {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.certificate-icon {
  font-size: 3rem;
  color: #dbeafe;
}

.certificate-modal-body {
  padding: 2rem;
}

.certificate-form .form-group {
  margin-bottom: 1.5rem;
}

.certificate-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.certificate-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.certificate-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-help {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  display: block;
}

.btn-verify {
  width: 100%;
  /* margin-bottom: 2rem; */
}

.certificate-result {
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
  margin-top: 2rem;
}

.certificate-display {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #cbd5e1;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.certificate-display::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.certificate-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.certificate-logo img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.certificate-header h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.certificate-badge {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.certificate-content {
  position: relative;
  z-index: 1;
}

.certificate-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.certificate-name {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  margin: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.certificate-program {
  font-size: 1.5rem;
  color: #22c55e;
  font-family: var(--font-heading);
  margin: 1.5rem 0;
}

.certificate-details {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item .label {
  font-weight: 600;
  color: var(--text-primary);
}

.detail-item .value {
  color: var(--text-secondary);
  font-family: var(--font-secondary);
}

.certificate-signature {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--primary-color);
}

.signature-line p {
  margin: 0.25rem 0;
  color: var(--text-secondary);
}

.signature-date {
  font-weight: 600;
  color: var(--primary-color);
}

.certificate-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.certificate-error {
  text-align: center;
  padding: 2rem;
  color: #dc2626;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #fca5a5;
}

.certificate-error h4 {
  color: #dc2626;
  margin-bottom: 1rem;
}

.certificate-error p {
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* Responsive Design for Tree Plantation Features */
@media (max-width: 768px) {
  .tree-info-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tree-hero-content h2 {
    font-size: 1.5rem;
  }

  .tree-hero-content p {
    font-size: 0.9rem;
  }

  .certificate-details {
    grid-template-columns: 1fr;
  }

  .certificate-name {
    font-size: 2rem;
  }

  .certificate-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .tree-modal-body,
  .certificate-modal-body {
    padding: 1rem;
  }

  .tree-hero-section {
    height: 150px;
  }

  .tree-icon-large {
    font-size: 2rem;
  }

  .tree-hero-content h2 {
    font-size: 1.2rem;
  }

  .certificate-name {
    font-size: 1.5rem;
  }

  .step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}
