/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --secondary: #ff6584;
  --accent: #43e97b;
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a28;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.08);
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ===== CURSOR ===== */
.cursor {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 2px solid rgba(108,99,255,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  z-index: 1000;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  padding: 14px 60px;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.logo-text {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-link {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  position: relative; transition: color 0.3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; background: none; border: none;
  cursor: pointer; padding: 5px;
}
.hamburger span {
  display: block; width: 25px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 100px 80px 60px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
#particles-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
  animation: blob-move 8s ease-in-out infinite;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  top: 200px; right: -100px;
  animation-delay: 2s;
}
.blob-3 {
  width: 350px; height: 350px;
  background: var(--accent);
  bottom: -100px; left: 40%;
  animation-delay: 4s;
}
@keyframes blob-move {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-30px) scale(1.1); }
  66% { transform: translate(-20px,20px) scale(0.9); }
}

.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-greeting {
  font-size: 1.1rem; color: var(--text-muted);
  font-weight: 500; margin-bottom: 8px;
  letter-spacing: 2px; text-transform: uppercase;
}
.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 16px;
}
.name-highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary), #43e97b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-role {
  font-size: 1.3rem; font-weight: 600;
  margin-bottom: 24px; color: var(--text-muted);
}
.role-text { color: var(--primary); }
.cursor-blink {
  animation: blink 1s infinite;
  color: var(--primary); font-weight: 300;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-desc {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 36px; max-width: 500px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; border: none;
  cursor: pointer; transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.btn:hover::before { transform: translateX(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 30px rgba(108,99,255,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(108,99,255,0.6); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.btn-full { width: 100%; justify-content: center; }

.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat { text-align: center; }
.stat-num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span:last-of-type { color: var(--primary); font-weight: 800; font-size: 1.5rem; }
.stat p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.stat-divider { width: 1px; height: 50px; background: var(--glass-border); }

/* Hero Image */
.hero-image {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.avatar-ring {
  width: 300px; height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 4px;
  animation: spin-slow 10s linear infinite;
  box-shadow: 0 0 60px rgba(108,99,255,0.4);
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  animation: spin-slow 10s linear infinite reverse;
}
.avatar-emoji { font-size: 8rem; }
.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.85rem; font-weight: 600;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
.floating-card span { margin-right: 6px; }
.card-1 { top: 20px; left: -60px; animation-delay: 0s; }
.card-2 { bottom: 20px; left: -80px; animation-delay: 1s; }
.card-3 { top: 50%; right: -80px; transform: translateY(-50%); animation-delay: 2s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.card-3 { animation: float3 3s ease-in-out infinite; }
@keyframes float3 {
  0%,100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 12px)); }
}

/* Scroll down */
.scroll-down {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-muted);
  font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; z-index: 1;
  animation: float 2s ease-in-out infinite;
}
.scroll-icon {
  width: 28px; height: 44px;
  border: 2px solid var(--glass-border);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 8px;
}
.scroll-dot {
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ===== SECTION HEADER ===== */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--text-muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ABOUT ===== */
.about { background: var(--bg2); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 80px; align-items: center;
}
.about-img-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(20px);
}
.about-avatar { font-size: 7rem; display: block; margin-bottom: 20px; }
.about-tag-1, .about-tag-2 {
  position: absolute;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
}
.about-tag-1 { top: -16px; left: 50%; transform: translateX(-50%); }
.about-tag-2 { bottom: -16px; left: 50%; transform: translateX(-50%); color: var(--accent); border-color: var(--accent); }
.about-text h3 {
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-text p {
  color: var(--text-muted); line-height: 1.9;
  margin-bottom: 16px; font-size: 1.05rem;
}
.about-info {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 28px 0;
}
.info-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.9rem;
}
.info-icon { font-size: 1.2rem; }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; margin-bottom: 64px;
}
.skill-category {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(20px);
}
.skill-category h3 {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 28px;
  color: var(--primary);
}
.skill-item { margin-bottom: 24px; }
.skill-info {
  display: flex; justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem; font-weight: 500;
}
.skill-bar {
  height: 8px; background: rgba(255,255,255,0.08);
  border-radius: 4px; overflow: hidden;
}
.skill-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.skill-fill.animated { width: var(--w); }

.tech-stack { text-align: center; }
.tech-stack h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; }
.tech-icons {
  display: flex; flex-wrap: wrap;
  gap: 12px; justify-content: center;
}
.tech-icon {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s;
  cursor: default;
}
.tech-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(108,99,255,0.4);
}

/* ===== PROJECTS ===== */
.projects { background: var(--bg2); }
.filter-btns {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 48px; flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px; border-radius: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px; overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(20px);
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  border-color: rgba(108,99,255,0.3);
}
.project-card.hide { display: none; }
.project-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-emoji { font-size: 4rem; }
.project-content { padding: 24px; }
.project-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.project-tags span {
  padding: 4px 12px; border-radius: 50px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--primary);
  font-size: 0.75rem; font-weight: 600;
}
.project-content h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 10px;
}
.project-content p {
  color: var(--text-muted); font-size: 0.9rem;
  line-height: 1.7; margin-bottom: 20px;
}
.project-links { display: flex; gap: 16px; }
.project-link {
  color: var(--primary); text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s;
}
.project-link:hover { color: var(--secondary); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: start;
}
.contact-info h3 {
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-info > p {
  color: var(--text-muted); line-height: 1.9;
  margin-bottom: 32px;
}
.contact-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all 0.3s;
}
.contact-card:hover {
  border-color: var(--primary);
  transform: translateX(6px);
}
.contact-icon { font-size: 1.8rem; }
.contact-card strong { font-size: 0.85rem; color: var(--text-muted); display: block; }
.contact-card p { font-weight: 600; margin-top: 2px; }
.social-links { display: flex; gap: 12px; }
.social-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
  text-decoration: none;
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(108,99,255,0.4);
}

/* Form */
.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.9rem;
  font-weight: 600; margin-bottom: 8px;
  color: var(--text-muted);
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(108,99,255,0.08);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.form-group textarea { resize: vertical; }
.form-success {
  display: none; text-align: center;
  padding: 16px; border-radius: 12px;
  background: rgba(67,233,123,0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600; margin-top: 16px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  padding: 36px 0;
  text-align: center;
}
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-sub { margin-top: 8px; font-size: 0.85rem; }

/* ===== ANIMATIONS ===== */
.animate-in {
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4,0,0.2,1);
}
.animate-in.visible {
  opacity: 1; transform: translateY(0);
}
.hero-content .animate-in:nth-child(1) { transition-delay: 0.1s; }
.hero-content .animate-in:nth-child(2) { transition-delay: 0.2s; }
.hero-content .animate-in:nth-child(3) { transition-delay: 0.3s; }
.hero-content .animate-in:nth-child(4) { transition-delay: 0.4s; }
.hero-content .animate-in:nth-child(5) { transition-delay: 0.5s; }
.hero-content .animate-in:nth-child(6) { transition-delay: 0.6s; }
.hero-image.animate-in { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { padding: 100px 40px 60px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar { padding: 20px 40px; }
}
@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .navbar.scrolled { padding: 12px 24px; }
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    justify-content: center; align-items: center;
    gap: 32px; font-size: 1.4rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 1001; }
  .hero { flex-direction: column; padding: 120px 24px 60px; text-align: center; }
  .hero-image { display: none; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-info { grid-template-columns: 1fr; }
  .container { padding: 0 24px; }
  section { padding: 70px 0; }
}
