:root {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-2: #17233d;
  --text: #e6edf7;
  --muted: #9fb0cc;
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --border: #263555;
  --success: #34d399;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 100% -10%, #1a2a4a 0%, transparent 60%),
              radial-gradient(1000px 600px at -10% 0%, #12213f 0%, transparent 60%),
              var(--bg);
  line-height: 1.65;
}

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

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

/* Brand with profile image */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}
.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand span strong {
  font-size: 0.98rem;
  color: var(--text);
}
.brand span small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #31578e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Sections */
section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 32px;
}

.hero {
  padding-top: 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.kicker {
  display: inline-block;
  background: #102443;
  border: 1px solid #1e3b67;
  color: #93c5fd;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 62ch;
}

.hero-visual {
  background: linear-gradient(145deg, #12203b 0%, #162646 100%);
  border: 1px solid #27406d;
  border-radius: 18px;
  padding: 24px;
  min-height: 260px;
  animation: float 6s ease-in-out infinite;
}

.terminal {
  background: #070d1a;
  color: #b9d7ff;
  border-radius: 12px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  line-height: 1.6;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Reusable */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: .95rem;
}

.badge {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #d5e4ff;
  border-radius: 999px;
  padding: 6px 10px;
  margin: 6px 6px 0 0;
  font-size: .82rem;
  font-weight: 600;
}

.mini-note {
  margin-top: 14px;
  color: #86efac;
  font-weight: 600;
  font-size: .92rem;
}

.project-meta {
  margin: 10px 0 12px;
}
.project-meta span {
  font-size: .8rem;
  color: #c8dcff;
  background: #142845;
  border: 1px solid #284570;
  padding: 5px 8px;
  border-radius: 8px;
  margin-right: 6px;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 18px;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #071326;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: #31578e;
}
.btn-ghost:hover {
  background: #12233e;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

form {
  display: grid;
  gap: 12px;
}
input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d172b;
  color: var(--text);
  font: inherit;
  outline: none;
}
input:focus, textarea:focus {
  border-color: #4b78c2;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}
textarea {
  min-height: 130px;
  resize: vertical;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 34px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  background: #25D366;
  color: #071326;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.45);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .nav-links {
    gap: 12px 16px;
  }

  .hero {
    padding-top: 72px;
  }
}