:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --card: #ffffff;
  --primary: #7c3aed;
  --secondary: #f472b6;
  --accent: #06b6d4;
  --accent-yellow: #fbbf24;
  --text: #1e1b2e;
  --text-muted: #6b7280;
  --gradient-1: linear-gradient(135deg, #7c3aed, #f472b6);
  --gradient-2: linear-gradient(135deg, #06b6d4, #7c3aed);
  --gradient-3: linear-gradient(135deg, #fbbf24, #f472b6);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 48px;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  position: relative;
}

.hero-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--gradient-2);
  top: -200px;
  right: -150px;
  opacity: 0.08;
  filter: blur(60px);
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--gradient-3);
  bottom: -100px;
  left: -100px;
  top: auto;
  right: auto;
  animation-delay: -4s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  animation: fadeUp 0.6s ease forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  animation: fadeUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.hero-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.2);
  animation: bounce 3s ease-in-out infinite;
}

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

.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  font-size: 2rem;
  animation: floatIcon 4s ease-in-out infinite;
}

.float-icon:nth-child(2) { animation-delay: -1s; }
.float-icon:nth-child(3) { animation-delay: -2s; }
.float-icon:nth-child(4) { animation-delay: -3s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* About */
.about {
  background: var(--surface);
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-fun {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-fun span {
  background: rgba(124, 58, 237, 0.06);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(124, 58, 237, 0.1);
  transition: all 0.2s;
}

.about-fun span:hover {
  background: rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stat {
  background: var(--bg);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-category {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.skill-category h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  padding: 8px 16px;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.skill-tags span:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Experience */
.experience {
  background: var(--surface);
}

.timeline {
  position: relative;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 52px;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 7px;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-company {
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}

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

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.project-img {
  font-size: 4rem;
  padding: 32px 32px 0;
  line-height: 1;
}

.project-body {
  padding: 24px 32px 32px;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tags span {
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.08);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

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

.project-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: all 0.2s;
  position: relative;
}

.project-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

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

/* Contact */
.contact {
  background: var(--surface);
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: -32px auto 48px;
  text-align: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact-card {
  background: var(--card);
  border-radius: 16px;
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.3s;
  min-width: 280px;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border-color: var(--primary);
}

.contact-icon {
  font-size: 2.4rem;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.contact-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}

.contact-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.resume-btn {
  background: var(--gradient-1);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.resume-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}

.contact-social {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.contact-social a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s;
  border: 1px solid rgba(0,0,0,0.04);
}

.contact-social a:hover {
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
  border-color: var(--primary);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy {
  margin-top: 4px;
  opacity: 0.6;
  font-size: 0.85rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  font-size: 0.95rem;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  section { padding: 70px 0; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: var(--surface);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }

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

  .mobile-toggle { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-name { font-size: 2.8rem; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }
  .hero-wave svg { height: 40px; }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-fun { justify-content: center; }

  .skills-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .timeline-item {
    padding-left: 44px;
  }

  .contact-card {
    min-width: 0;
    width: 100%;
    padding: 28px 24px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-name { font-size: 3.2rem; }
}
