* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: disc;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

:root {
  --background: rgb(24, 24, 24);
  --second-background: rgb(21, 21, 21);
  --gradient: linear-gradient(to right, #fe8ee9, #52d7ce);
}

body {
  min-height: 100vh;
  max-width: 1400px;
  margin: auto;
  background-color: var(--background);
  color: white;
}

.btn {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 1em 3em;
  /* Makes button larger */
  font-size: 1.2rem;
  /* Larger text */
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* ===================== NAVIGATION ===================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* ensures full width alignment */

  width: 100%;
  padding: 2em 8%;
  /* match your section padding */

  display: flex;
  align-items: center;
  justify-content: space-between;

  background-color: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 2em;
  font-weight: 800;
  color: white;
  opacity: 0.8;
  transition: 0.2s ease-in-out;
}

nav .logo:hover {
  opacity: 1;
}

nav .links {
  display: flex;
  align-items: center;
  gap: 3em;
}

nav .links a {
  color: white;
  opacity: 0.7;
  transition: 0.2s;
}

nav .links a:hover {
  opacity: 1;
}

nav .btn {
  display: inline-block;
  padding: 0.5em 1.2em;
  border: 1px solid white;
  border-radius: 0.5em;
  font-size: 1.1em;
  font-weight: 500;
  letter-spacing: 2px;
  background-color: transparent;
  /* Explicitly set */
  color: white;
  /* White text initially */
  cursor: pointer;
  transition: 0.3s;
}

nav .btn:hover {
  background-color: white;
  /* White background */
  color: black;
  /* 🔁 Set text to black when hovered */
}


span {
  background: var(--gradient);
  background-clip: text;
  color: transparent;
}

/* ===================== HOME SECTION ===================== */

p {
  font-size: 1.05rem;
  line-height: 1.7;
}

section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: auto;
  animation: fadeIn 0.8s ease-in-out;
  scroll-margin-top: 120px;

}

#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2em;
  text-align: center;
  color: white;
  padding-bottom: 40px;
}

#home img {
  width: 180px;
  border-radius: 50%;
  margin-top: 3em;
}

.info-box {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.info-box h1 {
  font-size: 3em;
}

.info-box h3 {
  font-size: 1.5em;
  font-weight: 500;
  background: linear-gradient(90deg, #fe8ee9, #52d7ce);
}

.info-box p {
  opacity: 0.8;
}

.btn-box {
  display: flex;
  gap: 1.5em;
  margin-top: 1em;
}

.btn-box .btn {
  padding: 0.5em 1.2em;
}

.btn-box .btn:nth-of-type(2):hover {
  background-color: white;
  color: var(--background);
}

.btn-box .btn:nth-of-type(2):hover {
  background-color: var(--background);
  color: white;
}

/* ===================== ABOUT SECTION ===================== */
#about {
  background-color: var(--second-background);
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  align-items: center;
  justify-content: center;
  /* ← changed from space-between */
  padding-top: 40px;
  padding-bottom: 60px;
  text-align: center;
}

#about .header {
  margin-bottom: 20px;
}

#about p {
  margin-top: 10px;
}

.header {
  width: 100%;
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 2em;
  background: linear-gradient(90deg, #fe8ee9, #52d7ce);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#about img {
  width: 250px;
  border-radius: 1em;
  margin: 0 auto;
  display: block;
}

.about-box {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-box h1 {
  font-size: 3rem;
}

.about-box h3 {
  margin: 1em 0 0.5em;
  font-size: 1.8em;
  font-weight: 600;
}

.about-box p {
  opacity: 0.85;
  line-height: 1.6;
}


.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.skill-box {
  background: #1c1c1c;
  padding: 15px 20px 25px;
  border-radius: 12px;
  text-align: center;
}

.skill-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #8be9fd;
}

.skill-box ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.internship-list {
  text-align: left;
  /* 🔥 aligns properly */
  max-width: 600px;
  margin: 20px auto;
  /* center block */
  padding-left: 20px;
  /* space for bullets */
}

.internship-list li {
  margin-bottom: 14px;
  line-height: 1.7;
  transition: 0.3s;
}

.internship-list li::marker {
  color: #8be9fd;
  font-size: 1.2em;
}

.internship-list strong {
  color: #8be9fd;
  font-weight: 600;
}

.internship-list li:hover {
  transform: translateX(5px);
  color: #ffffff;
}

.skills ul,
.internships ul {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.skills ul li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
}

.skills ul li span,
.internships ul li span {
  display: flex;
  align-items: left;
  gap: 0.5em;
  transition: 0.3s ease-in-out;
}

.courses-certifications ul {
  width: fit-content;
  margin: 0 auto;
  padding-left: 20px;
  text-align: left;
}

.courses-certifications li {
  margin-bottom: 8px;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 5px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

/* ===================== PROJECT SECTION ===================== */
#projects {
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  align-items: center;
  justify-content: center;
  /* ← changed from space-between */
  background-color: var(--second-background);
  padding: 50px 8%;
  /* 🔥 reduced spacing */
  text-align: center;
}

#projects .header {
  margin-bottom: 20px;
}

