/* ========== RESET / BASE ========== */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-primary: #2563eb;
  --color-cta: #22d3ee;
  --radius-sm: 6px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 82px;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--color-text);
  background: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== ANIMATED BLUE BLOBS ========== */
.blob-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  will-change: transform;
}

.blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 5%;
  left: -5%;
  animation: blobDrift1 20s ease-in-out infinite;
}

.blob--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  top: 30%;
  right: -8%;
  animation: blobDrift2 25s ease-in-out infinite;
}

.blob--3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: 15%;
  left: 20%;
  animation: blobDrift3 22s ease-in-out infinite;
}

.blob--4 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
  top: 60%;
  right: 15%;
  animation: blobDrift4 28s ease-in-out infinite;
}

.blob--5 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #818cf8 0%, transparent 70%);
  top: -5%;
  right: 30%;
  animation: blobDrift5 18s ease-in-out infinite;
}

@keyframes blobDrift1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(120px, 80px) scale(1.1);
  }
  50% {
    transform: translate(60px, 200px) scale(0.95);
  }
  75% {
    transform: translate(-40px, 100px) scale(1.05);
  }
}

@keyframes blobDrift2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-100px, 60px) scale(1.08);
  }
  50% {
    transform: translate(-160px, -80px) scale(0.92);
  }
  75% {
    transform: translate(-50px, -140px) scale(1.04);
  }
}

@keyframes blobDrift3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(140px, -100px) scale(1.12);
  }
  66% {
    transform: translate(-80px, -60px) scale(0.9);
  }
}

@keyframes blobDrift4 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  20% {
    transform: translate(-120px, -60px) scale(1.06);
  }
  50% {
    transform: translate(-80px, 100px) scale(0.94);
  }
  80% {
    transform: translate(60px, 40px) scale(1.1);
  }
}

@keyframes blobDrift5 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(80px, 120px) scale(1.15);
  }
  60% {
    transform: translate(200px, 60px) scale(0.88);
  }
}

/* Ensure all main content sits above blobs */
.site-header,
.hero,
section,
.site-footer,
main {
  position: relative;
  z-index: 1;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none !important;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.35s ease;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }
  .header-inner {
    height: 72px;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  color: #1e293b;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #2563eb;
}

/* ========== LOGO ========== */
.logo img {
  height: 130px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    height: 110px;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  background: #2563eb;
  color: #ffffff;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #1d4ed8;
}

.btn-outline {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-outline:hover {
  background: #2563eb;
  color: #ffffff;
}

.btn-small {
  padding: 0.5rem 1.25rem;
}
.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  background-color: #ffffff;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 72px);
    background-attachment: scroll;
    background-position: center center;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg);
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.125rem;
  color: #475569;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding: 3rem 0;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
}

/* ========== SECTION HEADERS ========== */
.section-header {
  max-width: 640px;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-header p {
  color: #475569;
  font-size: 1.125rem;
}

/* ========== GRIDS ========== */
.services-grid,
.why-grid,
.process-steps,
.values-grid,
.services-detail-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .services-grid,
  .why-grid,
  .process-steps,
  .values-grid,
  .services-detail-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CARDS ========== */
.service-card,
.step,
.service-detail-card,
.work-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover,
.service-detail-card:hover,
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

.work-card {
  padding: 1.5rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ========== SPECIFIC STYLES ========== */
.services {
  padding: 8rem 0;
  background: rgba(255, 255, 255, 0.25);
}
.why,
.process {
  padding: 6rem 0;
}
.process {
  background: rgba(255, 255, 255, 0.25);
}
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  color: #ffffff;
  text-align: center;
}
.contact {
  padding: 6rem 0;
}
.about-hero {
  padding: 6rem 0 4rem;
  background: rgba(255, 255, 255, 0.25);
}
.about-content {
  padding: 5rem 0;
}
.values {
  padding: 6rem 0;
  background: rgba(255, 255, 255, 0.35);
}
.services-detail {
  padding: 5rem 0;
}
.work {
  padding: 6rem 0;
}

.cta-inner {
  max-width: 720px;
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}
.cta p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  opacity: 0.95;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.contact-info p {
  color: #475569;
  margin-bottom: 2rem;
}
.contact-details {
  list-style: none;
  padding: 0;
}
.contact-details li {
  margin-bottom: 0.75rem;
}
.contact-form {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 2.5rem;
}
.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.about-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.about-hero p {
  max-width: 640px;
  font-size: 1.125rem;
  color: #475569;
}

/* ========== FOUNDERS ========== */
.founders {
  padding: 6rem 0 2rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.founder-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

.founder-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid rgba(37, 99, 235, 0.15);
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.founder-role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.founder-card > p:last-child {
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .founders-grid {
    grid-template-columns: 1fr;
  }
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.about-content h2 {
  margin-bottom: 1rem;
}
.about-content p {
  color: #475569;
  margin-bottom: 1rem;
}

.service-detail-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
}
.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.service-detail-card h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.service-detail-card p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.site-footer {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img {
  height: 200px;
}
.footer-brand p {
  color: var(--color-text-muted);
  max-width: 360px;
}
.footer-links h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.work-image {
  height: 160px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.work-image:empty::before {
  content: 'Image Placeholder';
}
.work-card p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 999px;
}
.work-tag.demo {
  background: var(--color-cta);
}

.work-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-card-link:hover .work-card {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.work-card-link .work-card:hover {
  transform: translateY(-3px);
}

/* ========== LANGUAGE SWITCH ========== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}
.lang-switch a {
  color: #475569;
  transition: color 0.2s ease;
}
.lang-switch a:hover {
  color: #2563eb;
}
.lang-switch .active {
  color: #2563eb;
  font-weight: 600;
}

/* ========== NAVIGATION ========== */
.desktop-nav {
  display: flex;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  background: rgba(11, 31, 51, 0.06);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 6000;
  box-shadow: 0 2px 8px rgba(11, 31, 51, 0.08);
}
.nav-toggle span {
  width: 28px;
  height: 4px;
  background: #0b1f33;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 4000;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(85vw, 320px);
  height: 100dvh;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 5000;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav a {
  font-weight: 500;
  color: #1e293b;
  transition: color 0.2s ease;
}
.mobile-nav a:hover {
  color: #2563eb;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translateY(12px);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-12px);
}
body.menu-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== SPECIFIC ITEMS ========== */
.service-card h3,
.why-item h3,
.value-item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.service-card p,
.why-item p,
.value-item p {
  color: #475569;
}
.step span {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}
