:root {
  --bg: #0f1220;
  --panel: #14182a;
  --muted: #9aa3b2;
  --text: #e6e9ef;
  --brand: #BB86FC;
  --brand-2: #03DAC6;
  --line: #242a41;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(15, 18, 32, .7);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

#langToggle{
    padding: 5px 10px;
    cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  letter-spacing: .5px;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(65deg, var(--brand), var(--brand-2));
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navlinks a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  margin-left: 30px;
}

.navlinks a:hover{
  color: var(--brand-2);
}

.social {
  display: flex;
  gap: .5rem;
}

.social img {
  width: 28px;
  height: 28px;
  filter: hue-rotate(215deg) saturate(1) brightness(0.95);
}

.social a:hover img {
  filter: hue-rotate(215deg) saturate(1) brightness(1.15);
}

.toggle-btn {
  cursor: pointer;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: .85rem;
  margin-left: 1rem;
}

.hero {
  position: relative;
  padding: 96px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--muted);
  background: #0c0f1a;
  border: 1px solid var(--line);
  padding: .35rem .6rem;
  border-radius: 999px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: .5rem 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.cta {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid var(--brand);
  background: linear-gradient(135deg, var(--brand) 0%, #a280f0 100%);
  color: #0b0b0b;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover, .btn:focus {
  transform: translateY(-2px) scale(1.04);
  background: var(--brand-2, #0077cc);
  color: #fff;
}

.video {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  background: #000;
}

.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

section h2 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.kicker {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.about p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 16px;
}

.job {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: .35rem;
}

.job .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.job h3 {
  margin: .25rem 0;
  font-size: 1.15rem;
}

.job .meta {
  color: var(--muted);
  font-size: .9rem;
}

.job ul {
  margin: .25rem 0 0 1rem;
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 6;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
}

.card:hover, .card:focus-within {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 8px 32px #0004;
  z-index: 2;
}

.card .content {
  padding: 14px;
}

.card h3 {
  margin: .25rem 0 .35rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text);
}

.card a.block {
  margin: 12px 14px 14px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .8rem;
  font-weight: 700;
}

.skills-wrap {
  display: grid;
  gap: 18px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.skill {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill img {
  width: 36px;
  height: 36px;
  filter: hue-rotate(315deg) saturate(1) brightness(1);
}

.skill span {
  font-size: .95rem;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  font-weight: 700;
  margin: 10px 0 6px;
}

input, textarea, button {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c0f1a;
  color: var(--text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  cursor: pointer;
  font-weight: 800;
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), #8d63f2);
  color: #0c0c0c;
}

button:hover {
  filter: brightness(1.03);
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: .35rem 0;
  color: var(--text);
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.featured-skills {
  margin-bottom: 2rem;
}
.featured-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.featured-skill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 140px;
  max-width: 180px;
  background: #181a1b;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px #0002;
}
.featured-skill img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  filter: hue-rotate(130deg) saturate(1) brightness(1.1);
}
.featured-skill span {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.featured-skill .badge {
  background: #0077cc;
  color: #fff;
  border-radius: 12px;
  font-size: 0.8em;
  padding: 2px 10px;
  margin-bottom: 0.5rem;
}
.featured-skill .bar {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}
.featured-skill .fill {
  height: 100%;
  background: linear-gradient(90deg, #0077cc, #00c6ff);
  border-radius: 4px;
  transition: width 0.7s;
}

.live-preview {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
  background: #111;
  height: 350px;
  position: relative;
}
.live-preview iframe {
  width: 1000px;
  height: 900px;
  border: none;
  background: #fff;
  transform: scale(0.5);
  transform-origin: top left;
  display: block;
}

/* Blog Styles */
.blog-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}
.blog-list li {
  margin-bottom: 1.2rem;
  font-size: 1.08em;
}
.blog-list a {
  color: var(--brand);
  text-decoration: none;
}
.blog-list a:hover {
  text-decoration: underline;
  color: var(--brand-2);
}
.blog-list span {
  color: var(--muted);
  margin-left: 0.5em;
  font-size: 0.95em;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .cards .card {
    grid-column: span 12;
  }

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

  .navlinks {
    display: none;
  }
}

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social img {
    width: 26px;
    height: 26px;
  }

  .hero {
    padding-top: 84px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  html,
  body {
    scroll-behavior: auto;
  }
}

.form-feedback {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--brand-2);
  min-height: 1.5em;
  transition: color 0.2s;
  text-align: center;
}