/* 排列除錯make life easier */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html{
    min-width:100px;
    scroll-behavior: smooth;
}

body{
    /* max-width: 1024px; */
    /* height: 2000px; */
}

*{
     /*border: solid 1px red; */
}

/* Custom Properties, update these for your own design */

:root {
    --ff-primary: 'Poppins', sans-serif;
    --fw-reg: 200;
    --fw-med: 300;
    --fw-bold: 400;
    
    --clr-light: #e5e5e5;
    --clr-dark: #111111;
    --clr-accent-b: #537099;

    --fs-h1: 36px;
    --fs-h2: 32px;
    --fs-h3: 20px;
    --fs-body: 14px;
    
    --square-size: 20px;
}

/* 中螢幕：1450以下 */
@media (max-width: 1450px) {
    :root {
        --fs-h1: 32px;
        --fs-h2: 28.8px;
        --fs-h3: 17.6px;
        --fs-body: 12.8px;
    }

}

/* 小螢幕：800以下 */
@media (max-width: 800px) {   
    :root {
        --fs-h1: 34px;
        --fs-h2: 32px;
        --fs-h3: 21px;
        --fs-body: 16px;
    }
}



/* General styles */

body { 
    background: var(--clr-dark);
    color: var(--clr-light);
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-h3);
}

h1,h2,h3 {
    line-height: 1.35;
    margin: 0;
}

a{
    color: var(--clr-accent-b);
}



/* ----------Content---------- */
.info{
    display: flexbox;
    justify-content: center;
    align-items: center;

}


.content{
    position: absolute;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
        "about contact" 
        "recognition recognition";
    margin: 10% 10% 10% 10%;

}

.about, .recognition, .contact{
    padding: 0 5% 10% 5%;
}

.about span{
    font-weight: var(--fw-med);
}

.about p{
    font-size: var(--fs-h3);
    font-weight: 200;
    line-height: 1.25;
}

.about p a{
    color: var(--clr-light);
}

.about p a:hover{
    color: var(--clr-accent-b);
    transition-duration: 0.35s;
}

.contact{
    padding-left: 10%;
}


.about h3, .contact h3, .recognition h3{
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--clr-accent-b);
}


ul{
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    font-weight: 200;
}


.recognition_list{
    letter-spacing: 0.3px;
}

.recognition_list li{
    margin: 0.65% 0;
    display: flex;
    justify-content: flex-start;
    font-size: var(--fs-h3);
}



.recognition_list a{
    font-weight: var(--fw-reg);
    color: var(--clr-light);
    text-decoration: none;
    padding: 0 1% 0% 1%;
}

.recognition_list a:hover{
    color: var(--clr-accent-b); 
    transition-duration: 0.35s;
}

.recog_type{
    color: var(--clr-accent-b);
    font-weight: var(--fw-reg);
/*    padding-left: 12.5%;*/
}

li i {
    padding-left: 1%;
}


.contact_list li{
    padding: 1% 0%;
    font-size: var(fs-h3);
}

.contact_list a{
    text-decoration: none;
    color: var(--clr-light); 
}


.contact_list a:hover{
    color: var(--clr-accent-b); 
    transition-duration: 0.35s;
}


/*RWD*/
@media (max-width: 1800px) {
    .content{
    position: absolute;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
        "about" 
        "recognition"
        "contact";
    }

    .about, .contact, .recognition{
        margin: 0;
        padding: 0;
        padding-bottom: 5%;
    }
}


@media (max-width: 800px) {

    .about{
        margin-top: 20%;

    }

    .about h3, .contact h3, .recognition h3{
    margin-top: 15%;
    }

    .about p, .contact ul, .recognition ul li{
        font-size: var(--fs-body);
    }
}




/* _________________header_________________ */

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0% 5% 0% 5%;
    margin: 0px;
    position: fixed;
    width: 100%;
    z-index: 100;
    top:0;
    background: transparent; 
    
}

header a{
    text-decoration: none;
}

.scroll_down{
    background: var(--clr-dark);
    transition: all ease-in-out 0.5s;
}

a.logo_link{
    padding: 0px;
    margin: 0px;
}

.logo{
    display: flex;
    align-items: center;
    list-style: none;
    min-width: 100px;
}

.logo h3{
    margin: 0px 0px 0px 18px;
    color: var(--clr-light);
    font-size: 18px;
    letter-spacing: 0.5px;
    font-family: "acumin-pro", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.logo_pic{
    width: 24.5%;
    padding: 2% 0%;
}

nav{
    transform: translate(0px,0px);
}

nav li a{
    color: var(--clr-light);
    font-size: 17.4px;
    letter-spacing: 5px;
    font-weight: var(--fw-reg);
    text-decoration: none; 
    padding: 0px 15px;
}

nav li{
    position: relative;
    padding: 7.5% 0 5% 0;     
}

nav a::after{
    content: '';
    display: block;
    height: 2.5px;
    width: 0%;
    background: var(--clr-accent-b);
    position: absolute;
    bottom: 0px;
    transition: all ease-in-out 0.35s;
}

nav ul{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0px;
    margin: 0px;
    padding: 0% 0;
}

nav a:hover::after{
    width: 100%;
    position: absolute;
}

.nav-toggle {
    padding: .5em;
    background: transparent;
    border: 0;
    position: absolute;
    right: 7%;
    cursor: pointer;
}

.nav-open nav {
    display: flex;
    justify-content: center;
    background: var(--clr-accent-b);
    position: fixed;
    top: 0;
    bottom:0;
    left: 0;
    right: 0;
    z-index: -10;
    transform: translateY(0%);
}

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

.nav-open nav ul li{
    padding: 6% 50%;
}


.hamburger {
    display: none;
    position: relative;
    right: 0px;
    z-index: 100;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background: var(--clr-light);
    width: 30px;
    height: 2px;
    border-radius: 1px;
    transition: transform 250ms ease-in-out;
}


.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.hamburger::before { top: 10px; }
.hamburger::after { bottom: 10px; }



/*---RWD---*/
@media(max-width:1450px){
    .logo h3{
/*    font-size: calc(var(--fs-h3));*/
    }

    nav li a{
/*    font-size: calc(var(--fs-h3));*/
    }
    
    .dropdown ul li a{
    display: none;
    }

}


@media(max-width:800px){
    nav a::after{
    display: none;
    }
    
    nav{
        display: none;
    }
    

    .hamburger{
        display: block;
    }

    .hamburger::before { top: 7px; }
    .hamburger::after { bottom: 7px; }



    nav li a{
    font-size: calc(var(--fs-h3)*1);
    }
    
}
