:root {
  --bg: #000000;
  --text: #e6e9ee;
  --muted: #a7b1c2;
  --primary: #7c5cff;
  --border: #1b2330;
  --radius: 16px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, var(--bg), #11141a);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
}

.span {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* underline effect for nav links */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Social Icons in Navbar */
/* Social Icons in Navbar */
.social-icons {
  display: flex;
  gap: rem;
  align-items: center
}

.social-icons a {
  color: var(--text);
  font-size: 1.4rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--primary);
}
.gmail-real img {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.gmail-real:hover img {
  transform: scale(1.1);
}



/* Hamburger */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: var(--bg); */
  color: var(--text);
  overflow: hidden;
}

.content {
  width: min(100% - 32px, var(--container));
  text-align: center;
}

.eyebrow {
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: .5rem;
  font-weight: 600;
}

.title {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 .75rem 0;
}

.typing {
  color: var(--primary);
}

.subtitle {
  letter-spacing: .35em;
  color: var(--muted);
  font-size: .9rem;
  margin: .25rem 0 1.5rem;
}

.cursor {
  display: inline-block;
  width: .5ch;
  height: .9em;
  background: var(--primary);
  margin-left: 2px;
  transform: translateY(2px);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.btn-primary {
  display: inline-block;
  padding: .8rem 1.25rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(124, 92, 255, .25);
  border: 1px solid color-mix(in srgb, var(--primary) 55%, #fff);
  transition: transform .15s ease, box-shadow .2s ease;
  margin-top: 15px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 92, 255, .35);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .social-icons {
    display: none;
  }

  .hamburger {
    display: block;
  }
}


#about {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

/* Left Text */
.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.about-text h3 {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 10px 0 20px;
}

.about-text b {
  color: var(--primary);
  font-weight: 600;
}

.about-text p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 25px;
  line-height: 1.8;
}

/* Social Icons */
.socials {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}

.socials a {
  font-size: 1.5rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.socials a:hover {
  color: var(--primary);
}

/* Buttons */
.btns {
  display: flex;
  gap: 15px;
}

.btns a {
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hire {
  background: var(--primary);
  color: #fff;
}

.hire:hover {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.cv {
  border: 2px solid var(--text);
  color: var(--text);
}

.cv:hover {
  background: var(--text);
  color: var(--bg);
}

/* Right Image */
.about-img {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* name niche aane ke liye */
  align-items: center;
  justify-content: center;
}

.about-img img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  /* perfect circle */
  object-fit: cover;
  /* image crop-fit */
  padding: 5px;
  /* gradient ke liye space */
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  /* gradient border */
  transition: all 0.4s ease-in-out;
}

/* hover sirf image pe */
.about-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(124, 92, 255, 0.6),
    0 0 40px rgba(37, 117, 252, 0.4);
}

/* name niche */
.about-img h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 15px;
}



/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  #about {
    flex-direction: column;
    text-align: center;
  }

  .about-text h1 {
    font-size: 2.5rem;
  }

  .about-img {
    order: -1;
  }

  .socials {
    justify-content: center;
  }

  .btns {
    justify-content: center;
  }
}


.tech-stack {
  max-width: var(--container);
  margin: auto;
  padding: 80px 20px;
  text-align: center;

}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 50px;
}

/* ---------- Grid ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* ---------- Card ---------- */
.stack-card {
  background: #11141a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 15px 2;
  width: 100%;
  max-width: 160px;
  text-align: center;
  transition: 0.3s;
}

.stack-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(124, 92, 255, 0.2);
}

.stack-card img {
  width: 40px;
  /* pehle 50px tha */
  height: 40px;
  margin-bottom: 10px;
  /* kam kiya */
}

.stack-card h3 {
  font-size: 1rem;
  /* pehle 1.2rem tha */
  margin: 8px 0 4px;
}

.skill {
  font-size: 0.8rem;
  /* pehle 0.9rem tha */
  margin-top: 4px;
}


/* ---------- Responsive Layout ---------- */
@media (min-width: 1024px) {
  .stack-grid {
    grid-template-columns: repeat(5, 1fr);
    /* desktop pe 5 */
  }
}

@media (max-width: 768px) {
  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
    /* mobile pe 3 */
  }
}

:root {
  --bg: #0b0d10;
  --text: #e6e9ee;
  --muted: #a7b1c2;
  --primary: #7c5cff;
  --border: #1b2330;
  --radius: 16px;
  --container: 1200px;
}

#projects {
  background: var(--bg);
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 800;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 40px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 16, 0.85);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.project-overlay .stack {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 15px;
}

.buttons {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #6544e0;
}

.projects-grid {
  display: grid;
  gap: 30px;
}

@media (max-width: 767px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  /* ✅ proper rectangle */
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title {
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  background: var(--bg);
}

/* Hover overlay (sirf image ke upar) */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 16, 0.85);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-image:hover .project-overlay {
  opacity: 1;
}

.stack {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 15px;
  text-align: center;
}

.buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #6544e0;
}

