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

:root {
  --primary: #6c5ce7;
  --primary-dark: #4834d4;
  --dark: #1e1e2f;
  --light: #f5f6fa;
  --gray: #a4a4b5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8%;
  z-index: 100;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s;
}

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

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger .line {
  width: 25px;
  height: 3px;
  background: #fff;
}

/* HERO */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -200px;
  right: -200px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -150px;
  left: -150px;
}

.hero-content {
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.hero h1 span {
  border-bottom: 4px solid #fff;
}

.typewriter {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 28px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

/* SECTIONS */
.section {
  padding: 100px 8%;
  text-align: center;
}

.section.alt {
  background: #eeeef8;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.about-content p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
}

/* SKILLS */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: #fff;
  padding: 32px 20px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(108,92,231,0.2);
}

.skill-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.skill-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* PROJECTS */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: #fff;
  padding: 36px 24px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.project-card h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.project-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CONTACT */
.contact p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #444;
}

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

.contact-links a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 12px 20px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.contact-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 24px;
  background: var(--dark);
  color: #aaa;
  font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: var(--primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .burger {
    display: flex;
  }

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

