/* =============================================
   IDUD TECH SERVICES — Enhanced Stylesheet v2
   styles.css
   ============================================= */

/* ── CSS VARIABLES ── */
:root {
  --red: #e01b24;
  --green: #26a269;
  --green-light: #33d17a;
  --dark: #0d0f0e;
  --dark2: #141916;
  --dark3: #1c2420;
  --steel: #1e2b27;
  --panel: #162018;
  --text: #d4e0d8;
  --muted: #7a9088;
  --accent-line: rgba(38, 162, 105, 0.3);
  --transition-page: 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; }


/* ================================================================
   PAGE TRANSITION OVERLAY
   ================================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
.page-transition.entering {
  animation: curtainIn 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.page-transition.leaving {
  animation: curtainOut 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes curtainIn {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes curtainOut {
  from { transform: scaleY(1); transform-origin: top; }
  to   { transform: scaleY(0); transform-origin: top; }
}


/* ================================================================
   CUSTOM CURSOR
   ================================================================ */
.cursor {
  width: 12px; height: 12px;
  background: var(--green);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(38,162,105,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { background: var(--red); width: 20px; height: 20px; }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 54px; height: 54px; border-color: rgba(224,27,36,0.4); }


/* ================================================================
   GRID BACKGROUND
   ================================================================ */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(38,162,105,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,162,105,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}


/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 8000;
  background: var(--green); color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.1em;
  padding: 1rem 2rem;
  display: flex; align-items: center; gap: 10px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transform: translateY(120px); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  max-width: 340px;
}
.toast.show { transform: none; opacity: 1; }
.toast.error { background: var(--red); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }


/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 800;
  width: 48px; height: 48px;
  background: var(--panel);
  border: 1px solid rgba(38,162,105,0.3);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transform: translateY(80px); opacity: 0;
  transition: transform 0.4s, opacity 0.4s, background 0.2s, border-color 0.2s;
}
.back-to-top.visible { transform: none; opacity: 1; }
.back-to-top:hover { background: var(--green); color: #fff; border-color: var(--green); }
.back-to-top svg { width: 20px; height: 20px; }


/* ================================================================
   WHATSAPP FLOATING BUTTON
   ================================================================ */

/* ================================================================
   NAVIGATION
   ================================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem; height: 72px;
  background: rgba(13,15,14,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(38,162,105,0.15);
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(13,15,14,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.1em; color: #fff; }
.logo-main span { color: var(--green); }
.logo-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 0.6rem; letter-spacing: 0.3em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 0.4rem; align-items: center; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 0.4rem 0.8rem;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 1px; background: var(--green);
  transition: left 0.25s, right 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-light); }
.nav-links a:hover::after, .nav-links a.active::after { left: 10%; right: 10%; }
.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--green); color: #fff; text-decoration: none;
  padding: 0.5rem 1.4rem; border: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--red); }
.nav-mobile-btn { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-mobile-btn span { width: 24px; height: 1.5px; background: var(--text); transition: 0.3s; }

/* Mobile menu */
#mobileMenu {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: rgba(13,15,14,0.98);
  padding: 5rem 2rem 3rem;
  flex-direction: column; gap: 1.2rem;
  backdrop-filter: blur(12px);
}
#mobileMenu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(38,162,105,0.1);
  padding-bottom: 0.8rem;
  transition: color 0.2s, padding-left 0.2s;
}
#mobileMenu a:hover { color: var(--green-light); padding-left: 1rem; }
#mobileMenu a.highlight { color: var(--green); }
.mobile-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.5rem;
  transition: color 0.2s;
}
.mobile-close:hover { color: var(--red); }


/* ================================================================
   SECTION SHARED
   ================================================================ */
section { position: relative; z-index: 1; }
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--green); display: flex; align-items: center; gap: 12px;
  margin-bottom: 1rem;
}
.section-label::before { content: ''; width: 40px; height: 1px; background: var(--green); }
h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #fff; line-height: 1; margin-bottom: 1rem;
}
.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--green); color: #fff; border: none;
  padding: 1rem 2.2rem; cursor: pointer; text-decoration: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-ghost {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1rem 2.2rem; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }


/* ================================================================
   HERO / WELCOME
   ================================================================ */
#welcome {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 4rem; overflow: hidden;
}
/* Real photo layer */
.hero-img-layer {
  position: absolute; inset: 0; z-index: 0;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}
