:root {
  --bg: #070b14;
  --bg-2: #0d1322;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: #b8c0d9;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #8b5cf6;
  --primary-2: #5b7cff;
  --cyan: #22d3ee;
  --success: #22c55e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.5);
  --radius: 22px;
  --radius-sm: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.15), transparent 28%),
    linear-gradient(180deg, #05070d 0%, #0b1020 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  pointer-events: none;
  opacity: 0.3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.02), transparent 55%);
  pointer-events: none;
}

a {
  color: #d8deff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  z-index: 9999;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.5);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 260px;
  height: 260px;
  background: var(--primary);
  top: 8%;
  left: 2%;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: var(--cyan);
  top: 18%;
  right: 4%;
  animation-duration: 16s;
}

.orb-3 {
  width: 220px;
  height: 220px;
  background: var(--primary-2);
  bottom: 5%;
  left: 20%;
  animation-duration: 14s;
}

@keyframes floatOrb {
  from {
    transform: translateY(0px) translateX(0px);
  }
  to {
    transform: translateY(-18px) translateX(14px);
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 18px 20px 0;
}

.navbar {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(9, 13, 24, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 12px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  white-space: nowrap;
  font-size: 1.02rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.lang-btn {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: 0.25s ease;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.nav-links a:hover,
.lang-btn:hover,
.nav-links a.active {
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  border-color: rgba(139, 92, 246, 0.22);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.08);
}

.resume-btn {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(91, 124, 255, 0.24));
  border: 1px solid rgba(255,255,255,0.12) !important;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  margin: 6px 0;
  border-radius: 999px;
}

main {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 28px auto;
}

.section {
  padding: 34px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.05));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  min-height: 78vh;
}

.eyebrow {
  margin: 0 0 10px;
  color: #cfd7ff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: white;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 720px;
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-stack span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e7ebff;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(0,0,0,0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: white;
}

.hero-mini-info {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-mini-info span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-wrapper {
  position: relative;
  width: min(100%, 430px);
}

.photo-frame {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border-radius: 30px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-strong);
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(34, 211, 238, 0.35));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.75;
}

.photo-frame img {
  width: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: rgba(10, 15, 28, 0.78);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.floating-card strong {
  color: white;
  font-size: 1rem;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.floating-card-1 {
  top: 22px;
  left: -28px;
}

.floating-card-2 {
  right: -24px;
  bottom: 26px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
}

.about-grid,
.skills-grid,
.projects-grid,
.contact-grid,
.highlights-grid {
  display: grid;
  gap: 18px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.glass-card,
.skill-card,
.project-card,
.highlight-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover,
.skill-card:hover,
.project-card:hover,
.highlight-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.highlight-card {
  text-align: center;
}

.highlight-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #ffffff, #b9c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.feature-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.feature-card li {
  margin-bottom: 10px;
  color: var(--muted);
}

.skill-card h3,
.project-card h3,
.glass-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(255,255,255,0.1);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: #e7ebff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
}

.project-card {
  overflow: hidden;
}

.project-visual {
  height: 150px;
  border-radius: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.visual-api {
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.35), transparent 35%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(25, 35, 70, 0.95));
}

.visual-finance {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(91, 124, 255, 0.9), rgba(11, 16, 32, 0.95));
}

.visual-dashboard {
  background:
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.25), transparent 35%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(139, 92, 246, 0.7));
}

.visual-bank {
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.25), transparent 35%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.98));
}

.visual-powerbi {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 25%),
    linear-gradient(135deg, rgba(34, 211, 238, 0.65), rgba(91, 124, 255, 0.85));
}

.visual-android {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 30%),
    linear-gradient(135deg, rgba(22, 28, 45, 0.95), rgba(34, 197, 94, 0.45));
}

.project-top p {
  color: var(--muted);
  line-height: 1.7;
}

.project-type {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dbe2ff;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 10px;
  border-radius: 999px;
}

.impact-line {
  margin: 16px 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dce4ff;
  font-weight: 600;
  font-size: 0.92rem;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.project-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
}

.project-links a:hover {
  text-decoration: none;
  background: rgba(255,255,255,0.09);
}

.timeline {
  position: relative;
  margin-top: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.1);
}

.timeline-item {
  position: relative;
  padding-left: 44px;
  margin-bottom: 22px;
}

.timeline-dot {
  position: absolute;
  left: 7px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 0 0 6px rgba(139,92,246,0.12);
}

.timeline-date {
  margin-top: 0;
  color: #d0d8ff;
  font-size: 0.92rem;
  font-weight: 700;
}

.timeline-content p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-cta {
  grid-column: 1 / -1;
  text-align: center;
}

.contact-cta p {
  max-width: 700px;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto 30px;
  padding: 16px 22px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(9, 13, 24, 0.78);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 30;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  backdrop-filter: blur(12px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(255,255,255,0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(10px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (max-width: 1080px) {
  .about-grid,
  .skills-grid,
  .projects-grid,
  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-photo {
    order: -1;
  }

  .photo-frame {
    max-width: 340px;
    margin: 0 auto;
  }

  .photo-wrapper {
    max-width: 340px;
  }

  .floating-card-1 {
    left: -16px;
  }

  .floating-card-2 {
    right: -16px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 14px 0;
  }

  main,
  .site-footer {
    width: calc(100% - 28px);
  }

  .navbar {
    border-radius: 24px;
    align-items: flex-start;
    padding: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 10px;
    padding-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .lang-btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .about-grid,
  .skills-grid,
  .projects-grid,
  .contact-grid,
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.6rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .floating-card {
    position: static;
    margin-top: 14px;
    min-width: auto;
  }

  .photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-cta {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }

  .reveal,
  .reveal.show {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
