/* global variables */
:root {
    --white-1: #fff;
    --white-2: #f2f2f2;
    --white-3: #F3fafd;
    --black-1: #333;
    --blue-1: #018dba;
    --blue-2: #9cf5fa;
    --blue-3: #014263;
    --gray-1: #405b70;
    --gray-2: #78b0c1;
    
    background-color: var(--white-3);
    color: var(--blue-3);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header styles */
header {
    position: fixed;
    width: 100%;
    background-color: var(--blue-1);
    color: var(--white-1);
    padding: 10px;
    margin-bottom: 10px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

nav ul li {
    float: left;
}

nav ul li a {
    display: block;
    color: var(--white-1);
    text-decoration: none;
    padding: 10px;
}

a {
    color: var(--white-1);
    text-decoration: none;
}

/* for navbar header */
.container {
    max-width: 1224px;
    width: 92%;
    margin: 0 auto;
}

.navbar {
    min-height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-branding {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.nav-link {
    transition: 0.3s ease-out;
}

.nav-link:hover {
    color: var(--black-1);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    background-color: var(--white-1);
}

/* show hamburger on phones and tablets */
@media(max-width:1024px) {
    .hamburger {
        display: block;
        margin-right: 10px;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 50px;
        gap: 0;
        flex-direction: column;
        background-color: var(--blue-1);
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* Main content styles */
main {
    padding: 20px;
}

section {
    margin-top: 10px;
}

/* Home section styles */
#home {
    padding: 40px;
    text-align: center;
}

#home h1 {
    font-size: 36px;
}

.cta-button {
    display: inline-block;
    background-color: var(--blue-3);
    color: var(--white-1);
    text-decoration: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
}

/* Services section styles */
#services {
    padding: 40px;
}

#services h2 {
    font-size: 24px;
}

#services ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 18px;
}

#services li {
    margin-top: 12px;
}

/* Portfolio section styles */
#portfolio {
    padding: 40px;
    text-align: center;
}

/* Contact section styles */
#contact {
    padding: 40px;
}

#contact h2 {
    font-size: 24px;
}

#contact form {
    display: grid;
    grid-gap: 10px;
    margin-top: 20px;
}

#contact label {
    font-weight: bold;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    /* width: 100%; */
    padding: 10px;
}

#contact input[type="submit"] {
    background-color: var(--blue-3);
    color: var(--white-1);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    /* width: 100%; */
    margin-top: 20px;

    height: 50px;
    width: 50%;
    justify-self: center;
    font-size: 20px;

    @media(max-width:1024px) {
        width: 100%;
    }
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    header {
        padding: 10px;
    }

    nav ul {
        display: flex;
        flex-direction: column;
    }

    nav ul li {
        float: none;
    }

    #home h1 {
        font-size: 24px;
    }

    #home .cta-button {
        font-size: 14px;
    }
}

/* footer */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--blue-1);
    color: var(--white-1);
    text-align: center;
}