:root {
  --color-bg: #ffffff;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-hover: rgba(245, 245, 245, 1);
  --color-primary: #568203; /* Avocado Green */
  --color-secondary: #568203; /* Avocado Green */
  --color-text: #568203; /* Avocado Green Text */
  --color-text-muted: #4a5c39; /* Darker Avocado for readability */
  --color-border: rgba(86, 130, 3, 0.2); /* Greenish border */
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-sans: 'Outfit', 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(86, 130, 3, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(86, 130, 3, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Glassmorphism utilities */
.glass {
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header */
header {
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-image {
  height: 60px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  transition: transform 0.3s ease;
}

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

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.contact-nav a {
  color: var(--color-text);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.contact-nav a:hover {
  color: var(--color-primary);
}

.btn-primary {
  background: var(--color-primary);
  color: white !important;
  padding: 0.8rem 1.6rem;
  border-radius: 99px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
  padding: 10rem 5% 7rem;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: 4.25rem;
  margin-bottom: 1.75rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero p {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.btn-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.8rem 1.6rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-large {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
}

/* Portals Section */
.portals {
  padding: 6rem 5% 10rem;
  display: flex;
  flex-direction: column;
  gap: 11rem; /* Generous vertical breathing room */
}

.portal-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Text gets more width, image gets less */
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.portal-showcase:nth-child(even) {
  direction: rtl;
}
.portal-showcase:nth-child(even) > * {
  direction: ltr;
}

.portal-text h2 {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.portal-text p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-list li {
  position: relative;
  padding-left: 2.5rem; /* Clear indentation for checkmark icon */
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.feature-list li strong {
  color: var(--color-text);
  font-weight: 700;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.15rem; /* Perfect alignment to the first line of text */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.portal-image {
  position: relative;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Stunning backdrop glow behind layouts */
.portal-image::after {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
  pointer-events: none;
}

.portal-showcase:nth-child(even) .portal-image::after {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
}

.portal-image img {
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-border);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.portal-image:hover img {
  transform: scale(1.03) rotateY(-3deg) rotateX(3deg);
}

.portal-showcase:nth-child(even) .portal-image:hover img {
  transform: scale(1.03) rotateY(3deg) rotateX(3deg);
}

/* Footer & CTA */
.cta-section {
  text-align: center;
  padding: 6rem 5%;
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.05));
  border-top: 1px solid var(--color-border);
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 3rem; }
  .portal-showcase, .portal-showcase:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 3rem;
  }
}

/* Modules Grid Section */
.modules-section {
  padding: 7rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.modules-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.modules-header h2 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.modules-header p {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.module-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  cursor: default;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.module-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 1);
  border-color: var(--color-primary);
  box-shadow: 0 15px 40px rgba(86, 130, 3, 0.15), 0 0 20px rgba(86, 130, 3, 0.1);
}

.module-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--color-primary);
}

.module-card:hover .module-icon-wrapper {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.module-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.module-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

