/* Base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #7c3aed, #0f172a 50%, #020617);
  color: #e5e7eb;
}

/* Layout helpers */
.section {
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #a855f7, #fb7185);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  border: none;
  background: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  cursor: pointer;
  text-transform: capitalize;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #c4b5fd;
}

.nav-link.active {
  color: #a855f7;
}

/* Hero section */
.hero-section {
  padding-top: 7rem;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  background: linear-gradient(
    90deg,
    #ffea70,
    #ff9f7b,
    #ff5fa2,
    #c17dff
  );
  -webkit-background-clip: text;
  color: transparent;
  animation: heroGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: #d1d5db;
  margin: 0 0 0.25rem;
}

.hero-desc {
  font-size: 1rem;
  color: #9ca3af;
  margin: 0 0 2rem;
}

/* Hero icons */
.hero-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f9fafb;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.icon-text {
  font-size: 0.8rem;
}

/* Location */
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
}

.pin {
  font-size: 1rem;
}

/* Scroll down */
.scroll-down {
  margin-top: 3rem;
  border-radius: 999px;
  border: none;
  background: none;
  color: #a855f7;
  font-size: 2rem;
  cursor: pointer;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Section titles */
.section-title {
  text-align: center;
  font-size: 2.3rem;
  margin-top: 0;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* Cards */
.card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  backdrop-filter: blur(14px);
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.6);
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 1.75rem;
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
}

.card-body {
  font-size: 0.95rem;
}

/* Education */
.edu-item + .edu-item {
  margin-top: 1rem;
}

.edu-school {
  margin: 0;
  font-weight: 600;
  color: #c4b5fd;
}

.edu-degree {
  margin: 0.15rem 0;
  color: #d1d5db;
}

.edu-meta {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Certifications */
.cert-name {
  margin: 0;
  font-weight: 600;
  color: #c4b5fd;
}

.cert-desc {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Skills */
.skills-card {
  padding: 2rem;
}

.skills-title {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.skills-heading {
  margin: 0 0 0.75rem;
  color: #c4b5fd;
  font-size: 0.95rem;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  background: rgba(88, 28, 135, 0.4);
}

/* Experience */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.exp-role {
  margin: 0;
  font-size: 1.4rem;
  color: #c4b5fd;
}

.exp-company {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  color: #e5e7eb;
}

.exp-meta {
  text-align: right;
  font-size: 0.85rem;
}

.exp-period {
  margin: 0;
  color: #9ca3af;
}

.exp-location {
  margin: 0.1rem 0 0;
  color: #6b7280;
}

@media (max-width: 640px) {
  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .exp-meta {
    text-align: left;
  }
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.exp-bullets li {
  display: flex;
  gap: 0.5rem;
  color: #e5e7eb;
  margin-bottom: 0.25rem;
}

.bullet {
  color: #a855f7;
  margin-top: 0.15rem;
}

.exp-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exp-text {
  margin: 0 0 0.5rem;
  color: #e5e7eb;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem;
  backdrop-filter: blur(14px);
  transition: transform 0.15s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.project-card:hover {
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.5);
}

.project-name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: #c4b5fd;
}

.project-tech {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.project-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.project-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.project-bullets li {
  display: flex;
  gap: 0.4rem;
}

.project-bullets li span:first-child {
  color: #a855f7;
}

/* Contact */
.contact-container {
  text-align: center;
}

.contact-text {
  font-size: 1.1rem;
  color: #d1d5db;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.contact-grid {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-card {
  text-decoration: none;
  color: inherit;
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-label {
  margin: 0;
  font-weight: 600;
}

.contact-value {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.8);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}
