/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    background-color: #eaf6f6;
    color: #40514e;
    margin: 0;
    text-align: center;
    font-family: "Merriweather", serif;
    font-size: 16px;
    line-height: 1.5;
  }

/* Glassmorphism Navbar Styles */
.navbar {
  position: sticky;
  top: 20px;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  background-color: rgba(174, 238, 238, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px; /* Decreased padding */
  z-index: 1000;
  border-radius: 30px; /* Decreased border radius */
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #11999e;
  font-size: 0.9rem; /* Decreased font size */
  font-weight: bold;
}

.navbar-logo img {
  width: 30px; /* Decreased logo size */
  height: 30px; /* Decreased logo size */
  border-radius: 50%;
  box-shadow: 0 0 0 3px #11999e; /* Decreased logo ring size */
  margin-right: 5px; /* Decreased margin */
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu li a {
  color: #11999e;
  text-decoration: none;
  padding: 5px 10px; /* Decreased padding */
  border-radius: 20px; /* Decreased border radius */
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 0.8rem; /* Decreased font size */
  font-weight: 700;
}

.navbar-menu li a:hover {
  background-color: rgba(17, 153, 158, 0.8);
  color: #ffffff;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  cursor: pointer;
  padding: 5px; /* Decreased padding */
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
}

.hamburger-menu .line {
  width: 20px; /* Decreased line width */
  height: 2px; /* Decreased line height */
  background-color: #11999e;
  margin: 4px; /* Decreased margin */
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .navbar-logo span {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px; /* Decreased top position */
    right: 15px; /* Decreased right position */
    width: auto;
    padding: 8px; /* Decreased padding */
    background-color: rgba(174, 238, 238, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 15px; /* Decreased border radius */
  }

  .navbar-menu li {
    margin: 3px 0; /* Decreased margin */
  }

  .hamburger-menu {
    display: block;
  }

  .navbar-menu.show {
    display: flex;
  }

  .hamburger-menu.active .line:nth-child(1) {
    transform: translateY(6px) rotate(45deg); /* Adjusted transformation */
  }

  .hamburger-menu.active .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg); /* Adjusted transformation */
  }
}

/* Stop sticky behavior when reaching the contact section */
#contact {
  position: relative;
}

#contact .navbar {
  position: absolute;
  top: auto;
  bottom: 100%;
}
  
  /* Typography */
  h1 {
    color: #66bfbf;
    font-size: 5.625rem;
    margin: 50px auto 0 auto;
    font-family: "Sacramento", cursive;
    padding-bottom: 10px;
  }
  
  h2 {
    color: #66bfbf;
    font-family: "Montserrat", sans-serif;
    font-size: 2.5rem;
    padding-bottom: 80px;
  }
  
  h3 {
    color: #11999e;
    font-family: "Montserrat", sans-serif;
  }
  
  p {
    line-height: 2;
  }
  
  /* Links */
  a {
    color: #11999e;
    font-family: "Montserrat", sans-serif;
    margin: 10px 20px;
    text-decoration: none;
  }
  
  a:hover {
    color: #eaf6f6;
  }
  
  .footer-link {
    color: #0d00ff77;
  }
  
  /* Buttons */
  .btn {
    border-radius: 8px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 500;
    padding: 14px 24px;
    background-color: #11999e;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
  }
  
  .btn:hover {
    background: #0e7c7f;
    border: solid #00ffff 1px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    text-decoration: none;
  }
  
  /* Layout */
  .top-container {
    background-color: #e4f9f5;
    position: relative;
    padding-top: 100px; /* Adjust this value as needed */
    padding-bottom: 100px; /* Add padding at the bottom */
    min-height: 100vh; /* Set the minimum height to 100% of the viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .middle-container {
    margin: 100px 0;
  }
  
  
  /* Sections */
  .skill-row {
    width: 50%;
    margin: 100px auto 100px auto;
    text-align: left;
    line-height: 2;
  }
  
  .intro {
    width: 30%;
    margin: auto;
  }
  
  /* Horizontal Rule */
  hr {
    border: dotted #63d3d3 6px;
    border-bottom: none;
    width: 5%;
    margin: 100px auto;
  }
  
  /* Copyright */
  .copyright {
    color: #eaf6f6;
    font-size: 0.75rem;
    padding: 20px 0;
  }
  
  /* Images */
  .top-cloud {
    position: absolute;
    right: 300px;
    top: 40px;
  }
  
  .bottom-cloud {
    position: absolute;
    left: 250px;
    bottom: 300px;
  }
  
  .first-skill {
    border-radius: 100%;
    width: 25%;
    float: left;
    margin-right: 30px;
  }
  
  .second-skill {
    border-radius: 50%;
    width: 40%;
    float: right;
    margin-left: 30px;
  }
  
  /* Loader Styles */
  .loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(229, 249, 245, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #40514e;
    font-family: "Merriweather", serif;
  }
  
  .spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(229, 249, 245, 0.7);
    border-radius: 50%;
    border-top-color: #66bfbf;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .quote-container {
    text-align: center;
    margin-top: 20px;
  }
  
  .quote {
    font-size: 20px;
    font-style: italic;
  }
  
  .author {
    font-size: 16px;
    margin-top: 10px;
  }
  
  /* Carousel Styles */
 .project-carousel {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 50px 0;
}