.hero-photo.loaded { opacity: 1; }
.hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,15,14,0.92) 0%,
    rgba(13,15,14,0.75) 50%,
    rgba(13,15,14,0.5) 100%
  );
}
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(38,162,105,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(224,27,36,0.04) 0%, transparent 60%);
}
.hero-industrial {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: 55%; height: 90%;
  opacity: 0.07; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.hero-industrial svg { width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 3; max-width: 1080px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--green); margin-bottom: 2rem;
}
.hero-tag::before { content: ''; width: 32px; height: 1px; background: var(--green); }
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9; color: #fff; margin-bottom: 1.5rem;
}
h1 .line { display: block; overflow: hidden; }
h1 .line span { display: block; animation: slideUp 0.8s cubic-bezier(0.16,1,0.3,1) both; }
h1 .line:nth-child(2) span { animation-delay: 0.1s; }
h1 .line:nth-child(3) span { animation-delay: 0.2s; }
h1 .accent { color: var(--green); }
h1 .accent-red { color: var(--red); }
@keyframes slideUp { from{transform:translateY(110%)} to{transform:translateY(0)} }
.hero-desc {
  font-size: 1.05rem; line-height: 1.8; color: var(--muted);
  max-width: 500px; margin-bottom: 2.5rem;
  animation: fadeIn 1s 0.5s both;
}
@keyframes fadeIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
.hero-btns { display: flex; gap: 1rem; animation: fadeIn 1s 0.7s both; }
.hero-stats {
  position: absolute; bottom: 3rem; left: 4rem; right: 4rem;
  display: flex; gap: 4rem;
  animation: fadeIn 1s 0.9s both;
  border-top: 1px solid rgba(38,162,105,0.15);
  padding-top: 2rem; z-index: 3;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem; color: var(--green-light); line-height: 1;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}

/* Ticker */
.ticker-wrap { background: var(--red); overflow: hidden; white-space: nowrap; padding: 0.7rem 0; position: relative; z-index: 2; }
.ticker { display: inline-block; animation: ticker 30s linear infinite; }
.ticker span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: #fff; padding: 0 3rem;
}
.ticker span::before { content: '◆'; margin-right: 3rem; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }


/* ================================================================
   ABOUT
   ================================================================ */
#about { padding: 8rem 4rem; background: var(--dark2); position: relative; overflow: hidden; }
#about::before {
  content: 'ABOUT';
  position: absolute; right: -2rem; top: 50%; transform: translateY(-50%) rotate(90deg);
  font-family: 'Bebas Neue', sans-serif; font-size: 12rem;
  color: rgba(38,162,105,0.03); pointer-events: none; white-space: nowrap;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; margin-top: 4rem; }

/* Photo with badge */
.about-photo-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}
.about-photo {
  width: 100%; height: 320px;
  object-fit: cover;
  border: 1px solid rgba(38,162,105,0.2);
  filter: grayscale(20%);
  transition: filter 0.4s;
}
.about-photo-wrap:hover .about-photo { filter: grayscale(0%); }
.about-photo-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 90px; height: 90px;
  background: var(--green);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
}
.badge-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; color: #fff; line-height: 1;
}
.badge-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); text-align: center; line-height: 1.3;
}

