/* ─── THEME ─────────────────────────────────────────── */
:root {
  --bg: #0b0f1a;
  --bg-soft: #101624;
  --surface: rgba(18, 24, 48, 0.75);
  --surface-2: rgba(26, 34, 66, 0.92);
  --text: #eef2ff;
  --muted: #9ba8cc;
  --primary: #a78bfa;
  --secondary: #34d399;
  --accent: #60a5fa;
  --rose: #f472b6;
  --border: rgba(167, 139, 250, 0.18);
  --shadow: 0 20px 50px rgba(8, 12, 30, 0.55);
  --radius: 18px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(124,58,237,0.28) 0%, transparent 38%),
    radial-gradient(circle at 88% 8%,  rgba(52,211,153,0.14) 0%, transparent 32%),
    radial-gradient(circle at 55% 90%, rgba(96,165,250,0.12) 0%, transparent 30%),
    linear-gradient(145deg, #060a14, #0d1428 50%, #080d1c);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.section { padding: 5.5rem 0; position: relative; }

.eyebrow {
  color: var(--secondary);
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.65rem;
  font-size: 0.78rem; display: block;
}
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); }

/* ─── CURSOR GLOW ───────────────────────────────────── */
#cursor-glow {
  position: fixed; width: 320px; height: 320px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.08s, top 0.08s;
}

