:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #152033;
  --muted: #667085;
  --line: #d9e1ee;
  --dark: #07111f;
  --dark-2: #0e2036;
  --dark-3: #102946;
  --accent: #2ec7ff;
  --accent-2: #39d9a3;
  --accent-strong: #14b8d4;
  --accent-soft: rgba(46, 199, 255, 0.16);
  --shadow: 0 22px 80px rgba(13, 28, 48, 0.12);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, #ffffff 100%);
  line-height: 1.6;
}

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

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

p {
  margin-top: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  width: min(var(--max), calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #39d9ff, #50df9f);
  color: #032036;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(46, 199, 255, 0.28);
}

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

.brand-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text small {
  margin-top: 0.12rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem;
  border-radius: 999px;
  background: rgba(19, 32, 53, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(2, 8, 20, 0.24);
  backdrop-filter: blur(16px);
}

.site-nav a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(19, 32, 53, 0.88);
  color: #ffffff;
  border-radius: 0.8rem;
  padding: 0.6rem 0.75rem;
  font-size: 1.1rem;
  backdrop-filter: blur(12px);
}

.messages {
  position: fixed;
  right: 1rem;
  top: 5rem;
  z-index: 70;
  max-width: min(92vw, 430px);
}

.message {
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.message-success {
  border-color: rgba(22, 183, 201, 0.45);
}

.message-warning {
  border-color: #f4c77b;
}

.section-pad,
.section {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.hero-landing-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 60%, rgba(46, 199, 255, 0.15), transparent 30rem),
    radial-gradient(circle at 75% 38%, rgba(57, 217, 163, 0.08), transparent 22rem),
    linear-gradient(180deg, #041020 0%, #08172a 50%, #0d2038 100%);
}

.hero-landing-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.75));
}

.hero-landing-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12));
}

.hero-landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(8rem, 12vw, 10rem) clamp(4rem, 8vw, 6rem);
}

.hero-landing::before,
.hero-landing::after {
  content: "";
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(46, 199, 255, 1), rgba(46, 199, 255, 0.35));
  box-shadow: 0 0 0 10px rgba(46, 199, 255, 0.12);
}

.hero-landing::before {
  left: 12%;
  top: 24%;
}

.hero-landing::after {
  right: 6%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(57, 217, 163, 1), rgba(57, 217, 163, 0.35));
  box-shadow: 0 0 0 10px rgba(57, 217, 163, 0.12);
}

.hero-copy-panel {
  color: #ffffff;
}

