/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #1fb5c2;
  color: #ffffff;
}

header .logo img {
  height: 100px;
  padding-top: 10px;
}


/* Desktop Nav */

a, .btn {
  transition: all 300ms ease;
}


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

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
  margin-left: 450px;
}

a {
  color: whitesmoke;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}


.logo:hover {
  cursor: default;
}

/* Hamburger Menu */

#hamburger-nav {
  display: none;
  position: relative;
}
 .hamburger-menu {
  position: relative;
  display: inline-block;
 }

 .hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
 }

 .hamburger-icon span {
width: 100%;
height: 2px;
background-color: black;
transition: all 0.3 ease-in-out;
 }

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  list-style: none;
}

.menu-links.open {
  min-height: 300px;
}

.hamburger-icon.open span:first-child {
transform: rotate(45deg) translate(10px, 5px);
}

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

  .hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
    }

    .hamburger-icon span:first-child {
      transform: none;
    }
    .hamburger-icon span:first-child {
      opacity: 1;
    }
    .hamburger-icon span:first-child {
      transform: none;
    }

    @media screen and (max-width: 1200px) {
      #desktop-nav {
        display: none;
      }
      #hamburger-nav {
        display: flex;
      }
      .hamburger-icon{
        position:absolute;
        /* right: 50%; */
        
      }

      .menu-links{
        position: absolute;
        top:50px;
        
        left: 30%;
        width: fit-content;
      }

      .logo{
        width:150px;
        /* margin: 30px; */
      }

    }



.nav-links .sign-up {
  background-color: whitesmoke;
  padding: 8px 16px;
  border-radius: 4px;
  color: #1fb5c2;
}

/* Hero Section Styles */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
  background: url('img/collab.jpg') no-repeat center center/cover;
  color: #ffffff;
  text-align: left;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.cta-button {
  background-color: #1fb5c2;
  color: whitesmoke;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

/* Third Section (Features) */
.features {
  padding: 60px 40px;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
}

.feature-card {
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

.feature-card img {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 24px;
  color: #1B5E20;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 16px;
  color: #555;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #1fb5c2;
  color: #ffffff;
  padding: 10px;
  border-radius: 50%;
  text-align: center;
  font-size: 18px;
  display: none; /* Hidden initially */
}

.back-to-top:hover {
  background-color: whitesmoke;
  color: #1B5E20;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links ul {
      display: none;
  }
  .hamburger {
      display: block;
  }

  .hero-content h1 {
      font-size: 36px;
  }

  .feature-card {
      max-width: 90%;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
      font-size: 28px;
  }
}

/* Features Section Styles */
.features-section {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background-color: #ffffff;
}

.features-container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  justify-content: space-around;
}

.feature-box {
  background-color: #f4f4f4;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1;
  max-width: 300px;
}

.feature-box i {
  font-size: 40px;
  color: #1fb5c2;
  margin-bottom: 15px;
}

.feature-box h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 16px;
  color: #777;
}

/* Responsive Design for Features Section */
@media (max-width: 768px) {
  .features-container {
      flex-direction: column;
      align-items: center;
  }

  .feature-box {
      max-width: 90%;
      margin-bottom: 20px;
  }
}


:root {
  --primary-color: #149e9e;
  --secondary-color: #e8e8e8;
  --text-dark: #0f172a;
  --text-light: #94a3b8;
  --white: #ffffff;
}
.section__container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
  text-align: center;
}

.section__container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.section__container h1 {
  position: relative;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.section__container h1::after {
  position: absolute;
  content: "";
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 2px;
  width: 5rem;
  background-color: var(--primary-color);
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.section__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 2rem 2rem;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.section__card::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 75%;
  aspect-ratio: 1;
  border-radius: 100%;
  background-color: var(--primary-color);
  z-index: -1;
  transition: 0.5s;
}

.section__card span {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem;
  font-size: 3rem;
  color: var(--white);
}

.section__card h4 {
  margin-top: 4rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: 0.3s;
}

.section__card p {
  margin-bottom: 2rem;
  color: var(--text-light);
  transition: 0.3s;
}

.section__card img {
  margin-bottom: 1rem;
  max-width: 100px;
  border-radius: 100%;
  border: 2px solid var(--primary-color);
  transition: 0.3s;
}

.section__card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: 0.3s;
}

.section__card h6 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
  transition: 0.3s;
}

.section__card:hover::before {
  width: 400%;
}

.section__card:hover :is(h4, h5) {
  color: var(--white);
}

.section__card:hover :is(p, h6) {
  color: var(--secondary-color);
}

.section__card:hover img {
  border-color: var(--white);
}

/* Newsletter Section Styles */
.newsletter-section {
  background-color: #1fb5c2;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.newsletter-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

.newsletter-form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  display: inline-block;
  text-align: left;
  max-width: 400px;
  width: 100%;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.newsletter-form label {
  display: block;
  color: #333;
  font-size: 16px;
  margin-bottom: 5px;
}

.newsletter-form label span {
  color: red;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

.newsletter-form .error-message {
  color: red;
  font-size: 14px;
  display: none;
}

.newsletter-form button {
  background-color: #000000;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.newsletter-form button:hover {
  background-color: #333333;
}

/* Footer Section Styles */
.footer-section {
  background-color: #264653;
  color: #f4f4f4;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-logo img {
  width: 80px;
  height: 80px;
  margin-right: 10px;
}

.footer-logo p {
  font-size: 20px;
  color: #e9c46a;
  font-weight: bold;
  margin: 0;
}

.footer-socials {
  margin: 20px 0;
}

.footer-socials a {
  color: #f4f4f4;
  font-size: 20px;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #2a9d8f;
}

.footer-socials i {
  font-size: 24px;
}

.footer-section p {
  font-size: 14px;
  color: #f4f4f4;
}

.footer-section .back-to-top {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: #e9c46a;
  color: #264653;
  padding: 10px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none; /* This can be set to display: block; with JavaScript when scrolling */
}

.footer-section .back-to-top:hover {
  background-color: #2a9d8f;
  color: #ffffff;
}
