:root {
  --bg: #03040a;
  --bg-2: #070914;
  --card: rgba(255, 255, 255, 0.065);
  --card-strong: rgba(255, 255, 255, 0.095);
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(139, 92, 246, 0.45);
  --text: #ffffff;
  --muted: #a7adbe;
  --soft: #d8def0;
  --blue: #4f8cff;
  --blue-2: #00d4ff;
  --purple: #9b5cff;
  --purple-2: #c084fc;
  --shadow-blue: rgba(79, 140, 255, 0.35);
  --shadow-purple: rgba(155, 92, 255, 0.32);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(79, 140, 255, 0.25), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(155, 92, 255, 0.24), transparent 34%),
    radial-gradient(circle at 50% 95%, rgba(0, 212, 255, 0.12), transparent 35%),
    linear-gradient(180deg, #03040a 0%, #050612 45%, #020308 100%);
  z-index: -5;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  z-index: -4;
  pointer-events: none;
}

::selection {
  background: rgba(155, 92, 255, 0.55);
  color: #ffffff;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

#threeCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.22), rgba(155, 92, 255, 0.12), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -2;
  filter: blur(8px);
}

.loader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(79, 140, 255, 0.14), transparent 35%),
    #020207;
  display: grid;
  place-items: center;
  z-index: 999;
  animation: loaderExit 0.8s ease 1.8s forwards;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  transform: translateY(-10px);
}

.loader-line {
  width: 84px;
  height: 2px;
  display: block;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
  animation: loaderLine 1.3s ease infinite;
}

.loader h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 5.8rem);
  letter-spacing: 0.18em;
  line-height: 1;
  background: linear-gradient(120deg, #ffffff, var(--blue), var(--purple-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loader p {
  margin-top: 16px;
  color: var(--muted);
  letter-spacing: 0.45em;
  font-size: 0.75rem;
}

@keyframes loaderLine {
  0%, 100% {
    transform: scaleX(0.45);
    opacity: 0.4;
  }

  50% {
    transform: scaleX(1.3);
    opacity: 1;
  }
}

@keyframes loaderExit {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  width: min(1180px, calc(100% - 36px));
  height: 72px;
  padding: 0 18px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(5, 7, 16, 0.62);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 80;
}

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 36px rgba(79, 140, 255, 0.42);
}

.nav-logo span {
  font-weight: 900;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(79, 140, 255, 0.9);
}

.nav-cta {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  transition: 0.3s ease;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 34px rgba(155, 92, 255, 0.34);
}

.menu-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 120;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
  transition: 0.3s ease;
}

.menu-btn.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 104px;
  left: 50%;
  width: min(420px, calc(100% - 28px));
  transform: translateX(-50%) translateY(-20px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(5, 7, 16, 0.82);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  z-index: 90;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--soft);
  font-weight: 800;
  padding: 16px;
  border-radius: 18px;
  transition: 0.3s ease;
}

.mobile-menu a:hover {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.2), rgba(155, 92, 255, 0.2));
  color: #ffffff;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 132px 0;
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
  padding-top: 150px;
}

