:root {
  --bg: #112733;
  --bg-darker: #0c1d26;
  --text: #e9f1f5;
  --muted: #b9c6cf;
  --accent: #6bb0a7;
  --outline: #274150;
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
background: transparent;
border: 1.5px solid var(--outline);
.cta:hover {
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06)
  );
  border-color: #33596c;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
/* Base */
html,
body {
  height: 100%; /* full height */
  margin: 0; /* remove default body margin */
}
/* common structure to make the foot take the full bottom height*/
body {
  display: flex;
  flex-direction: column; /* stack header, content, footer */
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: "Crimson Text", Georgia, serif;
}
.logo {
  text-decoration: none;
  font-size: 24px;
  letter-spacing: 0.3px;
  font-weight: 600;
  color: white;
}
.aboutme {
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(2rem, 3.8vw + 1rem, 3.4rem);
}
p.about__lede {
  font-size: clamp(1rem, 0.7vw + 0.9rem, 1.1rem);
}
/* ------------------------------------------------------------------------------------*/
.theme-dark {
  /* base behind gradient */
  --spot: #183a49; /* inner spot color */
  --ind-text: #ffffff; /* text on dark */
}

/* Light companion */
.theme-light {
  --bg: #d1e6f0; /* light base */
  --spot: #5c8ea2; /* lighter cousin of #183a49 */
  --ind-text: #0f2730; /* dark ink text (AA+/AAA on the light bg) */
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  opacity: 0.85;
}

.container {
  width: 90%;
  margin: 0 auto;
  padding: 0 28px;
}

