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

html{
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  line-height: 1.6;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  margin: 0;
  padding: 0;
}

body.no-scroll {
  overflow: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; 
  background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgb(135, 7, 7) 100%);
}

header {
  background-color: #111;
  padding: 1em 2em;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#tennisObj {
  margin-top: 10px;
  width: 7%;
  height: auto;
} 

/* Swing Animation */
@keyframes swing {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-20deg); }
  40% { transform: rotate(15deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

#tennisObj.swing {
  animation: swing 0.8s ease-in-out;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1em;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: red;
}

/* Hamburger Nav - For Mobile */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 5px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 5px;
  transition: transform 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Home Page */

#home {
  position: relative;
  /* display: flex;
  justify-content: center;
  align-items: center; */
  color: #fff;
  height: 100vh; 
  padding: 0; 
  text-align: center;
}

#home h1 {
  font-size: 10vw; 
  transform: scale(2);
  opacity: 0;
  transition: transform 2s ease-out, opacity 2s ease-out; 
  text-align: center;
}

/* Text that changes after animation */
#home.loaded h1 {
  transform: scale(1); 
  opacity: 1; 
}

#fade-in-effect{
  font-size: 6rem !important;
}

#name{
  font-size: 4.5rem !important;
}

/* Background animation */
@keyframes fadeInBackground {
  0% {
    background-color: #ff0000; 
  }
}

#home.loaded {
  animation: fadeInBackground 2s ease-in-out forwards;
}

.projects-arrow-container {
  text-align: center;
  margin-top: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 1.5s infinite;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.arrow-svg {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.projects-arrow-container:hover .arrow-svg {
  transform: scale(1.2);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}



/* Sections */

.projects-section, .about-section, .contact-section {
  padding: 4em 2em;
  text-align: center;
}

.about-section p{
  padding-bottom: 20px;
  font-size: 20px;
}

.home-content {
  position: absolute; 
  top: 40%;
  left: 50%; 
  transform: translate(-50%, -50%); 
}

.home-content p {
  max-width: 600px;
  font-size: 1.2em;
}

.home-content img {
  max-width: 25%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.home-content img:hover {
  transform: scale(1.05);
}

.project-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  margin-top: 2em;
}

.projects-section h2, .about-section h2, .contact-section h2{
  font-size: 40px;
}

.about-cards{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column; 
  justify-content: space-between;
  width: 340px; 
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  background-color: #222;
  padding: 20px;
  position: relative;
}

.cardAbout {
  background-color: #222;
  padding: 2em;
  border-radius: 15px;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  margin-left: 20px;
  margin-top: 20px;
}

.cardAbout h3 {
  font-size: 1.8em;
  color: #f8ede5;
}

.cardAbout p{
  padding-top: 20px;
}

.projectP{
  padding: 20px;
  font-size: 20px;
}

.projectImg{
  width: 100%;
  height: 100%;
}

.card img {
  width: 100%; 
  display: block; 
  margin: 0 auto; 
  border-radius: 8px;
}

.cardAbout img {
  width: 50px;
  height: 50px;
  margin: 10px;
  transition: transform 0.3s ease;
}

.svg-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0; 
}

.svg-row img {
  width: 70px;
  height: 70px;
  margin: 0; 
  padding: 0; 
}

.content {
  display: flex;
  justify-content: flex-end; 
  margin-top: auto; 
}

.content p {
  margin: 0; 
  font-size: 18px; 
}

.content button {
  background-color: #ff0000;
  color: #ffffff; 
  border: none; 
  border-radius: 6px; 
  padding: 6px 12px;
  font-size: 14px; 
  font-weight: 500; 
  cursor: pointer; 
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); 
  transition: all 0.3s ease;
}

.content button:hover {
  background-color: #cc0000; 
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.15); 
  transform: translateY(-2px); 
}