/* ─── BG ORBS ───────────────────────────────────────── */
.bg-orb {
  position: fixed; width: 380px; height: 380px;
  border-radius: 50%; filter: blur(90px);
  z-index: 0; opacity: 0.32; pointer-events: none;
}
.orb-1 { top: -90px; left: -100px; background: #7c3aed; animation: floatOrb 11s ease-in-out infinite; }
.orb-2 { bottom: -130px; right: -110px; background: #059669; animation: floatOrb 13s ease-in-out infinite reverse; }
.orb-3 { top: 40%; left: 50%; background: #2563eb; width: 260px; height: 260px; opacity: 0.12; animation: floatOrb 17s ease-in-out infinite 3s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(22px, -30px); }
}

/* ─── SCROLL PROGRESS ───────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  width: 0%; transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ─── HEADER ────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 999;
  backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(6, 9, 20, 0.62);
  border-bottom: 1px solid rgba(167,139,250,0.1);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav {
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--secondary); }

.nav-links { list-style: none; display: flex; gap: 0.3rem; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: 0.9rem;
  padding: 0.4rem 0.75rem; border-radius: 8px;
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(167,139,250,0.08); }
.nav-links a:hover::after, .nav-links a.active::after { width: calc(100% - 1.5rem); left: 0.75rem; }

.menu-toggle {
  display: none; background: transparent; border: none;
  color: var(--text); font-size: 1.55rem; cursor: pointer;
  padding: 0.3rem; border-radius: 8px;
  transition: background 0.2s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.06); }

/* ─── HERO ──────────────────────────────────────────── */
.hero { padding-top: 6rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem; align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  margin-bottom: 0.7rem;
  background: linear-gradient(135deg, #fff 30%, var(--primary) 70%, var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { color: var(--muted); max-width: 52ch; margin-bottom: 1.4rem; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }

.btn {
  border: 1px solid transparent; border-radius: 999px;
  padding: 0.72rem 1.4rem; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer; display: inline-block;
}
.btn:hover { transform: translateY(-3px); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 28px rgba(167,139,250,0.35);
}
.btn.primary:hover { box-shadow: 0 14px 36px rgba(167,139,250,0.5); }
.btn.ghost {
  border-color: var(--border); color: var(--text);
  background: rgba(255,255,255,0.03);
}
.btn.ghost:hover { border-color: var(--primary); background: rgba(167,139,250,0.07); }

.quick-contact { display: grid; gap: 0.3rem; color: var(--muted); font-size: 0.9rem; }

/* ─── HERO VISUAL ───────────────────────────────────── */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.hero-photo-wrap {
  width: 230px; height: 270px; border-radius: 22px;
  overflow: hidden; border: 2px solid var(--border);
  background: var(--surface-2); position: relative;
  box-shadow: 0 0 50px rgba(167,139,250,0.18);
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--muted); font-size: 0.8rem; text-align: center; padding: 16px;
}
.avatar-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 800;
}

/* ─── CARDS BASE ────────────────────────────────────── */
.hero-card, .about-card, .service-card,
.software-box, .design-box, .portfolio-card,
.project-card, .contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-card, .service-card, .software-box,
.design-box, .portfolio-card, .contact-card {
  padding: 1.4rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover, .service-card:hover, .software-box:hover,
.design-box:hover, .portfolio-card:hover, .contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167,139,250,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* ─── HERO CARD ─────────────────────────────────────── */
.hero-card {
  padding: 1.5rem; width: 230px; text-align: center;
  transition: transform 0.4s ease;
}
.hero-card:hover { transform: translateY(-6px); }
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 16px;
  font-size: 1.8rem; font-weight: 800; margin-bottom: 0.9rem; color: #fff;
  background: linear-gradient(140deg, var(--primary), var(--rose));
}
.hero-card h3 { margin-bottom: 0.3rem; font-size: 0.95rem; }
.hero-card p, .hero-card a { color: var(--muted); font-size: 0.82rem; }
.hero-card a { color: var(--accent); }
.hero-card .social { margin-top: 0.35rem; }

/* ─── ABOUT ─────────────────────────────────────────── */
.about-grid { margin-top: 1.6rem; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.about-card p { color: var(--muted); font-size: 0.95rem; }

/* ─── SERVICES ──────────────────────────────────────── */
.service-grid { margin-top: 1.6rem; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.service-icon { font-size: 1.8rem; margin-bottom: 0.7rem; }
.service-card h3 { margin-bottom: 0.45rem; font-size: 1rem; }
.service-card p { color: var(--muted); font-size: 0.9rem; }

/* ─── SKILLS ────────────────────────────────────────── */
.skills-wrap { margin-top: 1.6rem; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.skills-wrap h3 { margin-bottom: 0.9rem; font-size: 1rem; }

.software-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sw-logo-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  cursor: default;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  animation: floatCard 3.5s ease-in-out infinite;
}
.sw-logo-card:nth-child(2) { animation-delay: 0.5s; }
.sw-logo-card:nth-child(3) { animation-delay: 1s; }
.sw-logo-card:nth-child(4) { animation-delay: 1.5s; }
.sw-logo-card:nth-child(5) { animation-delay: 2s; }
.sw-logo-card:nth-child(6) { animation-delay: 2.5s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.sw-logo-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 22px rgba(167,139,250,0.28);
  animation-play-state: paused;
  transform: translateY(-9px) scale(1.05);
}
.sw-logo-card svg { width: 42px; height: 42px; }
.sw-logo-card span { font-size: 0.68rem; color: var(--muted); text-align: center; font-weight: 500; }

.design-box ul { list-style: none; display: grid; gap: 0.45rem; }
.design-box li { color: var(--muted); position: relative; padding-left: 1.1rem; font-size: 0.92rem; }
.design-box li::before {
  content: ""; position: absolute; left: 0; top: 0.58rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ─── PORTFOLIO + PROJECTS ──────────────────────────── */
.sub-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem; margin-top: 0.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.sub-label::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.portfolio-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2.5rem; }
.portfolio-card .tag {
  color: var(--secondary); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.4rem; display: block;
}
.portfolio-card h3 { margin: 0.3rem 0 0.5rem; font-size: 0.97rem; }
.portfolio-card p { color: var(--muted); font-size: 0.87rem; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-card {
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  border-color: rgba(167,139,250,0.45);
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.38);
}
.project-thumb {
  height: 150px; display: flex; align-items: center;
  justify-content: center; font-size: 2.8rem; position: relative; overflow: hidden;
}
.project-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.35));
}
.project-thumb.menu     { background: linear-gradient(135deg, #1e1b4b, #3730a3); }
.project-thumb.fitness  { background: linear-gradient(135deg, #052e16, #166534); }
.project-thumb.hairdryer{ background: linear-gradient(135deg, #4a044e, #86198f); }
.project-thumb.tea      { background: linear-gradient(135deg, #431407, #9a3412); }
.project-thumb.seed     { background: linear-gradient(135deg, #052e16, #3f6212); }
.project-thumb.brand    { background: linear-gradient(135deg, #0c1445, #1d4ed8); }
.project-body { padding: 1rem 1.1rem 1.1rem; }
.project-body .tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.4rem; display: block;
}
.project-body h3 { font-size: 0.92rem; color: var(--text); margin-bottom: 0.4rem; }
.project-body p { color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.tools-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.7rem; }
.tool-badge {
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.22);
  border-radius: 999px; padding: 2px 9px;
  font-size: 0.67rem; color: var(--accent); font-weight: 500;
}

/* ─── CONTACT ───────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: center; }
.contact-card { display: grid; gap: 0.55rem; }
.contact-card a { color: var(--accent); font-size: 0.95rem; transition: color 0.2s; }
.contact-card a:hover { color: var(--primary); }
.contact-card p { color: var(--muted); font-size: 0.9rem; }

/* ─── FOOTER ────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(167,139,250,0.1);
  padding: 1.6rem 0 2.4rem; text-align: center; color: var(--muted);
  position: relative; z-index: 1;
}
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); opacity: 0.5; }

/* ─── BACK TO TOP ───────────────────────────────────── */
#back-top {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(167,139,250,0.4);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { transform: translateY(-3px); }

/* ─── REVEAL ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.72s ease, transform 0.72s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal[data-anim="slide-left"]  { transform: translateX(34px); }
.reveal[data-anim="slide-right"] { transform: translateX(-34px); }
.reveal[data-anim="zoom-in"]     { transform: scale(0.92); }
.reveal.show[data-anim="slide-left"],
.reveal.show[data-anim="slide-right"],
.reveal.show[data-anim="zoom-in"] { transform: translateX(0) scale(1); }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .about-grid,
  .service-grid, .skills-wrap, .portfolio-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { flex-direction: row; justify-content: flex-start; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 1rem;
    width: min(280px, calc(100% - 2rem)); padding: 1rem;
    flex-direction: column; gap: 0.4rem;
    background: rgba(8,12,26,0.97);
    border: 1px solid var(--border); border-radius: 14px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .menu-toggle { display: block; }
}
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .container { width: min(1120px, calc(100% - 1.4rem)); }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-visual { flex-direction: column; }
  .software-logos { grid-template-columns: repeat(2, 1fr); }
}