:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --border: #cbd5e1;
  --shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  padding-top: 88px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  /* background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%); */
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

.brand-mark {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

.brand-copy p {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-btn {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  user-select: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 62%);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  line-height: 1.05;
  margin-bottom: 1.3rem;
  white-space: normal;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.hero-typed {
  display: inline-block;
  min-width: 14ch;
}

.hero p {
  font-size: 1.05rem;
  max-width: 42rem;
  opacity: 0.94;
  margin-bottom: 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -20rem;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  animation: slideInRight 1s ease-out 0.3s both;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    display: none;
  }
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
  position: relative;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-typed {
  display: inline-block;
  margin-left: 0.6rem;
  border-right: 2px solid rgba(255, 255, 255, 0.95);
  padding-right: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  animation: blinkCursor 0.8s steps(2, start) infinite;
}

@keyframes blinkCursor {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.95);
  }
  50% {
    border-color: transparent;
  }
}

.hero-marquee {
  overflow: hidden;
  position: absolute;
  bottom: -6rem;
  left: 50%;
  transform: translateX(-50%);
  /* width: calc(100vw + 120px); */
  max-width: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 60px;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  gap: 4rem;
  padding: 1rem 0;
  white-space: nowrap;
}

.marquee-track span {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.trust-signals {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.trust-signals span {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 50%
    );
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-image img {
  width: 100%;
  max-width: 640px;
  height: auto;
  object-fit: cover;
  border-radius: 30px;
  animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.about-grid,
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-grid img,
.founder-grid img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.12);
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: translateY(-6px) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
  100% {
    transform: translateY(-6px) scale(1);
  }
}

.card figure {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: 24px;
}

.card figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover figure img {
  transform: scale(1.08);
}

.card-content {
  display: grid;
  gap: 0.8rem;
}

.card-content span {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--muted);
}

.card.style-1 {
  border-top: 4px solid #2563eb;
}

.card.style-2 {
  border-top: 4px solid #0ea5e9;
}

.card.style-3 {
  border-top: 4px solid #7c3aed;
}

.card.style-4 {
  border-top: 4px solid #22c55e;
}

.card.style-5 {
  border-top: 4px solid #f59e0b;
}

.card.style-6 {
  border-top: 4px solid #ec4899;
}

.project-card.style-a {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
}

.project-card.style-b {
  background: linear-gradient(180deg, #1e40af 0%, #0f172a 100%);
  color: #ffffff;
}

.project-card.style-c {
  background: linear-gradient(180deg, #0d9488 0%, #064e3b 100%);
  color: #ffffff;
}

.project-card.style-d {
  background: linear-gradient(180deg, #9333ea 0%, #4c1d95 100%);
  color: #ffffff;
}

.project-card.style-e {
  background: linear-gradient(180deg, #c2410c 0%, #7c2d12 100%);
  color: #ffffff;
}

.project-card.style-f {
  background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%);
  color: #ffffff;
}

.project-card figure {
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.project-card figure img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.project-card .card-content {
  padding: 1.2rem 1.4rem 1rem;
}

.project-card h3 {
  margin-bottom: 0.7rem;
}

.project-card p {
  color: rgba(255, 255, 255, 0.78);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.01);
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--muted);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-item p {
  color: var(--muted);
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-logo {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.35rem;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.footer-logo h3 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer-logo p {
  color: #cbd5e1;
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-credentials {
  text-align: right;
}

.credentials {
  margin-top: 1.5rem;
}

.credentials p {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.credentials strong {
  color: var(--text);
}

.contact-box {
  background: var(--surface);
  padding: 2.2rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.success-message {
  display: none;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-weight: 600;
}

.success-message.visible {
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

textarea {
  min-height: 170px;
  resize: vertical;
}

button[type="submit"] {
  border: none;
  min-width: 170px;
  background: var(--primary);
  color: #ffffff;
}

button[type="submit"]:hover {
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

footer {
  background: #0f172a;
  color: #ffffff;
  padding: 2rem 0;
}

footer p {
  color: #cbd5e1;
}

.fade {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-credentials {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    flex-direction: column;
    padding: 1.4rem 1.5rem;
    text-align: center;
    row-gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .btn-group {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.4rem;
    white-space: normal;
  }

  body {
    padding-top: 76px;
  }
}

/* Go to Top Button */
.go-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 999;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
}

.go-to-top.show {
  display: flex;
  opacity: 1;
  transform: scale(1) translateY(0);
}

.go-to-top:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
}

.go-to-top:active {
  transform: scale(0.95);
}

.go-to-top svg {
  animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .go-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
  }
}
