/* style.css */

/* ================
   Theme variables
   ================ */

:root[data-theme="dark"]{
  --bg: #0b1220;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);

  --text: #e6edf7;
  --muted: rgba(230,237,247,0.72);

  --brand: #3b82f6;
  --brand-strong: #2563eb;

  --ring: rgba(59,130,246,0.40);
  --border: 1px solid rgba(255,255,255,0.10);

  --shadow: 0 10px 24px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.25);
  --shadow-raise: 0 18px 40px rgba(0,0,0,0.45), 0 8px 18px rgba(0,0,0,0.30);

  --hero-glow: radial-gradient(800px 500px at 20% 15%, rgba(59,130,246,0.22), transparent 55%),
               radial-gradient(700px 500px at 80% 10%, rgba(37,99,235,0.16), transparent 50%);
}

:root[data-theme="light"]{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;

  --text: #0f172a;
  --muted: #475569;

  --brand: #2563eb;
  --brand-strong: #1d4ed8;

  --ring: rgba(37,99,235,0.35);
  --border: 1px solid rgba(15,23,42,0.12);

  --shadow: 0 8px 18px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.08);
  --shadow-raise: 0 16px 30px rgba(15,23,42,0.18), 0 8px 16px rgba(15,23,42,0.12);

  --hero-glow: radial-gradient(800px 500px at 20% 15%, rgba(37,99,235,0.18), transparent 55%),
               radial-gradient(700px 500px at 80% 10%, rgba(29,78,216,0.12), transparent 50%);
}

/* ================
   Base
   ================ */

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: inherit;
}

.container{
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: var(--surface);
  border: var(--border);
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

.skip-link:focus{
  left: 1rem;
  outline: 3px solid var(--ring);
}

/* ================
   Top notice
   ================ */

.topNotice{
  border-bottom: var(--border);
  background: rgba(0,0,0,0.08);
}

:root[data-theme="light"] .topNotice{
  background: #f8fafc;
}

.topNoticeInner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.topNotice strong{
  color: var(--text);
  font-weight: 650;
}

.topNoticeLink{
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}

:root[data-theme="light"] .topNoticeLink{
  border-color: rgba(15,23,42,0.12);
  background: #ffffff;
}

.topNoticeLink:hover{
  box-shadow: var(--shadow);
}

/* ================
   Header and nav
   ================ */

.siteHeader{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(8,12,20,0.72);
  border-bottom: var(--border);
}

:root[data-theme="light"] .siteHeader{
  background: rgba(255,255,255,0.80);
}

.headerInner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 220px;
}

.brandMark{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.18);
  border: 1px solid rgba(59,130,246,0.35);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brandText{
  font-weight: 650;
  color: var(--text);
}