.eyebrow {
  color: var(--blue-2);
  font-weight: 900;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4.1rem, 11vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  margin-bottom: 26px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(120deg, #ffffff 12%, var(--blue) 48%, var(--purple-2) 86%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 3vw, 3.1rem);
  color: var(--soft);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.95rem;
  transition: 0.32s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transition: 0.55s ease;
}

.btn:hover::before {
  transform: translateX(110%);
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 42px rgba(79, 140, 255, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--border);
}

.hero-stats {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-stats div {
  min-width: 128px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.hero-stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.profile-orbit {
  width: min(430px, 90vw);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.orbit-one {
  inset: 0;
  border-top-color: rgba(79, 140, 255, 0.9);
  border-right-color: rgba(155, 92, 255, 0.8);
  animation: rotateOrbit 16s linear infinite;
}

.orbit-two {
  inset: 38px;
  border-left-color: rgba(79, 140, 255, 0.8);
  border-bottom-color: rgba(155, 92, 255, 0.85);
  animation: rotateOrbit 12s linear infinite reverse;
}

@keyframes rotateOrbit {
  to {
    transform: rotate(360deg);
  }
}

.profile-card {
  width: 310px;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 42px;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, var(--blue), var(--purple), var(--blue-2)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 0 70px rgba(79, 140, 255, 0.28),
    0 0 110px rgba(155, 92, 255, 0.18);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(35deg);
  animation: shine 4.8s ease-in-out infinite;
}

@keyframes shine {
  0%, 55%, 100% {
    transform: translateX(-120%) rotate(35deg);
  }

  75% {
    transform: translateX(120%) rotate(35deg);
  }
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.25), rgba(155, 92, 255, 0.28)),
    #111426;
}

.floating-badge {
  position: absolute;
  z-index: 4;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(79, 140, 255, 0.22);
}

.badge-one {
  top: 70px;
  right: 28px;
  animation: floatY 4.8s ease-in-out infinite;
}

.badge-two {
  left: 10px;
  bottom: 112px;
  animation: floatY 4.2s ease-in-out infinite reverse;
}

.badge-three {
  right: 38px;
  bottom: 52px;
  animation: floatY 5.2s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.section-header {
  max-width: 840px;
  margin-bottom: 46px;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.35rem, 5.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 24px;
  align-items: stretch;
}

.glass-card,
.skill-card,
.project-card,
.contact-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(22px);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.glass-card::before,
.skill-card::before,
.project-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(79, 140, 255, 0.18), transparent 35%),
    radial-gradient(circle at 100% 80%, rgba(155, 92, 255, 0.16), transparent 35%);
  opacity: 0.9;
  pointer-events: none;
}

.glass-card {
  padding: 34px;
}

.large-card {
  padding: 44px;
}

.glass-card p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.04rem;
  position: relative;
}

.glass-card p + p {
  margin-top: 20px;
}

.glass-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
}

.about-mini-cards {
  display: grid;
  gap: 18px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-card {
  min-height: 160px;
  padding: 28px;
  transition: 0.35s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow:
    0 0 45px rgba(79, 140, 255, 0.18),
    0 0 80px rgba(155, 92, 255, 0.11);
}

.skill-card span {
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 900;
  position: relative;
}

.skill-card h3 {
  margin-top: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.04em;
  position: relative;
}

.featured-project {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 38px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 140, 255, 0.2), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(155, 92, 255, 0.18), transparent 35%),
    rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.project-showcase {
  min-height: 430px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.browser-frame {
  width: min(560px, 100%);
  min-height: 330px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 4, 10, 0.78);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(79, 140, 255, 0.16);
  overflow: hidden;
  transform: rotateX(8deg) rotateY(-13deg) rotateZ(2deg);
  transition: 0.45s ease;
}

.featured-project:hover .browser-frame {
  transform: rotateX(4deg) rotateY(-6deg) rotateZ(1deg) translateY(-8px);
}

.browser-top {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.browser-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  opacity: 0.9;
}

.browser-screen {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 24px;
  min-height: 284px;
}

.screen-sidebar {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(79, 140, 255, 0.22), rgba(155, 92, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.screen-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen-line {
  height: 16px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.8), rgba(155, 92, 255, 0.22));
  width: 92%;
}

.screen-line.large {
  width: 72%;
  height: 24px;
}

.screen-line.short {
  width: 58%;
}

.screen-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.screen-grid div {
  height: 76px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 35%),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-project-content {
  padding: 20px;
}

.featured-project-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.featured-project-content p {
  color: var(--muted);
  line-height: 1.8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.premium-project-grid {
  margin-top: 26px;
}

.project-card {
  min-height: 520px;
  transition: 0.35s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-strong);
}

.premium-project-visual {
  height: 230px;
  margin: 14px;
  border-radius: 28px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.premium-project-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: projectSpin 8s linear infinite;
}

.premium-project-visual::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 26px;
  background: rgba(3, 4, 10, 0.72);
}

@keyframes projectSpin {
  to {
    transform: rotate(360deg);
  }
}

.visual-one {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.9), rgba(155, 92, 255, 0.55));
}

.visual-two {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.7), rgba(155, 92, 255, 0.72));
}

