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

:root {
  --bg:       #0d0d16;
  --bg2:      #12121f;
  --bg3:      #1a1a2e;
  --purple:   #8b5cf6;
  --purple2:  #6d28d9;
  --text:     #f0f0f5;
  --muted:    #9090a8;
  --border:   rgba(139,92,246,.2);
  --radius:   12px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section-label {
  font-size: .75rem;
  letter-spacing: .15em;
  color: var(--purple);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ── Nav ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,22,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: .05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--purple);
  color: var(--text) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--purple2) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--purple2); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(139,92,246,.12) 0%, transparent 70%);
}

.hero-location {
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-bio {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll-hint {
  margin-top: 60px;
  font-size: 1.8rem;
  color: var(--muted);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ── About ── */
#about {
  padding: 120px 0;
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text strong { color: var(--text); }

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.about-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
}
.about-icon { font-size: 1.5rem; display: block; margin-bottom: 10px; }
.about-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.about-card p { font-size: .8rem; color: var(--muted); margin: 0; }

.about-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(139,92,246,.15);
}

/* ── Work ── */
#work {
  padding: 120px 0;
  background: var(--bg);
}

#work h2, #expertise h2, #services h2, #contact h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(139,92,246,.15);
}

.project-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-img img { transition: transform .4s; }
.project-card:hover .project-img img { transform: scale(1.04); }

.project-link {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(139,92,246,.8);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity .2s;
}
.project-card:hover .project-link { opacity: 1; }

.project-body { padding: 24px; }
.project-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.project-body p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: .75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--muted);
}

/* ── Services ── */
#services {
  padding: 120px 0;
  background: var(--bg2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s;
}
.service-card:hover { border-color: var(--purple); }
.service-icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.service-card h4 { font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .87rem; }

.services-cta {
  background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(109,40,217,.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px;
  text-align: center;
}
.services-cta h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.services-cta p { color: var(--muted); max-width: 580px; margin: 0 auto 32px; }

/* ── Expertise ── */
#expertise {
  padding: 120px 0;
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 32px;
}

.skill { }
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: .92rem;
  font-weight: 600;
}
.skill-header span:last-child { color: var(--purple); }

.skill-bar {
  height: 8px;
  background: var(--bg3);
  border-radius: 99px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple2), var(--purple));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(.25,.46,.45,.94);
}

/* ── Contact ── */
#contact {
  padding: 120px 0;
  background: var(--bg2);
  text-align: center;
}

.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner h2 { margin-bottom: 20px; }
.contact-inner > p { color: var(--muted); margin-bottom: 40px; }

.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

.contact-note { color: var(--muted); font-size: .87rem; }

/* ── Footer ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
footer .container { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
footer p { color: var(--muted); font-size: .85rem; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 1/1; max-width: 340px; margin: 0 auto; }
  .about-cards { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .services-cta { padding: 36px 24px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
