/* ==========================
   Base
   ========================== */

:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #0f172a;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.6);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent);
}

p {
  line-height: 1.7;
  color: var(--text-muted);
}

ul {
  padding-left: 1.1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* ==========================
   Layout helpers
   ========================== */

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 5rem 0 4rem;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.06), transparent 55%),
    radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.04), transparent 55%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.1vw, 2rem);
}

.section-header p {
  max-width: 640px;
  margin: 0.5rem auto 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}

.cert-grid,
.edu-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* simple helpers */
.mt-2 {
  margin-top: 1.5rem;
}

.text-muted {
  color: var(--text-muted);
}

/* ==========================
   Header & Nav
   ========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.45), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.6), transparent 55%),
    #020617;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.9);
}

.brand-mark__initials {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.brand-name {
  font-weight: 650;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links li {
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.25rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.25s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* ==========================
   Buttons
   ========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b1120;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.45);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.7);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.7);
}

.btn-full {
  width: 100%;
}

/* ==========================
   Hero
   ========================== */

.hero {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.18), transparent 60%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), #020617);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 2.9rem);
}

.hero-headline {
  font-size: 1.05rem;
  font-weight: 550;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 540px;
  margin-top: 0.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

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

.hero-meta span {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.7rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  transform: translateY(4px);
}

.hero-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-card li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
  font-size: 0.93rem;
  color: var(--text-main);
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

/* ==========================
   Cards & Utilities
   ========================== */

.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  font-size: 1.1rem;
}

.card ul {
  margin: 0.5rem 0 0;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "•";
  position: absolute;
  left: 0.15rem;
  top: 0.1rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* ==========================
   About
   ========================== */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-sidebar .small {
  font-size: 0.85rem;
}

.strengths-list,
.language-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.strengths-list li {
  margin-bottom: 0.6rem;
}

.strengths-list strong {
  display: block;
  font-size: 0.94rem;
}

.strengths-list span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.language-list li {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

/* ==========================
   Skills
   ========================== */

.skills-summary {
  margin-bottom: 2rem;
}

.skills-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}

.skills-column h3 {
  margin-bottom: 0.5rem;
}

.skills-column ul li {
  margin-bottom: 0.4rem;
  font-size: 0.94rem;
}

/* Strategic Technical Domains grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.skills-column {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ==========================
   Timeline (Experience)
   ========================== */

.timeline {
  position: relative;
  margin-top: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-strong), rgba(15, 23, 42, 0.4));
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2.2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.2);
}

.timeline-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.timeline-company {
  font-weight: 600;
  color: var(--text-main);
}

.timeline-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.timeline-content > p {
  margin-bottom: 0.6rem;
}

.timeline-content ul {
  margin: 0;
}

.timeline-content li {
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.timeline-item--compact {
  margin-bottom: 1.6rem;
}

/* ==========================
   Contact
   ========================== */

.contact-grid {
  align-items: flex-start;
}

.contact-form .form-field {
  margin-bottom: 0.9rem;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.55rem 0.7rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

/* Centered Cloudflare Turnstile */
.turnstile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.2rem;
}

/* ==========================
   Modal (Success Message)
   ========================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal-backdrop.is-active {
  display: flex;
}

.modal {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-soft);
  max-width: 460px;
  width: min(90vw, 460px);
}

.modal h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.modal p {
  margin-bottom: 1.2rem;
}

/* ==========================
   Footer
   ========================== */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: #020617;
  padding: 1.4rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-note {
  opacity: 0.8;
}

/* ==========================
   Responsive
   ========================== */

/* Max-width adjustments for large screens */
@media (min-width: 1400px) {
  .edu-grid, .cert-grid {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}

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

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

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

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-block: 0.55rem;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    gap: 0.75rem;
  }

  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 0.95);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.18s ease-out;
    flex-wrap: nowrap;
  }

  .nav-links--open {
    max-height: 300px;
  }

  .nav-links li {
    width: 100%;
    white-space: normal;
  }

  .nav-links a {
    display: block;
    padding-block: 0.55rem;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .skills-grid,
  .cards-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3.5rem 0 3rem;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.1rem;
  }
}

