/* =========================
   RESET
========================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #07070a;
  --bg2: #0d1117;

  --card: rgba(255, 255, 255, 0.05);

  --border: rgba(255, 255, 255, 0.08);

  --text: #f8fafc;
  --muted: #9ca3af;

  --primary: #3b82f6;
  --secondary: #8b5cf6;

  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;

  background: var(--bg);

  color: var(--text);

  overflow-x: hidden;

  position: relative;

  min-height: 100vh;
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

section {
  padding: 80px 0;
}

/* ==========================
   Mobile Menu Button
========================== */

.menu-toggle {
  display: none;

  flex-direction: column;
  justify-content: center;
  gap: 5px;

  width: 46px;
  height: 46px;

  border: 0;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.06);

  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;

  margin: 0 auto;

  background: white;

  transition: 0.3s;
}

/* =========================
   AURORA
========================= */

.aurora {
  position: fixed;

  inset: -30%;

  pointer-events: none;

  filter: blur(120px);

  z-index: -4;

  opacity: 0.8;
}

.aurora span {
  position: absolute;

  width: 700px;
  height: 700px;

  border-radius: 50%;

  animation: aurora 18s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) {
  background: #2563eb;

  left: -150px;
  top: -100px;
}

.aurora span:nth-child(2) {
  background: #7c3aed;

  right: -100px;
  top: 20%;

  animation-delay: 6s;
}

.aurora span:nth-child(3) {
  background: #06b6d4;

  bottom: -200px;
  left: 30%;

  animation-delay: 12s;
}

@keyframes aurora {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(200px, -100px) scale(1.4);
  }
}

.grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

  gap: 28px;
}

.grid-bg {
  position: fixed;

  inset: 0;

  z-index: -5;

  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: 48px 48px;

  mask-image: radial-gradient(circle at center, black 30%, transparent 95%);

  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(48px);
  }
}

/* ==========================
   Navbar
========================== */

header {
  position: sticky;

  top: 20px;

  z-index: 1000;
}

.navbar {
  display: flex;
  position: relative;
  align-items: center;

  justify-content: space-between;

  gap: 24px;

  padding: 16px 28px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  color: white;

  text-decoration: none;

  font-size: 22px;

  font-weight: 700;

  white-space: nowrap;
}

.nav-links {
  display: flex;

  align-items: center;

  gap: 32px;

  list-style: none;

  margin: 0;

  padding: 0;
}

.nav-links a {
  position: relative;

  color: #d4d4d8;

  text-decoration: none;

  font-weight: 500;

  transition: 0.3s;
}

.nav-links a:hover {
  color: white;
}

.nav-links a::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -6px;

  width: 0;

  height: 2px;

  border-radius: 999px;

  background: #3b82f6;

  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;
}

.hero h1 {
  font-size: clamp(60px, 8vw, 110px);

  line-height: 1;

  margin-bottom: 25px;
}

.hero span {
  background: linear-gradient(90deg, #60a5fa, #a855f7);

  -webkit-background-clip: text;

  color: transparent;
}

.hero p {
  color: var(--muted);

  max-width: 700px;

  font-size: 22px;

  margin-bottom: 40px;
}

.hero > * {
  opacity: 0;

  transform: translateY(40px);

  animation: heroIn 0.8s forwards;
}

.hero h1 {
  animation-delay: 0.2s;
}

.hero p {
  animation-delay: 0.5s;
}

.hero .btn {
  animation-delay: 0.8s;
}

@keyframes heroIn {
  to {
    opacity: 1;

    transform: none;
  }
}

.btn {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  position: relative;

  overflow: hidden;

  padding: 18px 36px;

  border-radius: 999px;

  color: white;

  text-decoration: none;

  font-weight: 600;

  background: linear-gradient(135deg, #2563eb, #8b5cf6);
}

.btn::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );

  left: -150%;
}

.btn:hover::before {
  animation: buttonshine 0.7s;
}

.btn:hover {
  transform: translateY(-6px);

  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
}

@keyframes buttonshine {
  to {
    left: 160%;
  }
}

/* ==========================
   CURSOR GLOW
========================== */

.cursor-glow {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.18) 0%,
    rgba(139, 92, 246, 0.12) 30%,
    transparent 70%
  );

  transform: translate(-50%, -50%);
  z-index: -1;

  transition:
    left 0.08s linear,
    top 0.08s linear;
}
.card {
  display: flex;
  flex-direction: column;
  position: relative;

  overflow: hidden;

  padding: 40px;

  border-radius: 28px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(24px);

  transition:
    transform 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;

  transform-style: preserve-3d;
}
.card .description {
  margin-bottom: 25px;
}

.card::before {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.6),
    rgba(139, 92, 246, 0.4),
    transparent,
    rgba(59, 130, 246, 0.4)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.35s;
}

.card:hover {
  transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) translateY(-12px);

  border-color: rgba(59, 130, 246, 0.35);

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 25px;
}

.project-icon {
  width: 58px;

  height: 58px;

  display: grid;

  place-items: center;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.05);

  font-size: 26px;
}

.project-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: 0.35s;

  position: relative;
  z-index: 10;

  width: 42px;
  height: 42px;
}

.project-link:hover {
  background: #2563eb;
}

.card-spotlight {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.22),
    transparent 70%
  );
  left: -300px;
  top: -300px;
  transition:
    left 0.12s,
    top 0.12s;
  pointer-events: none;
  z-index: 0;
}
.card-header,
.card h3,
.card p,
.tags {
  position: relative;
  z-index: 2;
}

