/* ITdone4U – style.css */
:root {
  --blue: #1f6feb;
  --blue-600: #1559c7;
  --blue-50: #eaf2ff;
  --navy: #0b1730;
  --navy-2: #12224a;
  --ink: #16202e;
  --muted: #5b6676;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --card: #ffffff;
  --ok: #17a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ebf3;
    --muted: #9aa6b8;
    --line: #23314d;
    --bg: #0a1224;
    --bg-alt: #0e1830;
    --card: #111d38;
    --blue-50: #13254a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 16px/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 40px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--blue); color: #fff; border: 0; cursor: pointer;
  font: 600 .95rem/1 var(--font);
  padding: .9em 1.4em; border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-600); text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .6em 1.1em; font-size: .875rem; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 23, 48, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand b { color: #6ea8ff; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: rgba(255,255,255,.8); font-size: .94rem; font-weight: 500; }
.nav a:not(.btn):hover, .nav a.is-current { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy); padding: 8px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(31,111,235,.35), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(110,168,255,.15), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
  margin-top: -64px; padding-top: calc(clamp(64px, 10vw, 120px) + 64px);
}
.hero-orbit {
  position: absolute; width: 900px; height: 900px; right: -300px; top: -200px;
  border-radius: 50%;
  border: 1px solid rgba(110,168,255,.15);
  box-shadow: 0 0 0 80px rgba(110,168,255,.03), 0 0 0 160px rgba(110,168,255,.02);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.82); max-width: 36em; }
.hero .lead strong { color: #fff; }
.status {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: .4em .9em; border-radius: 999px; margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0 2rem; }
.hero-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .94rem; color: rgba(255,255,255,.75); }
.hero-contact li { display: flex; align-items: center; gap: .5em; }
.hero-contact svg { width: 16px; height: 16px; fill: #6ea8ff; }
.hero-contact a { color: inherit; }
.hero-contact a:hover { color: #fff; }
.hero-photo { position: relative; justify-self: center; max-width: 360px; }
.hero-photo img {
  border-radius: 28px; aspect-ratio: 1; object-fit: cover;
  box-shadow: 0 30px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1);
}
.badge-years {
  position: absolute; left: -24px; bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--navy);
  padding: 12px 16px; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  font-size: .8rem; line-height: 1.2;
}
.badge-years b { font-size: 1.8rem; color: var(--blue); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; max-width: 220px; justify-self: start; }
  .badge-years { left: auto; right: -40px; bottom: 16px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; max-width: 640px; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.about-main { font-size: 1.05rem; }
.about-side { display: grid; gap: 16px; }
.mini { padding: 20px 24px; }
.mini h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .8em; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; text-align: right; }
.checks { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f6feb' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li, .pill { background: var(--blue-50); color: var(--blue); font-size: .85rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; }
.pill-ok { background: rgba(23,163,74,.12); color: var(--ok); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(16,24,40,.12); }
.icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), #6ea8ff); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: #fff; }
.service p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* Experience */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: 600 .875rem/1 var(--font); color: var(--muted);
  background: var(--card); border: 1px solid var(--line);
  padding: .65em 1.1em; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--ink); border-color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.work { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.job {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  animation: fadeIn .35s ease both;
}
.job[hidden] { display: none; }
.job-logo { flex: none; width: 64px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.job-logo img { width: 100%; height: 100%; object-fit: contain; }
.job h3 { font-size: .98rem; margin: 0 0 .15em; }
.job .client { color: var(--muted); font-size: .88rem; margin: 0 0 .4em; }
.job .cats { display: flex; flex-wrap: wrap; gap: 4px; }
.job .cats span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); background: var(--blue-50); padding: .2em .55em; border-radius: 6px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill { position: relative; padding-left: 28px; overflow: hidden; }
.skill::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--blue), #6ea8ff); }
.skill p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 8px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -37px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue); }
.timeline time { font-size: .85rem; font-weight: 700; color: var(--blue); }
.timeline h3 { margin: .2em 0 .1em; }
.timeline p { color: var(--muted); margin: 0; }

/* Contact */
.section-dark { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.section-dark .eyebrow { color: #6ea8ff; }
.section-dark .lead { color: rgba(255,255,255,.78); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 18px; }
.contact-list span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); font-weight: 700; }
.contact-list a { color: #fff; }
.form { color: var(--ink); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: .9rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: .75em .9em; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,111,235,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #dc2626; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; justify-content: center; }
.form-status { margin: 12px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #dc2626; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #070f20; color: rgba(255,255,255,.6); font-size: .875rem; padding: 28px 0; }
.footer-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }
.site-footer a { color: rgba(255,255,255,.8); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 20px; }
.notfound h1 { font-size: clamp(4rem, 15vw, 8rem); margin: 0; color: #6ea8ff; }
