@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

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

:root {
  --bg-dark: #0f0a1a;
  --bg-section: #160e26;
  --bg-card: #1e1433;
  --purple-deep: #2d1b69;
  --purple-rich: #5b2c8a;
  --purple-medium: #7b3fa0;
  --purple-bright: #a855f7;
  --purple-light: #c084fc;
  --purple-pale: #e8d5f5;
  --purple-glow: rgba(168, 85, 247, 0.15);
  --purple-glow-strong: rgba(168, 85, 247, 0.3);
  --text-primary: #f0eaf8;
  --text-secondary: #b8a4d6;
  --text-muted: #7c6a9a;
  --accent: #d946ef;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--purple-bright);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(15, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  transition: background 0.3s ease;
}

.navbar .logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar .nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--purple-bright);
  transition: width 0.3s ease;
}

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

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

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  border: 3px solid var(--purple-bright);
  box-shadow: 0 0 40px var(--purple-glow-strong);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--purple-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero .tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-bright), var(--accent));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--purple-light);
  border: 2px solid var(--purple-medium);
}

.btn-secondary:hover {
  background: var(--purple-glow);
  border-color: var(--purple-bright);
  transform: translateY(-2px);
}

/* --- SECTIONS --- */
section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header h2 .highlight {
  background: linear-gradient(135deg, var(--purple-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-bright), var(--accent));
  border-radius: 3px;
  margin: 0.8rem auto 0;
}

/* --- ABOUT --- */
#about {
  background: var(--bg-section);
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple-deep), var(--bg-card));
  border: 1px solid rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(168, 85, 247, 0.05) 100%);
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--purple-light);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(168, 85, 247, 0.1);
}

.stat-card .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* --- SKILLS --- */
#skills {
  background: var(--bg-dark);
}

.skills-container {
  max-width: 1000px;
  margin: 0 auto;
}

.skill-category {
  margin-bottom: 2.5rem;
}

.skill-category h3 {
  font-size: 1.1rem;
  color: var(--purple-light);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--purple-bright);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  padding: 0.6rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--purple-bright);
  color: var(--purple-light);
  background: var(--purple-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.15);
}

.skill-tag .tag-icon {
  margin-right: 0.4rem;
}

/* --- PROJECTS --- */
#projects {
  background: var(--bg-section);
}

.projects-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-bright), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.1);
}

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

.project-card .project-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.project-card .project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card .project-tech span {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  background: var(--purple-glow);
  color: var(--purple-light);
  border-radius: 50px;
  font-weight: 500;
}

/* --- TIMELINE --- */
#timeline {
  background: var(--bg-dark);
}

.timeline-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--purple-bright), var(--purple-deep), transparent);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple-bright);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 15px var(--purple-glow-strong);
  z-index: 1;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 300px;
}

.timeline-content .timeline-date {
  font-size: 0.8rem;
  color: var(--purple-bright);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.timeline-content h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- CONTACT --- */
#contact {
  background: var(--bg-section);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-container p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  border-color: var(--purple-bright);
  color: var(--purple-light);
  background: var(--purple-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
}

.contact-link .link-icon {
  font-size: 1.2rem;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(168, 85, 247, 0.08);
}

footer .heart {
  color: var(--accent);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-deep);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-rich);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .navbar .nav-links {
    gap: 1rem;
  }

  .navbar .nav-links a {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    max-width: 250px;
    margin: 0 auto;
  }

  .timeline-container::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-item::before,
  .timeline-item:nth-child(even)::before {
    left: 20px;
  }

  .timeline-content {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .navbar {
    padding: 0.8rem 1rem;
  }

  .navbar .logo {
    font-size: 1.1rem;
  }

  .navbar .nav-links {
    gap: 0.7rem;
  }

  .navbar .nav-links a {
    font-size: 0.78rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
