/* =========================================================
   Pervej Hosen — Portfolio styles
   Theme 60 / 30 / 10: Oat Milk (main), Forest Green (second), Tomato Red (accent).
   Light sections are oat; .green sections (band, credentials, photography, footer) are forest green.
   ========================================================= */

/* ---------- design tokens ---------- */
:root {
  --oat: #EEE5D4;          /* 60% main */
  --oat-2: #F7F1E6;        /* cards on oat */
  --oat-3: #E6DBC6;        /* chips, inputs, hover */
  --green: #1D4A35;        /* 30% second */
  --green-2: #23573F;      /* cards on green */
  --green-3: #2B6649;
  --tomato: #F2462E;       /* 10% accent: buttons, highlights */
  --tomato-ink: #B8301C;   /* tomato that's readable as small text on oat */
  --tomato-soft: #FF9A85;  /* tomato that's readable as small text on green */
  --grad: linear-gradient(90deg, var(--tomato), var(--tomato));
  --radius: 16px;

  /* legacy names, kept so older rules still resolve */
  --navy: var(--green); --navy-2: var(--green); --navy-3: var(--green-2);
  --cyan: var(--tomato); --cyan-2: var(--tomato); --cyan-ink: var(--tomato-ink); --blue: var(--tomato);

  /* colours for the current section: green by default, swapped by .light */
  --surface: var(--green-2);
  --surface-2: var(--green-3);
  --border: rgba(238, 229, 212, .16);
  --text: #F6F0E4;
  --muted: #C3CDBF;
  --shadow: 0 24px 60px -34px rgba(6, 22, 15, .7);
  --accent-ink: var(--tomato-soft);
}
.light {
  --surface: var(--oat-2);
  --surface-2: var(--oat-3);
  --border: #DCCFB6;
  --text: #16382A;
  --muted: #4F5E52;
  --shadow: 0 24px 50px -36px rgba(29, 74, 53, .45);
  --accent-ink: var(--tomato-ink);
}

/* ---------- reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 66px; }   /* = height of the fixed menu bar */
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--oat); color: var(--text); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.hl, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tomato-soft); }
.light .kicker { color: var(--cyan-ink); }

