/* ============ THEME (change colors here) ============ */
:root {
  --bg: #0b1020;          /* page background (midnight navy) */
  --bg-alt: #0f1630;      /* alternate sections */
  --surface: #151d3a;     /* cards */
  --border: #26305a;
  --text: #e8ecf8;
  --muted: #9aa5c8;
  --accent: #ffb547;      /* amber */
  --accent-2: #ff6b6b;    /* coral */
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ============ BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; }
.container { width: min(1120px, 92%); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.6rem; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #1a1205; font-weight: 700; font-size: 0.95rem; font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 30px rgba(255, 140, 80, 0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 140, 80, 0.4); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn--small { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ============ NAV ============ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 16, 32, 0.85); backdrop-filter: blur(12px); border-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.35rem; }
.logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 24px; flex-direction: column; justify-content: space-between; }
.nav__toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero__glow {
  position: absolute; width: 700px; height: 700px; right: -200px; top: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 80, 0.22), transparent 65%); filter: blur(30px); pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; color: var(--muted); background: rgba(21, 29, 58, 0.6); margin-bottom: 1.4rem; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); margin-bottom: 1.2rem; }
.typed { color: var(--accent); }
.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 2.5rem; }
.stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stats strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 2rem; }
.stats strong::after { content: "+"; color: var(--accent); }
.stats span { color: var(--muted); font-size: 0.85rem; }

.hero__photo { position: relative; justify-self: center; }
.photo-frame {
  position: relative; width: min(380px, 80vw); aspect-ratio: 1; border-radius: 28px; padding: 6px;
  background: var(--grad); box-shadow: var(--shadow); transform: rotate(3deg);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; transform: rotate(-3deg) scale(1.08); }
.photo-frame { overflow: hidden; }
.initials { display: none; position: absolute; inset: 6px; border-radius: 23px; background: var(--surface); align-items: center; justify-content: center; font-family: "Space Grotesk", sans-serif; font-size: 5rem; font-weight: 700; color: var(--accent); }
.photo-frame.no-img .initials { display: flex; }
.chip { position: absolute; padding: 0.55rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow); animation: float 4s ease-in-out infinite; }
.chip--1 { left: -20px; bottom: 50px; }
.chip--2 { right: -10px; top: 40px; animation-delay: 1.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 3rem; max-width: 640px; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about__text p { color: var(--muted); margin-bottom: 1.2rem; }
.link-arrow { color: var(--accent); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card, .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: transform 0.25s, border-color 0.25s; }
.card:hover, .step:hover, .project:hover { transform: translateY(-6px); border-color: var(--accent); }
.card .icon { font-size: 1.8rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 181, 71, 0.12); margin-bottom: 1.2rem; }
.card h3, .step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p, .step p { color: var(--muted); font-size: 0.95rem; }
.step b { font-family: "Space Grotesk", sans-serif; font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 0.5rem; }

.skills { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skills span { padding: 0.65rem 1.2rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; font-size: 0.92rem; transition: 0.2s; }
.skills span:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ============ PROJECTS ============ */
.project { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, border-color 0.25s; }
.project__thumb { height: 190px; display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); }
.t1 { background: linear-gradient(135deg, #3b2f8f, #c2410c); }
.t2 { background: linear-gradient(135deg, #0f766e, #4338ca); }
.t3 { background: linear-gradient(135deg, #be123c, #f59e0b); }
.project__body { padding: 1.5rem; }
.project__body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.project__body p { color: var(--muted); font-size: 0.93rem; margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tags span { font-size: 0.75rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: rgba(255, 181, 71, 0.12); color: var(--accent); }
.project__links { display: flex; gap: 1.2rem; font-weight: 600; font-size: 0.9rem; }
.project__links a:hover { color: var(--accent); }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact__list { margin-top: 1.8rem; display: grid; gap: 0.8rem; }
.contact__list a:hover { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; }
.form label { display: grid; gap: 0.4rem; font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.form input, .form textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.95rem; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form__note { font-size: 0.88rem; min-height: 1.2em; color: var(--accent); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 1.8rem 0; color: var(--muted); font-size: 0.9rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }
.footer a:hover { color: var(--accent); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .hero__photo { order: -1; }
  .photo-frame { width: min(280px, 70vw); }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 1.2rem; padding: 1.5rem;
    background: rgba(11, 16, 32, 0.97); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: 0.3s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .chip--1 { left: 0; }
  .chip--2 { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
