* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f8fbff;
  color: #0f172a;
  overflow-x: hidden;
}

/* WHITE COLORFUL BACKGROUND */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 10% 15%, rgba(59,130,246,0.25), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(236,72,153,0.22), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(34,197,94,0.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #f0f9ff, #faf5ff);
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
  pointer-events: none;
  z-index: -2;
  transform: translate(-50%, -50%);
}

/* NAVBAR */
.navbar {
  width: min(1180px, 92%);
  margin: 20px auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  position: sticky;
  top: 16px;
  z-index: 99;
  box-shadow: 0 20px 45px rgba(15,23,42,0.08);
}

.logo {
  font-size: 1.5rem;
  font-weight: 950;
}

.logo span {
  color: #2563eb;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.navbar a {
  color: #334155;
  text-decoration: none;
  font-weight: 800;
  transition: 0.3s;
}

.navbar a:hover {
  color: #2563eb;
}

/* HERO */
.hero {
  width: min(1180px, 92%);
  min-height: 82vh;
  margin: auto;
  padding: 95px 0 55px;
  text-align: center;
}

.availability-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #fce7f3);
  border: 1px solid rgba(59,130,246,0.25);
  color: #1e3a8a;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(59,130,246,0.12);
}

.availability-badge span {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 18px #22c55e;
}