/* ---------- navigation: see-through on the hero, white once you scroll ---------- */
header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
header.scrolled { background: rgba(238, 229, 212, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 #DCCFB6; }
.nav { display: flex; align-items: center; gap: 30px; padding: 16px 40px; max-width: 1400px; margin: 0 auto; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: #fff; margin-right: auto; }
.logo, header.scrolled .logo { color: var(--green); }
.logo::after { content: "."; color: var(--cyan); }
header.scrolled .logo { color: var(--navy-2); }
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav ul a, header.scrolled .nav ul a { font-size: .95rem; font-weight: 500; color: #4F5E52; transition: color .2s; }
.nav ul a:hover, .nav ul a.active, header.scrolled .nav ul a:hover, header.scrolled .nav ul a.active { color: var(--green); }
.nav ul a.active { box-shadow: 0 2px 0 var(--tomato); }
.burger { display: none; background: none; border: 0; color: var(--green); cursor: pointer; padding: 4px; }
header.scrolled .burger { color: var(--navy-2); }
.burger svg { width: 26px; height: 26px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: .98rem; font-family: inherit; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--tomato); color: #fff; font-weight: 700; border-radius: 999px; box-shadow: 0 12px 28px -14px rgba(242, 70, 46, .75); }
.btn-primary:hover { background: #E23A22; }
.btn-light { background: transparent; color: var(--green); border: 1.5px solid var(--green); border-radius: 999px; }
.btn-light:hover { background: var(--green); color: var(--oat); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); border-radius: 999px; }
.btn-outline:hover { border-color: var(--cyan); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- layout ---------- */
main { position: relative; }
section { position: relative; padding: 72px 24px 100px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; position: relative; }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.light { background: var(--oat); color: var(--text); }
.light + .light { border-top: 1px solid #DCCFB6; }   /* two light sections in a row */
section:not(.light) { background: var(--green); color: var(--text); }
.center-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; margin-top: 10px; color: var(--text); }
.sec-intro { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }
.more-wrap { text-align: center; margin-top: 44px; }
.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* fade-up when something scrolls into view */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { min-height: min(100vh, 860px); display: flex; align-items: center; padding-top: 130px; overflow: hidden;
  background: radial-gradient(800px 480px at 78% 40%, rgba(29, 74, 53, .07), transparent 62%), var(--oat); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(29, 74, 53, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 74, 53, .06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-lines { position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; color: var(--green); margin-top: 14px; }
.hero h1 .hl { display: inline-block; }
.typed-line { margin-top: 18px; font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; color: var(--green); min-height: 1.6em; }
.typed-line .cursor { display: inline-block; width: 2px; height: 1.05em; background: var(--cyan); vertical-align: -3px; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.objective { margin-top: 18px; max-width: 560px; font-size: 1.08rem; color: #4F5E52; }
.locline { margin-top: 12px; font-size: .9rem; color: #5A6B5E; display: flex; align-items: center; gap: 8px; }
.locline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2F8A57; box-shadow: 0 0 0 3px rgba(47, 138, 87, .2); flex: 0 0 8px; }
.locline:empty { display: none; }

/* small "Email copied" notice */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--green); color: var(--oat); border: 1px solid rgba(238, 229, 212, .25); border-radius: 10px; padding: 10px 18px; font-size: .92rem; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.socials { display: flex; gap: 12px; margin-top: 30px; }
.socials a, .socials button { width: 42px; height: 42px; cursor: pointer; font: inherit; color: inherit; padding: 0; border-radius: 10px; display: grid; place-items: center; border: 1px solid #CDBFA4; background: var(--oat-2); transition: border-color .2s, background .2s; }
.socials a:hover, .socials button:hover { border-color: var(--green); background: var(--green); }
.socials svg { width: 18px; height: 18px; fill: var(--green); transition: fill .2s; }
.socials a:hover svg, .socials button:hover svg { fill: var(--oat); }

.photo-wrap { position: relative; justify-self: center; }
.photo-ring { width: 380px; height: 380px; max-width: 78vw; max-height: 78vw; border-radius: 28px; padding: 3px; background: var(--green); box-shadow: 0 30px 70px -34px rgba(29, 74, 53, .6); transform: rotate(-3deg); }
.photo { width: 100%; height: 100%; border-radius: 25px; overflow: hidden; background: var(--navy-2); display: grid; place-items: center; transform: rotate(3deg) scale(1.02); }
.photo { position: relative; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .3s ease, transform .5s ease; }
.photo img.on { opacity: 1; transform: none; }
.photo-ring.can-cycle { cursor: pointer; }
.photo-ring.can-cycle:hover { box-shadow: 0 30px 70px -26px rgba(29, 74, 53, .75); }
.photo-ring.can-cycle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px; }
.photo-ring.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: rotate(-1deg) scale(.975); } }
.photo-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; min-height: 8px; }
.photo-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(29, 74, 53, .25); transition: width .3s, background .3s; }
.photo-dots span.on { width: 22px; background: var(--tomato); }
.photo .initials { font-size: 5rem; font-weight: 800; }
.badge { position: absolute; left: -28px; bottom: 34px; background: var(--oat-2); color: var(--green); border-radius: 12px; padding: 10px 16px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); line-height: 1.25; }
.badge b { display: block; font-size: 1.05rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge span { font-size: .78rem; color: #4F5E52; }

footer { background: var(--green); color: #C3CDBF; text-align: center; padding: 36px 24px; font-size: .9rem; border-top: 1px solid rgba(238, 229, 212, .12); }

/* base responsive rules */
@media (max-width: 900px) {
  .nav { padding: 14px 18px; gap: 14px; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav ul { position: fixed; top: 64px; left: 12px; right: 12px; flex-direction: column; gap: 0; background: var(--oat-2); border: 1px solid #DCCFB6; border-radius: 14px; padding: 8px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav ul.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav ul a, header.scrolled .nav ul a { display: block; padding: 12px 14px; color: var(--navy-2); }
  .two { grid-template-columns: 1fr; gap: 44px; }
  .hero .photo-wrap { order: -1; }
  .photo-ring { width: 260px; height: 260px; }
  .badge { left: -14px; bottom: 18px; }
  section { padding: 56px 16px 76px; }
}

/* ---------- stats band ---------- */
.band { background: var(--green); padding: 30px 24px; }
.band .facts { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.band .fact { padding: 4px 12px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.band .fact + .fact { border-left: 1px solid rgba(238, 229, 212, .2); }
.band .fact b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; color: var(--oat); -webkit-text-fill-color: var(--oat); background: none; }
.band .fact span { font-size: .9rem; color: #C3CDBF; }

/* ---------- about ---------- */
.about-grid { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 56px; }
.career-chart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.cc-title { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.cc-rows { list-style: none; }
.cc-row { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cc-row:last-child { border-bottom: 0; }
.cc-who { position: relative; padding-left: 18px; min-width: 0; }
.cc-who::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(242, 70, 46, .2); }
.cc-who b { display: block; font-size: .98rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.cc-who span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.cc-pill { justify-self: start; font-size: .8rem; font-weight: 600; color: var(--cyan-ink); background: rgba(242, 70, 46, .12); border: 1px solid rgba(242, 70, 46, .3); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.cc-now { font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1D4A35; background: #CFE3D2; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.cc-hint { font-size: .82rem; color: var(--muted); margin: -4px 0 6px; }
.cc-rows .cc-row { padding-left: 10px; padding-right: 10px; margin: 0 -10px; }
.cc-row.has-more { row-gap: 0; cursor: pointer; transition: background .2s, opacity .6s ease, transform .6s ease; }
.cc-row.has-more:hover { background: rgba(242, 70, 46, .06); }
.cc-row.has-more:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cc-chev { width: 14px; height: 14px; margin-left: 6px; vertical-align: -1px; color: var(--accent-ink); transition: transform .25s; }
.cc-row.open .cc-chev { transform: rotate(90deg); }
.cc-more { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.cc-row.open .cc-more { grid-template-rows: 1fr; }
.cc-more ul { overflow: hidden; min-height: 0; list-style: none; margin: 0; padding-left: 18px; }
.cc-more li { position: relative; padding-left: 16px; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.cc-more li:first-child { margin-top: 12px; }
.cc-more li + li { margin-top: 6px; }
.cc-more li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 2px; border-radius: 2px; background: var(--cyan); }
.cc-row { opacity: 0; transform: translateX(-8px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in .cc-row { opacity: 1; transform: none; }
.about-text p { font-size: 1.06rem; color: var(--muted); }
.about-text p + p { margin-top: 18px; }
.about-text p:first-child { font-size: 1.2rem; color: var(--text); font-weight: 500; }
.about-text .grad-text { font-weight: 700; }
@media (max-width: 1100px) { .cc-row { grid-template-columns: 1fr; gap: 8px; } .cc-row.has-more { row-gap: 0; } .cc-row.has-more .cc-pill { margin-top: 8px; } }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .band .facts { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .band .fact:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) { .career-chart { padding: 20px 16px; } }

/* ---------- skills ---------- */
.skills-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.skill-groups { padding: 6px 28px; display: flex; flex-direction: column; }
.skill-group { padding: 20px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }   /* groups share the panel height evenly */
.skill-group + .skill-group { border-top: 1px solid var(--border); }
.skill-group h4 { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 13px; font-size: .9rem; font-weight: 500; color: var(--text); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--cyan); color: var(--cyan-ink); }
.tiles { padding: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 104px; padding: 16px 8px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease, border-color .2s, box-shadow .2s; }
.reveal.in .tile { opacity: 1; transform: none; }
.tile:hover { border-color: var(--cyan); box-shadow: 0 14px 30px -18px rgba(29, 74, 53, .55); transform: translateY(-3px); }
.tile img { width: 40px; height: 40px; object-fit: contain; }
.tile span { font-size: .86rem; font-weight: 600; color: var(--text); line-height: 1.25; }
@media (max-width: 900px) { .skills-layout { grid-template-columns: minmax(0, 1fr); } .skill-group { flex: none; } }
@media (max-width: 640px) {
  .skill-groups { padding: 2px 18px; }
  .tiles { padding: 14px; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile span { font-size: .8rem; }
  .tile { min-height: 92px; }
  .tile img { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .tile { opacity: 1; transform: none; } }

/* certifications */
.sub-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); margin: 0 0 16px; }
#credentials .wrap > .sub-title { margin-top: 56px; }
.cert-featured, .cert { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; min-width: 0; }
.cert-featured:hover, .cert:hover { border-color: var(--cyan); box-shadow: 0 18px 40px -24px rgba(29, 74, 53, .55); transform: translateY(-2px); }
.cert-featured { padding: 22px 24px; margin-bottom: 14px; box-shadow: var(--shadow); background-image: linear-gradient(100deg, rgba(242, 70, 46, .08), transparent 45%); }
.cert-logo { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); }
.cert-logo.big { width: 60px; height: 60px; border-radius: 14px; }
.cert-logo img { width: 26px; height: 26px; object-fit: contain; }
.cert-logo.big img { width: 34px; height: 34px; }
.cert-logo img[data-logo="kaggle"] { width: 38px; height: 38px; }   /* wide wordmark */
.cert-mono { width: 100%; height: 100%; border-radius: inherit; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.cert-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cert-main small { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.cert-main b { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.cert-featured .cert-main b { font-size: 1.12rem; }
.cert-meta { font-size: .84rem; color: var(--muted); }
.cert-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cert-active { font-size: .78rem; font-weight: 700; color: #1D4A35; background: #CFE3D2; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.cert-verify { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.cert-arrow { flex: 0 0 16px; width: 16px; height: 16px; color: #8A9A8D; transition: color .2s; }
.cert-verify .cert-arrow { color: inherit; }
.cert:hover .cert-arrow { color: var(--accent-ink); }
.train-grid { display: grid; gap: 12px; }
.train { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; min-width: 0; }
.train-icon { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(242, 70, 46, .18), rgba(242, 70, 46, .12)); color: var(--accent-ink); }
.train-icon svg { width: 26px; height: 26px; }
.train-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.train-main h4 { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.train-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.train-tags span { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); background: rgba(242, 70, 46, .1); border: 1px solid rgba(242, 70, 46, .22); border-radius: 999px; padding: 3px 10px; }
.train-sum { margin: 6px 0 10px; font-size: .93rem; line-height: 1.65; color: var(--muted); }
@media (max-width: 560px) { .train { flex-direction: column; align-items: stretch; padding: 18px; } .train-icon { width: 46px; height: 46px; } }
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cert { padding: 14px 16px; }
@media (max-width: 1024px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cert-grid { grid-template-columns: minmax(0, 1fr); }
  .cert-featured { flex-wrap: wrap; padding: 18px; }
  .cert-side { width: 100%; justify-content: space-between; padding-left: 74px; }
}

/* education */
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sub-head .sub-title { margin: 0; }
.edu-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--accent-ink); }
.edu-link svg { width: 14px; height: 14px; transition: transform .2s; }
.edu-link:hover svg { transform: translate(2px, -2px); }
.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.edu { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.edu-icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 24px -12px rgba(242, 70, 46, .8); }
.edu-icon svg { width: 24px; height: 24px; }
.edu-main { min-width: 0; }
.edu h4 { font-size: 1.08rem; font-weight: 700; line-height: 1.35; color: var(--text); }
.edu p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.edu-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: .85rem; color: var(--muted); align-items: center; }
@media (max-width: 900px) { .edu-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .edu { padding: 18px; } }

/* ---------- projects (Power BI) ---------- */
/* 3 per row; an unfinished last row stays centred */
.proj-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.proj-grid > .proj { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
.proj[hidden] { display: none; }
@media (max-width: 1000px) { .proj-grid > .proj { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .proj-grid > .proj { flex-basis: 100%; } }
#projects .ph-filters { margin: -20px 0 30px; }
.proj { position: relative; }
.proj-main { color: inherit; text-decoration: none; }
.proj-main::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }   /* whole card opens the main link */
.proj-main:focus-visible { outline: none; }
.proj:has(:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }
.proj-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.proj-links .proj-link { margin-top: 0; }
.proj-extra { position: relative; z-index: 2; text-decoration: none; }
.proj-extra:hover { text-decoration: underline; }
.proj-gh { margin-top: 18px; }
#projMoreWrap[hidden] { display: none; }
.proj { overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: transform .3s, border-color .3s, box-shadow .3s; }
.proj:hover { transform: translateY(-6px); border-color: rgba(242, 70, 46, .55); box-shadow: 0 26px 50px -28px rgba(29, 74, 53, .55); }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #E6DBC6; border-bottom: 1px solid var(--border); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .8s ease, transform .6s ease; }
.thumb img.on { opacity: 1; }
.proj:hover .thumb img { transform: scale(1.04); }
.proj-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(13, 34, 24, .82); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: 4px 10px; }
.proj-badge i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.proj-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; background: rgba(13, 34, 24, .55); padding: 4px 7px; border-radius: 999px; }
.proj-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: background .3s, width .3s; }
.proj-dots i.on { background: #fff; width: 14px; border-radius: 4px; }
.proj-body { padding: 14px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.proj h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.proj p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 6px 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.proj .tag { font-size: .66rem; padding: 2px 8px; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); background: rgba(242, 70, 46, .1); border: 1px solid rgba(242, 70, 46, .25); border-radius: 999px; padding: 3px 10px; }
.proj-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--accent-ink); }
.proj-link svg { width: 16px; height: 16px; transition: transform .2s; }
.proj:hover .proj-link svg { transform: translate(2px, -2px); }

/* ---------- photography ---------- */
.ph-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px 0 36px; }
.ph-filter { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 8px 18px; font-family: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.ph-filter:hover { border-color: var(--cyan); }
.ph-filter.on { background: var(--grad); border-color: transparent; color: #fff; }
#photography { border-top: 1px solid var(--border); }   /* follows another dark section */
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.ph figcaption { padding: 34px 12px 10px; }
.ph figcaption b { font-size: .9rem; }
.ph figcaption span { font-size: .76rem; }
.ph { margin: 0; position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in; border: 1px solid var(--border); background: var(--surface-2); transition: transform .3s, box-shadow .3s; }
.ph:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(29, 74, 53, .45); }
.ph img, .ph .ph-ph { width: 100%; display: block; transition: transform .6s ease; }
.ph img, .ph .ph-ph { aspect-ratio: 4 / 5 !important; height: auto; object-fit: cover; }
.ph:hover img, .ph:hover .ph-ph { transform: scale(1.05); }
.ph .ph-ph { display: grid; place-items: center; color: rgba(255, 255, 255, .7); font-size: .9rem; text-align: center; }
.ph .ph-ph svg { width: 34px; height: 34px; fill: currentColor; margin: 0 auto 6px; display: block; }
.ph figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(13, 34, 24, .88)); color: #fff; opacity: 0; transform: translateY(10px); transition: .3s; }
.ph:hover figcaption, .ph:focus-visible figcaption { opacity: 1; transform: none; }
.ph figcaption b { display: block; font-size: 1rem; }
.ph figcaption span { font-size: .82rem; color: #D9D2C2; }
.ph.hide { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(13, 34, 24, .96); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 60px 70px; color: #fff; }
.lightbox.open { display: flex; }
.lightbox figure { max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); border-radius: 12px; margin: 0 auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { margin-top: 16px; }
.lightbox figcaption b { font-size: 1.1rem; }
.lightbox figcaption span { display: block; color: #8A9A8D; font-size: .9rem; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 1.5rem; line-height: 1; transition: background .2s; }
.lb-btn:hover { background: rgba(242, 70, 46, .3); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 30px; left: 28px; color: #8A9A8D; font-size: .9rem; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ph { border-radius: 10px; }
  .ph figcaption { opacity: 1; transform: none; padding: 28px 10px 8px; }
  .ph figcaption b { font-size: .85rem; }
  .ph figcaption span { display: none; }
  .lightbox { padding: 70px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}

/* ---------- contact ---------- */
#contact { background: var(--oat); }
.contact-grid { align-items: start; }
.contact-intro { color: var(--muted); font-size: 1.08rem; margin-top: 16px; max-width: 480px; }
.contact-list { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 460px; }
.contact-card { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 30px -24px rgba(29, 74, 53, .4); transition: border-color .2s, background .2s, transform .2s; min-width: 0; }
button.contact-card { width: 100%; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.contact-card:hover { border-color: rgba(242, 70, 46, .7); background: var(--surface); transform: translateY(-2px); }
.contact-card .cc-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(242, 70, 46, .12); }
.contact-card .cc-icon svg { width: 18px; height: 18px; fill: var(--accent-ink); }
.contact-card .cc-text { min-width: 0; display: flex; flex-direction: column; }
.contact-card small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card b { font-size: .92rem; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.contact-card .cc-arrow { flex: 0 0 16px; width: 16px; height: 16px; margin-left: auto; color: #8A9A8D; transition: color .2s; }
.contact-card:hover .cc-arrow { color: var(--accent-ink); }
.form { padding: 30px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 8px; color: var(--text); }
.form .field { margin-bottom: 20px; }
.form input, .form textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; color: var(--text); font-family: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.form input::placeholder, .form textarea::placeholder { color: #8A9A8D; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(242, 70, 46, .18); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { width: 100%; padding: 15px; }
.form-status { margin-top: 12px; text-align: center; font-size: .92rem; color: var(--muted); min-height: 1.4em; }
.form-status.ok { color: #15803d; font-weight: 600; }
.form-status.err { color: #B8301C; }
.form-status a { color: var(--accent-ink); font-weight: 600; }
.form .btn:disabled { opacity: .7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) { .form { padding: 22px; } }

/* respect visitors who turn off animations — keep this last */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .cc-row { opacity: 1; transform: none; }
}

/* ---------- 60/30/10 accents: tomato stays for the loud bits only ---------- */
.sec-title .hl { background: none; color: inherit; -webkit-text-fill-color: currentColor; text-decoration: underline .11em var(--tomato); text-underline-offset: .14em; text-decoration-skip-ink: none; }
.cc-who::before { background: var(--green); box-shadow: 0 0 0 3px rgba(29, 74, 53, .15); }
.cc-pill { color: var(--green); background: rgba(29, 74, 53, .07); border-color: rgba(29, 74, 53, .2); }
.cc-row.has-more:hover { background: rgba(29, 74, 53, .05); }
.edu-icon { background: var(--oat); color: var(--green); box-shadow: none; }
.train-icon { background: rgba(238, 229, 212, .1); color: var(--oat); }
.train-tags span { color: #E3DACA; background: rgba(238, 229, 212, .07); border-color: rgba(238, 229, 212, .18); }
.light .tag { color: var(--green); background: rgba(29, 74, 53, .07); border-color: rgba(29, 74, 53, .18); }
.light .chip:hover, .light .tile:hover { border-color: var(--green); color: var(--green); }
.tile:hover { box-shadow: 0 14px 30px -18px rgba(29, 74, 53, .45); }
.proj:hover { border-color: rgba(29, 74, 53, .45); box-shadow: 0 26px 50px -28px rgba(29, 74, 53, .5); }
.ph-filter.on { background: var(--tomato); color: #fff; }
.light .ph-filter.on { background: var(--green); color: var(--oat); }
.light .ph-filter:hover { border-color: var(--green); }
.contact-card:hover { border-color: var(--green); }
.contact-card .cc-icon { background: rgba(29, 74, 53, .08); }
.contact-card .cc-icon svg { fill: var(--green); }
.form input:focus, .form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29, 74, 53, .15); }
.nav-cta { border-radius: 999px; }
/* softer chart lines behind the hero text on smaller screens */
@media (max-width: 900px) { .hero-lines { opacity: .35; } .hero-grid { opacity: .6; } }
/* "live" dot on project badges in a green that sits with the palette */
.proj-badge i { background: #8FD1A8; box-shadow: 0 0 0 3px rgba(143, 209, 168, .25); }

/* ---------- phone view ---------- */
.cert-more { display: none; margin-top: 18px; }
@media (max-width: 900px) {
  .about-text { order: -1; }                              /* intro first, then the career chart */
  .skill-groups { display: none; }                        /* tools appear once: the grouped tags repeat the logo grid */
}
@media (max-width: 640px) {
  .cert-grid:not(.open) .cert:nth-child(n + 4) { display: none; }
  .cert-more { display: block; }
}

/* ---------- services ---------- */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.svc-grid > .svc { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
@media (max-width: 1000px) { .svc-grid > .svc { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .svc-grid > .svc { flex-basis: 100%; } }
.svc { display: flex; flex-direction: column; padding: 26px 24px 22px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.svc:hover { transform: translateY(-4px); border-color: rgba(29, 74, 53, .4); box-shadow: 0 26px 50px -30px rgba(29, 74, 53, .5); }
.svc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: var(--oat); margin-bottom: 16px; }
.svc-icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: var(--text); letter-spacing: -.01em; }
.svc p { color: var(--muted); font-size: .94rem; line-height: 1.6; margin-top: 8px; }
.svc .svc-get { color: var(--text); font-size: .9rem; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.svc .svc-get b { color: var(--green); }
.svc-cta { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--accent-ink); align-self: flex-start; }
.svc-cta svg { width: 16px; height: 16px; transition: transform .2s; }
.svc-cta:hover svg { transform: translateX(3px); }
@media (max-width: 640px) { .svc { padding: 22px 20px 18px; } }
@media (max-width: 480px) { .hero .btns { gap: 8px; } .hero .btns .btn { padding: 11px 16px; font-size: .92rem; } }

/* ---------- newsletter band ---------- */
.nl-band { background: var(--green); padding: 44px 24px; }
.nl-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nl-text { max-width: 640px; }
.nl-band .kicker { color: var(--tomato-soft); }
.nl-band h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: var(--oat); margin-top: 6px; }
.nl-band p:not(.kicker) { color: #C3CDBF; font-size: 1rem; margin-top: 8px; }
.nl-btn { flex: 0 0 auto; }
.nl-btn svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .nl-inner { flex-direction: column; align-items: flex-start; gap: 18px; } .nl-band { padding: 36px 16px; } }
