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

:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --card: #1a1a1a;
  --border: #2a2a2a;
  --accent: #ff6b35;
  --accent2: #ffd166;
  --green: #06d6a0;
  --text: #f0ede8;
  --muted: #888;
  --hand: 'Caveat', cursive;
  --display: 'Bebas Neue', cursive;
  --body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- NOISE OVERLAY --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* --- NAV --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  backdrop-filter: blur(20px);
  background: rgba(13,13,13,0.7);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-bg-circle2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,214,160,0.08) 0%, transparent 70%);
  left: -100px;
  bottom: -100px;
  pointer-events: none;
}

.hero-content { max-width: 800px; z-index: 1; }

.hero-tag {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
  transform: rotate(-1deg);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

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

.hero-subtitle-hand {
  font-family: var(--hand);
  font-size: 2rem;
  color: var(--accent2);
  margin-bottom: 30px;
  display: block;
}

.hero-desc {
  font-size: 1.15rem;
  max-width: 520px;
  color: #bbb;
  margin-bottom: 50px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 36px;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #e85c28;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,53,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 50px;
  height: 1px;
  background: var(--muted);
}

/* --- SECTION BASE --- */
section {
  padding: 100px 60px;
}

.section-label {
  font-family: var(--hand);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 50px;
}

.section-title em {
  color: var(--accent);
  font-style: normal;
}

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

.about-text p {
  color: #bbb;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-text strong { color: var(--text); }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px;
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.skill-name {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.skill-level {
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--accent2);
  margin-bottom: 10px;
}

.skill-bar-bg {
  background: var(--border);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}

/* --- SERVICES --- */
#services { background: var(--surface); }

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

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 30px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s ease;
}

.service-card:hover::before { height: 100%; }

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: #333;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.service-title {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.service-desc {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-price {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--green);
}

/* --- WHY ME --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.why-item {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}

.why-item:hover {
  background: var(--card);
  border-color: var(--accent2);
  transform: translateY(-4px);
}

.why-num {
  font-family: var(--display);
  font-size: 4rem;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 10px;
}

.why-label {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--accent2);
  margin-bottom: 10px;
}

.why-desc {
  color: #888;
  font-size: 0.9rem;
}

/* --- CONTACT --- */
#contact { background: var(--surface); text-align: center; }

.contact-inner { max-width: 600px; margin: 0 auto; }

.contact-hand {
  font-family: var(--hand);
  font-size: 1.6rem;
  color: var(--muted);
  margin-bottom: 40px;
  display: block;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* --- FOOTER --- */
footer {
  padding: 30px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer span { font-family: var(--hand); color: var(--accent); font-size: 1rem; }

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

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

/* Stagger delays */
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* HERO entrance */
.hero-tag { animation: slideIn 0.8s ease 0.1s both; }
.hero-title { animation: slideIn 0.8s ease 0.2s both; }
.hero-subtitle-hand { animation: slideIn 0.8s ease 0.35s both; }
.hero-desc { animation: slideIn 0.8s ease 0.5s both; }
.hero-cta { animation: slideIn 0.8s ease 0.65s both; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- BADGE --- */
.badge {
  display: inline-block;
  background: rgba(255,107,53,0.12);
  border: 1px solid rgba(255,107,53,0.3);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  nav { padding: 18px 24px; }
  .nav-links { display: none; }
  section { padding: 70px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero-scroll { left: 24px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  footer { flex-direction: column; gap: 10px; text-align: center; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