.tag {
  color: #2563eb;
  font-weight: 900;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 1000px;
  margin: auto;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -2px;
  background: linear-gradient(90deg, #0f172a, #2563eb, #9333ea, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
}

.typing-text {
  margin-top: 20px;
  min-height: 34px;
  color: #9333ea;
  font-size: 1.25rem;
  font-weight: 950;
}

.hero-proof {
  color: #475569;
  margin-top: 12px;
  font-weight: 700;
}

.hero-buttons {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 24px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 950;
  transition: 0.35s;
}

.primary {
  background: linear-gradient(135deg, #2563eb, #9333ea, #ec4899);
  color: white;
  box-shadow: 0 18px 35px rgba(147,51,234,0.25);
}

.secondary {
  background: white;
  color: #2563eb;
  border: 1px solid rgba(37,99,235,0.25);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
}

.btn:hover {
  transform: translateY(-6px) scale(1.03);
}

.hero-showcase {
  width: 100%;
  max-width: 1100px;
  margin: 42px auto 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-showcase div {
  padding: 18px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(148,163,184,0.2);
  font-weight: 950;
  color: #0f172a;
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  transition: 0.35s;
}

.hero-showcase div:nth-child(1) { border-top: 5px solid #2563eb; }
.hero-showcase div:nth-child(2) { border-top: 5px solid #9333ea; }
.hero-showcase div:nth-child(3) { border-top: 5px solid #22c55e; }
.hero-showcase div:nth-child(4) { border-top: 5px solid #ec4899; }
.hero-showcase div:nth-child(5) { border-top: 5px solid #f59e0b; }


.hero-showcase div:hover {
  transform: translateY(-10px) rotate(-1deg);
}

/* SECTIONS */
.stats,
.about,
.skills,
.experience,
.education,
.projects,
.contact {
  width: min(1180px, 92%);
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 95px 0 36px;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #2563eb, #9333ea, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.stats div {
  padding: 32px;
  border-radius: 28px;
  text-align: center;
  background: white;
  border: 1px solid rgba(148,163,184,0.22);
  box-shadow: 0 22px 50px rgba(15,23,42,0.08);
  transition: 0.35s;
}

.stats div:hover {
  transform: translateY(-10px);
}

.stats h2 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  -webkit-background-clip: text;
  color: transparent;
}

.stats p {
  color: #475569;
  font-weight: 800;
}

/* CARDS */
.about-card,
.timeline-content,
.edu-card,
.project-card,
.detail-card,
.chart-box,
.impact-card,
.feature-grid div {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(148,163,184,0.22);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 50px rgba(15,23,42,0.08);
}

.about-card {
  max-width: 920px;
  margin: auto;
  padding: 28px 32px; /* slightly tighter */
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.85); /* instead of dull grey */
  border: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(12px);
  color: #334155;
  line-height: 1.8;
  font-size: 1.05rem;
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.08);
}

/* SKILLS */
.skill-block {
  max-width: 1000px;
  margin: 34px auto;
  text-align: center;
}

.skill-block h3 {
  color: #0f172a;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}

.skill-grid span {
  padding: 12px 18px;
  border-radius: 999px;
  background: #ffffff; /* cleaner white */
  border: 1.5px solid #c7d2fe; /* soft blue border */
  color: #1e293b;
  font-weight: 800;
  transition: 0.3s;
}

.skill-grid span:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: white;
}

/* EXPERIENCE */
.timeline {
  max-width: 950px;
  margin: auto;
  border-left: 3px solid rgba(37,99,235,0.25);
  padding-left: 36px;
}

.timeline-item {
  position: relative;
  margin: 36px 0;
}

.timeline-dot {
  position: absolute;
  left: -47px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #ec4899);
  box-shadow: 0 0 22px rgba(236,72,153,0.55);
}

.timeline-content {
  padding: 28px;
  border-radius: 28px;
  transition: 0.35s;
}

.timeline-content:hover {
  transform: translateX(8px);
}

.role-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.role-header h3 {
  font-size: 1.35rem;
}

.role-header span {
  color: #2563eb;
  font-weight: 900;
}

.role-badge {
  padding: 8px 13px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 950;
  font-size: 0.82rem;
}

.timeline-content p {
  color: #475569;
  line-height: 1.8;
}

/* EDUCATION */
.edu-card {
  max-width: 850px;
  margin: auto;
  padding: 32px;
  border-radius: 30px;
  display: flex;
  gap: 22px;
  align-items: center;
}

.edu-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dbeafe, #fce7f3);
  flex-shrink: 0;
}

.edu-icon svg {
  width: 40px;
  height: 40px;
  stroke: #2563eb;
}

.edu-card p {
  color: #475569;
  margin: 8px 0;
}

.edu-card span {
  color: #9333ea;
  font-weight: 950;
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.project-card {
  min-height: 310px;
  padding: 30px;
  border-radius: 32px;
  text-decoration: none;
  color: #0f172a;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(236,72,153,0.13));
  opacity: 0;
  transition: 0.35s;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-14px) scale(1.02);
  box-shadow: 0 30px 65px rgba(37,99,235,0.18);
}

.project-card * {
  position: relative;
  z-index: 1;
}

.project-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
}

.project-icon svg {
  width: 31px;
  height: 31px;
  stroke: white;
}

.project-card h3 {
  font-size: 1.38rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.project-card p {
  color: #475569;
  line-height: 1.7;
}

.badges {
  margin-top: auto;
  padding-top: 18px;
}

.badges span {
  display: inline-block;
  padding: 8px 13px;
  margin: 5px 5px 0 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #f3e8ff);
  color: #1e40af;
  font-size: 0.85rem;
  font-weight: 900;
}

.case-link {
  margin-top: 16px;
  color: #9333ea !important;
  font-weight: 950;
}

/* CONTACT */
.contact {
  text-align: center;
  padding: 100px 0;
}

.contact h2 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #2563eb, #9333ea, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
}

.contact p {
  color: #475569;
  margin-bottom: 24px;
  font-weight: 700;
}

/* PROJECT DETAIL PAGE */
.project-detail {
  width: min(1180px, 92%);
  margin: 55px auto;
}

.back {
  color: #2563eb;
  text-decoration: none;
  font-weight: 950;
}

.detail-card {
  margin-top: 24px;
  padding: 40px;
  border-radius: 34px;
}

.detail-card h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.08;
  margin-bottom: 22px;
  background: linear-gradient(90deg, #0f172a, #2563eb, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
}

.premium-description {
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
  border-left: 5px solid #2563eb;
  color: #334155;
  padding: 24px;
  border-radius: 20px;
  line-height: 1.9;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin: 36px 0;
}

.impact-card {
  padding: 26px;
  border-radius: 26px;
  text-align: center;
}

.impact-card h3 {
  color: #2563eb;
  font-size: 2.4rem;
}

.impact-card p {
  color: #475569;
  font-weight: 800;
}

.detail-card h2 {
  margin: 35px 0 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
}

.feature-grid div {
  padding: 19px;
  border-radius: 20px;
  color: #334155;
  font-weight: 800;
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 36px 0;
}

.chart-box {
  padding: 26px;
  border-radius: 28px;
}

.chart-box h3 {
  color: #0f172a;
}

.chart-subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

canvas {
  max-height: 320px;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(44px) scale(0.98);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* FLOATING PARTICLES */
.particles span {
  position: fixed;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #2563eb, #ec4899);
  border-radius: 50%;
  animation: floatParticle 9s linear infinite;
  z-index: -2;
  opacity: 0.5;
}

.particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 20%; animation-delay: 1s; }
.particles span:nth-child(3) { left: 30%; animation-delay: 3s; }
.particles span:nth-child(4) { left: 40%; animation-delay: 2s; }
.particles span:nth-child(5) { left: 50%; animation-delay: 4s; }
.particles span:nth-child(6) { left: 60%; animation-delay: 1.5s; }
.particles span:nth-child(7) { left: 70%; animation-delay: 3.5s; }
.particles span:nth-child(8) { left: 80%; animation-delay: 2.5s; }
.particles span:nth-child(9) { left: 90%; animation-delay: 5s; }
.particles span:nth-child(10) { left: 95%; animation-delay: 6s; }

@keyframes floatParticle {
  0% {
    bottom: -20px;
    opacity: 0;
    transform: translateX(0) scale(0.8);
  }
  30% {
    opacity: 0.8;
  }
  100% {
    bottom: 110vh;
    opacity: 0;
    transform: translateX(-90px) scale(1.5);
  }
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .navbar {
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .stats,
.project-grid,
.impact-grid,
.charts,
.feature-grid {
  grid-template-columns: 1fr;
}

  .role-header {
    flex-direction: column;
  }

  .edu-card {
    flex-direction: column;
    text-align: center;
  }

  .project-card {
    min-height: auto;
  }
}