h2 {
  font-size: 54px;

  margin-bottom: 60px;

  letter-spacing: -2px;

  display: inline-block;

  position: relative;
}

h2::after {
  content: "";

  position: absolute;

  bottom: -12px;

  left: 0;

  width: 70px;

  height: 4px;

  border-radius: 10px;

  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.skills {
  display: flex;

  flex-wrap: wrap;

  gap: 18px;
}

.skill {
  display: flex;

  align-items: center;

  gap: 14px;

  position: relative;

  overflow: hidden;

  padding: 16px 22px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(16px);

  transition:
    transform 0.35s,
    background 0.35s,
    border-color 0.35s;
}

.skill img {
  width: 28px;

  height: 28px;

  transition: 0.35s;
}

.skill span {
  font-weight: 500;
}

.skill::before {
  content: "";

  position: absolute;

  inset: 0;

  background: radial-gradient(
    circle at top left,
    rgba(59, 130, 246, 0.18),
    transparent 70%
  );

  opacity: 0;

  transition: 0.35s;
}

.skill:hover {
  transform: translateY(-6px) scale(1.03);

  border-color: rgba(59, 130, 246, 0.35);

  background: rgba(255, 255, 255, 0.08);
}

.skill:hover::before {
  opacity: 1;
}

.skill:hover img {
  transform: rotate(-8deg) scale(1.15);
}

.hidden {
  opacity: 0;

  transform: translateY(60px);

  transition: all 0.8s;
}

.show {
  opacity: 1;

  transform: none;
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  display: inline-block;

  padding: 8px 18px;

  margin-bottom: 30px;

  border-radius: 999px;

  background: rgba(59, 130, 246, 0.1);

  border: 1px solid rgba(59, 130, 246, 0.3);

  color: #60a5fa;

  font-size: 14px;

  letter-spacing: 2px;
}

.hero-description {
  max-width: 680px;

  margin-top: 30px;
}

.hero-actions {
  display: flex;

  gap: 20px;

  margin-top: 50px;
}

.btn-outline {
  background: transparent;

  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.project-number {
  font-size: 14px;

  color: #60a5fa;

  margin-bottom: 25px;
}

.tags {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: auto;
}

.tags span {
  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.05);

  font-size: 13px;
}

#stars {
  position: fixed;

  inset: 0;

  width: 100%;

  height: 100%;

  z-index: -6;

  pointer-events: none;

  opacity: 0.55;
}

.stats {
  display: flex;

  gap: 70px;

  margin-top: 80px;
}

.stats h3 {
  font-size: 42px;

  color: #60a5fa;
}

.stats p {
  color: #9ca3af;
}

.contact-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 25px;
}

.contact-card {
  padding: 35px;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: 0.35s;
}

.contact-card:hover {
  transform: translateY(-8px);

  border-color: #3b82f6;
}

.footer-content {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 40px 0;

  color: #f8fafcb3;
}

.resume-btn {
  padding: 10px 18px;

  border-radius: 999px;

  background: #2563eb;

  text-decoration: none;

  color: white;

  transition: 0.3s;
}

.resume-btn:hover {
  transform: translateY(-3px);
}

.section-description {
  max-width: 680px;

  margin: 20px auto 0;

  color: var(--muted);

  font-size: 1.125rem; /* 18px */

  line-height: 1.8;

  font-weight: 400;

  letter-spacing: -0.01em;
}

.section-header {
  /*text-align: center;*/

  margin-bottom: 80px;
}

.section-tag {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 8px 18px;

  margin-bottom: 18px;

  border-radius: 999px;

  background: rgba(59, 130, 246, 0.08);

  border: 1px solid rgba(59, 130, 246, 0.2);

  color: #60a5fa;

  font-size: 0.8rem;

  font-weight: 600;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.project-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  border: 1px solid transparent;

  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  animation: pulse 2s infinite;
}

/* -------------------------
   Live
------------------------- */

.project-status.live {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.project-status.live .status-dot {
  background: #22c55e;
}

/* -------------------------
   In Progress
------------------------- */

.project-status.in-progress {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.project-status.in-progress .status-dot {
  background: #f59e0b;
}

/* -------------------------
   Private
------------------------- */

.project-status.private {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.25);
}

.project-status.private .status-dot {
  background: #a855f7;
}

/* -------------------------
   Archived
------------------------- */

.project-status.archived {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
}

.project-status.archived .status-dot {
  background: #94a3b8;
}

/* -------------------------
   Pulse Animation
------------------------- */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }

  70% {
    box-shadow: 0 0 0 8px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.expertise-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 30px;
}

.expertise-card {
  padding: 32px;

  border-radius: 24px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(20px);
}

.expertise-card h3 {
  margin-bottom: 24px;

  font-size: 1.35rem;

  color: white;
}

.expertise-card .skills {
  display: flex;

  flex-wrap: wrap;

  gap: 14px;
}

.contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary);
}

/* Mobile */

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .resume-btn {
    display: none;
  }

  .nav-links {
    position: absolute;

    top: calc(100% + 16px);
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;

    gap: 0;

    padding: 16px;

    border-radius: 20px;

    background: rgba(17, 17, 17, 0.95);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition: 0.3s;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;

    padding: 14px 10px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-content .title {
    margin-bottom: 10px;
  }
}
@media (max-width: 900px) {
  .navbar {
    padding: 14px 20px;
  }

  .nav-links {
    gap: 20px;
  }
}
