

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --bg: #0b0b14;
  --card: #171724;
  --card-light: #202032;
  --primary: #a78bfa;
  --primary-dark: #7c3aed;
  --text: #f8fafc;
  --muted: #a1a1b5;
  --border: #ffffff16;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

/* Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0b0b14eF;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(1150px, 92%);
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span,
.hero h1 span,
.section-heading h2 span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 23px;
}

/* Hero */
.hero {
  width: min(1150px, 92%);
  min-height: 610px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  padding: 65px 0;
}

.hero-greeting,
.section-label {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.15;
  letter-spacing: -3px;
  margin: 15px 0;
}

.hero h2 {
  color: #d4d4e5;
  font-size: clamp(17px, 2.5vw, 23px);
  font-weight: 500;
  margin-bottom: 15px;
}

.hero-description {
  max-width: 540px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 29px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 11px 21px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.primary-btn {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white;
  box-shadow: 0 7px 24px #8b5cf633;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #b69fff, #8b5cf6);
}

.secondary-btn {
  border: 1px solid #a78bfa70;
  color: var(--primary);
  background: transparent;
}

.secondary-btn:hover {
  background: #a78bfa16;
}

/* Hero visual */
.hero-visual {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-circle {
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #b9a4ff, #7c3aed 60%, #35205e);
  box-shadow: 0 0 80px #8b5cf64a;
  border: 8px solid #ffffff0d;
}

.profile-circle span {
  font-size: 115px;
  font-weight: 800;
  color: white;
  text-shadow: 0 5px 25px #00000033;
}

.floating-tag {
  position: absolute;
  background: #202032;
  border: 1px solid #a78bfa55;
  padding: 10px 15px;
  border-radius: 12px;
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 10px 30px #00000040;
}

.tag-one {
  top: 50px;
  right: 0;
}

.tag-two {
  bottom: 55px;
  left: 0;
}

/* General sections */
.section {
  width: min(1100px, 92%);
  margin: auto;
  padding: 85px 0;
  scroll-margin-top: 75px;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: clamp(29px, 5vw, 40px);
  letter-spacing: -1.5px;
  margin-top: 5px;
}

.section-label {
  font-size: 10px;
}

/* About */
.about-card {
  max-width: 820px;
  margin: auto;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.about-card p + p {
  margin-top: 14px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.skill-card {
  padding: 25px 17px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 17px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: #a78bfa80;
}

.skill-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #a78bfa1c;
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
}

.skill-card h3 {
  font-size: 14px;
  margin-bottom: 3px;
}

.skill-card p {
  color: var(--muted);
  font-size: 11px;
}

/* Education */
.timeline {
  max-width: 700px;
  margin: auto;
  padding-left: 24px;
  border-left: 2px solid #a78bfa66;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 22px;
  left: -31px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px #a78bfa80;
}

.timeline-card {
  padding: 22px 25px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.timeline-date {
  display: inline-block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-card h3 {
  font-size: 17px;
}

.timeline-card p {
  color: var(--muted);
  font-size: 12px;
}

.timeline-card .education-note {
  color: var(--primary);
  margin-top: 5px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 23px;
  min-height: 290px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 19px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #a78bfa80;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.project-number {
  color: #85849b;
  font-size: 11px;
  font-weight: 700;
}

.project-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #a78bfa1c;
  color: var(--primary);
  font-size: 21px;
}

.project-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.project-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.project-tags span {
  padding: 4px 8px;
  border-radius: 7px;
  background: #a78bfa16;
  color: #c4b5fd;
  font-size: 9px;
  font-weight: 600;
}

.project-link {
  margin-top: auto;
  padding-top: 19px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

/* Contact */
.contact-card {
  max-width: 700px;
  margin: auto;
  padding: 35px 25px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.contact-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.contact-card p {
  max-width: 480px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 13px;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.social-links a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.social-links a:hover,
.project-link:hover {
  color: white;
}

/* Footer */
.footer {
  padding: 22px 15px;
  text-align: center;
  background: #10101b;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.footer p + p {
  margin-top: 4px;
}

/* Tablet */
@media (max-width: 850px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .hero {
    min-height: 530px;
    gap: 15px;
  }

  .profile-circle {
    width: 190px;
    height: 190px;
  }

  .profile-circle span {
    font-size: 95px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 650px) {
  .navbar {
    min-height: 67px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 67px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 4%;
    background: #141421;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 10px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 65px 0 50px;
    gap: 25px;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
    min-height: 235px;
  }

  .profile-circle {
    width: 160px;
    height: 160px;
  }

  .profile-circle span {
    font-size: 80px;
  }

  .tag-one {
    top: 15px;
    right: 2%;
  }

  .tag-two {
    bottom: 15px;
    left: 2%;
  }

  .hero-description {
    margin: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section {
    padding: 65px 0;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 250px;
  }
}

/* Small mobile */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 40px;
  }

  .skills-grid {
    gap: 10px;
  }

  .skill-card {
    padding: 20px 10px;
  }

  .about-card {
    padding: 22px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}