:root {
  /* Original color palette */
  --dark-blue: #364958;
  --deep-teal: #3b6064;
  --ocean-teal: #55828b;
  --sage: #87bba2;
  --mint: #c9e4ca;

  /* Functional colors */
  --primary: var(--ocean-teal);
  --secondary: var(--sage);
  --background: #18181b;
  --surface: var(--sage);
  --text-primary: #a1a1aa;
  --text-secondary: var(--deep-teal);
  --accent: var(--ocean-teal);

  /* Updated color palette */
  --card-bg: #121212;
  --text-color: #a1a1aa;
  --heading-color: #ffffff;
  --orange-accent: #f9b234;
  --green-accent: #3ecd5e;
  --red-accent: #e44002;
  --purple-accent: #952aff;
  --card-border: rgba(255, 255, 255, 0.1);

  /* Original UI Properties */
  --card-radius: 16px;
  --button-radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
  --glass-bg: rgba(59, 96, 100, 0.85);
  --glass-border: rgba(135, 187, 162, 0.2);

  /* Modern Card Variables */
  --card-background-color: rgba(255, 255, 255, 0.015);
  --card-border-color: rgba(255, 255, 255, 0.1);
  --card-box-shadow-1: rgba(0, 0, 0, 0.05);
  --card-box-shadow-2: rgba(0, 0, 0, 0.1);
  --card-shine-opacity: 0.1;
  --card-shine-gradient: conic-gradient(
    from 205deg at 50% 50%,
    rgba(16, 185, 129, 0) 0deg,
    #10b981 25deg,
    rgba(52, 211, 153, 0.18) 295deg,
    rgba(16, 185, 129, 0) 360deg
  );
  --card-line-color: #2a2b2c;
  --card-tile-color: rgba(16, 185, 129, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.5;
}

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  width: 32px;
  height: 32px;
  margin-right: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--heading-color);
}

.logo-text span {
  background: linear-gradient(
    135deg,
    var(--orange-accent),
    var(--purple-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--orange-accent),
    var(--purple-accent)
  );
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--heading-color);
}

.nav-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--background);
    padding: 2rem;
    box-shadow: var(--shadow);
  }
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(4rem, 10vh, 8rem) 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  position: relative;
  isolation: isolate;
  background: var(--background);
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 -60% 65% -60%;
  background-image: radial-gradient(
    ellipse at top,
    var(--green-accent) 0%,
    var(--background) 50%
  );
  opacity: 0.1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: center;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  background: linear-gradient(
    135deg,
    var(--green-accent),
    var(--purple-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  flex: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  max-height: 70vh;
  width: 100%;
  z-index: 1;
}

.hero-svg {
  width: 100%;
  height: auto;
  max-width: 600px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(62, 205, 94, 0.15));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.02);
  }
}

@media (max-width: 968px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 1rem;
  }

  .about-container {
    flex-direction: column;
    padding: 1rem;
  }

  .services-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .hero-image {
    margin-left: 0;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-image {
    height: 400px;
    padding: 1rem;
  }

  .hero-image img {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .hero-image {
    height: 300px;

    max-height: 40vh;
  }

  .hero-image img {
    max-height: 300px;
  }
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.primary-btn,
.secondary-btn {
  padding: 0.875rem 2rem;
  border-radius: var(--button-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--primary);
}

.primary-btn {
  background: var(--green-accent);
  color: var(--heading-color);
  border: none;
}

.secondary-btn {
  background: transparent;
  color: var(--orange-accent);
  border: 2px solid var(--orange-accent);
}

.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.secondary-btn:hover {
  background: var(--orange-accent);
  color: var(--heading-color);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeInUp var(--transition-slow) forwards;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--mint), var(--sage));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Services Section Styling */
.ag-format-container {
  width: 1142px;
  margin: 0 auto;
}

.services-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 50px 0;
}

.service-card {
  -ms-flex-preferred-size: calc(33.33333% - 30px);
  flex-basis: calc(33.33333% - 30px);
  margin: 0 15px 30px;
  overflow: hidden;
  border-radius: 28px;
}

.service-content {
  display: block;
  padding: 30px 20px;
  background-color: #121212;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.service-content:hover {
  text-decoration: none;
  color: #fff;
}

.service-content:hover .ag-courses-item_bg {
  -webkit-transform: scale(10);
  -ms-transform: scale(10);
  transform: scale(10);
}

.service-card h3 {
  min-height: 87px;
  margin: 0 0 25px;
  overflow: hidden;
  font-weight: bold;
  font-size: 30px;
  color: #fff;
  z-index: 2;
  position: relative;
}

.service-list {
  font-size: 18px;
  color: #fff;
  z-index: 2;
  position: relative;
}