.content button:active {
  background-color: #990000; 
  transform: translateY(0); 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.cardAbout img:hover {
  transform: scale(1.1);
}

.card:hover {
  transform: translateY(-10px);
  transition: transform 0.4s ease;
  border: 1px solid #ff0000;
}

.cardAbout:hover {
  transform: translateY(-10px);
  background-color: #333;
}

.cardAbout button {
  background-color: red;
  color: #fff;
  padding: 0.8em 1.5em;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto;
  width: 100%;
}

.cardAbout button:hover {
  background-color: #fff;
  color: red;
  transform: translateY(-3px);
}

.cardAbout button:active {
  transform: translateY(1px);
}

/* Resume Download Button */
.download-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: red;
  color: white; 
  text-align: center;
  text-decoration: none;
  border-radius: 10px; 
  font-size: 16px;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.download-btn:hover {
  background-color: #fff;
  color: red;
  transform: translateY(-3px);
}

.download-btn:active {
  transform: translateY(1px);
}

/* Popup/Model Styling */

.popup, .modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center; 
  padding: 2em 1em; 
  overflow-y: auto;
}

.popup-content, .modal-content {
  position: fixed; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  background-color: #181818;
  color: #e0e0e0;
  width: 80%;
  max-width: 500px;
  max-height: 700px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  text-align: left;
  z-index: 1000; 
  overflow-y: auto; 
}

.popup-content h3, .modal-content h3 {
  font-size: 22px;
  margin-top: 15px;
  color: #ff3b3b;
  border-bottom: 2px solid rgba(255, 59, 59, 0.5);
  padding-bottom: 5px;
}

.popup-overlay {
  position: fixed;  
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); 
  z-index: 999;
  display: none;
}

.popup-content .close, .close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #f8ede5;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.popup-content .close:hover, .close:hover {
  color: #ff6b6b;
}

.modal-content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin-top: 10px;
  list-style: none;
}

.modal-content ul li {
  background: #ff3b3b;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  display: inline-block;
  transition: background 0.3s ease;
}

.modal-content ul li:hover {
  background: #ff6b6b;
}

#visit-site-btn {
  /* display: block; */
  display: none;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background-color: #ff3b3b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#visit-site-btn:hover {
  background-color: #ff6b6b;
  transform: translateY(-2px);
}


/* Contact Page */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 400px;
  margin: 0 auto;
  padding-top: 20px;
  height: 100vh;
}

.contact-form input, .contact-form textarea, .contact-form button {
  padding: 0.8em;
  border: none;
  border-radius: 5px;
}

.contact-form input, .contact-form textarea {
  background-color: #222;
  color: #fff;
}

.contact-form textarea{
  height: 50vh;
}

.contact-form button {
  background-color: red;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #fff;
  color: red;
}

footer {
  background-color: #111;
  text-align: center;
  padding: 1em 0;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  body {
    line-height: 1.6;
    background-image: url("/assets/imgs/mobile.jpg");
    background-size: cover;
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    margin: 0;
    padding: 0;
  }

  header {
    flex-direction: row;
  }

  #tennisObj {
    margin-top: 10px;
    width: 10vw;
    height: auto;
  } 

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1em;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #111;
    padding: 1em 2em;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  }

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

  .nav-links {
    flex-direction: column;
    gap: 0.5em;
    align-items: flex-start;
  }

  #home.loaded h1 {
    transform: scale(1); 
    opacity: 1; 
  }

  #fade-in-effect{
    font-size: 3rem !important;
  }
  
  #name{
    font-size: 2rem !important;
  }

  .project-cards .card, .about-cards .card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  body {
    line-height: 1.6;
    background-image: url("/assets/imgs/mobile.jpg");
    background-size: cover;
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    margin: 0;
    padding: 0;
  }

  #tennisObj {
    margin-top: 10px;
    width: 15vw;
    height: auto;
  }

  .home-content h1 {
    font-size: 4em;
  }

  .home-content p {
    font-size: 1em;
  }

  .contact-form input, .contact-form textarea {
    font-size: 1em;
  }

  .contact-form button {
    padding: 0.6em;
  }

  header {
    flex-direction: row;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1em;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #111;
    padding: 1em 2em;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  }

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

  #home.loaded h1 {
    transform: scale(1); 
    font-size: 3rem;
    opacity: 1; 
  }
}
