:root {
  --primary: #6d3df5;
  --primary-dark: #4f24d6;
  --secondary: #ff5f7e;
  --ink: #171321;
  --muted: #716c7b;
  --soft: #f7f5fb;
  --line: #e7e2ee;
  --dark: #171321;
  --sidebar: 118px;
  --radius: 24px;
  --shadow: 0 22px 55px rgba(30, 18, 58, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; }

.portfolio-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  z-index: 1040;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 14px 18px;
  box-shadow: 7px 0 28px rgba(20, 12, 42, 0.04);
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.brand img { width: 66px; height: 66px; object-fit: contain; border-radius: 18px; }
.brand span { font-size: 11px; font-weight: 800; letter-spacing: .05em; line-height: 1.25; }
.side-nav { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 34px 0 auto; }
.side-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 62px; border-radius: 15px; color: #817b8c; font-size: 11px; font-weight: 700;
  transition: .25s ease;
}
.side-nav a i { font-size: 19px; margin-bottom: 4px; }
.side-nav a:hover, .side-nav a.active { color: #fff; background: linear-gradient(135deg, var(--primary), #9b5cff); box-shadow: 0 10px 24px rgba(109, 61, 245, .25); }
.side-footer { width: 100%; }
.side-socials { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.side-socials a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #5f586b; }
.side-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.site-main { margin-left: var(--sidebar); }
.section-block { position: relative; padding: 105px 0; }
.content-container, .hero-container { max-width: 1440px; padding-left: 6vw; padding-right: 6vw; }
.bg-soft { background: var(--soft); }
.bg-dark-section { background: var(--dark); }

.mobile-menu-btn {
  display: none; position: fixed; right: 18px; top: 18px; z-index: 1060;
  width: 48px; height: 48px; border: 0; border-radius: 15px; color: #fff;
  background: var(--primary); box-shadow: 0 12px 30px rgba(109, 61, 245, .3);
}

.hero-section { min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(circle at 78% 20%, #f1eaff 0, #fff 32%, #fff 100%); }
.hero-section::before { content: ""; position: absolute; width: 58%; height: 100%; right: -10%; top: 0; background: url("../images/banner_bg.png") center/cover no-repeat; opacity: .12; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.orb-one { width: 420px; height: 420px; background: rgba(109,61,245,.08); right: 5%; top: 7%; }
.orb-two { width: 220px; height: 220px; background: rgba(255,95,126,.10); left: 48%; bottom: 6%; }
.hero-container { position: relative; z-index: 2; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: #5d5668; box-shadow: 0 9px 28px rgba(30,18,58,.06); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #27c87b; box-shadow: 0 0 0 5px rgba(39,200,123,.12); }
.hero-kicker { margin: 25px 0 0; letter-spacing: .24em; font-weight: 800; color: var(--secondary); font-size: 13px; }
.hero-section h1 { font-size: clamp(3.3rem, 6vw, 6.3rem); line-height: .98; letter-spacing: -.055em; font-weight: 850; margin: 12px 0 18px; }
.hero-section h1 span { color: var(--primary); }
.hero-section h2 { font-size: clamp(1.35rem, 2.2vw, 2.25rem); font-weight: 650; margin: 0 0 24px; color: #3f3949; }
.hero-divider { color: var(--secondary); padding: 0 8px; }
.hero-copy { max-width: 760px; font-size: 1.12rem; color: var(--muted); }
.hero-tags, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags { margin-top: 28px; }
.hero-tags span, .chip-row span { border: 1px solid var(--line); background: rgba(255,255,255,.9); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 750; color: #625b6e; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.btn { border-radius: 14px; font-weight: 750; padding: .78rem 1.3rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #8a51fa); border-color: transparent; box-shadow: 0 12px 26px rgba(109,61,245,.23); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-color: transparent; transform: translateY(-1px); }
.btn-outline-dark { border-color: #d7d0df; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary); }
.hero-photo-wrap { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-photo-ring { width: min(460px, 80vw); aspect-ratio: 1; border-radius: 50%; padding: 16px; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 35px 90px rgba(61,36,111,.22); position: relative; }
.hero-photo-ring::before { content: ""; position: absolute; inset: -24px; border: 1px dashed rgba(109,61,245,.25); border-radius: 50%; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 10px solid #fff; }
.floating-card { position: absolute; min-width: 150px; padding: 13px 16px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: 36px 1fr; column-gap: 9px; line-height: 1.2; }
.floating-card i { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 11px; }
.floating-card strong { font-size: 13px; }
.floating-card span { font-size: 11px; color: var(--muted); margin-top: 3px; }
.card-code { left: 0; top: 18%; }
.card-design { right: -1%; bottom: 15%; }
.scroll-cue { position: absolute; bottom: 28px; left: 50px; writing-mode: vertical-rl; color: #8d8797; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue span { display: block; width: 1px; height: 48px; background: var(--primary); margin: 0 auto 8px; }

.section-heading { max-width: 900px; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(2.15rem, 4vw, 4.2rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 820; margin: 8px 0 0; }
.section-label { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 850; color: var(--primary); }
.section-intro { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.light-heading h2 { color: #fff; }
.light-heading .section-label { color: #b8a4ff; }
.light-heading .section-intro { color: #a9a3b1; }
.heading-with-action { display: flex; max-width: none; justify-content: space-between; align-items: end; gap: 20px; }
.heading-with-action > div { max-width: 900px; }

.about-card, .info-card, .skill-card, .contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-card { padding: clamp(28px, 4vw, 55px); }
.about-card .lead { font-size: 1.28rem; font-weight: 600; color: #3c3547; }
.signature-line { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.signature-line strong { font-size: 1.35rem; }
.signature-line span { color: var(--muted); }
.info-card { padding: 18px 30px; }
.info-card > div { display: grid; grid-template-columns: 115px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.info-card > div:last-child { border-bottom: 0; }
.info-card span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #9a93a4; font-weight: 800; }
.info-card strong, .info-card a { font-weight: 750; }

.skill-card { height: 100%; padding: 30px; transition: .25s ease; }
.skill-card:hover { transform: translateY(-7px); box-shadow: 0 28px 70px rgba(30,18,58,.15); }
.skill-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--primary), #9a65ff); color: #fff; font-size: 22px; margin-bottom: 24px; }
.skill-card h3 { font-size: 1.25rem; font-weight: 800; }
.skill-card p { color: var(--muted); min-height: 120px; }
.skill-card .chip-row span { background: var(--soft); padding: 5px 9px; }

.timeline { position: relative; max-width: 1100px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 190px; top: 15px; bottom: 15px; width: 1px; background: rgba(255,255,255,.13); }
.timeline-item { position: relative; display: grid; grid-template-columns: 160px 60px 1fr; gap: 0; margin-bottom: 34px; }
.timeline-date { font-size: 13px; color: #aaa4b2; font-weight: 800; text-align: right; padding-top: 28px; }
.timeline-dot { position: relative; }
.timeline-dot::before { content: ""; position: absolute; left: 24px; top: 30px; width: 13px; height: 13px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 7px rgba(109,61,245,.16); }
.timeline-content { padding: 24px 28px; border: 1px solid rgba(255,255,255,.10); border-radius: 20px; background: rgba(255,255,255,.045); }
.timeline-content h3 { font-size: 1.35rem; margin: 0; font-weight: 800; }
.timeline-content h4 { font-size: 1rem; color: #b9b2c3; margin: 7px 0 10px; font-weight: 650; }
.timeline-content p { margin: 0; color: #a9a3b1; }
.timeline-item.featured .timeline-content { border-color: rgba(109,61,245,.55); background: linear-gradient(135deg, rgba(109,61,245,.15), rgba(255,255,255,.04)); }
.timeline-badge { display: inline-block; color: #d8ccff; background: rgba(109,61,245,.22); border: 1px solid rgba(154,101,255,.28); border-radius: 999px; padding: 5px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; font-weight: 850; margin-bottom: 10px; }

.project-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s ease; }
.project-card:hover { transform: translateY(-7px); box-shadow: 0 30px 70px rgba(30,18,58,.15); }
.project-visual { min-height: 240px; position: relative; overflow: hidden; }
.tech-visual { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #4323a2, #8d54ff); }
.tech-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.18), transparent 24%), radial-gradient(circle at 80% 80%, rgba(255,95,126,.22), transparent 28%); }
.tech-visual i { font-size: 70px; position: relative; z-index: 1; opacity: .94; }
.localjoy-card .tech-visual { background: linear-gradient(135deg, #0e8b74, #42ca88); }
.fanal-card .tech-visual { background: linear-gradient(135deg, #42266f, #a25ac4); }
.readaloud-card .tech-visual { background: linear-gradient(135deg, #0d5f99, #22a7c9); }
.project-badge { position: absolute; z-index: 2; right: 16px; top: 16px; padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; backdrop-filter: blur(8px); }
.badge-solo { background: rgba(255,255,255,.94); color: #087860; }
.badge-ai { background: rgba(23,19,33,.78); color: #fff; border: 1px solid rgba(255,255,255,.24); }
.project-image { height: 260px; background: #efeaf7; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-body { padding: 28px; }
.project-type { display: block; color: var(--primary); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; margin-bottom: 8px; }
.project-body h3 { font-size: 1.45rem; font-weight: 850; margin-bottom: 12px; }
.project-body p { color: var(--muted); }
.project-body .chip-row { margin: 18px 0; }
.project-body .chip-row span { background: var(--soft); padding: 5px 9px; }
.project-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; margin-top: 4px; }

.portfolio-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: -15px 0 32px; }
.filter-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px; color: #6f6879; font-size: 12px; font-weight: 800; transition: .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.creative-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.creative-item { min-height: 280px; border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 14px 40px rgba(30,18,58,.09); background: #ddd; transition: .25s; }
.creative-item.hidden { display: none; }
.creative-item a { display: block; height: 100%; }
.creative-item img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; transition: transform .4s ease; }
.creative-item:hover img { transform: scale(1.06); }
.creative-overlay { position: absolute; inset: auto 0 0; padding: 52px 20px 20px; color: #fff; background: linear-gradient(to top, rgba(15,10,25,.92), transparent); }
.creative-overlay span { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #ded3ff; }
.creative-overlay h3 { margin: 3px 0 0; font-size: 1.18rem; font-weight: 800; }

.video-card { background: #221d2d; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; overflow: hidden; height: 100%; }
.video-card iframe { border: 0; }
.video-meta { padding: 20px 22px 23px; }
.video-meta span { color: #a895e5; text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 850; }
.video-meta h3 { margin: 4px 0 0; font-size: 1.3rem; font-weight: 800; }

.contact-section { background: linear-gradient(135deg, #fff, #fbf8ff); }
.contact-list { display: grid; gap: 10px; }
.contact-list > a, .contact-list > div { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.contact-list i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #eee8ff; color: var(--primary); }
.contact-list span { display: flex; flex-direction: column; font-weight: 750; }
.contact-list small { color: #9b94a5; text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 850; margin-bottom: 1px; }
.contact-form { padding: clamp(25px, 4vw, 45px); }
.form-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: #716979; }
.form-control { min-height: 52px; border-radius: 13px; border-color: #ded8e6; padding: .75rem 1rem; }
textarea.form-control { min-height: 145px; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(109,61,245,.12); }
.form-note { color: #938c9c; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner > div:first-child { display: flex; align-items: center; gap: 12px; }
.footer-inner > div:first-child div { display: flex; flex-direction: column; line-height: 1.35; }
.footer-inner > div:first-child span, .footer-inner p { color: #948c9e; font-size: 12px; }
.footer-inner p { margin: 0; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #6f6879; }
.footer-socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 1199.98px) {
  .creative-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero-photo-wrap { min-height: 470px; }
  .hero-photo-ring { width: min(390px, 76vw); }
  .card-code { left: 1%; }
}

@media (max-width: 991.98px) {
  :root { --sidebar: 0px; }
  .portfolio-sidebar { width: min(320px, 86vw); transform: translateX(-110%); transition: transform .28s ease; align-items: stretch; padding: 24px; }
  .portfolio-sidebar.open { transform: translateX(0); }
  .brand { flex-direction: row; text-align: left; }
  .brand img { width: 54px; height: 54px; }
  .brand span { font-size: 13px; }
  .side-nav { margin-top: 24px; }
  .side-nav a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px; min-height: 50px; font-size: 13px; }
  .side-nav a i { margin: 0; width: 22px; }
  .mobile-menu-btn { display: grid; place-items: center; }
  .site-main { margin-left: 0; }
  .hero-section { padding-top: 100px; min-height: auto; }
  .hero-photo-wrap { min-height: 420px; }
  .hero-section h1 { font-size: clamp(3.5rem, 12vw, 6rem); }
  .card-code { left: 6%; }
  .card-design { right: 6%; }
  .scroll-cue { display: none; }
  .content-container, .hero-container { padding-left: 5vw; padding-right: 5vw; }
  .creative-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .heading-with-action { align-items: start; flex-direction: column; }
}

@media (max-width: 767.98px) {
  .section-block { padding: 78px 0; }
  .hero-section { padding-top: 90px; }
  .hero-photo-wrap { min-height: 360px; }
  .hero-photo-ring { width: min(310px, 78vw); }
  .floating-card { min-width: 130px; padding: 10px 12px; }
  .card-code { left: 0; top: 8%; }
  .card-design { right: 0; bottom: 7%; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions .text-link { justify-content: center; width: 100%; padding-top: 6px; }
  .timeline::before { left: 14px; }
  .timeline-item { grid-template-columns: 30px 1fr; }
  .timeline-date { grid-column: 2; text-align: left; padding: 0 0 6px; }
  .timeline-dot { grid-column: 1; grid-row: 1 / 3; }
  .timeline-dot::before { left: 8px; top: 10px; }
  .timeline-content { grid-column: 2; }
  .creative-grid { grid-template-columns: 1fr; }
  .info-card > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { padding-top: 28px; padding-bottom: 28px; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
