/* ========================================
   PREMIUM MINIMAL PORTFOLIO
======================================== */

:root {
  --bg: #08090d;
  --bg-soft: #0d0f15;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f7fb;
  --text-soft: #a7adba;
  --text-muted: #727987;
  --accent: #8b7cff;
  --accent-2: #5f8cff;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(139, 124, 255, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 85% 25%,
      rgba(95, 140, 255, 0.09),
      transparent 25%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(139, 124, 255, 0.06),
      transparent 30%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

/* ========================================
   HEADER
======================================== */

.header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
}

.navbar a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  transition: 0.3s ease;
}

.navbar a:hover {
  color: var(--text);
}

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

.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 90px 0;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: 50px;
  background: rgba(139, 124, 255, 0.08);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
}

.hero-text {
  max-width: 650px;
}

.hero-greeting {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -2px;
}

.hero h2 {
  font-size: 26px;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 25px;
  color: var(--text-soft);
}

.hero h2 span {
  color: var(--accent);
  margin: 0 5px;
}

.hero-description {
  max-width: 620px;
  font-size: 17px;
  line-height: 2;
  color: var(--text-muted);
  margin-bottom: 35px;
}

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

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 25px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 10px 35px rgba(109, 91, 255, 0.22);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(109, 91, 255, 0.32);
}

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

.secondary-btn:hover {
  background: var(--card-hover);
  border-color: rgba(139, 124, 255, 0.4);
  transform: translateY(-3px);
}

/* ========================================
   SOCIAL LINKS
======================================== */

.hero-socials {
  display: flex;
  gap: 25px;
}

.hero-socials a {
  font-size: 14px;
  color: var(--text-muted);
  transition: 0.3s ease;
}

.hero-socials a:hover {
  color: var(--accent);
}

/* ========================================
   PROFILE IMAGE
======================================== */

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-frame {
  width: 420px;
  height: 520px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(139, 124, 255, 0.08);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 23px;
  transition: transform 0.5s ease;
}

.image-frame:hover img {
  transform: scale(1.025);
}

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

section {
  padding: 110px 0;
  position: relative;
}

section h2 {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

/* ========================================
   ABOUT
======================================== */

.about {
  border-top: 1px solid var(--border);
}

.about p {
  max-width: 800px;
  font-size: 18px;
  line-height: 2;
  color: var(--text-soft);
}

/* ========================================
   SKILLS
======================================== */

.skills {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.skills-list span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.skills-list span:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 124, 255, 0.35);
  color: var(--text);
  background: var(--card-hover);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

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

.projects {
  background: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-card {
  min-height: 360px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  transition: all 0.3s ease;
  backdrop-filter: blur(14px);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 124, 255, 0.35);
  background: var(--card-hover);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 35px rgba(139, 124, 255, 0.06);
}

.project-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-number {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.project-card h3 {
  font-size: 25px;
  margin-bottom: 15px;
  color: var(--text);
}

.project-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 25px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 25px;
}

.project-tech span {
  padding: 6px 11px;
  border-radius: 7px;
  background: rgba(139, 124, 255, 0.08);
  border: 1px solid rgba(139, 124, 255, 0.12);
  font-size: 12px;
  color: #bcb6ff;
}

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

.project-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  transition: 0.3s ease;
}

.project-links a:hover {
  color: var(--accent);
}

/* ========================================
   CONTACT
======================================== */

.contact {
  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(139, 124, 255, 0.09),
      transparent 35%
    ),
    rgba(255, 255, 255, 0.015);
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact h2 {
  margin-bottom: 20px;
}

.contact p {
  max-width: 650px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 2;
}

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

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

/* ========================================
   TABLET
======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    width: min(92%, 900px);
  }

  .header {
    height: 75px;
  }

  .navbar {
    gap: 25px;
  }

  .navbar a {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 80px 0;
  }

  .hero-content {
    grid-template-columns: 1fr 320px;
    gap: 45px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero h2 {
    font-size: 21px;
  }

  .hero-description {
    font-size: 16px;
  }

  .image-frame {
    width: 320px;
    height: 420px;
  }

  section {
    padding: 90px 0;
  }

  section h2 {
    font-size: 36px;
  }

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

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

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
  .container {
    width: 90%;
  }

  .header {
    height: 70px;
  }

  .navbar {
    gap: 14px;
    flex-wrap: wrap;
  }

  .navbar a {
    font-size: 12px;
  }

  /* Hero */

  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero::after {
    width: 260px;
    height: 260px;
    right: -120px;
    top: 80px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }

  .hero-greeting {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -0.5px;
  }

  .hero h2 {
    font-size: 19px;
    line-height: 1.8;
  }

  .hero-description {
    font-size: 15px;
    line-height: 2;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-socials {
    justify-content: center;
  }

  .image-frame {
    width: 100%;
    max-width: 330px;
    height: 420px;
  }

  /* Sections */

  section {
    padding: 80px 0;
  }

  section h2 {
    font-size: 32px;
    text-align: center;
  }

  /* About */

  .about p {
    font-size: 16px;
    text-align: center;
  }

  /* Skills */

  .skills-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .skills-list span {
    min-height: 75px;
    font-size: 16px;
  }

  /* Projects */

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    min-height: auto;
    padding: 25px;
  }

  /* Contact */

  .contact p {
    font-size: 16px;
  }
}
