/* ========== RESET & GLOBAL ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050712;
  color: #f9fafb;
  line-height: 1.6;
}

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

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

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ========== HEADER / NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(5, 7, 18, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 0%, #00e5ff 0, #00bcd4 40%, #0284c7 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #020617;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-name span {
  color: #00e5ff;
}

.brand-sub {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #00e5ff;
  transition: width 0.18s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00bcd4, #00e5ff);
  color: #020617;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 229, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 229, 255, 0.4);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: 0.25s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 80px; /* header space */
  display: flex;
  align-items: center;
  background: url("bg.webp") center/cover no-repeat fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.9) 55%, #020617);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 60px 0 80px;
}

/* Hero text */
.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.hero-copy h1 span {
  color: #00e5ff;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 10px;
}

.hero-copy .hero-sub {
  font-size: 0.98rem;
  color: #cbd5f5;
  max-width: 500px;
  margin-bottom: 18px;
}

.hero-copy strong {
  color: #e5e7eb;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: #a5b4fc;
}

.hero-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00bcd4, #00e5ff);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #020617;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(34, 211, 238, 0.45);
}

.btn-ghost {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(209, 213, 219, 0.9);
}

.hero-note {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Hero side card */
.hero-card {
  background: radial-gradient(circle at top, #020617, #020617 45%, #020617);
  border-radius: 18px;
  padding: 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
  font-size: 0.9rem;
  animation: float-card 3.3s ease-in-out infinite;
}

.hero-card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 10px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: #e5e7eb;
}

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

/* ========== GENERIC SECTIONS ========== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 6px;
}

.section h2 {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.section-sub {
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: #9ca3af;
}

/* ========== ABOUT ========== */
.about {
  background: radial-gradient(circle at top, #020617, #020617 60%, #030712);
}

.about-layout {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-layout p {
  font-size: 0.98rem;
  color: #e5e7eb;
  margin-bottom: 24px;
}

/* Tags reused */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tags span {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e0f2fe;
}

/* ========== CARDS (Services, Projects) ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  padding: 22px 20px;
  border-radius: 16px;
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.card p {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 10px;
}

.card ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.86rem;
  color: #e5e7eb;
}

.card ul li + li {
  margin-top: 4px;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.8);
}

/* Projects */
.projects {
  background: radial-gradient(circle at top, #020617, #040712 60%, #020617);
}

.project-card .project-meta {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #a5b4fc;
}

/* ========== STACK ========== */
.stack {
  background: #020617;
}

.stack-line {
  text-align: center;
  margin-top: 16px;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* ========== WHY ========== */
.why {
  background: radial-gradient(circle at bottom, #020617, #020617 60%, #020617);
}

.why-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.why-list li + li {
  margin-top: 8px;
}

/* ========== CONTACT ========== */
.contact {
  background: #020617;
}

.contact-email {
  text-align: center;
  margin-top: 10px;
  font-size: 0.95rem;
}

.contact-email a {
  color: #00e5ff;
  font-weight: 600;
}

.socials {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 0.9rem;
}

.socials a {
  color: #7dd3fc;
  font-weight: 500;
}

.socials a:hover {
  text-decoration: underline;
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  padding: 18px 0 26px;
  font-size: 0.78rem;
  color: #6b7280;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #e5e7eb;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 14px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    background: rgba(5, 7, 18, 0.98);
    border-bottom: 1px solid rgba(55, 65, 81, 0.8);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 5%;
    gap: 10px;
    display: none;
  }

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

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero-grid {
    padding-top: 40px;
  }

  .section {
    padding: 64px 0;
  }

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