.projects-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 350px;
  margin: auto;
  background-color: #1c1c1c;
  padding: 20px;
  gap: 20px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card {
  width: 100%;
  max-width: 340px;
  min-height: auto;

  background: #1c1c1c;
  border-radius: 15px;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.project-card .btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  margin-top: auto;
  background: linear-gradient(90deg, #fe8ee9, #52d7ce);
  color: rgb(0, 0, 0);
  border: none;
  cursor: pointer;
  transition: 0.3s ease;

}

.project-card .btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}


.project-card::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(82, 215, 206, 0.2), transparent);
  transform: rotate(25deg);
  top: -100%;
  left: -100%;
  transition: 0.5s;
}

.project-card:hover::before {
  top: 100%;
  left: 100%;
}

g .project-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-card {
  padding: 25px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(82, 215, 206, 0.2);
}

.project-title {
  font-size: 1.5rem;
  color: #8be9fd;
  margin-bottom: 10px;
}

.project-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.project-link {
  color: #ff79c6;
  font-weight: bold;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.project-image {
  display: block;
  max-width: 300px;
  /* 🔥 controls size */
  width: 100%;
  height: auto;
  /* keeps original ratio */
  margin: 15px auto;
  /* centers image */
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.project-card .project-image {
  height: 200px;
  object-fit: contain;
  /* 🔥 keeps proportions */
  background: #111;
  padding: 10px;
}

.project-card:hover .project-image {
  transform: scale(1.03);
}

/* ===================== CONTACT SECTION ===================== */

#contact {
  background-color: var(--second-background);
  display: flex;
  padding-top: 40px;
  padding-bottom: 60px;
  flex-wrap: wrap;
  gap: 3em;
  align-items: center;
  justify-content: center;
  padding: 40px 8%;
  text-align: center;
}


#contact .header {
  margin-bottom: 5px;
  font-size: 3em;
}

#contact .input-box span {
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;

  background: linear-gradient(90deg, #fe8ee9, #52d7ce);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 500;
}

.input-box input {
  padding: 0.5em 1em;
}


.contact-box {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-top: 10px;
}

.contact-left {
  flex: 1;
}

.contact-right {
  flex: 1;
}

.contact-left .btn {
  display: block;
  margin: 20px auto;
  /* centers horizontally */
  text-align: center;
}

.contact-tagline {
  font-size: 1.2rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.contact-points {
  margin-bottom: 20px;
  line-height: 1.8;
  list-style: none;
  padding-left: 0;
}

.contact-points li {
  list-style: none;
}

.contact-right form {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.contact-right form .btn {
  display: block;
  margin: 20px auto;
  /* centers horizontally */
}

textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  resize: none;
  height: 120px;
}

.contact-info a {
  background: linear-gradient(90deg, #fe8ee9, #52d7ce);
  -webkit-background-clip: text;
  /* for Chrome, Edge */
  background-clip: text;
  /* standard */

  -webkit-text-fill-color: transparent;
  /* REQUIRED */
  text-decoration: none;
  font-weight: 500;
}

.contact-info a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -3px;
  background: #52d7ce;
  transition: 0.3s;
}

.contact-info a:hover::after {
  width: 100%;
}

.contact-info a:hover {
  opacity: 0.7;
}

.contact-info p {
  margin: 5px 0;
}

form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1em;
  width: 100%;
  max-width: 500px;
}

form .input-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.input-box {
  margin-bottom: 15px;
  /* space between fields */
}

form input {
  font-size: 1.3em;
  width: 100%;
  padding: 12px;
  border-radius: 0.5em;
  border: none;
  outline: none;
}

