/* Vira portfolio — professional static CSS, no build step.
   Brand: yellow #FFD93D / blue #2B6CB0. Light + dark mode.
   System-font fallback if Google Fonts (Inter) is unavailable. */

:root {
  --yellow: #ffd93d;
  --yellow-soft: #fff3bf;
  --blue: #2b6cb0;
  --blue-deep: #1e4e8c;
  --blue-soft: #dbeafe;
  --bg: #fffdf6;
  --bg-alt: #f7f3e8;
  --text: #16233a;
  --muted: #5b6470;
  --border: #e6dfc9;
  --card: #ffffff;
  --shadow: 0 2px 14px rgba(22, 35, 58, 0.07);
  --shadow-lift: 0 14px 34px rgba(22, 35, 58, 0.14);
  --radius: 18px;
  --accent: var(--blue);
  --accent-hover: var(--blue-deep);
  --accent-text: #ffffff;
}

[data-theme="dark"] {
  --yellow-soft: #3a2f00;
  --blue-soft: #16294a;
  --bg: #0f1722;
  --bg-alt: #151f2e;
  --text: #f0f1f3;
  --muted: #a7b0bb;
  --border: #26344a;
  --card: #182233;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 14px 34px rgba(0, 0, 0, 0.5);
  --accent: #6ea8fe;
  --accent-hover: #8db9fe;
  --accent-text: #0f1722;
}

* { box-sizing: border-box; }

img, svg, video { max-width: 100%; }
img { height: auto; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
h3 { font-size: 1.15rem; font-weight: 700; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .float-card { animation: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}
.header-inner { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; margin-right: auto; }
.brand-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); background: var(--yellow-soft); }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.site-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; padding: 7px 11px; border-radius: 9px; min-height: 44px; display: inline-flex; align-items: center; transition: color 0.2s, background 0.2s; }
.site-nav a:hover { color: var(--text); background: var(--bg-alt); }
.header-cta {
  background: var(--yellow); color: #16233a; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; padding: 8px 16px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; transition: transform 0.2s, box-shadow 0.2s;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 217, 61, 0.45); color: #16233a; }
.theme-toggle {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
}
.theme-toggle:hover { border-color: var(--accent); }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); will-change: transform; }
.blob-1 { width: 420px; height: 420px; background: var(--yellow-soft); top: -120px; right: -80px; }
.blob-2 { width: 300px; height: 300px; background: var(--blue-soft); bottom: -60px; left: -100px; }
.blob-3 { width: 140px; height: 140px; background: var(--yellow); opacity: 0.35; top: 38%; left: 44%; }
.shape-ring {
  position: absolute; width: 90px; height: 90px; border: 10px solid var(--yellow);
  border-radius: 50%; top: 16%; right: 12%; opacity: 0.7; will-change: transform;
}
.shape-dots {
  position: absolute; width: 120px; height: 60px; top: 62%; right: 4%;
  background-image: radial-gradient(var(--blue) 2.5px, transparent 2.6px);
  background-size: 18px 18px; opacity: 0.35; will-change: transform;
}
.shape-zig {
  position: absolute; width: 110px; height: 26px; top: 12%; left: 6%;
  background: linear-gradient(135deg, var(--blue) 25%, transparent 25%) -14px 0 / 28px 28px,
              linear-gradient(225deg, var(--blue) 25%, transparent 25%) -14px 0 / 28px 28px;
  opacity: 0.5; will-change: transform;
}
.hero-inner { position: relative; display: flex; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 55%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem;
  color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 6px 14px; margin: 0 0 18px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.2); }
