@import 'navbar.css';
@import 'services.css';
@import 'projects.css';
@import 'about_me.css';
@import 'contacts.css';


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #1f3146;
    --background-color: #ededed;
    --text-color: #202020;
    --font-family: 'Montserrat', sans-serif;
    --font-title: 'Cormorant Garamond', serif;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

ul {
    list-style: none;
}


h1 {
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 0.3em;
    letter-spacing: 3px;
    color: var(--primary-color);
    line-height: 0.8em;
}

h2 {
    margin-bottom: 1.5em;
    text-align: center;
    color: var(--primary-color);
    font-family: var(--font-title);
    font-size: 3em;
}


main {
    flex: 1;
    position: sticky;
    top: 0;
    background-color: var(--background-color);
}

#main-content {
    position: relative;
    z-index: 10;
    background-color: var(--background-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding-bottom: 5rem;
}

section:not(#hero) {
    margin: 0 auto 3rem;
    scroll-margin-top: 60px;
}



/* Hero section */

#hero {
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    p {
        text-transform: uppercase;
        letter-spacing: 3px;
    }
}


/* Footer */

footer {
    background-color: var(--primary-color);
    position: relative;
    bottom: 0;
    padding: 1em;
    color: var(--background-color);
    text-align: center;
    font-weight: 100;
    font-size: 0.7em;

    a {
        color: var(--background-color);
    }

    #legal {
        text-transform: uppercase;
        margin-bottom: 1em;
    }
}


/* Legal Pages*/
/* Cookies */

#legal-page {
    margin: auto;
    width: 90%;
    padding-bottom: 6em;
    max-width: 1200px;

    h1 {
        font-size: 5em;
    }

    h2 {
        text-align: start;
        margin: 1em 0 10px;
        font-size: 2em;
    }

    ul {
        list-style: disc;
        margin: 10px 2em;
    }
}


/* Custom classes */

.button {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 0.5em;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

    a {
        color: var(--background-color);
    }

    &:hover {
        box-shadow: none;
    }
}

.hover-animation {
    &::after {
        content: '';
        display: block;
        width: 0;
        height: 1px;
        background-color: var(--primary-color);
        margin-top: 0.5em;
        transition: width 0.3s ease;
    }

    &:hover::after {
        width: 100%;
    }
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

label.checked {
    div:first-of-type {
        transform: rotate(45deg);
    }

    div:nth-of-type(2) {
        transform: rotate(-45deg);
        position: relative;
        top: -7px;
    }
}