/* =========================
   GLOBAL STYLES & RESET
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header{
    background-color: transparent;
    width: 98%;
    padding: 5px;
    margin: 15px;
    padding-left: 20px;
    position: fixed;
    top: 0;
    z-index: 1;
    background-color:rgba(224, 245, 247, 0.5);
    border-radius: 20px;
    padding-right: 20px;
    transition: transform 0.3s ease;

}

header.hide {
    transform: translateY(-100%);
    transition: transform 1s ease;
}

.header-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo{
    background-color: rgba(224, 245, 247, 0.5);
    width: fit-content;
    padding: 10px;
    border-radius: 20px;
}

.header-logo img{
    width: 120px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
    color: #000;
    font-family: sans-serif;
    font-size: larger;
    font-weight: 500;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.user-icon{
    background-color: rgba(239, 241, 243, 0.5);
    width: fit-content;
    padding: 10px;
    border-radius: 20px;
    height: auto;
}

.user-icon i{
    color: #27cbd3;
    font-size: 3.2em;
}

.header-container span{
    display: none;
}



/* =========================================
   HAMBURGER
========================================= */

.hamburger{
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 201;
}

.hamburger span{
    width: 100%;
    height: 4px;
    background: #ffffff;
    border-radius: 20px;
    transition: 0.3s ease;
}