.project-cards-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 0 50px;
}

.project-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.btn-container {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px;
}

.project-card-btn {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #11999e;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.project-card-btn i {
  margin-right: 5px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 20px;
  max-width: 600px;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #11999e;
}
  /*Contact me*/

 .contact-container{
    height: 100;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    
    
 }
 .contact-left{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;

 }
 .contact-input{
    width: 400px;
    height: 50px;
    border: none;
    outline: none;
    padding-left: 25px;
    font-weight: 500;
    color: #666;
    background-color: #c0e1e1;
    border-radius: 50px;
 }
 .contact-left textarea{
    height: 140px;
    padding-top: 15px;
    border-radius: 20px;
 }
 .contact-input:focus{
    border: 2px solid rgb(17,153,158);
 }
.contact-input::placeholder{
    color: #a9a9a9;
}
.contact-left button{
    display: flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    color: #ffffff;
    gap: 10px;
    border: none;
    border-radius: 50px;
    background: #11999e;
    cursor: pointer;
}
.cursor-left button img{
    height: 15px;
}

.contact-right img{
    width: 500px;
    
}

/* Footer Styles */
.footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left,
.footer-middle,
.footer-right {
  flex-basis: 30%;
  padding: 0 20px;
}

.footer-left h3,
.footer-middle h4,
.footer-right h4 {
  margin-bottom: 20px;
}

.footer-middle ul {
  list-style: none;
  padding: 0;
}

.footer-middle ul li {
  margin-bottom: 10px;
}

.footer-middle ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-middle ul li a:hover {
  color: #66bfbf;
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #66bfbf;
}

.footer-bottom {
  background-color: #222;
  padding: 10px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}


  
  /* Mobile Responsive Styles */
  @media screen and (max-width: 768px) {
    /* Remove clouds and mountain images on mobile */
    .top-cloud,
    .bottom-cloud,
    .top-container img:last-child {
      display: none;
    }
    .top-container {
      padding-top: 50px; /* Reduce padding-top for better spacing */
      padding-bottom: 50px; /* Reduce padding-bottom for better spacing */
      min-height: calc(100vh - 50px); /* Subtract the padding values from the minimum height */
    }
  
    /* Adjust font sizes and layout */
    h1 {
      font-size: 3rem;
    }
  
    h2 {
      font-size: 2rem;
    }
  
    .skill-row,
    .contact-me {
      width: 80%;
    }
  
    /* Make images and elements responsive */
    .first-skill,
    .second-skill {
      width: 50%;
      float: none;
      margin: 0 auto 20px;
      display: block;
    }
  
    .project-card {
      flex: 0 0 80%;
      margin: 0 auto 20px;
    }
  
    /* Adjust padding and margins */
    .top-container {
      padding-top: 50px;
    }
  
    .middle-container {
      padding: 20px;
    }

    .contact-input{
        width: 80vw;
    }
    .contact-right{
        display: none;
    }

    .footer-container {
      flex-direction: column;
      align-items: center;
    }
  
    .footer-left,
    .footer-middle,
    .footer-right {
      flex-basis: 100%;
      margin-bottom: 30px;
      text-align: center;
    }
  
    .footer-middle ul li {
      display: inline-block;
      margin: 0 10px;
    }

  }
