/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --brand: #00A86B;
  --brand-dark: #00875A;
  --brand-light: #E6F7F0;
  --black: #0a0a0a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
}
 
* { box-sizing: border-box; }
 
html { scroll-behavior: smooth; }
 
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
 
body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--gray-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
 
h1, h2, h3, h4, .font-heading {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
}
 
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
 
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
 
/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}
.navbar-brand {
  font-size: 1.6rem;
  font-family: "Arial Black", Arial, sans-serif;
}
.navbar-brand .last { color: var(--brand); }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 1.05rem;
  font-weight: 500;
}
.navbar-links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--brand); }
.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width 0.3s;
}
.navbar-links a:hover::after { width: 100%; }
 
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.navbar-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px 24px;
  font-size: 1.05rem;
  font-weight: 500;
}
.navbar-mobile.open { display: flex; }
 
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: block; }
}
 
/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 160px 24px 80px;
  background: linear-gradient(to right, #fff, var(--brand-light), #fff);
}
.hero-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.hero-top {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero-text { flex: 1; text-align: center; }
.hero-greeting {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.hero-headline {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.btn-brand {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(0,168,107,0.25);
  transition: transform 0.2s, background 0.2s;
}
.btn-brand:hover { background: var(--brand-dark); transform: scale(1.04); }
 
.hero-photo-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-photo {
  position: relative;
  width: 260px; height: 260px;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,168,107,0.4);
}
 
.hero-video {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-video-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  aspect-ratio: 16 / 9;
}
.hero-video-frame iframe { width: 100%; height: 100%; border: none; }
 
@media (min-width: 768px) {
  .hero-top { flex-direction: row; }
  .hero-text { text-align: left; }
  .hero-headline { font-size: 3rem; margin-left: 0; margin-right: 0; }
  .hero-photo { width: 380px; height: 380px; }
}
 
/* ==========================================================================
   Section shells
   ========================================================================== */
section { width: 100%; padding: 80px 24px; }
@media (max-width: 480px) {
  section { padding: 48px 16px; }
}
.section-inner { max-width: 1152px; margin: 0 auto; }
.section-inner.wide { max-width: 1400px; }
.section-title {
  font-size: 2.2rem;
  text-align: center;
  color: var(--gray-900);
  margin-bottom: 24px;
}
.section-desc {
  font-size: 1.15rem;
  color: var(--gray-700);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
  white-space: pre-line;
}
 
/* About */
.about-section {
  background: linear-gradient(135deg, rgba(0,168,107,0.15), var(--brand-light), #fff);
}
 
/* Certificates */
.certificates-section { background: linear-gradient(135deg, var(--brand-light), #fff, var(--brand-light)); }
.cert-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
}
@media (min-width: 640px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
.cert-card {
  background: #fff;
  border: 1px solid rgba(0,168,107,0.3);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 100%;
  cursor: pointer;
  transition: transform 0.4s;
}
.cert-card:hover { transform: scale(1.03); }
.cert-card img { padding: 24px; max-height: 350px; object-fit: contain; margin: 0 auto; }
.cert-card .cert-title { padding: 0 16px 16px; text-align: center; font-weight: 700; color: var(--gray-700); }
 
/* Projects — big, expandable/zoomable cards */
.projects-section { background: linear-gradient(135deg, var(--gray-50), #fff, var(--gray-100)); }
.projects-stack {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 48px;
  width: 100%;
}
.project-big-card {
  background: linear-gradient(135deg, rgba(0,168,107,0.2), var(--brand-light), #fff);
  border: 1px solid rgba(0,168,107,0.35);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 100%;
}
.project-big-thumb {
  position: relative;
  width: 100%;
  min-height: 320px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}
.project-big-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}
.project-big-thumb:hover img { transform: scale(1.02); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px;
}
.project-big-thumb:hover .project-overlay { opacity: 1; }
.project-overlay span {
  color: #fff; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
  padding: 10px 20px; border-radius: 999px; font-size: 0.95rem;
}
.project-big-body { padding: 28px 32px 32px; }
.project-big-body h3 { font-size: 1.4rem; color: var(--gray-900); margin-bottom: 12px; }
 
/* Small screens: 600px min column width doesn't fit — drop to a single,
   full-width, centered column instead of overflowing/squeezing. */
@media (max-width: 680px) {
  .projects-stack {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
  }
  .project-big-card {
    width: 100%;
  }
  .project-big-thumb {
    min-height: 220px;
  }
  .project-big-body {
    padding: 20px;
  }
  .project-big-body h3 {
    font-size: 1.15rem;
  }
}
.project-desc-wrap { position: relative; }
.project-desc {
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.project-desc.collapsed {
  max-height: 2.9em; /* roughly 10% / first line+ of a full description */
  position: relative;
}
.project-desc.collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.6em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
}
.project-desc.expanded { max-height: 1000px; }
.desc-toggle {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0;
  cursor: pointer;
}
.desc-toggle:hover { text-decoration: underline; }
 
/* Reviews marquee */
.reviews-section { background: #fff; overflow: hidden; }
.reviews-heading-wrap { text-align: center; margin-bottom: 56px; }
.reviews-heading-wrap h2 { font-size: 2.6rem; position: relative; display: inline-block; }
.reviews-heading-wrap .underline {
  width: 120px; height: 6px; background: var(--brand); border-radius: 999px;
  margin: 12px auto 0;
}
.reviews-heading-wrap p { margin-top: 24px; font-size: 1.3rem; color: var(--gray-600); }
 
.marquee-row { overflow: hidden; margin-bottom: 20px; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}
.marquee-row.reverse .marquee-track { animation-name: scroll-right; animation-duration: 45s; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
 
.review-card { flex-shrink: 0; width: 300px; margin: 0 12px; }
.review-card img { width: 100%; border-radius: 24px; }
.review-card .text-card {
  background: #fff; border-radius: 24px; box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 24px; height: 100%;
}
.review-card .text-card h4 { font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.review-card .stars { color: #fbbf24; margin-bottom: 8px; }
.review-card .text-card p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.6; }
 
/* Contact */
.contact-section { background: #fff; padding: 24px; }
.contact-title { font-size: 2.4rem; text-align: center; margin-bottom: 40px; }
.contact-grid {
  max-width: 1152px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
 
.contact-form-panel {
  background: linear-gradient(135deg, var(--brand), var(--brand), var(--brand-dark));
  border-radius: 24px;
  padding: 40px;
  border: 4px solid var(--brand);
}
.contact-form-panel h2 { color: #fff; font-size: 1.7rem; text-align: center; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #fff; font-weight: 600; margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px; border: none;
  background: rgba(255,255,255,0.92); font-size: 1rem; font-family: inherit;
}
.form-group textarea { resize: none; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.radio-group label { display: flex; align-items: center; color: #fff; font-weight: 400; margin-bottom: 8px; cursor: pointer; }
.radio-group input { margin-right: 10px; width: 16px; height: 16px; }
 
.submit-btn {
  width: 100%; background: var(--black); color: #fff; font-weight: 700;
  padding: 16px; border-radius: 8px; border: none; font-size: 1rem;
  transition: transform 0.2s, background 0.2s;
}
.submit-btn:hover { background: #222; transform: scale(1.02); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { text-align: center; margin-top: 12px; color: #fff; font-weight: 500; }
.form-status.error { color: #fecaca; }
 
.connect-panel {
  background: linear-gradient(135deg, var(--gray-50), #fff);
  border-radius: 24px; padding: 40px; border: 4px solid var(--gray-200);
}
.connect-panel h3 { text-align: center; font-size: 1.6rem; color: var(--brand); margin-bottom: 32px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 640px) { .social-grid { grid-template-columns: 1fr 1fr 1fr; } }
.social-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; background: #fff; border-radius: 12px; border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.social-item:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,168,107,0.25); }
.social-item svg { width: 28px; height: 28px; margin-bottom: 8px; }
.social-item span { font-size: 0.9rem; font-weight: 500; color: var(--gray-700); }
 
.cv-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
  text-align: center;
}
 
/* WhatsApp sticky icon */
.whatsapp-sticky {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.25s;
}
.whatsapp-sticky:hover { transform: scale(1.08); }
 
@media (max-width: 480px) {
  .whatsapp-sticky {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
  }
  .whatsapp-sticky svg {
    width: 24px;
    height: 24px;
  }
}
 
/* Footer */
.site-footer { background: var(--black); color: #fff; padding: 64px 24px 32px; }
.footer-grid {
  max-width: 1152px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-grid h3 { font-size: 1.3rem; margin-bottom: 16px; }
.footer-grid h4 { font-size: 1.1rem; margin-bottom: 16px; }
.footer-tagline { color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.footer-desc { color: var(--gray-400); font-size: 0.9rem; line-height: 1.6; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--gray-400); transition: color 0.2s; }
.footer-links a:hover { color: var(--brand); }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.footer-social a:hover { background: var(--brand); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  max-width: 1152px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; color: var(--gray-500); font-size: 0.9rem;
}
 
/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.85);
  display: none; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.lightbox img.zoomed {
  max-width: none; max-height: none;
  width: 180%;
  cursor: zoom-out;
}
.lightbox-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  pointer-events: none;
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  padding: 10px; color: #fff;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }