/* ===============================
   GLOBAL RESET
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===============================
   GLOBAL BACKGROUND
=============================== */
body {
  background: linear-gradient(180deg, #0b061a 0%, #120722 100%);
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  position: relative;
}

/* background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(88,28,135,0.25), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(168,85,247,0.18), transparent 50%);
  z-index: -2;
}

/* ===============================
   SECTIONS
=============================== */
section {
  background: transparent !important;
  padding: 4rem 1.25rem;
}

/* ===============================
   TEXT STYLES
=============================== */
p {
  color: #c7c7d1;
  font-size: 1rem;
}

.text-muted {
  color: #9ca3af;
}

/* ===============================
   SECTION HEADINGS
=============================== */
.section-heading {
  font-size: 2.1rem;
  font-weight: 700;
  text-align: center;
  color: #c084fc;
  margin-bottom: 3rem;
  letter-spacing: 0.5px;
}

/* sparkle */
.sparkle {
  display: inline-block;
  margin-left: 6px;
  animation: sparkle 1.8s infinite ease-in-out;
}

@keyframes sparkle {
  0% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 0.4; transform: scale(1); }
}

/* ===============================
   HERO
=============================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f5f3ff;
}

.hero h1 span {
  color: #c084fc;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: #b4b4c4;
}

/* ===============================
   BUTTONS
=============================== */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.3rem;
  border-radius: 999px;
  background-color: #a855f7;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #9333ea;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 0.9rem 2.3rem;
  border-radius: 999px;
  border: 1px solid #a855f7;
  color: #a855f7;
  text-decoration: none;
  margin-left: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background-color: #a855f7;
  color: #ffffff;
}

/* ===============================
   ABOUT
=============================== */
#about {
  padding-top: 0;
}

.about-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.25);
  backdrop-filter: blur(14px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: #c084fc;
  box-shadow:
    0 20px 50px rgba(168, 85, 247, 0.35),
    0 0 35px rgba(192, 132, 252, 0.45);
}

.about-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #f5f3ff;
}

/* ===============================
   PROJECTS
=============================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.45);
  border-radius: 16px;
  padding: 2.2rem;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.project-card .tech {
  font-size: 0.9rem;
  color: #e9d5ff;
  margin-bottom: 0.8rem;
}

.project-card p {
  color: #f5f3ff;
  line-height: 1.7;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: #c084fc;
  box-shadow:
    0 20px 45px rgba(168, 85, 247, 0.4),
    0 0 40px rgba(192, 132, 252, 0.45);
}

.project-card:hover *,
.project-card:active *,
.project-card:focus * {
  color: #ffffff;
}

/* ===============================
   SKILLS
=============================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.skill-card {
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.07),
    rgba(255,255,255,0.02)
  );
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(192,132,252,0.25);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: scale(0.96);
  animation: skillFade 0.8s ease forwards;
}

.skill-card:nth-child(1){animation-delay:.1s}
.skill-card:nth-child(2){animation-delay:.2s}
.skill-card:nth-child(3){animation-delay:.3s}
.skill-card:nth-child(4){animation-delay:.4s}

.skill-card:hover {
  transform: scale(1);
  border-color: #d8b4fe;
  box-shadow:
    inset 0 0 20px rgba(192,132,252,0.25),
    0 25px 60px rgba(168,85,247,0.35);
}

.skill-card h3 {
  font-size: 1.3rem;
  color: #f5f3ff;
  margin-bottom: 1.2rem;
  text-align: center;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.skill-card li {
  font-size: 0.95rem;
  color: #d1d5db;
  padding: 0.4rem 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.skill-card li:hover {
  color: #f5f3ff;
  transform: translateX(4px);
}

/* ===============================
   CONTACT
=============================== */
.contact-links a {
  color: #c084fc;
  text-decoration: none;
  margin: 0.5rem 1rem;
  font-weight: 500;
}

.contact-links a:hover {
  text-decoration: underline;
}

/* ===============================
   FOOTER
=============================== */
footer {
  padding: 3rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* ===============================
   ANIMATIONS
=============================== */
.fade-in {
  animation: fadeIn 0.6s ease both;
}

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

@keyframes skillFade {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* //logo images */

.skill-card ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 18px;
}

.skill-card i {
  font-size: 26px;   /* Bigger icon */
  transition: all 0.3s ease;
}

/* Hover Highlight Effect */
.skill-card ul li:hover i {
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px #a855f7);
}

.skill-card ul li:hover {
  color: #ffffff;
}

/* ================= SKILL CARD DESIGN ================= */

.skill-card {
  background: linear-gradient(145deg, #1a102a, #2a1540);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  transition: 0.3s ease;
}

.skill-card h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #e9d5ff;
}

/* ================= DESKTOP HOVER EFFECT ================= */

@media (min-width: 769px) {

  .skill-card ul li:hover i {
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px #a855f7);
  }

  .skill-card ul li:hover {
    color: #ffffff;
  }

  .skill-card:hover {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
    transform: translateY(-5px);
  }

}

/* ================= MOBILE SCROLL EFFECT ================= */

@media (max-width: 768px) {

  .reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
  }

  .reveal-card.active {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
  }

}
