/* ============================================================
   RICO. PORTFOLIO — GLOBAL STYLES
   Dark blue bg · White text · Red accents · Barlow SemiBold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Barlow+Condensed:wght@700;800;900&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:         #0b1320;
  --bg-deep:    #070d18;
  --bg-card:    #111a2b;
  --bg-card2:   #162238;

  --white:      #f8f6f2;
  --white-dim:  #9aa4b2;
  --white-faint:#2a354a;

  --red:        #d4af37;
  --red-dark:   #b8962e;
  --red-glow:   rgba(212,175,55,0.25);
  --red-soft:   rgba(212,175,55,0.10);

  --border:     rgba(212,175,55,0.12);
  --border-med: rgba(212,175,55,0.22);

  --font:       'Barlow', sans-serif;
  --font-cond:  'Barlow Condensed', sans-serif;
  --radius:     12px;
  --radius-sm:  6px;
  --nav-h:      72px;
}

/* ── Custom Cursor ─────────────────────────────────────────── */
body { cursor: default; }

#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .15s ease, height .15s ease;
  will-change: left, top;
}

#cursor-ring {
  position: fixed;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(248,246,242,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width .22s ease, height .22s ease, opacity .2s;
  opacity: 0.65;
  will-change: left, top;
}

body.hovering #cursor  { width: 16px; height: 16px; }
body.hovering #cursor-ring { width: 52px; height: 52px; opacity: 0.28; }
body.clicking #cursor  { width: 8px; height: 8px; }

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  font-weight: 600;
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }

/* Noise overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  opacity: 0.45;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  z-index: 500;
  background: rgba(8,13,26,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-cond);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--white);
}
.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  position: relative;
  transition: color .2s;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s ease;
  border-radius: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.48rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 2px 14px var(--red-glow);
  transition: background .2s, transform .15s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: .3s;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 4rem) 3.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  width: 550px; height: 550px;
  top: 5%; right: -60px;
  background: radial-gradient(circle, rgba(232,36,43,0.08) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 450px; height: 450px;
  bottom: 5%; left: -50px;
  background: radial-gradient(circle, rgba(20,60,160,0.13) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 100%);
  opacity: 0.5;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4.6rem;
  opacity: 0;
  animation: fadeUp .7s ease forwards .2s;
}
.hero-kicker::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.hero-title {
  font-family: var(--font-cond);
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 900;
  line-height: 0.93;
  text-transform: uppercase;
  max-width: 820px;
  opacity: 0;
  animation: fadeUp .8s ease forwards .4s;
}
.hero-title em { font-style: normal; color: var(--red); display: block; }

.hero-desc {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white-dim);
  max-width: 700px;
  line-height: 1.72;
  opacity: 0;
  animation: fadeUp .8s ease forwards .6s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s ease forwards .8s;
}

/* ── Hero floating modules ──────────────────────────────────── */


.module-main {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-80%, -80%);
  width: 70%;
  background: var(--bg-card2);
  border: 1px solid var(--border-med);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px var(--border), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: float 7s ease-in-out infinite;
}

.module-main-visual {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a2845 0%, #0d1a2f 50%, #1f1524 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.module-main-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(232,36,43,0.1) 0%, transparent 55%);
}
.module-main-visual-text {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,244,255,0.25);
  position: relative;
  z-index: 1;
}