form input:focus {
  background: rgb(229, 229, 229);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10em;
  bottom: 0;
  background-color: var(--background);
  width: 100%;
  padding: 5em 15%;
}

.col-left {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.col-box {
  display: flex;
  align-items: center;
  gap: 1em;
}

.col-box i {
  font-size: 2em;
}

.col-box span {
  font-size: 1.2em;
}

.share-container {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
}

.share-trigger {
  font-size: 18px;
  cursor: pointer;
  font-weight: 500;
  background: linear-gradient(90deg, #d946ef, #0ea5e9);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-menu {
  display: none;
  position: absolute;
  top: 120%;
  /* ⬅ appears just below the icon */
  left: 0;
  /* ⬅ aligned to the left of the icon */
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  /* transparent glassy look */
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  z-index: 100;
}

.share-menu a {
  display: block;
  margin: 6px 0;
  font-size: 14px;
  background: linear-gradient(90deg, #d946ef, #0ea5e9);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.share-menu a:hover {
  opacity: 0.7;
}


.col-right {
  display: flex;
  flex-direction: column;
  gap: 1em;
  color: white;
  max-width: 500px;
}

.col-right span {
  font-size: 1.3em;
}

.col-right .social-icons {
  display: flex;
  align-items: baseline;
  justify-content: left;
  gap: 1em;
}

.col-right .social-icons i {
  font-size: 2em;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

.social-icons i:hover {
  color: white;
}

.input-box span {
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
  /* better than inline-block */
  color: #ccc;
}

.input-box input,
textarea {
  margin-top: 4px;
}

form {
  gap: 1em;
}

@media(max-width:968px) {

  section {
    padding: 8em 15%;
  }

  nav .btn {
    display: none;
  }

  #menu {
    display: block;
  }

  .links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1em 3em;
    color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: rgba(0, 0, 0, 9);
    display: none;

  }

  .links a {
    margin: 2em 0;
    display: block;
    font-size: 1.5em;
    color: white;

  }

  .links.active {
    display: block;
  }

  #progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, #fe8ee9, #52d7ce);
    width: 0%;
    z-index: 9999;
  }

  #home h1 {
    font-size: 4em;
  }

  #home h3 {
    font-size: 2em;
  }

  #home img {
    width: 24vw;
    animation: float 4s ease-in-out infinite;
  }

  @keyframes float {
    0% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-10px);
    }

    100% {
      transform: translateY(0);
    }
  }

  #about {
    flex-direction: column;
  }

  #about img {
    width: 32vw;
  }

  #about h1 {
    font-size: 1em
  }

  #about ul {
    font-size: 1em;
  }
}

@media(max-width:768px) {
  #home h1 {
    font-size: 2.5em;
  }

  #home h3 {
    font-size: 1.5em;
  }

  #home img {
    width: 32vw;
  }

  #about .skills {
    gap: 3em;
  }

  #projects .header {
    font-size: 3em;
  }


  footer {
    flex-direction: column;
    gap: 5em;
    align-items: baseline;
  }
}

@media (max-width: 900px) {
  .projects-wrapper {
    grid-template-columns: 1fr;
    /* stack on mobile */
  }
}

@media (max-width:1000px) {
  .projects-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media(max-width:768px) {

  .contact-box {
    flex-direction: column;
    gap: 40px;
  }

}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#typing-text {
  font-size: 1.5em;
  margin-top: 10px;
  background: linear-gradient(90deg, #fe8ee9, #52d7ce);

  -webkit-background-clip: text;
  /* for Chrome, Edge */
  background-clip: text;
  /* standard */

  -webkit-text-fill-color: transparent;
  /* REQUIRED */
  color: transparent;
}

.cursor {
  display: inline-block;
  margin-left: 3px;
  animation: blink 0.7s infinite;
  color: white;
}

@media (max-width: 600px) {
  #home img {
    width: 120px;
  }

  .info-box h1 {
    font-size: 2rem;
  }

  #typing-text {
    font-size: 1.2rem;
  }
}

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

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#menu {
  display: none;
  font-size: 2em;
  cursor: pointer;
  color: white;
}

@media (max-width: 968px) {
  #menu {
    display: block;
  }

  nav .links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    text-align: center;
    display: none;
  }

  nav .links.active {
    display: flex;
  }

  nav .links a {
    padding: 1em;
    font-size: 1.2em;
  }
}

@media (max-width: 600px) {
  .btn-box {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}