:root {
  --pink: #f045c8;
  --purple: #9b45f5;
  --gradient: linear-gradient(135deg, #f045c8, #9b45f5);
  --bg: #0a0a14;
  --card: #12121e;
  --card2: #1a1a2e;
  --text: #e8e8f0;
  --muted: #888;
  --border: rgba(155, 69, 245, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6%;
  background: rgba(10, 10, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  gap: 1.5rem;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-name {
  font-size: 0.98rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  flex: 1;
  justify-content: center;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
nav ul a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

/* LANG SWITCHER */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.28rem 0.35rem;
}

.lang-switcher a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.55rem;
  border-radius: 50px;
  transition: background 0.18s, color 0.18s;
}
.lang-switcher a:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.lang-switcher a.active { background: var(--gradient); color: #fff; }

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s !important;
  box-shadow: 0 2px 12px rgba(155,69,245,0.35);
}
.nav-cta:hover { opacity: 0.85 !important; }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 6% 5rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(155,69,245,0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(155,69,245,0.12);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

#hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

#hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(155,69,245,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(155,69,245,0.5); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--purple); background: rgba(155,69,245,0.08); }

/* SECTIONS */
section { padding: 6rem 6%; }

.section-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.8;
}

/* ABOUT */
#about { background: var(--card); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-img-box {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--card2);
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.about-img-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.06;
}
.about-img-box span { position: relative; z-index: 1; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

.about-text .section-sub { max-width: 100%; margin-bottom: 1.5rem; }

.skills-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

.skill-tag {
  background: rgba(155,69,245,0.1);
  border: 1px solid rgba(155,69,245,0.25);
  color: var(--text);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* PORTFOLIO */
#portfolio { max-width: 1200px; margin: 0 auto; padding: 6rem 6%; }

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(155,69,245,0.5);
  box-shadow: 0 16px 48px rgba(155,69,245,0.15);
}

.work-thumb {
  height: 210px;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.work-thumb img {
  position: relative;
  z-index: 1;
  width: 55%;
  max-height: 75%;
  object-fit: contain;
}

.work-thumb-bo { background: #0a0d1a; }
.work-thumb-d2 { background: #080808; }

.work-info { padding: 1.5rem; }

.work-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.work-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.work-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }

.work-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CONTACT */
#contact { background: var(--card); }

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner .section-sub { max-width: 100%; margin: 0 auto 3rem; }

.contact-form { text-align: left; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(155,69,245,0.12);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--card2) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select option { background: var(--card2); }

.form-submit {
  width: 100%;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(155,69,245,0.35);
  margin-top: 0.5rem;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(155,69,245,0.5); }

.msg-success {
  background: rgba(155,69,245,0.12);
  border: 1px solid rgba(155,69,245,0.3);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.msg-error {
  background: rgba(240,69,200,0.1);
  border: 1px solid rgba(240,69,200,0.3);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  color: var(--pink);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* FOOTER */
footer {
  padding: 2rem 6%;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

footer a.name-link {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: 600;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: border-color 0.2s, color 0.2s;
  background: none !important;
  -webkit-text-fill-color: var(--muted) !important;
}
.ig-link:hover {
  border-color: rgba(155,69,245,0.5);
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul { display: none; }
  .nav-right { gap: 0.6rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
}
