:root {
  --bg: #060b13;
  --bg-soft: #101725;
  --surface: #f5f7fb;
  --surface-strong: #ffffff;
  --text-dark: #0f172a;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #13b8c7;
  --accent-strong: #0e7a86;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(2, 8, 23, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--surface);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(6, 11, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.15rem;
  color: var(--text-light);
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-light);
  background: var(--bg);
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 10, 18, 0.85), rgba(4, 10, 18, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  padding: 4rem 1.5rem;
  margin: 0 1.25rem;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  line-height: 1.05;
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.25;
  max-width: 680px;
}

.hero-copy {
  max-width: 640px;
  margin: 1.1rem 0 0;
  font-size: 1.04rem;
  color: rgba(226, 232, 240, 0.92);
}

.author {
  margin-top: 1rem;
  font-weight: 600;
  color: #f8fafc;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 30px rgba(19, 184, 199, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.section {
  padding: 5.5rem 1.25rem;
}

.section-light {
  background: var(--surface);
  color: var(--text-dark);
}

.section-dark {
  background: linear-gradient(135deg, var(--bg-soft), var(--bg));
  color: var(--text-light);
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2.4rem;
}

.section-heading h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.5fr 0.9fr;
}

.about-card,
.about-profile,
.service-card,
.project-card,
.feature-card,
.application-card,
.contact-form {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.about-card,
.about-profile {
  padding: 1.5rem;
  background: var(--surface-strong);
}

.about-card p,
.about-profile p,
.service-card p,
.project-card p,
.contact-copy p {
  color: var(--text-muted);
}

.about-profile h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.about-profile p {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.6rem 0;
}

.about-profile span {
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.card-grid,
.project-grid,
.feature-grid,
.application-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border);
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(19, 184, 199, 0.14);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-item {
  padding: 1.25rem;
  background: var(--surface-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(19, 184, 199, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.052);
  border-color: var(--border);
}

.project-video {
  display: block;
  width: min(100%, 280px);
  margin: 0 auto 0.35rem;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-video:hover,
.project-video:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}

.project-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card h3,
.service-card h3,
.timeline-item h3 {
  margin: 0.2rem 0 0;
}

.project-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-muted);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.tech-list li {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: rgba(19, 184, 199, 0.12);
  color: #8fe6ef;
  font-size: 0.9rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.application-card {
  padding: 1.25rem;
  background: var(--surface-strong);
  color: var(--text-dark);
  font-weight: 600;
}

.application-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-copy,
.contact-card {
  padding: 1.5rem;
  background: var(--surface-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-links a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(19, 184, 199, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
}

.contact-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.contact-card p {
  margin: 0;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.28);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 1.5rem 2rem;
  background: var(--bg);
  color: var(--text-light);
}

.floating-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.32);
}

.floating-whatsapp span {
  font-size: 1.45rem;
  line-height: 1;
}

.site-footer h3 {
  margin: 0 0 0.2rem;
}

.site-footer p {
  margin: 0;
  color: rgba(226, 232, 240, 0.76);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .card-grid,
  .project-grid,
  .feature-grid,
  .application-grid,
  .timeline,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.25rem;
    flex-direction: column;
    min-width: 220px;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(6, 11, 19, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: 88vh;
  }

  .card-grid,
  .project-grid,
  .feature-grid,
  .application-grid,
  .timeline,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 4.2rem 1rem;
  }

  .site-header {
    padding: 0.9rem 1rem;
  }

  .hero-content {
    padding: 3rem 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .floating-whatsapp {
    right: 1rem;
    bottom: 1rem;
    width: 54px;
    height: 54px;
  }
}