/* ---------- Hackathons Section ---------- */
.hackathons {
  background: var(--bg);
  padding: 100px 20px;
}

.hackathons .section-title {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}

.hackathons .section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 60px;
}

.hackathons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.hackathon-card {
  background: rgba(17, 22, 31, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hackathon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(59, 228, 119, 0.15));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.hackathon-card:hover::before {
  opacity: 1;
}

.hackathon-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.35);
}

.hackathon-card h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 15px;
}

.hackathon-card .badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 20px;
}

.hackathon-card .details {
  text-align: left;
  margin-bottom: 20px;
}

.hackathon-card .details li {
  margin: 8px 0;
  color: var(--muted);
  position: relative;
  padding-left: 25px;
  font-size: 0.9rem;
}

.hackathon-card .details li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #3be477;
  font-weight: bold;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tags span {
  background: linear-gradient(135deg, #7c5cff, #3be477);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.tags span:hover {
  transform: scale(1.1);
}

/* ---------- Contact Section ---------- */
#contact {
  background: var(--bg);
  padding: 100px 20px;
  text-align: center;
}

#contact .section-title {
  font-size: 2.6rem;
  margin-bottom: 10px;
  color: var(--primary);
}

#contact .section-subtitle {
  color: var(--muted);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto 50px;
  padding: 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.contact-form:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.2);
}

/* Floating labels */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
  resize: none;
  /* user resize nahi kar paayega */
  height: 140px;
  /* fixed height */
}


.contact-form label {
  position: absolute;
  left: 14px;
  top: 16px;
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  transition: 0.3s ease all;
}

.contact-form input:focus+label,
.contact-form input:valid+label,
.contact-form textarea:focus+label,
.contact-form textarea:valid+label {
  top: -10px;
  left: 10px;
  font-size: 0.85rem;
  color: var(--primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(124, 92, 255, 0.4);
}

/* Button */
.btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(124, 92, 255, 0.4);
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.6);
}

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.social-links a {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(124, 92, 255, 0.4);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  padding: 60px 20px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.footer-container {
  max-width: var(--container);
  margin: auto;
  display: grid;
  gap: 30px;
}

.footer-brand h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  color: var(--text);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  color: var(--primary);
  transform: translateY(-4px);
}

.footer-bottom {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- reset ---- */
/* body {
  margin: 0;
  font: normal 75% Arial, Helvetica, sans-serif;
} */

canvas {
  display: block;
  vertical-align: bottom;
}

/* ---- particles.js container ---- */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* ---- stats.js ---- */
.count-particles {
  background: #000022;
  position: absolute;
  top: 48px;
  left: 0;
  width: 80px;
  color: #13E8E9;
  font-size: .8em;
  text-align: left;
  text-indent: 4px;
  line-height: 14px;
  padding-bottom: 2px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.js-count-particles {
  font-size: 1.1em;
}

#stats,
.count-particles {
  -webkit-user-select: none;
  margin-top: 5px;
  margin-left: 5px;
}

#stats {
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.count-particles {
  border-radius: 0 0 3px 3px;
}
.hero .content {
  position: relative;
  z-index: 1;
}


/* === Modal Styles (Added) === */
.modal{display:none;position:fixed;z-index:9999;inset:0;background:rgba(0,0,0,.8);justify-content:center;align-items:center;padding:20px}
.modal-content{background:#fff;color:#111;border-radius:14px;box-shadow:0 10px 40px rgba(0,0,0,.4);display:flex;gap:20px;max-width:1000px;width:95%;padding:24px;position:relative}
.modal-close{position:absolute;top:12px;right:14px;background:transparent;border:0;font-size:28px;line-height:1;cursor:pointer;color:#333}
.modal-left{flex:1;min-width:0}
.modal-left img{width:100%;height:auto;border-radius:12px;display:block}
.modal-right{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}
.tech-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.tech-list .chip{padding:6px 10px;border-radius:999px;background:#eef2ff;color:#334;font-size:.85rem;border:1px solid #dfe3ff}
.modal-buttons{margin-top:12px;display:flex;gap:12px;flex-wrap:wrap}
.modal-buttons .btn{padding:10px 16px;border-radius:8px;text-decoration:none;background:#111;color:#fff;display:inline-block}
.modal-buttons .btn-primary{background:#007bff}
@media (max-width: 800px){.modal-content{flex-direction:column}}


/* ===== Modal Styling with root variables ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background: var(--bg);
  color: var(--text);
  margin: 8% auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 70%;
  max-width: 600px;
  text-align: center;
}

.modal-content .btn {
  background: var(--primary);
  color: var(--text);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  margin: 5px;
  display: inline-block;
  text-decoration: none;
}

.modal-content .btn:hover {
  opacity: 0.9;
}


/* ---- Force hide hover buttons on project cards ---- */
.project-buttons,
.project-links,
.project-overlay .buttons,
.project-card:hover .project-buttons,
.project-card:hover .project-links,
.project-card:hover .project-overlay .buttons {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

/* ---- Keep the tech stack always visible ---- */
.project-overlay .stack,
.project-card .stack {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
