:root {
  --bg: #0b0f1a;
  --text: #ffffff;
  --card: rgba(255,255,255,0.08);
  --accent: #7c3aed;
}

.light {
  --bg: #f8fafc;
  --text: #020617;
  --card: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  background: transparent;
  outline: none;
  border: none;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  gap: 40px;
  padding: 80px;
  align-items: center;
  justify-content: space-between;
}

.hero-left span {
  color: var(--accent);
}

.hero-actions {
  margin-top: 30px;
}

.btn {
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  margin-right: 15px;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.hero-right img {
  width: 260px;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(124,58,237,0.6);
  animation: float 4s ease-in-out infinite;
}

/* Sections */
section {
  padding: 80px;
}

.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skills-grid div,
.project-card,
.experience-card {
  background: var(--card);
  padding: 22px;
  border-radius: 18px;
  transition: 0.3s;
  margin-top:10px;
}

.skills-grid div:hover,
.project-card:hover,
.experience-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(124,58,237,0.35);
}

.experience-card ul {
  padding-left: 18px;
  margin-top: 10px;
}

.project-card a {
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  opacity: 0.7;
}

/* WhatsApp */
.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  padding: 15px;
  border-radius: 50%;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap:14px;
  }

  section {
    padding: 50px 20px;
  }
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for cards */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}