/* Mini card with icon grid */
.about-card-mini {
  background: var(--panel);
  border: 1px solid rgba(38,162,105,0.15);
  padding: 2rem;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.about-card-mini::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--green), transparent);
}
.about-icon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-icon-item {
  display: flex; flex-direction: column; gap: 6px; padding: 1.2rem;
  background: rgba(38,162,105,0.05); border: 1px solid rgba(38,162,105,0.1);
  transition: border-color 0.3s, background 0.3s;
}
.about-icon-item:hover { border-color: var(--green); background: rgba(38,162,105,0.1); }
.about-icon-item svg { width: 24px; height: 24px; stroke: var(--green); }
.about-icon-item strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
}
.about-icon-item p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.about-text p { color: var(--muted); line-height: 1.9; margin-bottom: 1.5rem; }
.badge-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }
.badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--green); color: var(--green);
  padding: 0.4rem 1rem;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: background 0.2s, color 0.2s;
}
.badge:hover { background: var(--green); color: #fff; }
.badge.red { border-color: var(--red); color: var(--red); }
.badge.red:hover { background: var(--red); color: #fff; }


/* ================================================================
   SERVICES
   ================================================================ */
#services { padding: 8rem 4rem; background: var(--dark); position: relative; overflow: hidden; }
.services-intro { max-width: 600px; margin-bottom: 5rem; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; background: rgba(38,162,105,0.1);
  border: 1px solid rgba(38,162,105,0.1);
}
.service-card {
  background: var(--dark2); padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
  transition: background 0.3s; cursor: default;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 0; background: linear-gradient(0deg, rgba(38,162,105,0.08), transparent);
  transition: height 0.4s;
}
.service-card:hover::before { height: 100%; }
.service-card:hover { background: var(--steel); }
.service-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 4rem;
  color: rgba(38,162,105,0.12); line-height: 1;
  position: absolute; top: 1.5rem; right: 2rem;
  transition: color 0.3s;
}
.service-card:hover .service-num { color: rgba(38,162,105,0.25); }
.service-icon {
  width: 56px; height: 56px;
  background: rgba(38,162,105,0.1); border: 1px solid rgba(38,162,105,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s, border-color 0.3s;
}
.service-card:hover .service-icon { background: rgba(38,162,105,0.2); border-color: var(--green); }
.service-icon svg { width: 26px; height: 26px; stroke: var(--green); fill: none; stroke-width: 1.5; }
.service-card h3 {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem;
  color: #fff; margin-bottom: 1rem; letter-spacing: 0.05em;
}
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.service-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-light); background: rgba(38,162,105,0.1); padding: 0.25rem 0.7rem;
}
.service-card.featured { grid-column: span 2; background: var(--panel); }
.service-card.featured .service-card-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.service-info-box { padding: 1.5rem; margin-bottom: 1rem; }
.service-info-box--green { background: rgba(38,162,105,0.06); border: 1px solid rgba(38,162,105,0.12); }
.service-info-box--red { background: rgba(224,27,36,0.04); border: 1px solid rgba(224,27,36,0.1); }
.service-info-box-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem; }
.service-info-box-label--green { color: var(--green); }
.service-info-box-label--red { color: var(--red); }
.service-info-box p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }


/* ================================================================
   PROJECTS
   ================================================================ */
#projects { padding: 8rem 4rem; background: var(--dark3); position: relative; }
.projects-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
.projects-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 1.5px; background: rgba(38,162,105,0.08);
}
.project-card {
  position: relative; overflow: hidden;
  background: var(--dark2); cursor: pointer;
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem;
}
.project-card:nth-child(1) { grid-column: span 5; }
.project-card:nth-child(2) { grid-column: span 4; }
.project-card:nth-child(3) { grid-column: span 3; }
.project-card:nth-child(4) { grid-column: span 3; }
.project-card:nth-child(5) { grid-column: span 5; }
.project-card:nth-child(6) { grid-column: span 4; }

/* Real photo support in project cards */
.project-bg {
  position: absolute; inset: 0;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.project-photo {
  position: absolute; inset: 0; overflow: hidden;
}
.project-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s;
  filter: grayscale(30%) brightness(0.7);
}
.project-card:hover .project-photo img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(0.6);
}
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.9) 100%);
}
.project-content { position: relative; z-index: 2; }
.project-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 8px;
}
.project-cat::before { content: ''; width: 16px; height: 1px; background: currentColor; }
.project-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; color: #fff; letter-spacing: 0.05em; margin-bottom: 0.3rem;
}
.project-loc { font-size: 0.8rem; color: var(--muted); }
.project-arrow {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 2;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-8px); opacity: 0;
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, background 0.2s;
}
.project-card:hover .project-arrow { opacity: 1; transform: none; border-color: var(--green); background: rgba(38,162,105,0.2); }
.project-arrow svg { width: 14px; height: 14px; stroke: var(--green); }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
#testimonials { padding: 8rem 4rem; background: var(--dark); position: relative; overflow: hidden; }
.testimonials-track-wrap { overflow: hidden; margin-top: 4rem; }
.testimonials-track {
  display: flex; gap: 1.5rem;
  width: max-content;
  animation: scrollTrack 40s linear infinite;
}
.testimonials-track:hover { animation-play-state: paused; }
@keyframes scrollTrack { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.testi-card {
  width: 420px; flex-shrink: 0;
  background: var(--panel);
  border: 1px solid rgba(38,162,105,0.12);
  padding: 2.5rem; position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: border-color 0.3s;
}
.testi-card:hover { border-color: rgba(38,162,105,0.35); }
.testi-card::before {
  content: '\201C'; position: absolute; top: 1rem; right: 2rem;
  font-size: 5rem; color: rgba(38,162,105,0.15);
  font-family: Georgia, serif; line-height: 1;
}
.testi-stars { display: flex; gap: 3px; margin-bottom: 1.2rem; color: var(--green); font-size: 0.9rem; }
.testi-text { color: var(--muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--green), var(--dark3));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: #fff;
  clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
}
.testi-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.05em; color: #fff;
}
.testi-role { font-size: 0.75rem; color: var(--muted); }

