:root {
  --bg: #f6fbf8;
  --text: #052014;
  --muted: #556069;
  --panel: #ffffff;
  --green-1: #197a57;
  --green-2: #1aa06a;
  --accent: #00d26f;
  --shadow-sm: 0 2px 8px rgba(13, 37, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 37, 26, 0.06);
  --shadow-lg: 0 18px 40px rgba(13, 37, 26, 0.08);
  --transition: 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

.hidden {
  display: none;
}

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

.header {
  background: var(--panel);
  border-bottom: 1px solid rgba(13, 37, 26, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-1);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.6px;
}

.logo i {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.desktop-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.desktop-nav a:hover {
  color: var(--green-1);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--green-1);
  border-radius: 2px;
  transition: width var(--transition);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.menu-btn {
  background: transparent;
  border: 0;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  display: none;
  padding: 6px;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid rgba(13, 37, 26, 0.1);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
}

.profile-btn:hover {
  background: rgba(25, 122, 87, 0.08);
  border-color: var(--green-1);
  transform: translateY(-2px);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--green-1);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 180px;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  z-index: 200;
  transition: opacity var(--transition);
}

.profile-menu a,
.profile-menu button {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), color var(--transition);
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: rgba(25, 122, 87, 0.08);
  color: var(--green-1);
}

.profile-menu.hidden {
  display: none;
}

/* Styles for the mobile navigation menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid rgba(13, 37, 26, 0.05);
  background: var(--panel);
}

.mobile-menu a {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(90deg, var(--green-1), var(--green-2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(25, 122, 87, 0.18);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(25, 122, 87, 0.22);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--green-1);
  color: var(--green-1);
}

.btn-secondary:hover {
  background: rgba(25, 122, 87, 0.08);
  transform: translateY(-2px);
}

.hero {
  padding: 100px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
  margin: 0 200px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 24px 0;
  letter-spacing: -1.2px;
}

.hero-content p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 30px 0;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradient-orb {
  width: 330px;
  height: 330px;
  background: linear-gradient(135deg, var(--green-1), var(--accent));
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: float 8s ease-in-out infinite;
  box-shadow: 0 24px 65px rgba(25, 122, 87, 0.25);
}

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

.about {
  padding: 80px 20px;
  background: var(--panel);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(13, 37, 26, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--green-1);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.services {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 12px 0;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
}

/* Card styles for services and other grid items */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--panel);
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(13, 37, 26, 0.04);
  transition: all var(--transition);
  text-align: center;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(25, 122, 87, 0.1),
    rgba(26, 160, 106, 0.1)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--green-1);
  margin: 0 auto 20px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.team {
  padding: 80px 20px;
  background: var(--panel);
}

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

.team-member {
  text-align: center;
  transition: all var(--transition);
}

.team-member:hover {
  transform: translateY(-8px);
}

.team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.member-info h3 {
  font-size: 18px;
  font-weight: 700;
}

.member-info p {
  font-size: 14px;
  color: var(--green-1);
  font-weight: 600;
  margin: 4px 0 12px;
}

.member-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.member-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(25, 122, 87, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-1);
  transition: all var(--transition);
}

.member-socials a:hover {
  background: var(--green-1);
  color: #fff;
}

.contact {
  padding: 80px 20px;
}

.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  display: grid;
  gap: 20px;
}

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

.form-group label {
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid rgba(13, 37, 26, 0.1);
  border-radius: 8px;
  font-size: 14px;
  background: var(--panel);
  color: var(--text);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--green-1);
  box-shadow: 0 4px 12px rgba(25, 122, 87, 0.1);
}

.success-message {
  text-align: center;
  padding: 16px;
  background: rgba(22, 163, 74, 0.1);
  border-radius: 8px;
  color: #16a34a;
  font-weight: 600;
}

.faq-button {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(25, 122, 87, 0.2);
  transition: all var(--transition);
  z-index: 50;
}

.faq-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(25, 122, 87, 0.3);
}

.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 96px; /* Positioned to the left of the FAQ button */
  width: 56px;
  height: 56px;
  background: var(--panel);
  border: 1px solid rgba(13, 37, 26, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--green-1);
  box-shadow: 0 8px 24px rgba(13, 37, 26, 0.1);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--green-1);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(25, 122, 87, 0.2);
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 80px;
    font-size: 18px;
  }
}

.footer {
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  color: #fff;
  padding: 60px 20px 20px;
}

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

.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  opacity: 0.9;
}

.footer-section a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 70px 20px;
  }

  .hero-content {
    margin: 0 auto;
  }

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

  .gradient-orb {
    width: 250px;
    height: 250px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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

  .hero-content h1 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-visual {
    height: 300px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-button {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .gradient-orb {
    width: 200px;
    height: 200px;
  }

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}
#message-btn {
  display: flex;
  justify-content: center;
}

/* Publications Section */
.publications {
  padding: 80px 20px;
  background: var(--bg);
}

.publication-card {
  background: var(--panel);
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(13, 37, 26, 0.04);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.publication-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.publication-header i {
  font-size: 24px;
  color: var(--green-1);
  background: rgba(25, 122, 87, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.publication-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(13, 37, 26, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
}

.publication-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.publication-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-1);
  margin-top: 8px;
  transition: gap 0.2s ease;
}

.read-more:hover {
  gap: 12px;
  text-decoration: underline;
}
/* Responsive Styles */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 60px 20px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    height: 300px;
  }
  
  .gradient-orb {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .services-grid,
  .team-grid,
  .publications-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
}
