/* Global */
*, *:before, *:after {
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    color: #d1d1d1;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    color: #ffffff;
    margin-top: 0;
}

a {
    color: #00aeef;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0081b1;
}

ul {
    list-style: none;
    padding: 0;
}

/* Layout */
#wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

#main {
    flex-grow: 1;
    padding: 2em;
    width: calc(100% - 300px);
    transition: opacity 0.5s ease;
}

#sidebar {
    width: 300px;
    background-color: #252525;
    padding: 2em;
    border-right: solid 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
    z-index: 1000;
}

#sidebar.inactive {
    transform: translateX(-100%);
    position: absolute;
}

#sidebar .toggle {
    display: none; 
}

#search input[type="text"] {
    background-color: #333333;
    border: solid 1px rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75em;
    width: 100%;
    border-radius: 4px;
}

/* Header */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 5px #00aeef;
    padding-bottom: 1em;
    margin-bottom: 2em;
    position: relative;
}

#header .logo img {
    height: 60px;
}

#header .icons {
    display: flex;
    gap: 1em;
    margin-right: 4em;
}

#header .icons li {
    font-weight: bold;
    text-transform: uppercase;
}

#header .toggle {
    display: none; 
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3em;
    height: 3em;
    line-height: 3em;
    text-align: center;
    color: #ffffff;
    font-size: 1.25em;
    cursor: pointer;
    text-indent: -9999px;
    overflow: hidden;
}

#header .toggle:before {
    content: '\f0c9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    text-indent: 0;
    display: block;
    width: 100%;
}

/* Banner */
#banner {
    display: flex;
    gap: 2em;
    margin-bottom: 4em;
    align-items: center;
}

#banner .content {
    flex: 1;
}

#banner .image {
    flex: 1;
}

#banner .image img {
    width: 100%;
    border-radius: 0.5em;
}

#banner h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

/* Sections */
section {
    margin-bottom: 4em;
}

section header.major {
    border-bottom: solid 3px #00aeef;
    margin-bottom: 2em;
    padding-bottom: 0.5em;
}

/* Features (Services) */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.features article {
    display: flex;
    gap: 1em;
}

.features .icon {
    font-size: 2em;
    color: #00aeef;
}

/* Menu */
#menu ul li {
    border-top: solid 1px rgba(255, 255, 255, 0.1);
    padding: 0.5em 0;
}

#menu ul li:first-child {
    border-top: 0;
}

#menu .opener {
    cursor: pointer;
    display: block;
    position: relative;
}

#menu .opener:after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
}

#menu ul ul {
    display: none;
    padding-left: 1em;
    margin-top: 0.5em;
}

#menu ul ul.active {
    display: block;
}

/* Footer */
#footer {
    border-top: solid 1px rgba(255, 255, 255, 0.1);
    padding-top: 2em;
    color: #777777;
    font-size: 0.9em;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75em 1.5em;
    background-color: transparent;
    border: solid 2px #00aeef;
    color: #00aeef !important;
    font-weight: bold;
    border-radius: 0.5em;
    transition: background-color 0.2s, color 0.2s;
}

.button:hover {
    background-color: #00aeef;
    color: #ffffff !important;
}

/* Responsive */
@media screen and (max-width: 980px) {
    #sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 18em;
        max-width: 80%;
        transform: none;
        z-index: 10001;
        box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.15);
    }

    #sidebar.inactive {
        transform: translateX(-100%);
    }

    #sidebar .toggle {
        display: block;
        position: absolute;
        top: 0;
        right: -4em;
        width: 4em;
        height: 4em;
        line-height: 4em;
        text-align: center;
        background: #252525;
        color: #ffffff;
        text-indent: -9999px;
        border-radius: 0 0.5em 0.5em 0;
        overflow: hidden;
    }

    #sidebar .toggle:before {
        content: '\f0c9';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        text-indent: 0;
        float: left;
        width: 100%;
        font-size: 1.5em;
    }

    #main {
        width: 100%;
        padding: 2em;
    }

    #header .toggle {
        display: block;
    }
}