@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.1);
  }
  100% {
    transform: translate(-30px, 40px) scale(1);
  }
}
.bg-effects span:nth-child(1) {
  top: -120px;
  left: -120px;
  animation-duration: 22s;
}

.bg-effects span:nth-child(2) {
  bottom: -140px;
  right: -140px;
  background: radial-gradient(circle, rgba(79,70,229,0.35), transparent 70%);
  animation-duration: 26s;
}

.bg-effects span:nth-child(3) {
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  animation-duration: 18s;
}
.bg-effects span {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 70%);
  filter: blur(60px);
  animation: float 18s infinite alternate ease-in-out;
}
/* =========================
   PARTICLES BACKGROUND
========================= */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top, #0b122a, #020617);
}

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

/* =========================
   BODY
========================= */
body {
  font-family: system-ui, sans-serif;
  background: linear-gradient(180deg, #071024, #071428);
  color: #e6eef8;
  padding: 28px;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1100px;
  margin: auto;
}

/* =========================
   GLOBAL SECTION SPACING
   (KEY FIX)
========================= */
section {
  margin-top: 70px;   /* SAME SPACE FOR ALL SECTIONS */
}

/* =========================
   HEADER
========================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 70px; /* SAME AS SECTION GAP */
}

.brand {
  display: flex;
  gap: 14px;
}

.logo {
  width: 60px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.title {
  font-size: 22px;
}

.brand-desc {
  margin-top: 8px;
  font-size: 14px;
  color: #94a3b8;
  max-width: 480px;
}

/* =========================
   NAV
========================= */
.nav a {
  margin-left: 22px;
  text-decoration: none;
  color: #94a3b8;
  font-weight: 600;
}

.nav a:hover {
  color: #ffffff;
}

/* =========================
   HERO (ROHIT SECTION)
========================= */
.hero {
  display: grid;
  gap: 28px;
  background: rgba(255, 255, 255, 0.03);
  padding: 32px;
  border-radius: 18px;
}

.hero-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-left h1 {
  margin-bottom: 10px;
}

.profile {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
}

/* =========================
   TYPING TEXT
========================= */
.typing {
  font-size: 18px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 18px;
  min-height: 26px;
}

.typing::after {
  content: "|";
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  margin-right: 14px;
  margin-top: 8px;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  border: none;
}

/* =========================
   CARD BASE
========================= */
.card {
  background: rgba(255, 255, 255, 0.02);
  padding: 26px;
  border-radius: 16px;
  .card {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

}

/* =========================
   SECTION TITLES
========================= */
.section-title {
  margin-bottom: 24px;
}

/* =========================
   PROJECTS
========================= */
.projects-grid {
  display: grid;
  gap: 24px;
}

.project-thumb {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 12px;
}

/* =========================
   EDUCATION + QUICK LINKS
========================= */
.two-col {
  display: grid;
  gap: 36px;
}

/* =========================
   SKILLS
========================= */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.skill {
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* =========================
   QUICK LINKS
========================= */
.badge {
  display: block;
  margin-top: 14px;
  text-decoration: none;
  color: #e6eef8;
  font-weight: 500;
}

.badge:hover {
  color: #7c3aed;
}

/* =========================
   CONTACT (MATCHES HERO SPACING)
========================= */
#contact .card {
  max-width: 600px;
  margin: auto;
  padding: 34px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.field {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
}

.submit {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.submit:hover {
  background: #6d28d9;
}

/* =========================
   FOOTER
========================= */
.footer {
  margin-top: 70px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 350px;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-col {
    grid-template-columns: 2fr 1fr;
  }
}
