:root {
  --ink: #3b2b25;
  --navy: #432f28;
  --blue: #a45f45;
  --violet: #c48a68;
  --aqua: rgb(126, 135, 105);
  --gold: peru;
  --soft: hsl(35, 45%, 96%);
  --white: #ffffff;
  --muted: #76675f;
  --line: #e5d7c8;
  --heading-font: "Space Grotesk", sans-serif;
  --body-font: "Inter", sans-serif;
  --shadow: 0 20px 50px rgba(67, 47, 40, 0.13);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--body-font); line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .navbar-brand { font-family: var(--heading-font); }
h1 { font-size: clamp(3rem, 7vw, 5.8rem); line-height: .97; letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.04em; }
h3 { font-size: 1.25rem; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2000; padding: 10px 14px; border-radius: 8px; color: white; background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.navbar { border-bottom: 1px solid rgba(229, 215, 200, .9); background: rgba(255,252,247,.95); backdrop-filter: blur(14px); }
.navbar-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.nav-link { color: var(--ink); font-weight: 600; }
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-button { border-radius: 9px; color: white; background: var(--navy); font-weight: 700; }
.nav-button:hover { color: white; background: var(--blue); transform: translateY(-2px); }

.hero { overflow: hidden; min-height: 100vh; padding: 145px 0 90px; background: radial-gradient(circle at 88% 20%, rgba(196,138,104,.25), transparent 28%), linear-gradient(135deg,#fffdf9,#f7efe4 58%,#f1e3d6); }
.eyebrow { margin-bottom: 12px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .15em; }
.eyebrow .fa-circle { margin-right: 6px; color: #71806d; font-size: .55rem; }
.hero-lead { max-width: 720px; margin: 26px 0 30px; color: var(--muted); font-size: 1.16rem; }
.hero-actions .btn { padding: 13px 22px; border-radius: 10px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.hero-actions .btn:hover { transform: translateY(-3px); }
.btn-primary { border-color: var(--blue); background: var(--blue); }
.btn-primary:hover { border-color: #7f4633; background: #7f4633; box-shadow: 0 12px 26px rgba(127,70,51,.28); }
.hero-meta { margin-top: 30px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.hero-meta i { margin-right: 6px; color: var(--blue); }
.hero-visual { position: relative; padding: 14px; border: 1px solid #dfcdbb; border-radius: 28px; background: #fffdf9; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.hero-visual img { width: 100%; border-radius: 18px; }
.hero-avatar {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 28% center;
}
.status-chip { position: absolute; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 10px 25px rgba(20,33,61,.14); font-size: .78rem; font-weight: 800; animation: pulse 3s ease-in-out infinite; }
.status-chip i { margin-right: 6px; color: #71806d; }
.chip-top { top: 55px; right: -25px; }
.chip-bottom { bottom: 38px; left: -30px; }

.section { padding: 96px 0; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading > p:last-child { color: var(--muted); }
.about-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf9; box-shadow: 0 16px 40px rgba(67,47,40,.08); }
.about-card > p { color: var(--muted); }
.about-card .lead { color: var(--ink); font-weight: 600; }
.mini-stat { height: 100%; padding: 18px; border-radius: 14px; background: var(--soft); }
.mini-stat strong, .mini-stat span { display: block; }
.mini-stat strong { color: var(--blue); font-family: var(--heading-font); font-size: 1.45rem; }
.mini-stat span { color: var(--muted); font-size: .78rem; font-weight: 700; }

.projects-section { background: var(--soft); }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.project-card:hover { border-color: #b9c7e9; transform: translateY(-8px); box-shadow: var(--shadow); }
.project-image { display: flex; min-height: 190px; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: white; font-family: var(--heading-font); font-size: 1.15rem; font-weight: 700; }
.project-image i { font-size: 2.6rem; }
.project-image-blue { background: linear-gradient(145deg,#694538,#b96f51); }
.project-image-violet { background: linear-gradient(145deg,#7a5545,#d09a78); }
.project-image-green { background: linear-gradient(145deg,#4f5b48,#899277); }
.project-card .card-body { padding: 26px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.project-tags span { padding: 4px 8px; border-radius: 20px; color: #8a4e39; background: #f7ebe1; font-size: .68rem; font-weight: 800; }
.project-card .card-text { color: var(--muted); }
.project-links { display: flex; gap: 18px; padding-top: 12px; }
.project-links a { color: var(--blue); font-size: .9rem; font-weight: 800; text-decoration: none; }
.project-links a:hover { text-decoration: underline; }
.project-details summary { color: var(--blue); cursor: pointer; font-weight: 800; }
.project-details p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.project-card:has(details[open]) { border-color: var(--blue); }
.project-grid article:nth-child(2) .project-card { transition-delay: .05s; }
.project-grid article:nth-child(3) .project-card { transition-delay: .1s; }

.skills-section { color: white; background: var(--navy); }
.eyebrow.light { color: #e7bea5; }
.skills-intro { color: #ddcec6; }
.tech-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tech-icons span { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.07); font-size: 1.45rem; transition: transform .2s ease, background .2s ease; }
.tech-icons span:hover { background: rgba(255,255,255,.15); transform: rotate(-4deg) scale(1.08); }
.skills-card { padding: 32px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.skill-item + .skill-item { margin-top: 22px; }
.skill-label { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; font-size: .84rem; font-weight: 700; }
.skill-label span:last-child { color: #e7bea5; font-size: .74rem; }
.skill-progress { width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 20px; background: rgba(255,255,255,.12); appearance: none; }
.skill-progress::-webkit-progress-bar { border-radius: 20px; background: rgba(255,255,255,.12); }
.skill-progress::-webkit-progress-value { border-radius: 20px; background: linear-gradient(90deg,var(--aqua),#d8a17e); }
.skill-progress::-moz-progress-bar { border-radius: 20px; background: linear-gradient(90deg,var(--aqua),#d8a17e); }

.timeline { position: relative; max-width: 850px; }
.timeline::before { position: absolute; top: 16px; bottom: 16px; left: 25px; width: 2px; background: var(--line); content: ""; }
.timeline-item { position: relative; display: flex; gap: 24px; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-icon { z-index: 1; display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: white; background: var(--blue); box-shadow: 0 0 0 7px white; }
.timeline-content { flex: 1; padding: 22px 25px; border: 1px solid var(--line); border-radius: 16px; }
.timeline-date { margin-bottom: 4px; color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.timeline-content p:last-child { margin-bottom: 0; color: var(--muted); }

.contact-section { background: linear-gradient(135deg,#f8f1e8,#efe1d4); }
.contact-panel { padding: clamp(30px,5vw,62px); border-radius: 28px; color: white; background: linear-gradient(135deg,var(--navy),#765142); box-shadow: var(--shadow); }
.contact-panel > .row > div:first-child > p:last-of-type { color: #dfd0c8; }
.contact-info { margin: 22px 0 0; }
.contact-info a { color: white; font-weight: 700; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.social-links { display: flex; gap: 11px; margin-top: 25px; }
.social-links a { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; color: white; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.social-links a:hover { background: var(--blue); transform: translateY(-4px); }
.contact-form { padding: 26px; border-radius: 18px; color: var(--ink); background: white; }
.form-label { font-size: .82rem; font-weight: 800; }
.form-control { min-height: 49px; border-color: #bec9df; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 .22rem rgba(49,87,213,.17); }
.site-footer { padding: 26px 0; color: #d8c8bf; background: #2c201c; font-size: .86rem; }
.site-footer p { margin: 0; }
.site-footer a { color: white; text-decoration: none; }

:where(.btn, .nav-link, .project-links a, .social-links a):focus-visible { outline: 3px solid #f2bd3b; outline-offset: 4px; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes reveal { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }

@supports (animation-timeline: view()) {
  .section-heading, .project-grid article, .timeline-item { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero { min-height: auto; padding: 135px 0 82px; }
  .section { padding: 80px 0; }
  .chip-top { right: 8px; }
  .chip-bottom { left: 8px; }
}

/* Mobile */
@media (max-width: 767px) {
  .navbar-collapse { margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; }
  .nav-button { margin-top: 6px; }
  .hero { min-height: auto; padding: 125px 0 65px; }
  h1 { font-size: clamp(2.75rem,14vw,4.2rem); }
  .section { padding: 68px 0; }
  .status-chip { display: none; }
  .about-card, .skills-card, .contact-form { padding: 22px; }
  .skill-label { align-items: flex-start; flex-direction: column; gap: 2px; }
  .timeline::before { left: 21px; }
  .timeline-item { gap: 16px; }
  .timeline-icon { flex-basis: 44px; width: 44px; height: 44px; }
  .timeline-content { padding: 18px; }
}

/* Desktop */
@media (min-width: 1025px) {
  .hero-copy { animation: reveal .7s ease-out both; }
  .project-card:hover .project-image i { transform: scale(1.12) rotate(-4deg); }
  .project-image i { transition: transform .25s ease; }
}

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