/* Counter band */
.counter-section {
  background: var(--green); padding: 4rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.counter-item { text-align: center; }
.counter-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem; color: #fff; display: block; line-height: 1;
}
.counter-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-top: 0.5rem;
}


/* ================================================================
   CONTACT
   ================================================================ */
#contact { padding: 8rem 4rem; background: var(--dark2); position: relative; overflow: hidden; }
#contact::after {
  content: ''; 
  /* position: absolute; bottom: -100px; right: -100px; */
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,27,36,0.06), transparent 70%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; margin-top: 4rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem;
  border: 1px solid rgba(38,162,105,0.12);
  background: rgba(38,162,105,0.03);
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.contact-item:hover { border-color: rgba(38,162,105,0.3); background: rgba(38,162,105,0.06); transform: translateX(4px); }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(38,162,105,0.12);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(38,162,105,0.2);
}
.contact-icon svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.5; }
.contact-item-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.3rem;
}
.contact-item-val { color: var(--text); font-size: 0.88rem; line-height: 1.6; }

/* Google Map */
.map-wrap { margin-top: 0.5rem; }
.map-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 6px;
}
.map-wrap iframe {
  border: 1px solid rgba(38,162,105,0.2);
  filter: grayscale(70%) invert(10%);
  transition: filter 0.4s;
}
.map-wrap:hover iframe { filter: grayscale(20%) invert(0%); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.emailjs-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(224,27,36,0.06);
  border: 1px solid rgba(224,27,36,0.2);
  padding: 1rem 1.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.05em;
  color: var(--muted); line-height: 1.6;
}
.emailjs-notice svg { flex-shrink: 0; stroke: var(--red); margin-top: 1px; }
.emailjs-notice strong { color: var(--green-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}
.form-input, .form-textarea, .form-select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(38,162,105,0.15);
  color: var(--text); padding: 0.9rem 1rem;
  font-family: 'Barlow', sans-serif; font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--green);
  background: rgba(38,162,105,0.05);
  box-shadow: 0 0 0 3px rgba(38,162,105,0.1);
}
.form-input.error, .form-textarea.error, .form-select.error { border-color: var(--red); }
.form-textarea { min-height: 130px; resize: vertical; }
.form-select option { background: var(--dark2); }
.form-submit {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--red); color: #fff; border: none;
  padding: 1.1rem 2.5rem; cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  align-self: flex-start;
  display: flex; align-items: center; gap: 10px;
  z-index: 999;
}
.form-submit:hover:not(:disabled) { background: #c01020; transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-submit svg { width: 16px; height: 16px; }
.form-note {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--muted); margin-top: 0.5rem;
}


/* ================================================================
   FOOTER
   ================================================================ */
footer { background: #080a09; padding: 3rem 4rem 2rem; border-top: 1px solid rgba(38,162,105,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; line-height: 1.8; margin-top: 1rem; max-width: 300px; }
.footer-socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(38,162,105,0.2);
  background: rgba(38,162,105,0.05);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.social-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s, padding-left 0.2s; }
.footer-col ul a:hover { color: var(--green-light); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-copy strong { color: var(--green); }
.cert-badges { display: flex; gap: 1rem; }
.cert {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(38,162,105,0.3); color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.cert:hover { border-color: var(--green); color: var(--green); }


/* ================================================================
   RESPONSIVE — MOBILE (max 900px)
   ================================================================ */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: flex; }

  #welcome, #about, #services, #projects, #testimonials, #team, #contact {
    padding: 5rem 1.5rem;
  }

  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo-badge { right: 0; bottom: -10px; width: 70px; height: 70px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
  .service-card.featured .service-card-inner { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card { grid-column: span 1 !important; }

  .team-grid { grid-template-columns: 1fr 1fr; }

  .counter-section { grid-template-columns: 1fr 1fr; }

  .hero-stats {
    flex-wrap: wrap; gap: 2rem;
    position: relative; bottom: auto; left: auto; right: auto;
    margin-top: 3rem; padding-top: 2rem;
  }

  h1 { font-size: clamp(3rem, 12vw, 5rem); }

  .form-row { grid-template-columns: 1fr; }

  .projects-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .whatsapp-btn { right: 1.5rem; bottom: 5rem; }
  .back-to-top { left: 1.5rem; bottom: 5rem; }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .testi-card { width: 85vw; }
}

#toast {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    z-index: 9999;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}