.module-main-label {
  padding: 0.9rem 1.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.module-typo {
  position: absolute;
  bottom: 8%; left: -4%;
  width: 36%;
  background: #15203a;
  border: 1px solid var(--border-med);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  animation: float 9s ease-in-out infinite 1.5s;
}
.module-typo-aa {
  font-family: var(--font-cond);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.module-typo-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.35rem;
}

.module-pill {
  position: absolute;
  top: 13%; right: -6%;
  background: #b8c8d8;
  border-radius: 100px;
  padding: 0.65rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #080d1a;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  animation: float 11s ease-in-out infinite .8s;
}

.module-green {
  position: absolute;
  top: -1%; left: 9%;
  width: 17%;
  aspect-ratio: 1;
  background: #0e1e0e;
  border: 1px solid rgba(50,180,80,0.18);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  animation: float 10s ease-in-out infinite 2s;
}
.module-green-blob {
  width: 58%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 38% 38%, #4ade80, #15803d);
  border-radius: 50% 30% 60% 40% / 40% 60% 30% 50%;
  filter: blur(1px);
}

.module-dots {
  position: absolute;
  top: 32%; right: -3%;
  display: flex; flex-direction: column; gap: 6px;
}
.module-dot {
  width: 7px; height: 7px;
  background: rgba(240,244,255,0.4);
  border-radius: 50%;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--white);
  padding: 0.82rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 22px var(--red-glow);
  border: none;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.818);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--border-med);
  color: var(--white-dim);
  padding: 0.82rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s, transform .15s;
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--white-dim);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Section base ───────────────────────────────────────────── */
section { padding: 6rem 3.5rem; position: relative; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.section-kicker::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--red); border-radius: 1px;
}

.section-title {
  font-family: var(--font-cond);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
}

hr.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 3.5rem;
}

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}

.about-text p {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--white-dim);
  line-height: 1.78;
  margin-bottom: 1.1rem;
}
.about-text p strong { color: var(--white); font-weight: 700; }

.skill-tags {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin-bottom: 2.5rem;
}
.skill-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: border-color .2s, color .2s, background .2s;
}
.skill-tag:hover { border-color: var(--red); color: var(--white); background: var(--red-soft); }

.stats-row {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-cond);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.28rem;
}

/* ── Projects ───────────────────────────────────────────────── */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .3s cubic-bezier(0.2,0,0,1), box-shadow .3s;
  display: block;
}
.project-card:hover {
  border-color: rgba(255, 255, 255, 0.744);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,36,43,0.18);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-thumb-frame {
  width: min(100%, 580px);
  aspect-ratio: 16/9;
  position: relative;
  margin-left: 0rem;
  z-index: 1;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(10,10,12,0.9);
  box-shadow:
    0 10px 15px rgba(0,0,0,0.28),
    inset 0 0 0 0px rgba(255,255,255,0.04);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.project-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.project-card:hover .project-thumb-frame {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(232,36,43,0.28);
  box-shadow:
    0 26px 46px rgba(0,0,0,0.34),
    0 0 0 1px rgba(232,36,43,0.12);
}
.project-thumb-num {
  position: absolute;
  top: 1rem; left: 1.2rem;
  font-family: var(--font-cond);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
  z-index: 2;
}
.project-thumb-label {
  font-family: var(--font-cond);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  letter-spacing: 0.04em;
  user-select: none;
  transition: transform .4s ease;
}
.project-card:hover .project-thumb-label { transform: scale(1.06); }
.project-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 50%);
}

.project-body { padding: 1.3rem 1.4rem 1.5rem; }

.project-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.project-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(232,36,43,0.14);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
}

.project-title {
  font-family: var(--font-cond);
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.42rem;
  transition: color .2s;
}
.project-card:hover .project-title { color: var(--red); }

.project-desc {
  font-size: 0.82rem;
  color: var(--white-dim);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap .2s;
}
.project-link:hover { gap: 0.65rem; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner .section-kicker { justify-content: center; }
.contact-inner .section-title { margin-bottom: 0.9rem; }

.contact-desc {
  font-size: 1rem;
  color: var(--white-dim);
  font-weight: 600;
  line-height: 1.72;
  margin-bottom: 2.4rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  margin-bottom: 2.4rem;
  transition: color .2s;
}
.contact-email:hover { color: var(--red); }

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--border-med);
  color: var(--white-dim);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover { border-color: var(--red); color: var(--white); background: var(--red-soft); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.footer-logo span { color: var(--red); }
.footer-copy {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white-dim);
  letter-spacing: 0.08em;
}

