/* ====== Global Reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====== Theme ====== */
:root {
  --color-primary: #007bff;
  --color-secondary: #6f42c1;
  --color-bg: #050816;
  --color-surface: #0b1020;
  --color-text: #f9fafb;
  --color-muted: #9ca3af;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --radius-xl: 1.5rem;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1f2937, #020617);
  color: var(--color-text);
  line-height: 1.6;
}

/* ====== Layout ====== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding-top: 80px;
  padding-bottom: 60px;
}

/* ====== Navbar ====== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(5, 6, 26, 0.95));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand img {
  height: 32px;
  width: 32px;
  border-radius: 999px;
  object-fit: contain;
}

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

.nav-brand-text span:first-child {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.nav-brand-text span:last-child {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--color-text);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    display: none;
  }

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

  .nav-toggle {
    display: block;
  }
}

/* ====== Hero / Sections ====== */
.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.9rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--color-muted);
}

/* ====== Cards ====== */
.card {
  background: radial-gradient(circle at top left, #111827, #020617);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.card-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.6);
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-body {
  font-size: 0.92rem;
  color: var(--color-muted);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.card-tag {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.9);
}

/* ====== Grid ====== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ====== Hero (Home) ====== */
.hero {
  display: grid;
  grid-template-columns: 1.6fr 1.3fr;
  gap: 2rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.hero-gradient {
  background: linear-gradient(to right, #60a5fa, #a855f7, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #f9fafb;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.7);
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--color-muted);
  background: transparent;
}

.btn-outline:hover {
  border-color: #e5e7eb;
  color: #e5e7eb;
}

.hero-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-highlight span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-highlight .dot {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  background: #22c55e;
}

/* Hero right */
.hero-panel {
  border-radius: 1.8rem;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.6), rgba(15, 23, 42, 0.98));
  padding: 1.4rem;
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow: var(--shadow-soft);
}

.hero-panel-inner {
  border-radius: 1.4rem;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 1.3rem;
  backdrop-filter: blur(6px);
}

.hero-panel-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

.hero-panel-subtitle {
  font-size: 0.78rem;
  color: #cbd5f5;
  margin-bottom: 0.8rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.metric {
  flex: 1;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.6rem 0.7rem;
  font-size: 0.76rem;
}

.metric-label {
  color: #e5e7eb;
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 1rem;
  font-weight: 600;
}

.metric-footnote {
  font-size: 0.7rem;
  color: #cbd5f5;
  margin-top: 0.3rem;
}

/* ====== Logos Strip ====== */
.logo-strip {
  margin-top: 2.2rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.logo-strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.75rem;
}

.logo-pill {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  font-size: 0.76rem;
}

/* ====== Credentials Logos Grid ====== */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.logo-item {
  background: radial-gradient(circle at top left, #111827, #020617);
  border-radius: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-item img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.logo-item span {
  font-size: 0.78rem;
  color: #e5e7eb;
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    gap: 1.6rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ====== Timeline / Projects ====== */
.timeline {
  border-left: 1px solid rgba(55, 65, 81, 0.9);
  padding-left: 1.3rem;
  margin-left: 0.4rem;
}

.timeline-item {
  margin-bottom: 1.4rem;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -1.45rem;
  top: 0.2rem;
  height: 10px;
  width: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.timeline-title {
  font-size: 0.98rem;
  font-weight: 500;
}

.timeline-meta {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

.timeline-body {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
}

/* ====== Contact Page ====== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr;
  gap: 2rem;
}

.contact-card {
  background: radial-gradient(circle at top left, #111827, #020617);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
}

.contact-list {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.contact-list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5e7eb;
  margin-top: 1rem;
}

.contact-list dd {
  margin-top: 0.25rem;
}

.contact-note {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-text);
  font-size: 0.9rem;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* ====== Footer ====== */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.1rem 0 1.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

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