@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

:root {
  --bg-color: #0e0d0f;
  --text-color: #f0f0f0;
  --card-bg: #1e1e1e;
  --accent-color: #b74b4b;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  background-color: rgb(14, 13, 15);
  color: white;
  color: var(--text-color);
  background: linear-gradient(-45deg, #0f0f0f, #1a1a1a, #191919, #111);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: repeating-linear-gradient(0deg, #1a1a1a, #1a1a1a 1px, transparent 1px, transparent 40px),
              repeating-linear-gradient(90deg, #1a1a1a, #1a1a1a 1px, transparent 1px, transparent 40px);
  z-index: -1;
  opacity: 0.05;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 20%, rgba(183, 75, 75, 0.15), transparent 30%),
              radial-gradient(circle at 70% 70%, rgba(255, 81, 0, 0.1), transparent 40%);
  animation: aurora 30s linear infinite alternate;
  z-index: -2;
}

@keyframes aurora {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-20%, -10%); }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

section {
  min-height: 100vh;
  padding: 5rem 9% 5rem;
}

header {
  margin-top: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: transparent;
  filter: drop-shadow(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 3rem;
  color: var(--accent-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
  border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px) {
  header {
    position: relative !important; /* Ensure it's not fixed on mobile */
  }
  nav {
    position: absolute;
    display: none;
    top: 0;
    right: 0;
    width: 40%;
    border-left: 3px solid #b74b4b;
    border-bottom: 3px solid #b74b4b;
    border-bottom-left-radius: 2rem;
    padding: 1rem;
    background-color: #cf3434;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: block;
  }

  nav a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  nav a:hover,
  nav a.active {
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #b74b4b;
  }
}

section {
  min-height: 100vh;
  padding: 5rem 9% 5rem;
}

/* ---------------- HOME ------------------ */
.home {
    position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background-color: transparent;
}

.home .home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}

span {
  color: #b74b4b;
}

.home-content h3 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.home-content p {
  font-size: 1.6rem;
}

.home-img {
  border-radius: 50%;
}

.home-img img {
  position: relative;
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px solid #a32424;
  transition: 0.2s linear;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #b74b4b;
}

.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #b74b4b;
  box-shadow: 0 0 25px #b74b4b;
}



.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: black;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #b74b4b;
  letter-spacing: 0.3rem;
  font-weight: 600;
  border: 2px solid #b74b4b;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.03);
  background-color: #b74b4b;
  color: black;
  box-shadow: 0 0 25px #b74b4b;
}

/* ---------------- TYPING TEXT ------------------ */
.typing-text {
  font-size: 24px;
  font-weight: 300;
  min-width: 280px;
}

.typing-text span {
  position: relative;
}

.typing-text span::before {
  content: "Software Developer";
  color: #b74b4b;
  animation: words 10s infinite;
}

.typing-text span::after {
  content: "";
  position: absolute;
  width: 2px;                /* 👈 Thin vertical bar */
  height: 100%;
  background-color: #b74b4b; /* 👈 Same as your highlight color */
  right: 0;
  animation: cursor 0.6s steps(1) infinite;
}

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


@keyframes words {
  0%, 20% {
    content: "AI/ML Engineer";
  }
  21%, 40% {
    content: "Full Stack AI/ML";
  }
  42%, 60% {
    content: "ML Enthusiast";
  }
  61%, 80% {
    content: "Researcher";
  }
  81%, 100% {
    content: "ML Engineer";
  }
}

/* ---------------- ABOUT / SKILLS / EDUCATION ------------------ */

.about,
.skills {
  padding: 4rem 2rem;
  margin-bottom: 4rem;
}

.about-text {
  text-align: center;
  font-size: 1.9rem;
  line-height: 1.6;
  color: #ccc;
  margin-top: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


.section-title {
  font-size: 5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.education-section{
  background-color: transparent;
  padding: 6rem 9%;
  color: white;
  text-align: center;

}
.education-section,
.skills-section {
  max-width: 900px;
  margin: 0 auto;
}

.education-card {
  background: transparent;
  color: white;
  padding: 1.5rem;
  font-size: large;
  margin-bottom: 7rem;
  border-radius: 10px;
  box-shadow: 0 4 8px #b74b4b;
  border-left: 5px solid #b74b4b;
  border-right: 5px solid #b74b4b;
}

.education-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.15);
}

