/* Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/*CSS VARIABLES*/
:root{
    --header-height: 3rem;

    /*Colors*/
    --primary-color: #005bff; /*Blue Ribbon Color*/
    --primary-color-alt: #1ea5fc; /* Dodger Blue */
    --text-color:#1e3d59;
    --alternate-1: #ff6e40;
    --alternate-2: #ffc13b;

    /* Font style */
    --body-font: 'Poppins','sans-serif';

    /* Font Sizes */
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.750rem;

    /* Font weight */
    --font-medium: 500;
    --font-semi-bold: 600;

    /* Bottom margins */
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;  
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /* z index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

@media screen and (min-width: 968px){
    :root{
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: 0.875rem;
        --smaller-font-size: 0.813rem;
    } 
}

/* Webpage General Styling */
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0 0 var(--header-height) 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: #f5f0e1;
    color:rgb(59, 93, 109);
}

h1,h2,h3,h4{
    color: var(--text-color);
    font-weight:var(--font-semi-bold) ;
}
p{
  color: rgb(59, 93, 109) 
}

ul{
    list-style: none;
}
a{
    text-decoration: none;
}
img{
    max-width: 100%;
    height: auto;
}

/* CSS classes */
.section{
    padding: 2rem 0 4rem;
}

.section_title{
    font-size: var(--h1-font-size);
}

.section_subtitle{
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-3);
}
.section_title, .section_subtitle{
    text-align: center;
}

/* Screen Layout */
.container{
    max-width: 768px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid{
    display: grid;
    gap: 1.5rem;
}

.header{
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: #f5f0e1;
}

/* Navigation bar */
.nav{
    max-width: 968px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_logo, .nav_toggle{
    color: var(--text-color);
    font-weight: var(--font-medium);
}

.nav_logo:hover{
    color: var(--primary-color);
}

.nav_toggle{
    font-size: 1.1rem;
    cursor: pointer;
}

.nav_toggle:hover{
    color: var(--primary-color);
}

/* Nav bar Media Query for smaller screens */
@media screen and (max-width: 767px){
    .nav_menu{
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background-color: #f5f0e1;
        padding: 2rem 1.5rem 4rem;
        box-shadow: 0 -1px 4px rgba(0,0,0,0.15);
        border-radius: 1.5rem 1.5rem 0 0;
    }
    
}

.nav_list{
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav_link{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
}

.nav_link:hover{
    color: rgb(5, 109, 40);
}

.nav_icon{
    font-size: 1.2rem;
}

.nav_close{
    position: absolute;
    right: 1.3rem;
    bottom: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color)  ;
}

.nav_close:hover{
    color: var(--text-color);
}

/* To show the menu */
.show_menu{
    bottom: 0;
}


/*--Styles for the home page--*/
.home_container{
    gap: 1rem;
}

.home_content{
    grid-template-columns: 0.5fr 3fr;
    padding-top: 3.5rem;
    align-items: center;
}

.home_social{
    display: grid;
    grid-template-columns: max-content;
    row-gap: 1rem;
}

.home_social_icon{
    font-size: 1.25rem;
    color: var(--primary-color);
}

.home_social_icon:hover{
    color: var(--primary-color-alt);
}

.home_data{
    grid-column: 1/3;
}

.home_title{
    font-size:var(--big-font-size) ;
}

.home_subtitle{
    font-size: var(--h3-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-50)  ;
}

.home_description{
    margin-bottom: var(--mb-2);
}

.home_scroll{
    display: none; 
}

.home_scroll-button{
    color: var(--primary-color-alt);
    transition: 0.3s;
}

.home_scroll-button:hover{
    transform: translateY(0.25rem);
}

.home_scroll-mouse{
    font-size: 2rem;
}

.home_scroll-name{
    font-size: var(--small-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-right: var(--mb-0-25);
}

.home_scroll-arrow{
    font-size: 1.25rem;
}

/*--Buttons--*/
.button{
    display: inline-block;
    background-color: var(--primary-color-alt);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
}

.button:hover{
    background-color: var(--primary-color);
}

.button_icon{
    font-size: 1.25rem;
    margin-left: var(--mb-0-5);
    transition: 0.3s;
}

.button--flex{
    display: inline-flex;
    align-items: center;
}

/*--Styles for the about page--*/
.about_img{
    width: 200px;
    border-radius: 0.5rem;
    justify-self: center;
    align-self: center;
}

.about_description{
    text-align: center;
    margin-bottom: var(--mb-2-5);
}

.about_info{
    display: flex;
    justify-content: space-evenly;
    margin-bottom: var(--mb-2-5);
}

.about_info-title{
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
}

.about_info-name{
    font-size: var(--smaller-font-size);
}

.about_name-title, .about_info-name{
    display: block;
    text-align: center;
}

.about_buttons{
    display: flex;
    justify-content: center;
}


