
/* Fonts */

 @font-face {
    font-family: 'avenirlight';
    font-weight: lighter;
    src: url('avenir-light_freefontdownload_org/avenir-light.ttf');
}

@font-face {
    font-family: 'luloclean';
    src: url('Lulo-Clean-One.ttf');
}

/*Entire screen*/

body {
    width: 100%;
    margin: 0;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/*Header with nav and logo/links*/

header {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.menu-toggle {
    display: none; /* Hidden by default */
    font-size: 18px;
    font-weight: bold;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    z-index: 100;
}


header .photocont {
    display: flex;
    width: 35%;
    height: auto;
    position: absolute;
    right: 1%;
    align-items: center;
    justify-content: center;
    height: auto;
    z-index: -1;
}

header .cutslogo {
    position: relative;
    left: 25%;
    top: 25%;
    width: 70%;
    height: auto;
    margin-top: 25px;
    
}

header .marketinglogo {
    height: auto;
    width: 70%;
}


/*Could have done this more effectively as well, I forgot you can apply one css rule to multiple elements with a comma*/
/*The name and title of soccer/entrepreneur in header*/
.fs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    position: absolute;
    left: 5%;
    margin-bottom: 20px;
    
}

.fs a {
    text-decoration: none;
}

/*Name in the header*/
.first {
    font-family: 'luloclean', sans-serif;
    font-weight: 900;
    font-size: 17px;
    margin-bottom: auto;
    letter-spacing: 2.5px;
    color: black;
}

/*Profession title in the header*/
.second {
    font-family: 'avenirlight', sans-serif;
    font-size: 14px;
    margin-bottom: auto;
    letter-spacing: 2.5px;
}

/*Navigation bar at the top of the screen*/

nav {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: black;
    font-family: 'avenirlight', serif;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: lightblue;
}

/*The let's chat link at the bottom right of the screen*/
.hangerchat {
    display: block;
    text-decoration: none;
    text-align: center;
    position: fixed;
    bottom: 0%;
    right: 1.5%;
    color: white;
    background-color: black;
    width: 200px;
    height: 55px;
    font-family: 'avenirlight', serif;
    line-height: 55px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    z-index: 1003;
}

.hangerchat:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
    transform: scale(1.05);
}

/*The main section of the page with the soccer celebration picture*/

.main1 {
    width: 100vw;
    height: calc(100vh - 75px);
    background-image: url('../Images/SoccerCelly.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin-top: 75px;
    display: flex;
    justify-content: center;
    text-align: center;
}


/*The name Xavier Rimpel in big letters*/

.bigname {
    letter-spacing: 1.5vw;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8vw;
    color: white;
    position: absolute;
    top: 20%;
    height: fit-content;
    text-align: center;
    font-weight: 800;
    /*display: flex;
    justify-content: center;
    flex-direction: column;
    justify-items: center;*/
    margin: auto;
}



/*The book now link*/

/*.bookmebutton {
    display: flex;
    justify-content: center;
}*/

.book {
    font-family: 'avenirlight', serif;
    text-decoration: none;
    text-align: center;
    width: 200px;
    height: 80px;
    position: absolute;
    top: 75%;
    color: white;
    background-color: black;
    line-height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: auto;
}

.main1 .book:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
    transform: scale(1.05);
}

/*The next section of the page with the text and picture of me in uniform*/

.main2{
    display: flex;
    margin-bottom: 0;
    margin-top: 0;
}


/*The about me section split into half (could have been done better with display: grid)*/

.split1 {
    width: 50%;
    justify-items: center;
    position: relative;
    margin-top: 70px;
}

/*The line above the 'about me' header*/

.topmidline {
    border-top: 2px solid black;
    width: 6%;
    margin: 20px;
    position: absolute;
    top: -1.5%;
    left: 37%;
}

/*'About Me' header*/

.aboutheader {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 42px;
    font-weight: 800;
    width: fit-content;
}

.aboutheader span {
    display: block;
}

/*The left side of this section - Could have split the screen in a better way I think*/
.split1 p {
    font-family: 'avenirlight', serif;
    font-size: 15px;
    width: 40%;
    word-wrap: break-word;
    display: block;
}

/*The read more link*/

.split1 a {
    display: inline-block;
    text-decoration: none;
    background-color: black;
    color: white;
    border: 2px solid black;
    padding: 1px 10px;
    font-size: 16px;
    font-family: arial, helvetica, light;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
}

.split1 a:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
    transform: scale(1.05);
}

/*The soccer photo on the right side of this section*/

.soccerphoto {
    width: 50%;
    height: auto;
}

/*removes white space between section 2 and 3*/

.main2 .main3 {
    margin: 0;
    padding: 0;
}

/*The services section of the page*/