.container-foot {
  /* max-width: var(--maxw); */
  margin: 0px;
  padding: 0 28px;
}
/* max-width: var(--maxw);
/* Header */
.site-header {
  background: radial-gradient(
      1200px 600px at 25% 30%,
      #183a49 0%,
      var(--bg) 60%
    ),
    var(--bg) !important;
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 1rem;
}
.brand {
  font-size: 24px;
  letter-spacing: 0.3px;
  font-weight: 600;
  /* margin-left: 7%; */
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links {
  display: flex;
  gap: clamp(0.75rem, 1.2vw, 1.5rem);
  align-items: center;
  flex-wrap: wrap;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}
.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.nav-links a.active {
  color: #fff;
  padding-bottom: 2px;
  border-bottom: 2px solid #fff;
  font-size: 20px;
}
/* About */
.about {
  /* background: var(--about-bg); */
  padding: 42px 0 60px;
  display: flex;
  width: 100%;
  justify-content: space-around;
  background: radial-gradient(
      1200px 600px at 25% 30%,
      var(--spot, #183a49) 0%,
      #496573 60%
    ),
    #496573 !important;
}
/* .about-wrap {
  display: flex;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
} */
.about h1 {
  font-size: 64px;
  line-height: 1;
  font-weight: 600;
  margin: 14px 0 16px;
}
.underline {
  height: 2px;
  /* width: 240px; */
  background: var(--accent);
  border-radius: 99px;
  margin: 0 0 24px 6px;
}
.about p {
  color: #ecf1f4;
  font-size: 16px;
  line-height: 1.8;
  max-width: 560px;
}
/* Right image card */
.about-figure {
  /* width controls how much of the row the image takes */
  /* width: clamp(520px, 52vw, 1100px); */

  /* height controls the vertical size you see on desktop */
  height: 73vh;

  border-radius: 20px;
  overflow: hidden;
  background: #e9eef1; /* subtle frame while loading */
}

/* Make the image fill the frame without distortion */
.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops edges to fill the frame */
  display: block;
}

/* Stack on small screens */
@media (max-width: 1020px) {
  .about-figure {
    width: 100%;
    height: 360px;
  }
}

/* Separator bar */
.separator {
  height: 44px;
  background: #496573;
}

/* Footer */
footer {
  background: radial-gradient(
      1200px 600px at 25% 30%,
      #183a49 0%,
      var(--bg) 60%
    ),
    var(--bg);
  padding: 70px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 64px;

  align-items: center;
  justify-items: center;
}
.footer-title {
  font-size: 31px;
  margin: 0 0 16px 0;
  font-weight: 600;
}
.made-with {
  color: #b8c8d2;
}
.section-title {
  font-size: 22px;
  margin: 0 0 16px 0;
  font-weight: 600;
  color: #dbe6ee;
}
.footer-col p {
  margin: 0 0 10px 0;
  color: #d4e1ea;
}
.footer-col a {
  color: #cfe0ea;
}

/* Responsive tweaks */
@media (max-width: 1020px) {
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about h1 {
    font-size: 56px;
  }
  .underline {
    width: 210px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-title {
    font-size: 38px;
  }
}
@media (max-width: 560px) {
  .brand {
    font-size: 20px;
  }
  .nav-links {
    gap: 18px;
    font-size: 15px;
  }
  .about h1 {
    font-size: 44px;
  }
  .underline {
    width: 180px;
  }
}

img.footer-image {
  width: 136%;
  height: 15vh;
  border-radius: 10px;
  box-shadow: -1px 0px 13px hsl(0deg 0% 0% / 0%);
  border: solid 2px #5c8ea212;
}

/* ---- base / page backdrop ---- */
:root {
  --accent-1: #00e0c6;
  --accent-2: #0ea5e9;
  --pink: #ff4db2;
  --violet: #8b5cf6;
  --radius-xl: 24px;
  --shadow-xl: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.about-hero {
  padding-top: 10%;
  padding-bottom: 10%;
  position: relative;
  padding: 7%;
  background: radial-gradient(
      1200px 600px at 25% 30%,
      var(--spot, #183a49) 0%,
      #496573 60%
    ),
    #496573 !important;
}
.about-hero__inner {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  justify-items: center;
}

/* left */
.about-title {
  font: 800 clamp(40px, 7vw, 88px) / 1.05 "Inter", system-ui, sans-serif;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}
.about-lede {
  font: 700 clamp(12px, 1.65vw, 16px) / 1.65 ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  max-width: 70ch;
  margin: 0 0 26px;
}

.btn-primary {
  display: inline-block;
  border: none;
  color: #fff;
  background: transparent;
  border: 1.5px solid var(--outline);
  padding: 14px 22px;
  border-radius: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06)
  );
  border-color: #33596c;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* right image card */
.about-hero__figure {
  width: min(580px, 100%);
  background: #0a0d11;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}
.about-hero__figure::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(
      600px 300px at 80% 15%,
      rgba(16, 185, 129, 0.25),
      transparent 60%
    ),
    radial-gradient(
      500px 280px at 70% 85%,
      rgba(14, 165, 233, 0.22),
      transparent 60%
    );
  filter: blur(22px);
  z-index: 0;
}
.about-hero__figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 2px);
}

/* ---- modal ---- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1001;
}
.modal[aria-hidden="false"] {
  display: block;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}
.modal__dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(820px, calc(100% - 32px));
  background: linear-gradient(
    180deg,
    rgba(18, 23, 31, 0.96),
    rgba(18, 23, 31, 0.92)
  );
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  color: var(--text);
  padding: 22px 22px 24px;
}
.modal__close {
  position: absolute;
  border-radius: 10px;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 22px;
  cursor: pointer;
}
.modal__close:hover {
  background: radial-gradient(
      1200px 600px at 25% 30%,
      var(--spot, #183a49) 0%,
      #496573 60%
    ),
    #496573 !important;
}
.modal__dialog h2 {
  font: 800 clamp(28px, 4vw, 56px) / 1.05 "Inter", system-ui, sans-serif;
  margin: 6px 8px 14px;
  letter-spacing: 0.02em;
}
.modal__dialog p,
.modal__dialog li {
  font: 700 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 12px 8px;
}
.modal__dialog em {
  color: #ff6aa5;
  font-style: normal;
}
.modal__list {
  margin: 8px 18px;
}

/* responsive */
@media (max-width: 980px) {
  .about-hero__inner {
    grid-template-columns: 1fr;
  }
  .about-hero__figure {
    justify-self: start;
  }
}
.card {
  width: 82%;
  height: 47vh;

  /* width: 60%;
  height: 29vh; */
  /* display: grid
; */
  grid-template-columns: 220px 1fr;
  border-radius: 20px;
  background: #0e1820;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0.8;
}

.media {
  height: 100%;
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  overflow: hidden;
  width: auto;
}

.media img {
  width: 100%;
  height: 100%;
  display: block;
}
.content {
  /* your right panel styles */
  background: radial-gradient(
      120px 80px at 60% 40%,
      rgba(22, 107, 84, 0.35),
      transparent 60%
    )
    #0f1a20;
}

/* popup modal for contact */
.skylark-call {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
  background: none;
  border: none;
}
.skylark-call:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.skylark-veil {
  position: fixed;
  inset: 0;
  display: none;
}
.skylark-veil[aria-hidden="false"] {
  display: block;
}

.skylark-backdrop {
  position: absolute;
  inset: 0;
  background: var(--sk-bg);
  backdrop-filter: blur(4px);
  animation: sk-fade 0.18s ease-out;
}

.skylark-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, calc(100% - 40px));
  background: linear-gradient(
    180deg,
    rgba(18, 23, 31, 0.96),
    rgba(18, 23, 31, 0.92)
  );
  color: var(--sk-text);
  border-radius: 10px;
  box-shadow: var(--sk-shadow);
  padding: 20px 20px 22px;
  animation: sk-pop 0.18s ease-out forwards;
}
.skylark-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 180deg at 50% 50%,
    var(--sk-ring1),
    var(--sk-ring2),
    var(--sk-ring1)
  );
  filter: blur(20px);
  opacity: 0.15;
  z-index: -1;
}

.skylark-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--sk-muted);
  font-size: 22px;
  cursor: pointer;
}
.skylark-x:hover {
  color: #fff;
}

.skylark-panel h2 {
  margin: 6px 4px 6px;
  font: 800 clamp(26px, 4vw, 42px) / 1.1 system-ui, -apple-system, Segoe UI,
    Inter, Arial, sans-serif;
  letter-spacing: 0.01em;
}
.skylark-sub {
  margin: 0 4px 14px;
  color: var(--sk-muted);
}

.skylark-form {
  display: grid;
  gap: 12px;
}
.skylark-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skylark-input {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 22, 0.55);
  color: var(--sk-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.2s ease;
}
.skylark-input:focus {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
  background: rgba(10, 14, 22, 0.7);
}
.skylark-area {
  resize: vertical;
  min-height: 120px;
}

.skylark-send {
  margin-top: 2px;
  justify-self: start;
  border: 0;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  color: #0b0c0f;
  background: linear-gradient(135deg, #00e0c6, #7c5cff);
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 224, 198, 0.25);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.skylark-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.skylark-hint {
  margin: 10px 4px 0;
  color: var(--sk-muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .skylark-row {
    grid-template-columns: 1fr;
  }
}

@keyframes sk-pop {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes sk-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