.visual-three {
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.8), rgba(79, 140, 255, 0.65));
}

.mini-window {
  width: 150px;
  height: 120px;
  border-radius: 22px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotateX(12deg) rotateY(-18deg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  padding: 18px;
}

.mini-window div {
  height: 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.mini-window div:nth-child(2) {
  width: 70%;
}

.mini-window div:nth-child(3) {
  width: 45%;
}

.code-card {
  width: 190px;
  min-height: 130px;
  border-radius: 22px;
  position: relative;
  z-index: 2;
  padding: 20px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotateX(10deg) rotateY(16deg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.code-card span {
  display: block;
  font-family: monospace;
  font-size: 0.82rem;
  color: #dfe8ff;
  margin-bottom: 12px;
}

.security-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: absolute;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--blue-2);
  border-right-color: var(--purple);
  animation: rotateOrbit 8s linear infinite;
}

.security-core {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  font-weight: 900;
  letter-spacing: 0.12em;
  box-shadow: 0 0 45px rgba(79, 140, 255, 0.4);
}

.project-content {
  padding: 12px 28px 30px;
  position: relative;
}

.project-type {
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.project-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.project-content p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.97rem;
}

.project-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags span {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.075);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.mini-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(79, 140, 255, 0.25);
  transition: 0.3s ease;
}

.mini-btn.ghost {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  box-shadow: none;
}

.mini-btn:hover {
  transform: translateY(-4px);
}

.timeline {
  position: relative;
  max-width: 900px;
  display: grid;
  gap: 26px;
}

.timeline-line {
  position: absolute;
  left: 14px;
  top: 10px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(180deg, var(--blue), var(--purple), transparent);
  opacity: 0.75;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-top: 26px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 34px rgba(79, 140, 255, 0.55);
  z-index: 2;
}

.timeline-item .glass-card span {
  color: var(--blue-2);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 900;
  position: relative;
}

.timeline-item .glass-card h3 {
  margin-top: 12px;
}

.contact {
  display: grid;
  place-items: center;
}

.contact-card {
  width: min(900px, 100%);
  text-align: center;
  padding: clamp(38px, 7vw, 80px);
}

.contact-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}

.contact-card p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

.contact-links {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-links a {
  text-decoration: none;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-weight: 800;
  transition: 0.3s ease;
}

.contact-links a:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 30px rgba(79, 140, 255, 0.26);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
}

.reveal.animate {
  animation: revealUp 0.85s ease forwards;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .about-grid,
  .skills-grid,
  .projects-grid,
  .featured-project {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .profile-card {
    width: 280px;
  }

  .project-showcase {
    min-height: 330px;
  }

  .browser-frame {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }

  .featured-project:hover .browser-frame {
    transform: translateY(-6px);
  }
}

@media (max-width: 760px) {
  .navbar {
    top: 14px;
    width: calc(100% - 22px);
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 110px 0;
  }

  .hero {
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(3.45rem, 18vw, 5.5rem);
  }

  .hero-stats div {
    min-width: 100%;
  }

  .profile-orbit {
    width: min(340px, 88vw);
  }

  .profile-card {
    width: 235px;
    border-radius: 32px;
  }

  .profile-card img {
    border-radius: 24px;
  }

  .floating-badge {
    font-size: 0.72rem;
    padding: 10px 12px;
  }

  .glass-card,
  .large-card,
  .skill-card {
    padding: 24px;
    border-radius: 24px;
  }

  .project-card {
    min-height: auto;
  }

  .featured-project {
    padding: 14px;
    border-radius: 28px;
  }

  .browser-screen {
    grid-template-columns: 1fr;
  }

  .screen-sidebar {
    display: none;
  }

  .screen-grid {
    grid-template-columns: 1fr;
  }

  .featured-project-content {
    padding: 12px;
  }

  .premium-project-visual {
    height: 200px;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-links a {
    width: 100%;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 430px) {
  .loader h1 {
    letter-spacing: 0.09em;
  }

  .loader p {
    letter-spacing: 0.25em;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

.reveal {
  opacity: 1 !important;
  transform: none !important;
}

.reveal.animate {
  animation: none !important;
}