/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu{
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;

    background: linear-gradient(
        to right,
        #14c5d3,
        #0f7fa1
    );

    z-index: 2000;

    display: flex;
    flex-direction: column;

    padding: 30px;

    transition: left 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ACTIVE STATE */

.mobile-menu.active{
    left: 0;
}

/* =========================================
   TOP BAR
========================================= */

.mobile-menu-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-logo img{
    width: 180px;
    height: auto;
}

/* =========================================
   CLOSE BUTTON
========================================= */

.close-menu{
    font-size: 2rem;
    color: white;
    cursor: pointer;
    font-weight: 700;
}

/* =========================================
   NAV LINKS
========================================= */

.mobile-nav-links{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    flex: 1;

    gap: 25px;

    margin-top: 40px;
}

.mobile-nav-links a{
    text-decoration: none;

    font-size: 3rem;
    font-weight: 700;

    color: white;

    transition: 0.3s ease;
}

.mobile-nav-links a:hover{
    transform: translateX(10px);
    color: #dffcff;
}

/* =========================================
   USER LINKS
========================================= */

.mobile-user-links{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mobile-user-links a{
    text-decoration: none;

    padding: 14px 24px;

    border-radius: 50px;

    font-weight: 600;

    background: rgba(255,255,255,0.15);

    color: white;

    border: 1px solid rgba(255,255,255,0.2);

    transition: 0.3s ease;
}

.mobile-user-links a:hover{
    background: white;
    color: #1198aa;
}

/* =========================================
   RESPONSIVE
========================================= */



/* ============ footer ================= */
footer{
    background-color: black;
    padding: 20px;
    font-family: sans-serif;
}

.footer-content{
    background: #27cbd3;
    padding: 20px;
    border-radius: 20px;
}

.footer-container{
    background: rgba(243, 241, 230, 0.5);
    padding: 50px;
    border-radius: 36px;
}

.subscribe{
    display: flex;
    justify-content: space-between;
}

.footer-logo-text{
    display: flex;
    align-items: center;
}

.footer-logo img{
    width: 120px;
    height: auto;
    margin-right: 20px;
}

.footer-header-logo{
    font-size: 20px;
    font-weight: 700;
    color: #0b4b9d;
    width: 200px;
}

.footer-subscribe-header{
    font-size: 25px;
    font-weight: 700;
    color: white;
}

.footer-subscribe-input {
  position: relative;
  width: 360px;
}

.footer-subscribe-input input {
  width: 100%;
  padding: 14px 110px 14px 20px; /* space for button */
  border-radius: 40px;
  border: 2px solid #000;
  font-size: 16px;
  outline: none;
  background-color: #27cbd3;
}

.footer-subscribe-input button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 22px;
  border-radius: 30px;
  border: none;
  background: #ffffff;
  color: #3ad7db;
  font-size: 15px;
  cursor: pointer;
}

.footer-nav-links{
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
}

.footer-header{
    width: 700px;
    font-size: 20px;
    font-weight: 700;
    color: #0b4b9d;
    width: 200px;
}

.footer-nav-links-header{
    font-size: larger;
    font-weight: 00;
    margin-bottom: 20px;
}

.footer-header-container nav,
.footer-header-container p{
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.footer-header-container p a, .footer-header-container nav a{
    text-decoration: none;
    font-size: large;
    font-weight: 500;
    color: #000;
}

.footer-contact-info-header, 
.footer-company-header, 
.footer-legal-header, 
.footer-socials-header {
    width: 270px;
    margin-bottom: 20px;
}

.footer-socials-icons nav{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-socials-icons nav a{
    font-size: xx-large;
    color: #ffffff;
}

.footer-contact-info{
    margin-right: 30px;
}

.footer-contact-info p a{
    color: rgb(255, 255, 255);
    font-weight: 700;
}

.footer-line hr{
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-ending{
    display: flex;
    justify-content: space-between;
}

.footer-resources a{
    text-decoration: none;
    font-size: larger;
    color: #000;
    justify-content: space-between;
}

.footer-resources a:last-child{
    margin-left: 20px;
}


.dropbtn {
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
}

.dropbtn:hover,
.dropbtn:focus {
  background-color: transparent;
}


.user-icon {
  position: relative;
  display: inline-block;
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(27, 177, 236, 0.5);
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 20;
  padding: 10px;
  transform: translateX(-120px);
  max-width: fit-content;
  border-radius: 10px;
}


.dropdown-content a {
  color: black;
  text-decoration: none;
  display: block;
  font-family: sans-serif;
}

.user-icon-links{
    font-size: 1em;
    font-weight: 700;
    border-radius: 15px;
    border: none;

}

.header-sign-in{
    background-color: #818181;
    margin-bottom: 5px;
    padding: 8px 55px 8px 55px;
}

.header-sign-up{
    background-color: rgb(27, 177, 236);
    padding: 8px 55px 8px 55px;
}

.dropdown-content a:hover {
  background-color: #ddd;
}


.show {
  display: block;
}

@media (max-width: 480px) {
    header{
        padding: 2px;
        width: 350px;
    }

    .header-logo img{
        width: 70px;
    }

    .nav-links{
        display: none;
    }

    .user-icon{
        display: none;
    }
}




.overlay {  
  height: 100%;
  width: 0;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  background-color: rgb(0,0,0); /* Black fallback color */
  background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
  overflow-x: hidden; /* Disable horizontal scroll */
  transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
  position: relative;
  top: 25%; /* 25% from the top */
  width: 100%; /* 100% width */
  text-align: center; /* Centered text/links */
  margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block; /* Display block instead of inline */
  transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

/* Position the close button (top right corner) */
.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

/* ========== LARGE TABLETS ========== */
@media screen and (max-width: 1200px){

    .hero-section{
        padding: 140px 60px 80px;
        gap: 40px;
    }

    .hero-content p{
        width: 100%;
    }

    .hero-image-micro img{
        width: 100%;
        max-width: 400px;
    }

    .why-choose-us-content,
    .what-we-offer-content{
        gap: 30px;
    }

    .footer-nav-links{
        gap: 40px;
        flex-wrap: wrap;
        text-align: center;
    }

    .footer-socials-icons{
        background-color: transparent;
        display: flex;
        flex-direction: row ;
        justify-content: center;
    }
}


/* ========== TABLETS ========== */
@media screen and (max-width: 992px){

    /* ===== HEADER ===== */

    header{
        width: calc(100% - 20px);
        margin: 10px;
        padding: 10px 15px;
    }

    .header-container span{
        display: block;
        font-size: 2rem;
        cursor: pointer;
    }

    .nav-links{
        display: none;
    }

    /* ===== FOOTER ===== */

    .subscribe{
        flex-direction: column;
        gap: 40px;
    }

    .footer-logo-text{
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-nav-links{
        flex-wrap: wrap;
        gap: 40px;
        margin-top: 60px;
    }

    .footer-ending{
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


/* ========== MOBILE ========== */
@media screen and (max-width: 768px){

    /* ===== FOOTER ===== */

    footer{
        padding: 10px;
    }

    .footer-container{
        padding: 25px 20px;
    }

    .footer-subscribe-input{
        width: 100%;
    }

    .footer-subscribe-input input{
        padding-right: 100px;
        font-size: 14px;
    }

    .footer-subscribe-input button{
        padding: 10px 15px;
        font-size: 13px;
    }

    .footer-nav-links{
        flex-direction: column;
        gap: 30px;
    }

    .footer-header{
        width: 100%;
    }

    .footer-socials-icons nav{
        justify-content: flex-start;
    }
}


/* ========== SMALL MOBILE ========== */
@media screen and (max-width: 480px){

    header{
        width: calc(100% - 16px);
        margin: 8px;
        padding: 10px;
    }

    .header-logo img{
        width: 80px;
    }

    .footer-logo img{
        width: 90px;
    }

    .footer-header-logo{
        width: 100%;
        font-size: 1rem;
    }

    .footer-resources{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-resources a:last-child{
        margin-left: 0;
    }
}


@media (max-width: 900px){

    .nav-links{
        display: none;
    }

    .user-icon{
        display: none;
    }

    .hamburger{
        display: flex;
    }

}

@media (max-width: 600px){

    .mobile-menu{
        padding: 25px 20px;
    }

    .mobile-menu-logo img{
        width: 140px;
    }

    .mobile-nav-links a{
        font-size: 2.2rem;
    }

}