/* Reset and Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", Arial, sans-serif;
  background-color: #161515;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

canvas#starCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.navbar,
#home,
#about,
#tech-stack,
#projects,
#contact,
footer {
  position: relative;
  z-index: 1;
}

/* Font Aesthetics */
h1.logo,
.sub-head,
.typing h2 {
  font-family: "Orbitron", sans-serif;
}

/* Animations */
@keyframes glow {
  0% {
    text-shadow: 0 0 5px #f32170;
  }
  50% {
    text-shadow: 0 0 20px #f32170;
  }
  100% {
    text-shadow: 0 0 5px #f32170;
  }
}

.typing {
  animation: typing 2s steps(40), cursor 0.4s step-end infinite alternate,
    glow 2s ease-in-out infinite;
}

.a:hover,
.navbar .connect-btn:hover,
#contact .contact-form button:hover {
  box-shadow: 0 0 15px #f32170;
  transform: translateY(-2px);
}

.navbar ul li:hover {
  border-bottom: 2px solid #f32170;
  text-shadow: 0 0 8px #f32170;
}

.project-card:hover,
.front-stack:hover,
.back-stack:hover {
  box-shadow: 0 0 15px #f32170;
}

.contact-details .icon {
  text-shadow: 0 0 8px #f32170;
}

footer p {
  animation: glow 3s infinite;
}

/* Modal Styling */
#cvModal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

#cvModal .modal-cv {
  min-height: 100;
  background-color: #222;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #f32170;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

#cvModal input {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #f32170;
  border-radius: 5px;
  background-color: #161515;
  color: #fff;
}

#cvModal button {
  background-color: #f32170;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .navbar ul {
    flex-direction: column;
    background-color: #161515;
    position: absolute;
    top: 80px;
    right: 0;
    display: none;
    width: 100%;
    text-align: center;
  }

  .navbar ul li {
    margin: 10px 0;
  }

  .navbar .menu-toggle {
    display: block;
    cursor: pointer;
    color: #f32170;
    font-size: 24px;
  }

  .home-btn {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .project-carousel {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 90%;
    margin-bottom: 20px;
  }

  #contact {
    flex-direction: column;
  }

  #contact .info,
  #contact .contact-form form {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .navbar .logo {
    font-size: 24px;
  }

  #home h2 {
    font-size: 32px;
  }

  #home p {
    font-size: 16px;
  }

  .sub-head {
    font-size: 20px;
  }
} /* Keep the rest of the original CSS */

/* Reset and Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", Arial, sans-serif;
  background-color: #161515;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

canvas#starCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.navbar,
#home,
#about,
#tech-stack,
#projects,
#contact,
footer {
  position: relative;
  z-index: 1;
}

/* Font Aesthetics */
h1.logo,
.sub-head,
.typing h2 {
  font-family: "Orbitron", sans-serif;
}

/* Animations */
@keyframes glow {
  0% {
    text-shadow: 0 0 5px #f32170;
  }
  50% {
    text-shadow: 0 0 20px #f32170;
  }
  100% {
    text-shadow: 0 0 5px #f32170;
  }
}

.typing {
  animation: typing 2s steps(40), cursor 0.4s step-end infinite alternate,
    glow 2s ease-in-out infinite;
}

/* Buttons Hover Glow */
.a:hover,
.navbar .connect-btn:hover,
#contact .contact-form button:hover {
  box-shadow: 0 0 15px #f32170;
  transform: translateY(-2px);
}

/* Hover effect for navbar links */
.navbar ul li:hover {
  border-bottom: 2px solid #f32170;
  text-shadow: 0 0 8px #f32170;
}

/* Card Floating on Hover */
.project-card:hover,
.front-stack:hover,
.back-stack:hover {
  box-shadow: 0 0 15px #f32170;
}

/* Font Awesome Icon Glow */
.contact-details .icon {
  text-shadow: 0 0 8px #f32170;
}

/* Glowing Footer Text */
footer p {
  animation: glow 3s infinite;
}

/* Use existing styles */
/* ...all your previous CSS code remains intact below this line ... */

/* Reset and Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #161515;
  color: #fff;
}
a {
  color: #fff;
  text-decoration: none;
}

/* Navbar */
.navbar {
  background-color: #161515;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: sticky;
  top: 0;
}
.navbar span {
  color: #fff;
}

/* Logo */
.navbar .logo {
  font-size: 32px;
  color: #f32170;
}

/* Navbar Links */
.navbar ul {
  list-style-type: none;
  display: flex;
}

.navbar ul li {
  margin-left: 20px;
  padding: 5px 15px;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s ease;
}

.navbar ul li:hover {
  border-bottom: 2px solid #f32170;
}

/* Link Styles */
.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s ease;
}

/* Connect Button */
.navbar .connect-btn {
  background-color: #f32170;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-right: 20px;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

/* Isolated Hover Effect for Connect Button */
.navbar .connect-btn:hover {
  border: 1px solid #f32170;
  background-color: #161515;
}

/* Remove conflicting hover effect on other navbar elements */
.navbar a:hover {
  color: #f32170; /* Color change only without affecting other buttons */
}
.home-btn {
  margin-top: 50px;
  width: 350px;
  display: flex;
  justify-content: space-between;
}

.a {
  margin-top: 10px;
  color: #fff;
  width: 150px;
  border: 2px solid #f32170;
  border-radius: 20px;
  padding: 0px 20px;
  text-decoration: none;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  background-color: #161515;
  transition: color 0.3s ease;
}
.a:hover {
  background-color: #f32170;
  color: #161515;
}

.typingCon {
  display: inline-block;
}

.typing {
  font-family: "Courier New", Courier, monospace;
  border-right: 5px solid;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 2s steps(40), cursor 0.4s step-end infinite alternate;
}

@keyframes cursor {
  0% {
    border-color: transparent;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
}

/* Hero Section */

#home {
  width: 70%;
  margin-left: 15%;
  background-color: #161515;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#home h2 span {
  color: #f32170;
}
#home h2 {
  margin-top: 100px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 50px;
  color: #fff;
}

