/* Base setup */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --green: #16d743;
  --blue: #39b5d9;
  --bg: #f3f4f6;
  --bg-alt: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 15px 30px rgba(15, 23, 42, 0.09);
  --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.18);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 720px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 244, 246, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  font-size: 1.1rem;
}

.logo-text {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.nav-link:hover {
  background: rgba(22, 215, 67, 0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-link.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  font-weight: 500;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover,
.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.18);
}

.btn-outline {
  background: transparent;
  border-color: rgba(55, 65, 81, 0.2);
  color: var(--text);
}

.full-width {
  width: 100%;
}

/* Hero (home) */
.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3.1vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.hero-text p {
  max-width: 35rem;
  color: var(--muted);
  margin-bottom: 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(57, 181, 217, 0.08);
}

.hero-card {
  background: #111827;
  color: #f9fafb;
  border-radius: 24px;
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(22, 215, 67, 0.16), transparent 55%);
  opacity: 0.9;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.hero-card p {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.9rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.hero-list li {
  margin-bottom: 0.4rem;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--muted);
  max-width: 35rem;
}

/* Cards & grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.card h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.card-service ul {
  margin: 0.4rem 0 0;
}

/* Two columns */
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

/* Lists */
.checklist,
.simple-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  font-size: 0.93rem;
}

.checklist li,
.simple-list li {
  margin-bottom: 0.35rem;
}

.checklist li::before {
  content: "✓";
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--green);
  font-weight: 600;
}

/* Pill stats */
.pill-stats {
  display: grid;
  gap: 0.8rem;
}

.pill {
  border-radius: var(--radius-pill);
  padding: 0.7rem 1rem;
  border: 1px solid rgba(55, 65, 81, 0.12);
  background: linear-gradient(135deg, rgba(22, 215, 67, 0.04), rgba(57, 181, 217, 0.04));
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}

.pill-label {
  color: var(--muted);
}

.pill-value {
  font-weight: 600;
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(57, 181, 217, 0.25);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.contact-info p {
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0.6rem;
  font-size: 0.93rem;
}

.contact-info li {
  margin-bottom: 0.35rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.4rem 0 1.4rem;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.page-hero p {
  color: var(--muted);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.project-card h2 {
  font-size: 1.1rem;
}

.project-tag {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(57, 181, 217, 0.09);
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
  color: #0f172a;
}
/* Before / After layout */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.8rem 0 0.4rem;
}

.ba-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.ba-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ba-label-after {
  background: var(--green);
}


/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.4rem 0 1.8rem;
  background: #f9fafb;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-meta {
  margin-top: 0.2rem;
}

.footer-meta a {
  color: var(--blue);
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* Small text */
.small {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Links */
a {
  color: inherit;
}

a[href^="tel:"],
a[href^="mailto:"] {
  color: var(--blue);
  text-decoration: none;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 1.8rem;
  }

  .site-nav {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
    .ba-grid {
    grid-template-columns: minmax(0, 1fr);
  }


  .site-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 1.6rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
  height: 90px;      /* adjust 44–64px depending on header height */
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brand-logo { height: 42px; }
}

/* Projects Page */
.projects-filter {
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin: 1rem 0 1.25rem;
}
.chip {
  border: 1px solid rgba(17,24,39,0.12);
  background: #fff;
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.chip.active {
  border-color: rgba(22,215,67,0.55);
  box-shadow: 0 0 0 4px rgba(22,215,67,0.12);
}

.projects-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.project-card {
  padding: 0;
  overflow: hidden;
}
.project-media {
  padding: 0;
  border: 0;
  background: none;
  width: 100%;
  cursor: zoom-in;
}
.project-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.project-body {
  padding: 1rem 1.1rem 1.1rem;
}
.project-head {
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.project-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid rgba(57,181,217,0.28);
  background: rgba(57,181,217,0.10);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.project-tags {
  display:flex;
  flex-wrap:wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.tag {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid rgba(229,231,235,0.9);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff;
}

.cta-banner {
  margin-top: 1.5rem;
  display:flex;
  gap: 1rem;
  align-items:center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229,231,235,0.9);
  background: linear-gradient(120deg, rgba(22,215,67,0.10), rgba(57,181,217,0.10));
}
.cta-actions {
  display:flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-primary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--green), var(--blue));
  color: #07130c;
  font-weight: 800;
  border: 0;
  text-decoration:none;
}
.btn-secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(17,24,39,0.12);
  text-decoration:none;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.82);
  z-index: 999;
}
.lightbox.open { display:flex; }
.lightbox img {
  max-width: min(1200px, 96vw);
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 0 5px rgba(22,215,67,0.12), 0 0 0 10px rgba(57,181,217,0.10);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-media img { height: 240px; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}
