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

:root {
  --bg: #0e1a0e;
  --bg2: #131f13;
  --bg3: #1a2a1a;
  --accent: #b5d000;
  --accent-dark: #8fa800;
  --text: #e8f0e8;
  --muted: #7a9a7a;
  --card-bg: #162016;
  --card-border: #2a3a2a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.12;
  background-image: radial-gradient(circle at 10% 20%, rgba(181,208,0,0.2) 0, transparent 35%),
                    radial-gradient(circle at 80% 0%, rgba(51,94,255,0.18) 0, transparent 40%),
                    radial-gradient(circle at 90% 90%, rgba(0,224,185,0.15) 0, transparent 30%);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(14, 26, 14, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active { color: var(--accent); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7rem 5% 4rem;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.hero__3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(181,208,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  max-width: 520px;
  z-index: 1;
}

.hero__greeting {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero__title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero__desc {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.hero__image {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.hero__image-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 420px;
  background: linear-gradient(180deg, transparent 0%, rgba(181,208,0,0.15) 100%);
  border-radius: 50% 50% 0 0;
  z-index: 0;
}

.hero__image img {
  position: relative;
  z-index: 1;
  width: 340px;
  height: 460px;
  object-fit: cover;
  object-position: top;
  border-radius: 50% 50% 0 0;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.6));
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn--outline:hover { background: var(--accent); color: #0e1a0e; }

.btn--accent {
  background: var(--accent);
  color: #0e1a0e;
  font-weight: 700;
}
.btn--accent:hover { background: var(--accent-dark); }

.btn--ghost {
  border-color: var(--card-border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── STATS ── */
.stats {
  background: var(--bg3);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 2.5rem 5%;
}

/* ── STATS (3 cols now) ── */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.stat { text-align: center; }

.stat__num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── SECTION TITLE ── */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
}

/* ── SERVICES ── */
.services {
  padding: 6rem 5%;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(181, 208, 0, 0.12);
}

.service-card--active {
  border-color: var(--accent);
  background: linear-gradient(135deg, #1e2e0a 0%, #162016 100%);
  transform: translateY(-8px);
}

.service-card__icon {
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── TECH STACK ── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 700px;
  margin: 3rem auto 0;
}

.tech-tag {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.tech-tag:hover {
  border-color: var(--accent);
  background: rgba(181,208,0,0.1);
}

/* ── PEER ROLE ── */
.peer-role {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

/* ── TESTIMONIALS ── */
.testimonials {
  padding: 6rem 5%;
  background: var(--bg2);
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonials__track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 calc(50% - 0.75rem);
  scroll-snap-align: start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-card__header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__header strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.stars { color: var(--accent); font-size: 0.85rem; margin-top: 0.2rem; }

.testimonial-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--card-border);
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: var(--accent); }

/* ── PROJECTS ── */
.projects {
  padding: 6rem 5%;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--card-border);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover img { transform: scale(1.06); }
.project-card:hover { box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35); }

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.project-card__overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.projects__grid--two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.project-card--large {
  aspect-ratio: 16/10;
}

.project-card__overlay--full {
  opacity: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.88) 100%);
  align-items: flex-end;
  padding: 2rem;
}

.project-info { width: 100%; }

.project-badge {
  display: inline-block;
  background: var(--accent);
  color: #0e1a0e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.project-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.project-info p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.82rem; }

/* hero actions */
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.projects__cta { text-align: center; margin-top: 1rem; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--bg3);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 4rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.cta-banner p {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  max-width: 500px;
}

.contact-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -1rem;
  text-align: center;
}

.contact-grid {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.contact-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.contact-card,
.contact-card:visited,
.contact-card:hover,
.contact-card:active,
.contact-card:focus-visible {
  text-decoration: none;
  color: var(--text) !important;
}

.contact-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(181,208,0,0.1);
  color: var(--accent);
  border: 1px solid rgba(181,208,0,0.2);
  flex-shrink: 0;
  overflow: hidden;
}

.contact-icon svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
  display: block;
  color: var(--accent) !important;
  fill: currentColor;
  stroke: currentColor;
}

.contact-meta {
  flex: 1;
  min-width: 0;
}

.contact-meta strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.28rem;
}

.contact-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  color: var(--muted);
  font-size: 1rem;
  transition: transform 0.25s, color 0.25s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ── FOOTER ── */
.footer {
  padding: 2.5rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── AGRIORA CARD ── */
.project-card__agriora {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f7ee 0%, #e8f5e0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.agriora-logo {
  width: auto !important;
  height: 120px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  filter: none !important;
}

.agriora-preview { width: 100%; }

.agriora-btn-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.agriora-btn {
  background: #fff;
  border: 1px solid #d0e8c8;
  color: #1a4a1a;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 8rem; }
  .hero__actions { justify-content: center; }
  .hero__image img { width: 260px; height: 340px; }
  .hero__image-bg { width: 260px; height: 320px; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .services__grid { grid-template-columns: 1fr; max-width: 420px; }
  .service-card--active { transform: none; }
  .testimonial-card { flex: 0 0 85%; }
  .projects__grid--two { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .nav__links { gap: 1.25rem; }
  .projects__grid { grid-template-columns: 1fr; }
  .projects__grid--two { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
}
