@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

::selection{
    background-color: #a8a8a834;
    color: var(--color-accent-primary);
}
:root{
    /* background */
    --color-bg-primary: #161616;
    --color-bg-secondary: #212121;
    --color-bg-secondary-transparent: #212121e0;
    --color-bg-enable: #a6fdc3;
    --color-bg-disable: #FFC7C8;
    --color-bg-muted: #2C2C2C;
    /* text */
    --color-text-primary: #FCFCFC;
    --color-text-secondary: #CFCFCF;
    --color-text-tertiary: #919191;
    --color-text-muted: #A8A8A8;
    --color-text-enable: #116831;
    --color-text-disable: #AD0003;
    --weight-semiBold: 600;
    --weight-medium: 500;
    /* buttons */
    --color-text-btn: #FCFCFC;
    --color-accent-primary: #006DFF;
    --color-accent-secondary: #3E3E3E;

    --header-height: 70px;
    --gap: 10px;
    --padding: 2.5rem;
}
.lightmode{
    /* background */
    --color-bg-primary: #f0f0f0;
    --color-bg-secondary: #fcfcfc;
    --color-bg-secondary-transparent: #fcfcfce0;
    --color-bg-enable: #116831;
    --color-bg-disable: #FFC7C8;
    --color-bg-muted: #F0F0F0;
    /* text */
    --color-text-primary: #161616;
    --color-text-secondary: #484848;
    --color-text-tertiary: #373737;
    --color-text-muted: #515151;
    --color-text-enable: #dcfce7;
    --color-text-disable: #AD0003;
    --weight-semiBold: 600;
    --weight-medium: 500;
    /* buttons */
    --color-text-btn: #FCFCFC;
    --color-accent-primary: #8739FA;
    --color-accent-secondary: #373737;
}
*{
    padding: 0;
    margin: 0;
    font-family: inherit;
}
html{
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + calc(var(--gap)*2));
}
body{
    /* margin-top: calc(var(--header-height) + var(--gap)); */
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg-primary);
    padding: var(--gap);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-primary);
    gap: var(--gap);
    transition: all .2s;
    overflow-x: hidden;
}
header, main, footer{
    width: 100%;
    max-width: 1255px;
    box-sizing: border-box;
}
header, #home, #services, #faq, #contact, #portfolio-section, footer{
    background-color: var(--color-bg-secondary);
    border-radius: 25px;
    padding: var(--padding);
}
/* header */
header{
    display: flex;
    top: var(--gap);
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    transition: box-shadow .1s ease-in-out;
    height: var(--header-height);
    width: 100%;
    z-index: 99;
}
header.scrolled{
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
    background-color: var(--color-bg-secondary-transparent);
    backdrop-filter: blur(10px);
}
#logo{
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: var(--weight-semiBold);
}
.menu{
    max-height: 0;
    overflow: hidden;
    transition: all .3s cubic-bezier(0.4,0,0.2,1);
    position: fixed;
    padding: 0;
    background-color: transparent;
    opacity: 0;
}
.links{
    display: flex;
    gap: 2rem;
    height: auto;
}
.links li{
    list-style: none;
}
.links a{
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all .3s ease-in-out;
}
.links a:hover{
    color: var(--color-accent-primary);
}
.actions{
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 1.5rem;
}
#contact-btn{
    text-decoration: none;
    color: var(--color-text-btn);
    background-color: var(--color-accent-secondary);
    padding: .5rem 1rem;
    border-radius: 30px;
    font-size: 1.125rem;
    font-weight: var(--weight-medium);
    border: solid 3px transparent;
    background-clip: padding-box;
    transition: all .2s ease-in-out;
}
#contact-btn:hover{
    box-shadow: 0px 0px 0px 1px var(--color-accent-secondary);
}
#contact-btn:active{
    transform: scale(.98);
}
#theme-switch{
    color: var(--color-text-primary);
    background: none;
    border: none;
    transition: color .2s ease-in-out;
}
#theme-switch i{
    font-size: 2.375rem;
    cursor: pointer;
}
#theme-switch:hover{
    color: var(--color-text-secondary);
}
#theme-switch i:last-child{
    display: none;
}
.lightmode #theme-switch i:first-child{
    display: none;
}
.lightmode #theme-switch i:last-child{
    display: block;
}
/* footer */
footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}
.footer-copy{
    font-size: 1.25rem;
}
.footer-socials{
    display: flex;
    gap: 1.75rem;
}
.footer-socials a{
    text-decoration: none;
    color: var(--color-text-primary);
}
.footer-socials i{
    font-size: 2.2rem;
}
.footer-socials a:nth-child(1):hover{
    color: #006eab;
    transition: .3s;
}
.footer-socials a:nth-child(2):hover{
    color: #6e5494;
    transition: .3s;
}
.footer-socials a:nth-child(3):hover{
    color: #d62976;
    transition: .3s;
}
.footer-socials a:hover i{
    animation: slide-in-top .5s both;
}
@keyframes slide-in-top {
    0% {
        transform: translateY(-15px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
/* alerts */
.alert{
    position: fixed;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    opacity: 0;
    transition: .7s ease-out;
    max-width: 70%;
    z-index: 999;
}
.alert-ok{
    background-color: #c3f3d7;
    color: #24ad5d;
    border-left: 10px solid #2fd573;
}
.alert-info{
    background-color: #c3d8f3;
    color: #247fad;
    border-left: 10px solid #2f85d5;
}
.alert-error{
    background-color: #f3c3c3;
    color: #ad2424;
    border-left: 10px solid #d52f2f;
}
.alert-warning{
    background-color: #f3e9c3;
    color: #ad9224;
    border-left: 10px solid #d59e2f;
}
.alert.show{
    font-size: 1.125rem;
}
.alert.show{
    top: 100px;
    opacity: 1;
}
/* burger */
.burger {
    display: none;
}

@media (max-width: 1024px) {
    header, main, footer {
        width: 100%; 
    }
    .links, .actions {
        display: none; 
    }
    .burger {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        transform: none;
    }
    label { cursor: pointer; }
    .burger-icon { width: 100%; scale: 1; border: 0; margin: 0; }
    .burger-icon, .burger-icon::before, .burger-icon::after {
        display: block; border-radius: 2px; height: 2.5px; background: var(--color-text-primary);
    }
    .burger-icon::before, .burger-icon::after {
        content: ""; position: absolute; width: 70%; transition-duration: 0.15s; transition-timing-function: linear;
    }
    .burger-icon::before { top: -6px; right: 0; }
    .burger-icon::after { top: 6.5px; left: 0; }
    .burger input {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 10;
    }
    .burger input:checked ~ .burger-icon { background-color: transparent; }
    .burger input:checked ~ .burger-icon::before, .burger input:checked ~ .burger-icon::after { width: 30px; }
    .burger input:checked ~ .burger-icon::before { transform: rotate(-45deg); top: 0px; }
    .burger input:checked ~ .burger-icon::after { transform: rotate(45deg); top: 0px; }
    .menu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all .3s cubic-bezier(0.4,0,0.2,1);
        position: fixed;
        left: var(--gap);
        right: var(--gap);
        top: calc(var(--header-height) + calc(var(--gap) * 2));
        width: auto;
        background-color: var(--color-bg-secondary);
        border-radius: 25px;
        padding: 0;
        box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
        z-index: 999;
        max-width: 700px;
        margin: 0 auto;
    }
    body.open .menu {
        max-height: 600px;
        opacity: 1;
        padding: 1.5rem;
        box-sizing: border-box;
    }
    .menu-links { list-style-type: none; }
    .menu-links a {
        display: block; text-decoration: none; color: var(--color-text-secondary); padding: .75rem 1rem;
    }
    .menu-actions {
        display: flex; justify-content: space-between; padding: .75rem 1rem;
    }
    #menu-contact-btn {
        text-decoration: none; color: #fcfcfc; background-color: var(--color-accent-secondary); padding: .5rem 4rem; border-radius: 40px; font-weight: 300;
    }

    #menu-theme-switch { color: var(--color-text-primary); background: none; border: none; }
    #menu-theme-switch i { font-size: 1.875rem; cursor: pointer; }
    #menu-theme-switch i:last-child { display: none; }
    .lightmode #menu-theme-switch i:first-child { display: none; }
    .lightmode #menu-theme-switch i:last-child { display: block; }
}

/* phone */
@media (max-width: 480px) {
    header, #home, #services, #faq, #contact, footer {
        padding: 1.5rem;
    }
    #menu-contact-btn { text-align: center; box-sizing: border-box; }
    #logo { font-size: 1.2rem; }
    .footer-copy { font-size: 1rem; }
    .footer-socials { gap: 1rem; }
    .footer-socials i { font-size: 1.75rem; }
    .alert{ width: 100%; }
}

/* phone-small tablet */
@media (min-width: 481px) and (max-width: 768px) {
    header, main, footer { max-width: 700px; }
    header, footer { padding: 1rem 1.5rem; }
    #home, #services, #faq, #contact { padding: 2rem 2.5rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    header, main, footer { max-width: 700px; }
    #home, #services, #faq, #contact { padding: 2rem 2.5rem; }
}