* {
    box-sizing: border-box;
}
body {
    margin: 0;
    text-align: center;
    font-family: serif;
    background-color: rgb(227, 241, 245);
}
h1 {
    font-weight: normal;
}
/* Navigation Bar */
nav {
    background-color: rgb(227, 241, 245);
    height: 80px; /* Fixed height for the nav */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px 0 100px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: top 0.3s, background-color 0.3s ease;
}
nav .logo img {
    width: 72px;
}
.menu-button {
    display: none;
}
.bar1,
.bar2,
.bar3 {
    width: 35px;
    height: 5px;
    background: rgb(53, 190, 190);
    margin: 6px 0;
    transition: 0.4s;
}
.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
}
.change .bar2 {
    opacity: 0;
}
.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}
#click {
    display: none;
}
nav ul {
    display: flex;
    list-style: none;
}
nav ul li {
    margin: 0 5px;
}
nav ul li a {
    color: rgb(53, 190, 190);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.5s ease;
}
nav ul li a:hover,
nav ul li a.active-bg {
    background-color: rgb(5, 197, 187);
    color: white;
}

/* Top Container */
.top-container {
    height: 101vh; /* Remaining height after nav bar */
    background-color: rgb(227, 241, 245);
    position: relative; /* For the absolute positioning of the mountain holder */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding-bottom: 200px; /* Adds space at the bottom to prevent overlap */
}

/* Text inside the top container */
.top-container h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 5em;
    color: rgb(5, 197, 187);
    margin-bottom: 0.1em;
}

.top-container .sub-heading {
    color: #31bea0;
    font-size: 1.8em;
    font-family: 'Pacifico', cursive;
    margin: 0;
}

/* Mountain Holder */
.mountain-holder {
    position: absolute;
    bottom: 0;
    width: 50vw;
    left: 50%;
    transform: translateX(-50%);
}

.mountain-img {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-container h1 {
        font-size: 3em;
    }

    .top-container .sub-heading {
        font-size: 1.2em;
    }

    .mountain-holder {
        width: 70vw;
    }

    .top-container {
        padding-bottom: 150px; /* Adjust space for smaller screens */
    }
}

@media (max-width: 480px) {
    .top-container h1 {
        font-size: 2.5em;
    }

    .top-container .sub-heading {
        font-size: 1em;
    }

    .mountain-holder {
        width: 80vw;
    }

    .top-container {
        padding-bottom: 100px; /* Further adjust space for very small screens */
    }
}

/* Middle Section */
.middle-section {
    background-color: rgb(241, 241, 241);
    padding-top: 100px;
}

/* Hey Section */
.hi {
    width: 50%;
    margin: auto;
}
.main-image {
    width: 25%;
}
h3 {
    font-size: 2em;
    color: rgb(5, 197, 187);
    text-align: center;
    margin: 0;
    padding: 0.5em 0;
}
.intro {
    width: 65%;
    margin: auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
    color: grey;
    line-height: 2;
}
hr {
    border: dotted rgb(202, 198, 198) 6px;
    border-bottom: none;
    width: 4%;
    margin: 100px auto;
}

/* What I can Do Section */

h4 {
    color: #31bea0;
    font-size: 1.5em;
    margin-bottom: 0;
}
.design {
    width: 50%;
    margin: 100px auto;
    text-align: left;
    line-height: 2;
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
    color: grey;
}
.man-bitmoji {
    width: 21%;
    float: right;
    margin-left: 50px;
}
.develop {
    width: 50%;
    margin: 100px auto;
    text-align: left;
    line-height: 2;
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
    color: grey;
}
.develop-bitmoji {
    width: 25%;
    float: left;
    margin-right: 50px;
}

/* I can help */
.icanhelp {
    width: 50%;
    margin: 100px auto;
    line-height: 2;
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
    color: grey;
}
.message-me {
    display: inline;
    color: grey;
}
.mail-box {
    margin: 100px 35%;
    background-color: #45b29a;
    border: 5px solid #45b29a;
}
.last-hr {
    border: dotted rgb(241, 241, 241) 6px;
    border-bottom: none;
    width: 4%;
    margin: 50px auto;
}

/* Footer Section */
.footer-social-media {
    display: flex;
    width: 50%;
    /* margin: auto; */
}
.footer-ul {
    display: flex;
    font-family: sans-serif;
    padding: 0;
    margin-left: 30%;
    margin-bottom: 5px;
    font-size: 20px;
    border-left: 6px solid #45b29a;
}
footer ul li {
    padding: 23%;
    font-size: 20px;
}
footer a {
    color: rgb(53, 190, 190);
    text-decoration: none;
}
.footer-copyright {
    display: inline;
    width: 50%;
    margin: auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
    color: grey;
}
.footer-copyright p {
    margin-bottom: 50px;
}

@media (max-width: 940px) {
    .menu-button {
        display: inline-block;
    }
    nav {
        top: 0px;
        padding: 0 50px 0 50px;
    }
    nav ul {
        display: block;
        position: fixed;
        top: 100px;
        height: 100vh;
        width: 100%;
        left: -100%;
        background-color: rgb(227, 241, 245);
        transition: all 0.5s ease;
    }
    #click:checked ~ ul {
        left: 0;
    }
    nav ul li {
        margin: 40px 0;
        text-align: center;
    }
    nav ul li a {
        font-size: 1.5em;
        display: block;
    }
    nav ul li a:hover,
    nav ul li a.active-bg {
        color: cyan;
        background: none;
    }
    .top-container {
        margin-top: 15%;
        background-color: rgb(227, 241, 245);
    }
    .mountain-img {
        margin-top: 150px;
        width: 100%;
    }
}
