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

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

:root {
  --bg-main: #09090f;
  --bg-soft: #11111a;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.075);

  --text-main: #f5f5f7;
  --text-soft: #c6c6d0;
  --text-muted: #8c8c9a;

  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #f97316;

  --border: rgba(255, 255, 255, 0.11);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 58, 237, 0.22), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.15), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(249, 115, 22, 0.10), transparent 30%),
    var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -1;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 18px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 9, 15, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.logo {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.logo::after {
  content: ".dev";
  margin-left: 4px;
  color: var(--accent-2);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

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

/* =========================
   GENERAL SECTIONS
========================= */

.section {
  padding: 105px 8%;
}

.section-title {
  position: relative;
  display: inline-block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -12px;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.section-text {
  max-width: 880px;
  color: var(--text-soft);
  font-size: 1.08rem;
  margin-top: 18px;
  margin-bottom: 38px;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
  padding-top: 90px;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.92rem;
  margin-bottom: 24px;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.tagline::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.8);
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(2.8rem, 6.3vw, 6.2rem);
  line-height: 0.97;
  letter-spacing: -0.075em;
  margin-bottom: 26px;
}

.hero h1::selection,
.section-title::selection {
  background: var(--accent);
}

.hero-text {
  max-width: 750px;
  color: var(--text-soft);
  font-size: 1.13rem;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

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

.primary-btn {
  color: #050510;
  background: linear-gradient(135deg, var(--accent-2), #a78bfa);
  box-shadow: 0 16px 35px rgba(6, 182, 212, 0.22);
}

.primary-btn:hover {
  box-shadow: 0 22px 50px rgba(124, 58, 237, 0.28);
}

.secondary-btn {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

/* =========================
   HERO CARD
========================= */

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.28), transparent 35%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.22), transparent 40%);
  z-index: -1;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(6,182,212,0.85));
  filter: blur(1px);
  opacity: 0.85;
}

.card-label {
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-card h2 {
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.hero-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  padding: 13px 14px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255,255,255,0.07);
}

.hero-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

/* =========================
   ABOUT + SKILLS CARDS
========================= */

.about-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 165px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.13), transparent 42%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.info-card:hover {
  transform: translateY(-7px);
  background: var(--bg-card-hover);
  border-color: rgba(6, 182, 212, 0.35);
}

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

.info-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.22rem;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.info-card p {
  position: relative;
  z-index: 1;
  color: var(--text-soft);
}

/* =========================
   PROJECTS
========================= */

.projects-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 28px;
  margin-top: 24px;
}

.project-list,
.project-details {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.project-list {
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.project-btn {
  position: relative;
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
  padding: 18px 18px 18px 22px;
  border-radius: 18px;
  background: transparent;
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 650;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.project-btn::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transition: height 0.22s ease;
}

.project-btn:hover {
  transform: translateX(4px);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.055);
}

.project-btn.active {
  color: var(--text-main);
  background:
    linear-gradient(90deg, rgba(6, 182, 212, 0.16), rgba(124, 58, 237, 0.08));
}

.project-btn.active::before {
  height: 58%;
}

.project-details {
  position: relative;
  overflow: hidden;
  padding: 38px;
  min-height: 420px;
}

.project-details::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.22);
  filter: blur(5px);
}

.project-details::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(249, 115, 22, 0.16));
  transform: rotate(12deg);
}

.project-category,
.project-details h3,
.project-details p,
.tech-tags,
.project-links {
  position: relative;
  z-index: 1;
}

.project-category {
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 750;
  margin-bottom: 14px;
}

.project-details h3 {
  max-width: 750px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

.project-details p {
  max-width: 800px;
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tech-tags span {
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================
   RESUME + CONTACT
========================= */

.resume-section,
.contact-section {
  text-align: center;
}

.resume-section .section-title::after,
.contact-section .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.resume-section .section-text,
.contact-section .section-text {
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-links a {
  min-width: 110px;
  text-decoration: none;
  color: var(--text-main);
  padding: 11px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-3px);
  background: rgba(6, 182, 212, 0.10);
  border-color: rgba(6, 182, 212, 0.35);
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 30px 8%;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 1000px) {
  .hero,
  .projects-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    max-width: 620px;
  }

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

@media (max-width: 760px) {
  .navbar {
    padding: 16px 6%;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 78px 6%;
  }

  .hero {
    padding-top: 70px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .hero-card,
  .project-details {
    padding: 26px;
  }

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

  .project-details {
    min-height: auto;
  }
}

@media (max-width: 460px) {
  .hero-buttons,
  .project-links {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-links a {
    width: 100%;
  }
}