:root {
  --blue: #3b82f6;
  --sky: #38bdf8;
  --dark: #080b12;
  --surface: #0d1117;
  --card: #111820;
  --stroke: rgba(255, 255, 255, 0.06);
  --text: #c9d1d9;
  --muted: #6e7681;
  --white: #f0f6fc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── HEADER ─── */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 64px);
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--stroke);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: rgb(228, 228, 228);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
}

nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--blue);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.nav-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  position: relative;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  margin: 5px auto;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── HERO ─── */
.hero {
  height: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  top: 60px;
}

.hero-bg {
  position: relative;
  width: 100%;
}

.hero-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-bottom-text {
  position: relative;
  bottom: auto;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 40px clamp(32px, 8vw, 160px) 32px;
  text-align: center;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.7);
  max-width: 100%;
  background: linear-gradient(
    180deg,
    rgba(8, 11, 18, 0.85) 0%,
    var(--dark) 100%
  );
}

.hero-bottom-text::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  margin: 0 auto 24px;
  border-radius: 2px;
}

.hero-bottom-text em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}

.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--stroke);
  transition: 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

/* ─── SHARED ─── */
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-sub {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
  max-width: 480px;
}

/* ─── BRAND STRIP ─── */
.brand-strip {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 80px clamp(24px, 10vw, 140px);
  border-bottom: 1px solid var(--stroke);
}

.brand-strip-text {
  flex: 1;
}

.brand-strip-text p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
  margin-top: 16px;
}

/* ─── PILLARS ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--stroke);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.pillar {
  padding: 56px 40px;
  background: var(--dark);
  position: relative;
  cursor: default;
  transition: background 0.4s;
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--blue), var(--sky)) 1;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar:hover {
  background: rgba(59, 130, 246, 0.03);
}
.pillar:hover::before {
  opacity: 1;
}
.pillar:hover .pillar-num {
  color: var(--blue);
}
.pillar:hover .pillar-icon-wrap {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
}

.pillar-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.pillar-num {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.04em;
  flex-shrink: 0;
  transition: color 0.4s;
}

.pillar-icon-wrap {
  width: 42px;
  height: 42px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s, background 0.4s;
}

.pillar-icon-wrap i {
  font-size: 20px;
  color: var(--blue);
}

.pillar h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.35;
}

.pillar p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── SERVICES ─── */
.services-section {
  padding: 120px clamp(24px, 10vw, 140px);
}

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-radius: 14px;
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}

/* bento rhythm: alternating wide cards */
.service-card:nth-child(1),
.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 2;
}

.service-card:hover {
  background: var(--card);
}

/* left accent bar */
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--sky));
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover::before {
  opacity: 1;
}

/* ghost watermark number */
.svc-watermark {
  position: absolute;
  top: -12px;
  right: 20px;
  font-size: 112px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.02);
  letter-spacing: -0.06em;
  pointer-events: none;
  transition: color 0.4s;
  user-select: none;
}

.service-card:hover .svc-watermark {
  color: rgba(59, 130, 246, 0.045);
}

.svc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.svc-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 20px;
  flex-shrink: 0;
  transition:
    border-color 0.35s,
    background 0.35s;
}

.service-card:hover .svc-icon {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.06);
}

.svc-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

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

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  padding-top: 20px;
  transition:
    gap 0.22s,
    color 0.22s;
}

.svc-link:hover {
  gap: 10px;
}
.svc-link i {
  font-size: 14px;
}

/* ─── PROJECTS ─── */
.projects-section {
  padding: 120px clamp(24px, 10vw, 140px);
  background: var(--surface);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.project-placeholder {
  padding: 72px 40px;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.project-placeholder i {
  font-size: 34px;
  color: rgba(59, 130, 246, 0.2);
  display: block;
  margin-bottom: 16px;
}

.project-placeholder strong {
  display: block;
  color: var(--text);
  font-size: 19px;
  margin-bottom: 6px;
}

.project-placeholder a {
  color: var(--blue);
  text-decoration: none;
}

.project-placeholder a:hover {
  text-decoration: underline;
}

/* ─── CONTACT ─── */
.contact-section {
  padding: 120px clamp(24px, 10vw, 140px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  margin-top: 56px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.ci-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  font-size: 19px;
}

.ci-text strong {
  display: block;
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ci-text span {
  color: var(--muted);
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 18px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  padding: 14px;
  margin-top: 4px;
}

.form-status {
  font-size: 18px;
  text-align: center;
  min-height: 20px;
}
.form-status.success {
  color: #22c55e;
}
.form-status.error {
  color: #ef4444;
}

/* ─── FOOTER ─── */
footer {
  padding: 28px clamp(24px, 10vw, 140px);
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer img {
  height: 38px;
}
footer p {
  font-size: 16px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--white);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card:nth-child(1),
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 11, 18, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 150;
  }

  nav.open {
    opacity: 1;
    pointer-events: all;
  }

  nav a {
    font-size: 22px;
    padding: 14px 28px;
  }

  .brand-strip {
    flex-direction: column;
    gap: 36px;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card:nth-child(1),
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }
  .svc-watermark {
    font-size: 96px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .projects-head {
    flex-direction: column;
    align-items: flex-start;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
}