/* ---------------- SKILLS ------------------ */

.skills-section {
  padding: 1rem 9%; /* Unchanged: 16px top/bottom */
}

.tech-stack {
  padding: 0.5rem 0; /* Unchanged: 8px top/bottom */
  text-align: center;
  margin-top: 3rem;
}

.section-heading {
  margin-top: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10rem;
  text-transform: uppercase;
  letter-spacing: 5px;
}


.tech-grid {
  margin-top: 7rem;
  gap: 15rem;
  display: grid;
  row-gap: 3.0rem;
  grid-template-columns: repeat(5, 70px); /* Exactly 4 columns, each 100px wide */
  justify-content: center; /* Center the grid horizontally */
  margin-right: 2rem;
  margin-left: 3rem;
  margin-bottom: 7rem;
}

.tech-card {
  margin-top: 3rem;
  width: 100px;
  height: 100px;
  background-color: transparent;
  border-radius: 1rem;
  display: grid;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px #b74b4b;
}

.tech-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Auto wrap on small screens */
  }

  .tech-card img {
    width: 50px;
    height: 50px;
  }
}


/* ---------------- EXPERIENCE ------------------ */
.experience {
  background-color: transparent;
  padding: 6rem 9%;
  color: white;
}

.experience-container {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  margin-top: 9rem;
}

.experience-card {
  background-color: transparent;
  border-left: 5px solid #b74b4b;
  padding: 2rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(183, 75, 75, 0.2);
  transition: transform 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(183, 75, 75, 0.3);
}

.experience-card .company {
  font-size: 2.2rem;
  color: #b74b4b;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.experience-card .role {
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: #cccccc;
}


.experience-card ul {
  list-style-type: disc;
  padding-left: 2rem;
}

.experience-card ul li {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
  color: #f0f0f0;
}

/* ---------------- CERTIFICATES ------------------ */

.certificates {
  padding: 6rem 9%;
  background: transparent; /* dark theme */
  color: white;
}

.certificate-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  justify-content: center;
  margin-top: 8rem;
  margin-bottom: 8rem;
}


.certificate-card {
  background: rgba(255, 255, 255, 0.05); /* Slight white tint */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--accent-color);
  padding: 3rem 2.5rem;
  border-radius: 2rem;
  width: 300px;
  color: white;
  box-shadow: 0 0 20px rgba(183, 75, 75, 0.1);
  transition: transform 0.3s ease;
}



.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(183, 75, 75, 0.3);
}

.certificate-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.certificate-org {
  font-size: 1.4rem;
  color: #ccc;
}

.certificate-date {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 1rem;
}

.certificate-card .btn {
  padding: 0.6rem 1.5rem;
  font-size: 1.4rem;
  border-radius: 2rem;
  text-align: center;
  display: inline-block;
}


/*-#- Contact Section ------------------ */

.contact {
  background-color: transparent;
  padding: 6rem 9%;
  color: white;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
  justify-content: center;
}

.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #1e1e1e;
  padding: 2rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(183, 75, 75, 0.2);
}

.contact-form input,
.contact-form textarea {
  flex: 1;
  padding: 1.2rem 1.5rem;
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  color: white;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #b74b4b;
  box-shadow: 0 0 10px rgba(183, 75, 75, 0.3);
  outline: none;
}

.contact-form .input-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #1e1e1e;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 0 25px rgba(183, 75, 75, 0.4); /* Always glow */
  border: 1px solid #b74b4b;
  transition: box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
background: rgba(30, 30, 30, 0.5);
border: 1px solid rgba(255, 255, 255, 0.1);

  
}


.contact-form input,
.contact-form textarea {
  flex: 1;
  padding: 1.2rem;
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}
.contact-form input,
.contact-form textarea {
  flex: 1;
  padding: 1.2rem 1.5rem;
  background: #2c2c2c;
  border: 1px solid #b74b4b;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  color: white;
  box-shadow: 0 0 15px rgba(183, 75, 75, 0.2); /* subtle glow always */
}