.nav{
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.navLink{
  text-decoration: none;
  color: var(--muted);
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.navLink:hover{
  color: var(--text);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.navLink.active,
.navLink[aria-current="page"]{
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

:root[data-theme="light"] .navLink:hover{
  background: rgba(15,23,42,0.04);
}

:root[data-theme="light"] .navLink.active,
:root[data-theme="light"] .navLink[aria-current="page"]{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.18);
}

.navLinkPill{
  color: var(--text);
  background: rgba(59,130,246,0.18);
  border: 1px solid rgba(59,130,246,0.35);
}

.themeToggle{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.themeToggle:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.themeDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
}

.themeLabel{
  font-size: 0.95rem;
  color: var(--muted);
}

.navToggle{
  display: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.navToggleBar{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  opacity: 0.9;
  margin: 4px 0;
  border-radius: 999px;
}

/* ================
   Hero
   ================ */

.hero{
  padding: clamp(2.3rem, 6vw, 4.6rem) 0 2.2rem 0;
  background: var(--hero-glow);
  border-radius: 24px;
  margin-top: 1.25rem;
}

.heroGrid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: start;
  padding: 0 0.25rem;
}

.hero h1{
  margin: 0 0 0.85rem 0;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.metricsRow{
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.metricItem strong{
  color: var(--text);
  font-weight: 600;
}

.metricDot{
  opacity: 0.6;
}
.heroQuote{
  margin-top: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
  max-width: 60ch;
}

.quoteMark{
  font-size: 2.2rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.75;
}

.heroQuote .quoteText{
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}

.subtitle{
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.dot{
  opacity: 0.75;
  margin: 0 0.25rem;
}

.lede{
  margin: 0 0 1.35rem 0;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 65ch;
}

.btnRow{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

:root[data-theme="light"] .btn{
  border-color: rgba(15,23,42,0.14);
  background: #ffffff;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-raise);
}

.btnPrimary{
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.45);
}

:root[data-theme="light"] .btnPrimary{
  background: rgba(37,99,235,0.14);
  border-color: rgba(37,99,235,0.32);
}

.btnPrimary:hover{
  background: rgba(59,130,246,0.30);
}

/* Small highlight row */
.trustRow{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.trustItem{
  border: var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 0.85rem 0.9rem;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .trustItem{
  background: #ffffff;
}

.trustKicker{
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.trustValue{
  font-size: 0.95rem;
}

/* ================
   Cards and chips
   ================ */

.card{
  border: var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .card{
  background: #ffffff;
}

.cardHover{
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.cardHover:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-raise);
}

.cardTitle{
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
}

.cardHint{
  margin: 0 0 1rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cardText{
  margin: 0.35rem 0 0.85rem 0;
  color: var(--muted);
}

.cardActions{
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.textLink{
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

:root[data-theme="light"] .textLink{
  border-bottom-color: rgba(15,23,42,0.18);
}

.textLink:hover{
  color: var(--brand);
}

.skillChips{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0 1rem 0;
}

.skillChip{
  font-size: 0.9rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

:root[data-theme="light"] .skillChip{
  border-color: rgba(15,23,42,0.12);
  background: rgba(15,23,42,0.02);
}

.skillChip:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: rgba(59,130,246,0.14);
}

.miniCallout{
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

/* ================
   Sections and grids
   ================ */
/* =====================
   LinkedIn Connect
   ===================== */

.connectSection{
  padding: 2.5rem 0;
}

.connectInner{
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: var(--border);
  border-radius: 22px;
  padding: 1.25rem;
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .connectInner{
  background: #ffffff;
}

.connectAvatar{
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(59,130,246,0.35);
  flex-shrink: 0;
}

.connectText{
  max-width: 65ch;
}

.connectHeading{
  margin: 0 0 0.35rem 0;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.connectHeading a{
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(59,130,246,0.35);
}

.connectHeading a:hover{
  color: var(--brand-strong);
  border-bottom-color: rgba(59,130,246,0.6);
}

.connectSubtext{
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 700px){
  .connectInner{
    flex-direction: column;
    text-align: center;
  }

  .connectAvatar{
    width: 88px;
    height: 88px;
  }
}

.section{
  padding: 2.5rem 0;
}

.sectionHead{
  margin-bottom: 1rem;
}

.sectionHead h2{
  margin: 0 0 0.35rem 0;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.sectionHead p{
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

.grid2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.grid3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Lists that look like UI, not default bullets */
.cleanList{
  margin: 0.75rem 0 0 0;
  padding: 0;
  list-style: none;
}

.cleanList li{
  padding: 0.6rem 0.6rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.6rem;
  color: var(--muted);
}

:root[data-theme="light"] .cleanList li{
  background: rgba(15,23,42,0.02);
  border-color: rgba(15,23,42,0.10);
}

.quoteCard{
  font-style: normal;
}

.quoteText{
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.quoteFooter{
  font-size: 0.9rem;
  color: var(--muted);
}

.quoteMeta a{
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

:root[data-theme="light"] .quoteMeta a{
  border-bottom-color: rgba(15,23,42,0.2);
}

.recommendationFooter{
  margin-top: 1.25rem;
}

/* ================
   Contact form
   ================ */

.contactForm{
  display: grid;
  gap: 0.85rem;
}

.formRow{
  display: grid;
  gap: 0.4rem;
}

label{
  font-size: 0.95rem;
  color: var(--muted);
}

input, textarea{
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  outline: none;
}

:root[data-theme="light"] input,
:root[data-theme="light"] textarea{
  background: #ffffff;
  border-color: rgba(15,23,42,0.14);
}

input:focus, textarea:focus{
  box-shadow: 0 0 0 4px var(--ring);
  border-color: rgba(59,130,246,0.45);
}

/* ================
   Footer
   ================ */

.siteFooter{
  padding: 2rem 0 3rem 0;
  color: var(--muted);
  text-align: center;
}

/* ================
   Responsive
   ================ */

@media (max-width: 980px){
  .trustRow{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px){
  .navToggle{
    display: inline-block;
  }

  .brandText{
    display: none;
  }

  .nav{
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    background: rgba(8,12,20,0.92);
    border-bottom: var(--border);
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
  }

  :root[data-theme="light"] .nav{
    background: rgba(255,255,255,0.92);
  }

  .nav[data-open="true"]{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .themeToggle{
    justify-content: center;
  }

  .heroGrid{
    grid-template-columns: 1fr;
  }

  .grid2{
    grid-template-columns: 1fr;
  }

  .grid3{
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
