:root {
  --bg: #07130f;
  --bg-soft: #0b1d17;
  --surface: rgba(14, 35, 28, 0.78);
  --surface-solid: #10271f;
  --surface-2: #17352b;
  --text: #f4fff9;
  --muted: #9fb8ac;
  --line: rgba(193, 255, 218, 0.13);
  --green: #73f7a8;
  --lime: #c6ff59;
  --cyan: #52e7e0;
  --danger: #ff8f99;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 13px;
  --max-width: 1180px;
}

body.light {
  --bg: #f4fbf7;
  --bg-soft: #eaf5ee;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --surface-2: #e2f0e7;
  --text: #102019;
  --muted: #53675d;
  --line: rgba(18, 72, 48, 0.14);
  --shadow: 0 24px 70px rgba(21, 73, 50, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  transition: background-color .35s ease, color .35s ease;
}
body.menu-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg, canvas { max-width: 100%; }
::selection { background: var(--green); color: #06140d; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--lime);
  color: #06140d;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.skill-card {
  min-height: 160px;
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .2s ease, border-color .2s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(115, 247, 168, .4);
}

.skill-logo {
  width: 46px;
  height: 46px;
  margin-bottom: auto;
  object-fit: contain;
}

.skill-card span {
  margin-top: 22px;
  font: 700 1.03rem "Manrope", sans-serif;
}

.skill-card small {
  color: var(--muted);
}

#three-container,
.spotlight,
.ambient {
  position: fixed;
  pointer-events: none;
  z-index: -2;
}
#three-container { inset: 0; opacity: .62; }
.ambient { width: 34rem; height: 34rem; border-radius: 50%; filter: blur(110px); opacity: .12; }
.ambient-one { top: -12rem; right: -7rem; background: var(--lime); }
.ambient-two { bottom: 5%; left: -15rem; background: var(--cyan); }
.spotlight {
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 247, 168, .08), transparent 68%);
  left: 50%; top: 40%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 18px 4vw;
  transition: padding .25s ease, background-color .25s ease;
}
.site-header.scrolled { padding-block: 10px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.navbar { max-width: var(--max-width); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 800 1.1rem "Manrope", sans-serif; letter-spacing: -.03em; }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #07130f; background: linear-gradient(135deg, var(--lime), var(--green)); box-shadow: 0 10px 30px rgba(115,247,168,.18); }
.logo-dot { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { position: relative; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; transition: color .2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--green); transition: right .25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; gap: 10px; }
.icon-btn, .back-to-top { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; display: grid; place-items: center; background: var(--surface); color: var(--text); cursor: pointer; transition: .2s ease; }
.icon-btn:hover, .back-to-top:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.menu-btn { display: none; }

main, footer { position: relative; z-index: 1; }
.hero, .section-shell, .metrics, footer { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.hero { min-height: 92svh; display: flex; align-items: center; padding: 135px 0 90px; position: relative; }
.hero-copy { max-width: 900px; }
.availability { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(115,247,168,.25); background: rgba(115,247,168,.07); border-radius: 99px; color: var(--green); font-size: .85rem; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(115,247,168,.1); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(115,247,168,0); } }
.eyebrow, .section-kicker { margin: 24px 0 12px; color: var(--green); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: "Manrope", sans-serif; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 720px; margin-bottom: 20px; font-size: clamp(2.8rem, 5.8vw, 5.9rem); }
.gradient-text { color: transparent; background: linear-gradient(115deg, var(--lime), var(--green) 45%, var(--cyan)); background-clip: text; -webkit-background-clip: text; }
.typing-line { min-height: 34px; font: 700 clamp(1.05rem, 2vw, 1.3rem) "Manrope", sans-serif; color: var(--muted); }
.typing { color: var(--text); }
.cursor { color: var(--lime); animation: blink .75s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-description { max-width: 640px; margin: 20px 0 30px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-3px); border-color: rgba(115,247,168,.5); }
.btn-primary { border-color: transparent; background: linear-gradient(135deg, var(--lime), var(--green)); color: #07130f; box-shadow: 0 14px 34px rgba(115,247,168,.17); }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding: 10px; color: var(--muted); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--green); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 70px; }
.metric-card, .skill-card, .service-card { border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(16px); }
.metric-card { min-height: 170px; padding: 24px; border-radius: var(--radius-md); display: grid; align-content: space-between; transition: border-color .25s ease; }
.metric-card > i { color: var(--green); font-size: 1.35rem; }
.metric-card strong { font: 800 2.5rem "Manrope", sans-serif; letter-spacing: -.05em; }
.metric-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.section-shell { padding: 110px 0; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading .section-kicker, .contact-intro .section-kicker { display: block; margin-top: 0; }
.section-heading h2, .contact-intro h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 4vw, 4.1rem); }
.section-heading > p, .split-heading > p, .contact-intro > p { margin: 0; color: var(--muted); font-size: 1.06rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 60px; }

.about-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 28px; }
.about-copy { padding: 12px 4vw 12px 0; color: var(--muted); font-size: 1.08rem; }
.about-copy p:first-child { color: var(--text); font-size: 1.2rem; }
blockquote { margin: 34px 0 0; padding: 20px 24px; border-left: 3px solid var(--green); background: linear-gradient(90deg, rgba(115,247,168,.08), transparent); color: var(--text); font: 700 1.05rem/1.6 "Manrope", sans-serif; }
.profile-panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.profile-top { display: flex; gap: 17px; align-items: center; margin-bottom: 24px; }
.profile-icon { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: var(--surface-2); color: var(--green); font-size: 1.75rem; }
.profile-top small { color: var(--muted); }.profile-top h3 { margin: 2px 0 0; font-size: 1.35rem; }
.profile-list { margin: 0; }
.profile-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.profile-list dt { color: var(--muted); }.profile-list dd { margin: 0; text-align: right; font-weight: 700; }

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skill-card { min-height: 160px; padding: 24px; border-radius: var(--radius-md); display: flex; flex-direction: column; justify-content: flex-end; transition: border-color .2s ease; }
.skill-card i { margin-bottom: auto; color: var(--green); font-size: 1.65rem; }
.skill-card span { font: 700 1.03rem "Manrope", sans-serif; }.skill-card small { color: var(--muted); }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 20px; padding-left: 38px; }
.timeline-dot { position: absolute; left: 1px; top: 32px; width: 13px; height: 13px; border: 3px solid var(--bg); border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(115,247,168,.17); }
.timeline-card { padding: 27px 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.timeline-card h3 { margin-bottom: 4px; font-size: 1.3rem; }.timeline-card h4 { margin: 0 0 12px; color: var(--green); font-size: .92rem; }.timeline-card p { margin: 0; color: var(--muted); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: transform .28s ease, border-color .28s ease; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(115,247,168,.38); }
.project-visual { min-height: 230px; padding: 28px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; color: #06140d; }
.project-visual::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(0,0,0,.18); border-radius: 50%; right: -40px; top: -55px; box-shadow: 0 0 0 30px rgba(255,255,255,.09), 0 0 0 60px rgba(255,255,255,.06); }
.project-visual i { font-size: 3.6rem; }.project-visual span { align-self: flex-start; font: 800 1rem "Manrope", sans-serif; }
.visual-finance { background: linear-gradient(135deg, #c6ff59, #62e99b); }.visual-wellness { background: linear-gradient(135deg, #74efd0, #53b8ff); }.visual-travel { background: linear-gradient(135deg, #ffcf70, #ff8b74); }.visual-learning { background: linear-gradient(135deg, #cf9fff, #7e8cff); }
.project-content { padding: 28px; }.project-type { color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-content h3 { margin: 9px 0 12px; font-size: 1.7rem; }.project-content p { margin: 0 0 20px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }.tags span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.project-content a { display: inline-flex; gap: 9px; align-items: center; text-decoration: none; font-weight: 800; font-size: .9rem; }.project-content a:hover { color: var(--green); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 290px; padding: 29px; border-radius: var(--radius-md); position: relative; transition: border-color .2s ease; }
.service-card > span { position: absolute; right: 24px; top: 20px; color: var(--muted); font: 800 .78rem "Manrope", sans-serif; }
.service-card > i { width: 56px; height: 56px; margin-bottom: 70px; display: grid; place-items: center; border-radius: 17px; background: var(--surface-2); color: var(--green); font-size: 1.35rem; }
.service-card h3 { margin-bottom: 12px; font-size: 1.28rem; }.service-card p { margin: 0; color: var(--muted); }

.contact-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact-links { margin-top: 34px; display: grid; gap: 12px; }
.contact-links a { padding: 14px 0; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-links a > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--green); }
.contact-links span { font-weight: 700; overflow-wrap: anywhere; }.contact-links small { display: block; color: var(--muted); font-weight: 500; }
.contact-form { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-weight: 700; font-size: .9rem; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); outline: 0; border-radius: var(--radius-sm); padding: 14px 15px; background: color-mix(in srgb, var(--bg) 55%, transparent); color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(115,247,168,.09); }
.field textarea { resize: vertical; min-height: 140px; }.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
.error { min-height: 20px; display: block; margin-top: 4px; color: var(--danger); font-size: .78rem; }
.form-submit { width: 100%; border: 0; }.form-status { min-height: 24px; margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .86rem; }

footer { padding: 34px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
footer p { color: var(--muted); text-align: center; }.footer-logo .logo-mark { width: 34px; height: 34px; border-radius: 11px; }
.footer-socials { display: flex; gap: 9px; }.footer-socials a { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: .2s ease; }
.footer-socials a:hover { color: var(--green); border-color: var(--green); transform: translateY(-2px); }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 500; opacity: 0; visibility: hidden; transform: translateY(12px); box-shadow: var(--shadow); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tilt { transform-style: preserve-3d; will-change: transform; }
/* Responsive banners with 600 × 250 proportions */
.project-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 12 / 5;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface-2);
}

/* Remove the original decorative circle */
.project-visual::after {
  content: none;
}

/* Fill the banner area without stretching the image */
.project-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 980px) {
  .hero { padding-top: 150px; }
  .hero-copy { max-width: 760px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-section { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .site-header { padding: 12px 18px; }.navbar { gap: 12px; }
  .nav-links { position: fixed; inset: 69px 16px auto; padding: 18px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(22px); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .22s ease; }
  .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 12px 10px; font-size: 1rem; }.nav-links a::after { display: none; }
  .menu-btn { display: grid; }.logo > span:last-child { display: none; }
  .hero, .section-shell, .metrics, footer { width: min(calc(100% - 28px), var(--max-width)); }
  .hero { min-height: auto; padding: 126px 0 90px; }.hero-description { font-size: 1rem; }
  .section-shell { padding: 78px 0; }.section-heading { margin-bottom: 34px; }.split-heading { grid-template-columns: 1fr; gap: 10px; }
  .about-layout, .projects-grid { grid-template-columns: 1fr; }.about-copy { padding-right: 0; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }.skill-card { min-height: 145px; }
  .timeline-item { padding-left: 32px; }.timeline-dot { top: 16px; }
  .services-grid { grid-template-columns: 1fr; }.service-card { min-height: 240px; }.service-card > i { margin-bottom: 50px; }
  footer { flex-direction: column; }.footer-logo > span:last-child { display: inline; }
}

@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr; }.metric-card { min-height: 135px; }
  .skills-grid { gap: 10px; }.skill-card { padding: 18px; min-height: 136px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }.contact-form { padding: 22px; }
  .hero-actions .btn { width: 100%; }.hero-actions .text-link { width: 100%; justify-content: center; }
  .profile-list > div { align-items: flex-start; flex-direction: column; gap: 2px; }.profile-list dd { text-align: left; }
  .project-visual { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #three-container, .spotlight { display: none; }
}