/* ── Project page ───────────────────────────────────────────── */
.project-hero {
  padding: calc(var(--nav-h) + 3.5rem) 3.5rem 2.5rem;
  position: relative; overflow: hidden;
}
.project-hero-glow {
  position: absolute;
  top: 0; right: 0;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(232,36,43,0.07) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 2rem;
}
.project-breadcrumb a { color: var(--red); transition: opacity .2s; }
.project-breadcrumb a:hover { opacity: 0.7; }
.project-breadcrumb-sep { color: var(--white-faint); }

.project-hero-title {
  font-family: var(--font-cond);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.project-hero-title em { font-style: normal; color: var(--red); }

.project-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.project-meta-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 0.2rem;
}
.project-meta-value {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--white);
}

.project-cover {
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--bg-card2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cond);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}
.project-cover::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,36,43,0.07) 0%, transparent 60%);
}

.project-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  padding: 0 3.5rem 4rem;
}
.project-content-main h2 {
  font-family: var(--font-cond);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2rem 0 0.75rem;
  color: var(--white);
}
.project-content-main h2:first-child { margin-top: 0; }
.project-content-main p {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--white-dim);
  line-height: 1.78;
  margin-bottom: 0.9rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.sidebar-card h3 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 0.75rem;
}
.sidebar-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sidebar-card li {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white-dim);
  letter-spacing: 0.06em;
}

.project-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0 3.5rem 5rem;
}
.project-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.project-nav-card:hover { border-color: rgba(232,36,43,0.4); transform: translateY(-2px); }
.project-nav-dir {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.project-nav-title {
  font-family: var(--font-cond);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
}

/* ── About page ─────────────────────────────────────────────── */
.about-page-hero {
  padding: calc(var(--nav-h) + 4rem) 3.5rem 3rem;
}
.about-big-title {
  font-family: var(--font-cond);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  max-width: 800px;
  margin-bottom: 2rem;
}
.about-big-title em { font-style: normal; color: var(--red); }
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 3rem 3.5rem 6rem;
  border-top: 1px solid var(--border);
}
.exp-item {
  border-left: 2px solid var(--border);
  padding: 0 0 2rem 1.5rem;
  position: relative;
}
.exp-item:last-child { padding-bottom: 0; }
.exp-item::before {
  content: '';
  position: absolute; left: -5px; top: 3px;
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
}
.exp-year {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.28rem;
}
.exp-role {
  font-family: var(--font-cond);
  font-size: 1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--white); margin-bottom: 0.14rem;
}
.exp-company { font-size: 0.8rem; font-weight: 600; color: var(--white-dim); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(0.2,0,0,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1.5rem; gap: 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero { padding: calc(var(--nav-h) + 2.5rem) 1.5rem 3rem; }
  /* .hero-modules { display: none; } */
  .hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  section { padding: 4rem 1.5rem; }
  hr.section-divider { margin: 0 1.5rem; }
  .about-grid, .about-page-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-content { grid-template-columns: 1fr; padding: 0 1.5rem 3rem; }
  .project-hero { padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem; }
  .project-nav-row { grid-template-columns: 1fr; padding: 0 1.5rem 3rem; }
  footer { padding: 1.5rem; flex-direction: column; gap: 0.8rem; text-align: center; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .stats-row { gap: 1.5rem; }
  .about-page-hero { padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem; }
}


/* NEW HERO PANEL */
.hero-panel{position:absolute;right:3.5rem;top:50%;transform:translateY(-50%);
width:min(42vw,520px);display:grid;grid-template-columns:1fr 1fr;gap:1rem;pointer-events:auto;}
.hero-panel-card{display:flex;flex-direction:column;justify-content:space-between;
min-height:180px;padding:1.25rem;border-radius:18px;background:rgba(255,255,255,0.72);
backdrop-filter:blur(14px);border:1px solid var(--border-med);
box-shadow:0 18px 40px rgba(110,82,56,0.12);transition:.2s;color:#4f3d2c;}
.hero-panel-card:hover{transform:translateY(-6px);}
.hero-panel-main{grid-column:span 2;}



/* PRELOADER */
/* === Hero Profile Circle === */
.hero-profile {
  position: absolute;
    right: 14vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-profile-circle {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 9px solid #d4af37;
    box-shadow:
      0 28px 120px rgba(0,0,0,0.44);
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: box-shadow .25s;
}
.hero-profile-circle::after {
    display: none;
}

.hero-profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  filter: brightness(1.05) contrast(1.08);
}

/* Responsive: move below hero text and reduce size */
@media (max-width: 900px) {
  .hero-title {
    display: block;
    font-size: clamp(3.9rem, 15vw, 5.6rem);
    text-align: left;
    line-height: 1.03;
    margin-bottom: 0.2rem;
    margin-top: -3.2rem;
  }
  .hero-kicker {
    margin-top: -2.2rem;
  }
  .hero-title em {
    display: block;
    font-style: normal;
    color: var(--red);
    font-size: inherit;
    margin-top: 0.1em;
    letter-spacing: 0.01em;
  }
  .hero-profile {
    position: absolute;
    right: 10vw;
    top: 29vw;
    transform: none;
    margin: 0;
    pointer-events: auto;
    z-index: 10;
    display: flex;
    align-items: center;
    height: auto;
  }
  .hero-profile-circle {
    width: 180px;
    height: 180px;
    border-width: 5px;
    min-width: 180px;
    min-height: 180px;
  }
  .hero-desc {
    font-size: 1.02rem;
    max-width: 98vw;
    margin-top: 2.2rem;
  }
}
@media (max-width: 600px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-profile-circle {
    width: 120px;
    height: 120px;
    border-width: 3px;
    min-width: 120px;
    min-height: 120px;
  }
  .hero-desc {
    font-size: 0.92rem;
  }
}
body.is-loading {
  overflow: hidden;
}

#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(212,175,55,0.14), transparent 38%),
    linear-gradient(135deg, #070d18 0%, #0b1320 55%, #111a2b 100%);
  transition: opacity .7s ease, visibility .7s ease;
}

#site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  width: min(88vw, 420px);
  text-align: center;
  color: #f8f6f2;
}

.preloader-mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.25rem;
  border-radius: 28px;
  border: 1px solid rgba(212,175,55,0.2);
  background: rgba(17,26,43,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  animation: preloaderFloat 2.6s ease-in-out infinite;
}

.preloader-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #f8f6f2 100%);
  box-shadow: 0 0 0 10px rgba(212,175,55,0.12);
  animation: preloaderPulse 1.4s ease-in-out infinite;
}

.preloader-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
  color: #f8f6f2;
}

