*, ::before, ::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "Sitka Small", serif;
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}

img ,svg{
  display: block;
  max-width: 100%;
  height: auto;
}

/* Navbar */

header{
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    width: 100%;
    margin: auto;
    position: sticky;
    z-index: 100;
    padding-block: 8px;
    background: white;
    top: 0;

    .logo{
        img{
            height: 90px;
        }
    }

    nav{
        display: flex;
        width: 80%;
        margin: auto;
        justify-content: space-between;
    }

    ul{
        display: flex;
        justify-content: right;
        align-items: center;
        gap: 12px;
    }

    li:not(:last-child){
        padding-right: 8px;
        border-right: 1px solid #302d2d;
    }

    a{
        font-size: 18px;
    }

}

/* Sections */
section{
    min-height: 70vh;
}

/* Home */
.hero {
    background-color: #2D3245;
    position: relative;
    padding-bottom: 0px; 

    &::after {
        content: "";
        position: absolute;
        bottom: -175px; 
        left: 0;
        width: 100%;
        transform: rotate(0deg);
        height: 50vh;
        background-image: url('../assets/wave.svg');
        background-size: cover;
        background-repeat: no-repeat;
        z-index: 1; 
    }
}

.hero-content{
    height: 80vh;
    width: 80%;
    margin: auto;
    display: flex;
    align-items: center;
    
    .hero-img{
        flex: 3;
        position: relative;
        z-index: 10;
    }

    .hero-details{
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        width: 40%;
        color: white;
        z-index: 10;

        h1{
            margin-block: 16px;
            font-size: clamp(1rem, 2.5vw, 2rem);
        }
    
        p{
            margin-bottom: 16px;
            font-size: 20px;
            line-height: 1.5;
            text-shadow: 0 0 5px #fff;
        }

        button{
            width: fit-content;
            height: 36px;
            border: none;
            background-color: #f9a826;
            color: #2D3245;
            font-size: 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease-in;

            a{
                padding:12px 24px;
            }

            &:hover{
                background-color: #f5dfbd;
                color: #000000;
                border-radius: 16px;
            }
        }

        &::after{
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            backdrop-filter: blur(10px);
            z-index: -1; 
            border-radius: 8px;
        }
    } 

    
}

/* About */
.about{
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 100vh;
}

.about-content{
    height: 100%;
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 50px;
    padding-bottom: 10rem;

    .about-img{
        flex: 2;
        
        img{
            border-radius: 8px;
        }
    }

    .about-details{
        flex: 5;
        background-image: url('../assets/bg-pattern.png');
        background-size: cover;
        padding: 12px;
        border-radius: 8px;

        h2{
            color: #fff;
            padding-bottom: 4px;
            text-decoration: underline;
            text-underline-offset: 8px;
            font-size: 2rem;
            margin-bottom: 12px;
            text-align: center;
        }

        p{
            font-size: 20px;
            line-height: 1.5;
        }
    }
}

/* Services */

.services-content{
    width: 80%;
    margin: auto;

    >h2{
        text-align: center;
        font-size: 2rem;
        padding-top: 10vh;
        margin-bottom: 24px;
    }
}

.card-container{
    display: flex;
    flex-direction: column;
    gap: 24px;
    &:last-child{
        margin-bottom: 100px;
    }
    

    .service-card{
        display: flex;
        border: 1px solid #f9a826;
        gap: 1.2rem;
        padding: 12px;
        border-radius: 12px;
        width: 100%;

        h3{
            font-size: 1.5rem;
            color: #2D3245;
        }

        p{
            font-size: 1.2rem;
            line-height: 1.2;
        }

        .service-img{
            width: 250px;
            vertical-align: middle;

            img{
                border-radius: 8px;
            }
        }

        .service-details{
            flex: 1;
            background-image: url('../assets/card-pattern.png');
            background-size: cover;
            padding: 12px;
            border-radius: 8px;
        }
    }

    .service-card:nth-child(even){
        margin-left: auto;
        flex-direction: row-reverse;
        h3,p{
            text-align: left;
        }

        .service-details{
            background-image: url('../assets/card-pattern-2.png');
        }

        
    }
}

/* Contact */

.contact-content{
    width: 80%;
    margin: auto;

    >h2{
        text-align: center;
        font-size: 2rem;
        padding-top: 10vh;
        margin-bottom: 24px;
    }
}

.contact-socials{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;

    .social{
        display: flex;
        align-items: center;
        gap: 16px;
        width: 350px;
        background: rgb(233,49,117);
        background: linear-gradient(90deg, rgba(233,49,117,1) 0%, rgba(103,198,240,1) 100%);
        border-radius: 12px;

        h4{
            font-size: 1.5rem;
            color: #2D3245;
        }

        img{
            width: 100px;
            height: 100px;
            
            padding: 8px;
        }
    }
}