.main3 {
    background-image: url("../Images/croppedpose.JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    position: relative;
    top: -35px;
    height: 900px;
}

/*The different services; Sign Me, Web Design, and Hair Cut*/
.grid-container {
    position: absolute;
    left: 20%;
    top: 40%;
}


.box {
    width: 250px;
    height: 300px;
    border: 5px solid white;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    margin: 10px;
    display: inline-block;
    position: relative;
    left: 35%;
    top: 27%;
}


/*The little line at the top of the section, above the header*/

.topline {
    border-top: 2px solid white;
    width: 3%;
    margin: 20px;
    position: absolute;
    top: 10%;
    left: 36.5%;
}

/*The links schedule now in the service boxes*/

.box span a {
    position: absolute;
    left: 18.5%;
    top: 65%;
    text-decoration: none;
    background-color: black;
    color: white;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.box span a:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
    transform: scale(1.05);
}


/*The text inside the service boxes*/

.box h4 {
    font-size: 22.5px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

/*The third section's header 'how i can help you'*/

.main3 span {
    display: block;
}

.main3 h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: white;
    position: relative;
    left: 38%;
    top: 150px;
    width: fit-content;
}



footer {
    position: absolute;
    height: 400px;
    margin: 0;
}

/*The social media logo assets*/

.assetcontainer {
    position: absolute;
    align-items: center;
    justify-content: center;
    bottom: 20%;
    left: 2%;
}

.assetcontainer img {
    margin: 5px;
    width: 2%;
}

/*The contact section header*/

footer h6 {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    position: absolute;
    top: 2%;
    left: 2.5%;
}


/*The little line above the contact section header*/

.decorativeline {
    border-top: 2px solid black;
    width: 3%;
    margin: 20px;
    position: absolute;
    top: 6%;
    left: 1.2%;
}

/*The AMS credit for creating the website*/
.credit-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20%;
    gap: 15%; 
    margin-left: 20px;
}

.credits {
    width: 20%;
}

footer p {
    position: absolute;
    width: 15%;
    margin: 0;
    padding: 0;
}




/*Media Queries for split screen and mobile screen*/



/* Media Query for Notebook/Laptop (1366px) */
@media (max-width: 768px) {
    /* Navigation Bar Adjustments */
    body {
        overflow-x: hidden;
    }
    

    nav a {
        font-size: 18px;
    }


    /* Big Name (Header) */
    .bigname {
        font-size: 80px;
    }

    
    /* Background Adjustments for All Sections */
    .main1, .main2, .main3 {
        width: 100%;
    }

    /* Adjust Box in Services Section */
    .box {
        width: 200px;
        height: 300px;
        position: relative;
        left: 10%;
    }


    .box h4 {
        font-size: 15px;
    }

    .box span a {
        left: 12%;
        top: 65%;
        padding: 5px;
        font-size: 20px;
    }
    
    .box span a:hover {
        background-color: white;
        color: black;
        border: 2px solid black;
        transform: scale(1.05);
    }

    /* Name and Profession in Header */
    .first {
        font-size: 12px;
    }

    .second {
        font-size: 10px;
    }

    /* Adjust Flex Container in Header */
    .fs {
        margin-top: 50px;
    }

    /* Read More Link Adjustments */
    .split1 a {
        position: relative;
        top: -1.5%;
    }

    /* Footer Adjustments */
    footer h6 {
        font-size: 18px;
    }

    /* Adjust Image Sizes */
    .soccerphoto {
        width: 50%;
        height: auto;
    }



    .fs {
        left: 5%;
    }

    

    .main1 {
        background-attachment: scroll;
    }


    .main2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .soccerphoto {
        width: 100%;
    }

    .split1 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; /* Centers child elements inside */
        text-align: center; /* Ensures text stays centered */
    }

    .box {
        width: 120px;
        height: 250px;
        top: -25%;
    }


    .bigname {
        font-size: 15vw;
    }

    .book {
        display: inline-block;
        margin: auto;
    }

    .split1 p {
        width: 60%;
    }

    .main3 {
        background-position: 40% center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .grid-container {
        left: 15%;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        grid-template-areas:
            "box1 box2"
            "box3 box3"; /* Third box spans both columns */
        gap: 10px; /* Adjust spacing between boxes */
        margin: auto; /* Center the grid */
    }
    
    .box:nth-child(1) { grid-area: box1; }
    .box:nth-child(2) { grid-area: box2; }
    .box:nth-child(3) { grid-area: box3; }
    .box:nth-child(3) { left: 30%;}


    .box span a {
        width: 80px;
        height: 50px;
        font-size: 10px;
    }
    
    .main3 h1 {
        top: -30%;
        left: 30%;
    }


    header .photocont {
        margin-bottom: 5px;
        gap: 25px;
        width: 45%;
        right: 0%;


    }

    header .marketinglogo {
        margin-top: 5px;
    }

    .split1 a {
        margin-bottom: 40px;
    }

    .first {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .second {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .credits {
        width: 60%;

    }

    .credit-container {
        margin-top: 40%;
        gap: 40%; 
    }

    footer {
        height: 200px;
    }

    .hangerchat {
        width: 150px;
    }

    .credits_text {
        font-size: 18px;
        text-wrap: nowrap;
    }

    .credits_text span {
        display: none;
    }

    .hangerchat {
        display: none;
    }


    .assetcontainer {
        bottom: 20%;
    }

    .assetcontainer img {
        width: 5%;
    }

    footer h6 {
        top: 5%;
    }

    header nav {
        display: none; /* Hide the nav links */
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 100px;
        background-color: white;
    }

    header nav a {
        display: block;
        padding: 15px;
    }

    .menu-toggle {
        display: block; /* Show menu button */
        margin: auto;
        font-family: 'luloclean', sans-serif;
    }



}