.preloader-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 1.15rem;
}

.preloader-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.08);
}

.preloader-bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4af37 0%, #f8f6f2 50%, #b8962e 100%);
  box-shadow: 0 0 18px rgba(212,175,55,0.22);
  animation: preloaderLoad 1.8s ease forwards;
}

@keyframes preloaderLoad {
  0%   { width: 0%; }
  100% { width: 100%; }
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

@keyframes preloaderFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



@media (max-width: 980px) {
  /* .hero-image-placeholder {
    min-height: 320px;
  } */
}


/* ── Project carousel ───────────────────────────────────────── */
.project-cover {
  padding: 0;
}

.project-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.project-carousel-image.active {
  opacity: 1;
  pointer-events: auto;
}

.project-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: 50%;
  background: rgba(11,19,32,0.72);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.project-carousel-btn:hover {
  background: rgba(212,175,55,0.92);
  color: #0b1320;
  border-color: rgba(248,246,242,0.45);
}

.project-carousel-btn.prev {
  left: 18px;
}

.project-carousel-btn.next {
  right: 18px;
}

.project-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.55rem;
}

.project-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248,246,242,0.28);
  border: 1px solid rgba(212,175,55,0.22);
  transition: background .2s ease, transform .2s ease;
}

.project-carousel-dot.active {
  background: var(--red);
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .project-carousel-btn {
    width: 40px;
    height: 40px;
  }

  .project-carousel-btn.prev {
    left: 12px;
  }

  .project-carousel-btn.next {
    right: 12px;
  }

  .project-carousel-dots {
    bottom: 12px;
  }
}