#home p {
  margin-top: 30px;
  font-size: 22px;
  color: #fff;
}

/* About Section */
#about {
  width: 70%;
  margin-left: 15%;
  background-color: #161515;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 70px; /* Add padding equal to your navbar height */
  margin-top: 80px; /* Optional, if you want to add a little more space between the navbar and About section */
}

.sub-head {
  margin: 40px 0px;
  font-size: 25px;
  font-style: italic;
  color: #f32170;
  text-align: center;
}

.about-content {
  margin-top: 20px;
  font-size: 18px;
  color: #fff;
  display: flex;
}

.about-content .about-img img {
  width: 200px;
  border-radius: 20px;
  object-fit: cover;
}

.about-content .about-img {
  margin-right: 20px;
  border: 2px dotted #f32170;
  padding: 10px;
  border-radius: 20px;
}

/* Tech Stack Section */
#tech-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 70px;
  margin-top: 80px;
}

#tech-stack .stack-cards {
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

/* 3D Container for the Flip Effect */
.tech-card {
  width: 300px;
  height: 400px;
  position: relative;
  perspective: 1000px;
  cursor: pointer;
}

/* Common styles for both faces of the card */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  backface-visibility: hidden;
  border: 3px solid #f32170;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Styling for the front of the card */
.card-front {
  background-color: rgba(0, 0, 0, 0.2); /* 70% transparent white */
  backdrop-filter: blur(5px);
  color: #f32170;
}

.card-front i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.card-front h3 {
  font-size: 2rem;
  margin: 0;
}

/* Styling for the back of the card */
.card-back {
  background-color: #343a40;
  color: #fff;
  transform: rotateY(180deg);
  justify-content: flex-start;
}

.card-back h4 {
  color: #f32170;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.card-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.card-back li {
  padding: 0.2rem 0;
}

/* The flip trigger on hover */
.tech-card:hover .card-front {
  transform: rotateY(180deg);
}

.tech-card:hover .card-back {
  transform: rotateY(0deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .stack-cards {
    flex-direction: column;
    align-items: center;
  }
}
/* Projects Section Styling */
.timeline-section {
  padding: 80px 0;
  position: relative;
}

/* Timeline container */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* The vertical line */
.timeline::after {
  content: "";
  position: absolute;
  width: 3px;
  background-color: #f32170;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: 1;
}

/* Individual timeline item */
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  left: 50%; /* Center the item initially */
  margin-left: -25%; /* Pull it back to the left side of the line */
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: scale(1.05);
}

/* Timeline dot */
.timeline-item::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: #f32170;
  border: 4px solid #fff;
  top: 15px;
  border-radius: 50%;
  z-index: 2;
}

/* Alternating sides for the items */
.timeline-item:nth-child(odd) {
  left: 0;
  margin-left: 0;
}

.timeline-item:nth-child(odd)::after {
  left: calc(100% + 20px);
  right: auto;
}

.timeline-content {
  padding: 20px 30px;
  background-color: #f32170;
  position: relative;
  border-radius: 6px;
  border: 2px solid #f32170;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-preview img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 10px;
}

/* Modal styling */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
}

.modal-content {
  background-color: #f32172ce;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  min-height: 500px;
  max-width: 800px;
  position: relative;
}

.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 15px;
  }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    width: 100%;
    padding-left: 50px;
    margin-left: 0;
  }
  .timeline-item::after,
  .timeline-item:nth-child(odd)::after {
    left: 15px;
    right: auto;
  }
  .modal-content {
    max-width: 50%;
    margin-left: 100px;
  }
}
/* Contact Section */
#contact {
  z-index: 5000;
  width: 70%;
  margin: 0 auto;
  padding: 40px 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

#contact .sub-head {
  font-size: 25px;
  font-style: italic;
  color: #f32170;
  margin-bottom: 20px;
}

#contact .info {
  width: 50%;
  font-size: 18px;
  color: #fff;
  margin-bottom: 30px;
}

#contact .info h3 {
  color: #f32170;
  font-size: 24px;
  margin-bottom: 10px;
}

#contact .contact-form form {
  width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact .contact-form input,
#contact .contact-form textarea {
  width: 80%;
  padding: 10px;
  margin-bottom: 15px;
  border: 2px solid #f32170;
  border-radius: 5px;
  background-color: #161515;
  color: #fff;
  font-size: 16px;
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
  outline: none;
  border-color: #ff6b08;
}

#contact .contact-form button {
  padding: 10px 20px;
  background-color: #f32170;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#contact .contact-form button:hover {
  background-color: #ff6b08;
}
/* Contact Details List */
.contact-details {
  list-style-type: none;
  padding: 0;
  font-size: 18px;
  color: #fff;
}

.contact-details li {
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.contact-details .icon {
  color: #f32170;
  font-size: 20px;
  margin-right: 10px;
}

/* Example Icons with Font Awesome */
.location-icon::before {
  content: "\f124"; /* Font Awesome unicode for map marker icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.mail-icon::before {
  content: "\f0e0"; /* Font Awesome unicode for envelope icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.phone-icon::before {
  content: "\f095"; /* Font Awesome unicode for phone icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* Footer */
footer {
  background-color: #161515;
  padding: 20px;
  text-align: center;
  color: #fff;
}

footer p {
  font-size: 14px;
  color: #fff;
}

footer a {
  color: #f32170;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: #ff6b08;
}