.contact-form .btn {
  background-color: black;
  color: #b74b4b;
  border: 2px solid #b74b4b;
  font-size: 1.6rem;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  transition: 0.3s ease;
  cursor: pointer;
  align-self: flex-start;
  box-shadow: 0 0 10px rgba(183, 75, 75, 0.3);
}

.contact-form .btn:hover {
  background-color: #b74b4b;
  color: black;
  box-shadow: 0 0 25px rgba(183, 75, 75, 0.6);
}


.contact-form .btn {
  align-self: flex-start;
  background-color: black;
}

.contact-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.5rem;
  color: #ccc;
}

.contact-info i {
  margin-right: 1rem;
  color: #b74b4b;
}


@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 3rem;
  }
}
.gradient-text {
  background: linear-gradient(to right, #ff5100, #b74b4b);
  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent; /* ✅ Required for WebKit */
}

.home {
  position: relative;
  overflow: hidden; /* ensures particles don't leak out */
}

/* ---------------- PARTICLES ------------------ */
/* particles.js styles */

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: transparent;
  pointer-events: none;

}

.card, .certificate-card, .contact-form {
  backdrop-filter: blur(10px);
  background: rgba(30, 30, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.neon {
  color: #ff5100;
  text-shadow:
    0 0 5px #ff5100,
    0 0 10px #ff5100,
    0 0 20px #b74b4b,
    0 0 40px #b74b4b;
}


@keyframes slowZoom {
  0% { background-size: 400% 400%; }
  100% { background-size: 500% 500%; }
}
/* ---------------- ANIMATIONS ------------------ */
.star-sparkle {
  position: fixed;
  pointer-events: none;
  color: rgb(206, 253, 95);
  font-size: 16px;
  animation: sparkle-fade 0.8s ease-out forwards;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg) translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: scale(2) rotate(180deg) translate(-50%, -50%);
  }
}


.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.leetcode-icon {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/1/19/LeetCode_logo_black.png');
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}
.social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icons i {
  font-size: 24px;
  line-height: 1;
  display: inline-block;
}

.leetcode-img {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: relative;
  top: 1.5px; /* This pushes image slightly down */
}

.projects {
  padding: 50px 20px;
  background-color: #121212; /* dark theme */
  color: white;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 per row */
  gap: 4.5rem; /* even space between all cards */
  max-width: 1150px; /* keeps layout centered */
  margin: 30px auto; /* top margin + center horizontally */
  padding: 0 20px; /* small side padding so cards don’t touch edges */
}

.project-card {
  background-color: transparent;
  border-radius: 35px;
  padding: 30px;
  min-height: 350px; /* consistent height */
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-sizing: border-box;
  overflow: hidden; /* ensures text stays inside */
  text-align: left;
}


.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(183, 75, 75, 0.3);
}

.project-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ff4c60;
}

.projects{
  padding: 50px 20px;
  background-color: transparent; /* dark theme */
  color: white;
}
.project-description {
  font-size: 1.6rem;
  line-height: 1.5;
  word-wrap: break-word;
  margin-bottom: 10px;
}

.banner.no-demo {
  background-color: #c96b6b;
  color: #000;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
}   

.project-links {
  margin-top: auto; /* push links to bottom if card heights vary */
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Optional: force exactly 3 columns on large screens */
@media (max-width: 767px) {
  .project-container {
    grid-template-columns: 1fr; /* stack vertically */
    gap: 2rem;
    max-width: 90%; /* some horizontal padding on mobile */
  }
}
.project-tech {
  font-style: italic;
  font-size: 1.5rem;
  color: #aaa;
  margin-bottom: 30px;
  margin:0
}

.project-links .btn {
  margin-right: 10px;
  background-color: #ff4c60;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 10x;
  transition:  0.3s;
}

.project-links .btn:hover {
  background-color: transparent;
}




/* ---------------- RESPONSIVE ------------------ */

@media (max-width: 1000px) {
  .home {
    gap: 4rem;
    flex-direction: column;
    margin: 5rem 4rem;
  }

  .home-content h3 {
    font-size: 2.5rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }

  .about-container {
    flex-direction: column;
  }
}