.ag-courses-item_bg {
  height: 128px;
  width: 128px;
  background-color: #f9b234;
  z-index: 1;
  position: absolute;
  top: -75px;
  right: -75px;
  border-radius: 50%;
  transition: all 0.5s ease;
}

.service-card:nth-child(2n) .ag-courses-item_bg {
  background-color: #3ecd5e;
}

.service-card:nth-child(3n) .ag-courses-item_bg {
  background-color: #e44002;
}

.service-card:nth-child(4n) .ag-courses-item_bg {
  background-color: #952aff;
}

@media only screen and (max-width: 979px) {
  .service-card {
    flex-basis: calc(50% - 30px);
  }
  .service-card h3 {
    font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }
}

@media only screen and (max-width: 639px) {
  .service-card {
    flex-basis: 100%;
  }
  .service-card h3 {
    min-height: 72px;
    line-height: 1;
    font-size: 24px;
  }
  .service-content {
    padding: 22px 40px;
  }
  .service-list {
    font-size: 16px;
  }
}

.services .section-header {
  margin-bottom: 4rem;
}

.services .section-header h2 {
  color: var(--dark-blue);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Simplified about section */
.about {
  background: linear-gradient(135deg, var(--background), white);
  padding: 6rem 0;
  box-shadow: var(--shadow-sm);
}

.about-text h3 {
  color: var(--dark-blue);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1.8;
}

.about-image {
  border-radius: var(--card-radius);
  border: var(--card-border);
  overflow: hidden;
}

/* New About Section Styling */
.about-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

.about-card {
  -ms-flex-preferred-size: calc(50% - 30px);
  flex-basis: calc(50% - 30px);
  margin: 0 15px 30px;
  overflow: hidden;
  border-radius: 28px;
}

.about-content {
  display: block;
  padding: 30px 20px;
  background-color: #121212;
  overflow: hidden;
  position: relative;
  color: #fff;
}

.about-text h3 {
  min-height: 60px;
  margin: 0 0 25px;
  font-weight: bold;
  font-size: 30px;
  color: #fff;
  z-index: 2;
  position: relative;
}

.about-text p {
  font-size: 18px;
  color: #fff;
  margin-bottom: 2rem;
  z-index: 2;
  position: relative;
}

.about-card .bg-hover {
  height: 128px;
  width: 128px;
  background-color: #3ecd5e;
  z-index: 1;
  position: absolute;
  top: -75px;
  right: -75px;
  border-radius: 50%;
  transition: all 0.5s ease;
}

.about-card:hover .bg-hover {
  transform: scale(10);
}

/* Stats Grid Styling */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  z-index: 2;
  position: relative;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stat-card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Simplified stat cards */
.stat-card {
  background: white;
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.stat-number {
  color: var(--dark-blue);
  font-size: 3rem;
  font-weight: 800;
}

.stat-card h4 {
  color: var(--deep-teal);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

/* Essential responsive styles */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
    max-width: 200px;
  }
}

/* Remove duplicate SVG styles and keep one version */
.service-icon svg,
.contact-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--mint);
  stroke-width: 2;
  transition: all 0.3s ease;
}

/* Modern Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  min-height: 280px;
  justify-content: center;
}

.contact-card::before {
  content: "";
  position: absolute;
  height: 128px;
  width: 128px;
  background-color: var(--orange-accent);
  top: -75px;
  right: -75px;
  border-radius: 50%;
  transition: all 0.5s ease;
  z-index: 1;
}

.contact-card:nth-child(2)::before {
  background-color: var(--green-accent);
}

.contact-card:nth-child(3)::before {
  background-color: var(--purple-accent);
}

contact-card:hover::before {
  transform: scale(10);
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.contact-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--heading-color);
}

.contact-card h3 {
  color: var(--heading-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.contact-card p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.contact-card:hover h3,
.contact-card:hover p {
  color: var(--heading-color);
}

/* New Footer Styling */
.footer {
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 2rem;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    var(--purple-accent) 0%,
    transparent 70%
  );
  opacity: 0.05;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand p {
  color: var(--text-color);
  font-size: 1.1rem;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-group h4 {
  color: var(--heading-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--orange-accent),
    var(--purple-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.link-group a {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 1.5rem;
}

.link-group a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange-accent);
  transition: transform 0.3s ease;
}

.link-group a:hover {
  color: var(--orange-accent);
  transform: translateX(5px);
}

.link-group a:hover::before {
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-brand {
    text-align: center;
    align-items: center;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Update section headers */
.section-header h2 {
  color: var(--heading-color);
  background: linear-gradient(
    135deg,
    var(--orange-accent),
    var(--purple-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--orange-accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(
    135deg,
    var(--orange-accent),
    var(--purple-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-color);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-normal);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
