:root {
  --bg: #f6f2ff;
  --bg-secondary: #eef7ff;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #5d6576;
  --accent: #6a74ff;
  --accent-soft: #d7ddff;
  --highlight: #ffb6c8;
  --shadow: 0 20px 50px rgba(31, 36, 48, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-secondary) 100%);
  min-height: 100vh;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.6;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #c4d9ff 0%, transparent 70%);
  top: -80px;
  left: -60px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #ffd6e8 0%, transparent 70%);
  bottom: -120px;
  right: -100px;
  animation-delay: 2s;
}

.orb-3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #d9f7ff 0%, transparent 70%);
  top: 35%;
  right: 12%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero {
  padding: 48px 6vw 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 12px 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 30px rgba(31, 36, 48, 0.08);
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background: rgba(106, 116, 255, 0.12);
  color: var(--accent);
}

.hero-content {
  max-width: 820px;
  margin: 80px auto 0;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 25px rgba(106, 116, 255, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  border: 1px solid rgba(106, 116, 255, 0.3);
}

.btn.ghost:hover {
  background: white;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 80px 6vw;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  max-width: 700px;
}

.grid {
  display: grid;
  gap: 24px;
}

.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.card h3 {
  font-size: 1.15rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.project-card {
  min-height: 320px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer {
  text-align: center;
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 25, 35, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 24px;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: 18px;
  padding: 16px;
  max-width: min(900px, 92vw);
  max-height: 85vh;
  overflow: auto;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: var(--accent-soft);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.no-scroll {
  overflow: hidden;
}

@media (max-width: 820px) {
  .nav {
    flex-direction: column;
    border-radius: 24px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
