/* Base styling */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
      Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-image: url("../images/projects.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #040404;
    line-height: 1.6;
  }

  body, html {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

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

/* .landing-section {
  display: flex;
  flex-direction: row;
} */


.skills-section, .project-section, .landing-section {
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px;
}

.about-me {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 60px 20px;
} 

.about-me p {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  padding-right: 1rem;
}


.skills-heading, .project-heading {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.skills-subheading, .project-subheading {
  margin-bottom: 40px;
}


.skills-icons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.skill-icon {
  height: auto;
  width: 80px;
}

.text-base {
  width: 900px;
}

.project-section {
  padding: 60px 0;
}

.project-container {
  margin: 0 auto;
  max-width: 1200px;
  text-align: center;
}

.project-header {
  margin-bottom: 40px;
}

.project-heading {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: rgba(0, 0, 0, 0.8);
}

.project-subheading {
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.7);
}

.project-grid {
  display: grid;
  grid-gap: 2rem;
  padding: 20px;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (max-width: 480px) {
  .contact-section {
    width: 100%;
    padding: 20px 15px;
    box-sizing: border-box;
  }

  .contact-form {
    gap: 10px;
  }

  .contact-button {
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  body {
    background-image: url("../images/projects.png") !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    width: 100% !important;
    min-height: 100vh !important;
  }
  .mobile-menu-button {
    display: flex;
    align-items: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 30;
  }
  
  .hidden {
    display: none;
  }
  
  .show {
    display: flex !important;
  }
  
  /* Adjust navigation container for mobile */
  nav .max-w-7xl {
    flex-direction: column;
    padding: 0rem 1rem;
  }
  
  nav .flex.justify-between {
    height: auto;
  }
  
  #mobile-menu-items {
    width: 100%;
    transition: all 0.3s ease;
  }
  
  #mobile-menu-items a {
    font-size: 1.2rem;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  body {
    background-image: url("../images/projects.png") !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    width: 100% !important;
    min-height: 100vh !important;
  }
}

@media (min-width: 992px) {
  .project-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 100%;
  
  /* Glassmorphism effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-details {
  padding: 10px 5px;
}

.project-details h2 {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
}

.project-details p {
  display: flex;
  text-align: start;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 10px;
}

.summary {
  display: flex;
  justify-content: flex-start;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.summary:hover {
  color: rgba(0, 0, 0, 0.9);
}

.project-links {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  padding: 5px;
  gap: 10px;
}

.project-links a {
  flex: 1;
  padding: 8px 15px;
  text-align: center;
  color: rgba(0, 0, 0, 0.8);
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.project-links a:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

#showMoreBtn {
  background: rgba(255, 255, 255, 0.25);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 10px 30px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  margin: 20px auto 40px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#showMoreBtn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: auto;
  margin-bottom: 25px;
  padding: 40px 30px;
  
  /* Glassmorphism effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: rgba(0, 0, 0, 0.8);
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: rgba(0, 0, 0, 0.7);
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}

.contact-form label {
  align-self: flex-start;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: -5px;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.8);
}

.contact-form textarea {
  min-height: 80px;
  height: 120px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.contact-button {
  background: rgba(255, 255, 255, 0.25);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 25px;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.contact-button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.success-message {
  margin-top: 15px;
  font-weight: 500;
}

.contact-form textarea {
  min-height: 80px; 
  height: 100px; 
  resize: vertical;
  width: 100%; 
  max-width: 100%; 
}

.btn-download {
  background: rgba(255, 255, 255, 0.25);
  color: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  justify-self: center;
  font-weight: 500;
  padding: 10px 20px;
  text-decoration: none;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

 .btn-download:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

 .btn-download:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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