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

:root {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #16161f;
  --border: rgba(255,255,255,0.07);
  --text: #f0f0f5;
  --text-muted: #888899;
  --accent: #ff6600;
  --accent-hover: #ff7a1a;
  --accent-glow: rgba(255,102,0,0.25);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 36px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,102,0,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.hero-scroll {
  color: var(--text-muted);
  font-size: 20px;
  margin-top: 8px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* SECTIONS */
.section {
  padding: 60px 0;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

/* ABOUT */
.about-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  filter: brightness(0.95);
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,102,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.about-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  margin-top: 8px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-text p:last-of-type {
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* PAINS */
.pains {
  background: var(--bg-2);
}

.pains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.pain-card:hover {
  border-color: rgba(255,102,0,0.4);
  transform: translateY(-2px);
}

.pain-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* HOW */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 32px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 22px;
  padding-top: 48px;
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* PORTFOLIO */
.portfolio {
  background: var(--bg-2);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: rgba(255,102,0,0.4);
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--accent-glow);
  border: 1px solid rgba(255,102,0,0.3);
  font-size: 12px;
  font-weight: 600;
  color: #ff9955;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.project-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 680px;
}

.project-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin-bottom: 24px;
}

.project-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.project-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-stack span {
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-group {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-group:hover {
  border-color: rgba(255,102,0,0.4);
  transform: translateY(-2px);
}

.skill-group-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.skill-group h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}

.skill-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-group ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.skill-group ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.3;
}

/* CTA SECTION */
.cta-section {
  background: var(--bg-2);
}

.cta-box {
  background: var(--bg-3);
  border: 1px solid rgba(255,102,0,0.25);
  border-radius: 24px;
  padding: 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,102,0,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}

/* FOOTER */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer span {
  font-size: 14px;
  color: var(--text-muted);
}

.footer a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

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

/* SCROLL ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav {
    padding: 0 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .pains-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    width: auto;
    padding: 0;
    transform: rotate(90deg);
    height: 40px;
  }

  .cta-box {
    padding: 48px 32px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }

  .pains-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .nav .btn-ghost {
    display: none;
  }

  .nav-links {
    display: none;
  }
}