.hero-kicker {
  margin: 0 0 1rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-landing h1,
.section-heading h2,
.split-section h2,
.contact-copy h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-landing h1 {
  font-size: clamp(3.2rem, 8vw, 6.3rem);
  max-width: 780px;
}

.hero-landing h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 640px;
  margin: 1.45rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.82rem 1.18rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #06253b;
  background: linear-gradient(135deg, #3ad7ff, #51df9f);
  box-shadow: 0 18px 40px rgba(46, 199, 255, 0.28);
}

.btn.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn.full {
  width: 100%;
  border: 0;
  font-size: 1rem;
}

.hero-visual {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.hero-portrait-frame {
  width: min(100%, 17rem);
  padding: 0.7rem;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, #2ec7ff, #5adba0, #8c74ff);
  box-shadow: 0 24px 60px rgba(2, 8, 20, 0.3);
}

.hero-portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: 1.4rem;
  background: #ffffff;
}

.hero-console {
  width: min(100%, 19rem);
  padding: 0.95rem 1rem 1rem;
  border-radius: 1.15rem;
  background: rgba(4, 10, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(2, 8, 20, 0.28);
}

.console-dots {
  display: flex;
  gap: 0.42rem;
  margin-bottom: 0.7rem;
}

.console-dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #42d7ff;
}

.console-dots span:nth-child(2) {
  background: #5fe0a7;
}

.console-dots span:nth-child(3) {
  background: #9a84ff;
}

.console-command {
  margin: 0 0 0.55rem;
  color: #4ddd94;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.console-output {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.45;
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section-dark,
.section-muted,
.split-section,
.contact-section {
  border-radius: var(--radius);
  padding-inline: clamp(1.3rem, 4vw, 3rem);
}

.section-dark {
  color: #ffffff;
  background: linear-gradient(145deg, var(--dark), #0b1728);
}

.about-dark {
  margin-top: 1.5rem;
}

.section-dark p,
.section-dark li,
.section-dark .section-intro {
  color: rgba(255, 255, 255, 0.78);
}

.section-muted {
  background: #eef4f8;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
}

/* .section-heading h2,
.split-section h2,
.contact-copy h2 {
 font-size: clamp(2.1rem, 4vw, 4rem); 
} */

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 4rem);
  font-size: 1.08rem;
}

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

.skill-card,
.project-card,
.contact-form,
.experience-card {
  background: var(--surface);
  border: 1px solid rgba(217, 225, 238, 0.88);
  box-shadow: 0 18px 50px rgba(13, 28, 48, 0.08);
}

.skill-card,
.project-card {
  min-height: 100%;
  padding: 1.3rem;
  border-radius: 1.3rem;
}

.skill-card h3,
.project-card h3,
.experience-card h3 {
  margin: 0 0 0.8rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list span {
  display: inline-flex;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  width: 6rem;
  height: 6rem;
  right: -3rem;
  top: -3rem;
  border-radius: 999px;
  background: var(--accent-soft);
}

.project-number,
.experience-number {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(13, 28, 48, 0.08);
}

.education-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.education-list li {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 700;
}

.interests {
  text-align: center;
}

.contact-section {
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.contact-links a {
  display: inline-flex;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.contact-form {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 1.35rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-weight: 800;
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
  background: #fbfdff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 800;
}

.glance-section {
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.glance-grid,
.glance-tags {
  position: relative;
  z-index: 1;
}

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

.glance-box {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.glance-box span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.54);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 900;
}

.glance-box strong {
  display: block;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.35;
}

.glance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.glance-tags span {
  display: inline-flex;
  padding: 0.36rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(22, 183, 201, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

.centered-copy {
  margin-inline: auto;
}

.core-skill-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: -0.5rem auto 1.6rem;
  max-width: 980px;
}

.core-skill-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dark), var(--accent-strong));
  box-shadow: 0 12px 30px rgba(15, 145, 162, 0.16);
  font-weight: 900;
  font-size: 0.9rem;
}

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

.skill-card {
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-strong), transparent);
}

.skill-card h3 {
  padding-top: 0.15rem;
}

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

.experience-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(1.25rem, 3vw, 1.6rem);
  border-radius: var(--radius);
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-strong), var(--dark));
}

.experience-card h3 {
  font-size: 1.23rem;
  line-height: 1.12;
}

.experience-card p,
.experience-card ul {
  color: var(--muted);
}

.experience-card ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.experience-card li + li {
  margin-top: 0.55rem;
}

@media (max-width: 1120px) {
  .skill-grid.expanded,
  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-landing,
  .split-section,
  .contact-section,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-landing {
    min-height: auto;
    padding-top: 7.5rem;
  }

  .hero-visual {
    justify-items: center;
  }

  .hero-copy-panel {
    text-align: center;
  }

  .hero-copy,
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

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

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 2rem);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 0.6rem) 0 auto auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 14rem;
    padding: 0.75rem;
    border-radius: 1rem;
  }

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

  .site-nav a {
    border-radius: 0.8rem;
  }

  .brand-text {
    display: none;
  }

  .glance-grid,
  .skill-grid.expanded,
  .experience-grid,
  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .hero-portrait-frame,
  .hero-console {
    width: 100%;
    max-width: 18rem;
  }
}


/* v5 updates: cyber security title, form errors, and reCAPTCHA spacing */
.hero-landing h2 span {
  color: var(--accent-2);
}

.form-errors {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.06);
  color: #b42318;
  font-weight: 700;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.recaptcha-row {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.form-errors {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
  font-weight: 700;
}
