:root {
  --bg: #0b1020;
  --bg-soft: #121933;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: #11162a;
  --text: #f3f6ff;
  --muted: #aab3cf;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #8b5cf6;
  --primary-2: #6d28d9;
  --accent: #22c55e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 25%),
    linear-gradient(180deg, #0b1020 0%, #0d1328 100%);
  color: var(--text);
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

/* HEADER */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.3s ease;
}

#main-header.scrolled {
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

#main-header.hidden {
  transform: translateY(-110%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* HERO */
.hero-section {
  padding: 140px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  min-height: 85vh;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #cdb8ff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-text h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero-text h1 span {
  color: #c7b5ff;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.stat-card h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.hero-image-card {
  width: min(100%, 390px);
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.25), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-image-card img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* GENERAL SECTION */
.section {
  padding: 40px 0 28px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-label {
  color: #c7b5ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.info-card p {
  color: var(--muted);
}

/* EXPERIENCE */
.experience-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.experience-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.company-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: white;
  padding: 10px;
}

.role-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 700;
}

.experience-card h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.experience-text {
  color: var(--muted);
  margin-bottom: 18px;
}

.experience-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.point {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  padding: 10px 14px;
  border-radius: 999px;
  color: #dbe4ff;
  font-size: 0.92rem;
}

/* PROJECTS */
.featured-project {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  padding: 28px;
  margin-bottom: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.28), rgba(17, 22, 42, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: var(--shadow);
}

.featured-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #efe9ff;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.featured-project h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.featured-project p {
  color: #ddd7f7;
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-list span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.35);
}

.project-card-header {
  margin-bottom: 12px;
}

.project-type {
  color: #c7b5ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
}

.project-card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.media-video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #060913;
}

/* CONTACT */
.contact-box {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: center;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-box h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 10px;
}

.contact-box p {
  color: var(--muted);
  max-width: 620px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s ease;
}

.contact-links a:hover {
  background: rgba(255,255,255,0.1);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid,
  .featured-project,
  .contact-box {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  #main-header {
    padding: 14px 0;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-section {
    padding-top: 150px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .experience-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 30px 0 18px;
  }
}

@media (max-width: 520px) {
  .hero-text h1 {
    font-size: 2.3rem;
  }

  .section-heading h2,
  .contact-box h2 {
    font-size: 1.8rem;
  }

  .featured-project,
  .project-card,
  .experience-card,
  .info-card,
  .contact-box {
    padding: 20px;
  }
}