.hero h1 { margin-bottom: 18px; }
.highlight {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  padding: 0 4px; border-radius: 4px;
}
.lede { font-size: 1.18rem; color: var(--muted); max-width: 34rem; margin: 0 0 8px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; align-items: center; }
.hero-note { font-size: 0.9rem; color: var(--muted); margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; min-height: 48px; justify-content: center; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(43, 108, 176, 0.35); }
.btn-primary:hover { background: var(--blue-deep); color: #fff; box-shadow: 0 12px 26px rgba(43, 108, 176, 0.4); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-alt); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; padding: 12px 10px; }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }

.hero-visual { position: relative; flex: 0 0 300px; display: flex; justify-content: center; }
.hero-avatar {
  width: 300px; height: auto; display: block;
  filter: drop-shadow(0 24px 30px rgba(22, 35, 58, 0.20));
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow-lift); font-size: 0.85rem; line-height: 1.35;
  animation: floaty 5s ease-in-out infinite; will-change: transform; z-index: 2;
}
.float-card svg { color: var(--blue); flex-shrink: 0; }
.float-card strong { display: block; font-size: 0.9rem; }
.float-card span { color: var(--muted); }
.float-card-1 { top: 6%; left: -58px; }
.float-card-2 { bottom: 22%; right: -46px; animation-delay: 1.2s; }
.float-card-3 { bottom: -4%; left: -30px; animation-delay: 2.1s; }
.float-card-3 strong { font-size: 1.25rem; color: var(--blue); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 44px 0 8px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 12px; box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 2.1rem; font-weight: 900; color: var(--blue); letter-spacing: -0.02em; }
.stat-label { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 8px;
}
.section-intro { color: var(--muted); margin: 0 0 8px; max-width: 42rem; font-size: 1.08rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; margin-top: 32px; }
.cards > *, .work-grid > *, .skills > * { min-width: 0; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--yellow); }
.card p { color: var(--muted); }
.card h3 { margin-bottom: 8px; }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: #16233a; margin-bottom: 16px;
}
.service-card:nth-child(2) .service-icon { background: var(--blue); color: #fff; }
.service-card:nth-child(3) .service-icon { background: var(--blue-soft); color: var(--blue); }
.check-list { list-style: none; margin: 16px 0 0; padding: 0; }
.check-list li { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 9px; color: var(--muted); font-size: 0.96rem; }
.check-list svg { color: #22a06b; flex-shrink: 0; margin-top: 4px; }
.price { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--border); color: var(--text); }
.price strong { font-size: 1.15rem; color: var(--blue); }
.price-note { margin: 8px 0 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; margin-top: 32px; }
.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work-thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--blue-soft); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.work-card:hover .work-thumb img { transform: scale(1.05); }
.work-thumb-tall img { object-fit: contain; background: #fff; padding: 18px; }
.work-thumb-tag {
  position: absolute; top: 12px; right: 12px; background: var(--yellow); color: #16233a;
  font-size: 0.78rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.work-thumb-mock {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px;
  background: linear-gradient(135deg, var(--yellow-soft), var(--blue-soft));
}
.mock-bar { display: flex; gap: 6px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); opacity: 0.55; }
.mock-bar i:first-child { background: #e05252; }
.mock-bar i:nth-child(2) { background: var(--yellow); }
.mock-hero { height: 52px; border-radius: 10px; background: var(--blue); opacity: 0.85; }
.mock-line { height: 12px; border-radius: 6px; background: var(--text); opacity: 0.18; }
.mock-line.short { width: 60%; }
.mock-btn { width: 96px; height: 28px; border-radius: 999px; background: var(--yellow); }
.work-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-body p { flex: 1; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tags span {
  font-size: 0.78rem; font-weight: 700; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px; color: var(--muted);
}
.work-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.work-link svg { transition: transform 0.2s; }
.work-link:hover svg { transform: translate(2px, -2px); }
.more-link { margin-top: 30px; font-weight: 700; }
.more-link a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Skills / About ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; margin-top: 36px; }
.skill-group { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.skill-group h4 { margin: 0 0 10px; }
.skill-group ul { margin: 0; padding-left: 20px; color: var(--muted); }
.skill-group li { margin-bottom: 4px; }

/* ---------- Contact ---------- */
.email-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0 4px; }
.email-icon { color: var(--blue); flex-shrink: 0; }
.email-row code {
  font-size: 1.05rem; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; word-break: break-all; min-width: 0;
}
.copy-feedback { min-height: 1.4em; color: var(--blue); font-weight: 600; margin: 4px 0 0; }
.contact-form { margin-top: 26px; display: grid; gap: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; text-align: center; color: var(--muted); font-size: 0.95rem; }
.footer-note { font-size: 0.85rem; margin: 4px 0 0; }

/* ---------- Mobile ---------- */
@media (max-width: 1130px) {
  /* Keep the floating cards inside the viewport on small desktops/tablets:
     card-2 used to extend 46px past the right edge below ~1128px. */
  .float-card-1 { left: -12px; }
  .float-card-2 { right: 0; }
  .float-card-3 { left: -8px; }
}
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; align-items: stretch; gap: 28px; }
  .hero-copy { flex: none; width: 100%; }
  .hero-visual { flex: none; width: 100%; flex-direction: column; align-items: center; gap: 14px; }
  .hero-avatar { width: 220px; height: auto; }
  .float-card { position: static; width: 100%; max-width: 380px; }
  .float-card-1, .float-card-2, .float-card-3 { left: auto; right: auto; top: auto; bottom: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 44px 0 28px; }
  .hero-avatar { width: 180px; height: auto; }
  .header-inner { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  /* Nav stays usable on phones as a scrollable second row (was display:none). */
  .site-nav { display: flex; order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  .section { padding: 48px 0; }
  .stats { grid-template-columns: 1fr; gap: 8px; padding: 18px 12px; }
  .stat-num { font-size: 1.7rem; }
  .shape-ring, .shape-dots { display: none; }
  .blob-1 { width: 240px; height: 240px; top: -80px; right: -60px; }
  .blob-2 { width: 180px; height: 180px; bottom: -40px; left: -60px; }
  .blob-3 { width: 90px; height: 90px; top: auto; bottom: 12%; left: auto; right: -20px; }
  .float-card { font-size: 0.78rem; padding: 8px 10px; }
}
@media (max-width: 400px) {
  h1 { font-size: 1.9rem; }
  .lede { font-size: 1.05rem; }
}
