/* FONT IMPORT */
@font-face {
    font-family: "Roboto Thin";
    src: url(./assets/fonts/roboto_thin.ttf);
}

@font-face {
    font-family: "Roboto Regular";
    src: url(./assets/fonts/roboto_regular.ttf);
}

@font-face {
    font-family: "Roboto Black";
    src: url(./assets/fonts/roboto_black.ttf);
}

/* VARIABLES */
:root {
    --primary-color: rgb(62.5, 125, 250);
    --secondary-color: rgb(50, 100, 200);

    --primary-dark-color: rgb(2, 4, 9);
    --secondary-dark-color: rgb(14, 17, 22);

    --primary-light-color: rgb(245, 245, 245);
    --secondary-light-color: rgb(240, 240, 240);
}

/* RESET CSS */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 12.5px;
}

::-webkit-scrollbar-thumb {
    border-radius: 25px;
    background-color: var(--primary-color);
}

/* GENERAL */
body {
    font-family: "Roboto Regular", sans-serif;
    font-size: 1rem;
}

body.light-mode {
    color: var(--primary-dark-color);
    background-color: var(--primary-light-color)
}

body.dark-mode {
    color: var(--primary-light-color);
    background-color: var(--primary-dark-color);
}

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

h1 {
    font-family: "Roboto Black", sans-serif;
    text-transform: uppercase;
}

h2 {
    display: none;
}

h3 {
    font-family: "Roboto Thin", sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
}

h4 {
    font-family: "Roboto Black", sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* HEADER */
header {
    position: fixed;
    width: 100%;
    height: 75px;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(2.5px);
    box-shadow: 0 2.5px 5px 0 rgba(0, 0, 0, 0.25),
        0 -2.5px 0 0 var(--background-color) inset;
    z-index: 9999;
}

header.light-mode {
    background-color: rgba(255, 255, 255, 0.8);
}

header.dark-mode {
    background-color: rgba(14, 17, 22, 0.8);
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transition: 0.25s ease;
}

nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
}

nav ul a {
    text-transform: uppercase;
}

nav ul a:hover {
    text-decoration: underline;
}

/* Download button */
#download-btn {
    margin-left: 25px;
    padding: 12.5px 25px;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 2.5px;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: 0.25s ease;
}

#download-btn:hover {
    background-color: var(--secondary-color);
}

#download-btn:active {
    transform: scale(0.95);
}

/* Toggle mode button */
#toggle-mode-btn {
    width: 2rem;
    height: 2rem;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    background-color: transparent;
    cursor: pointer;
}

/* Hamburger icon */
#hamburger-icon {
    position: relative;
    width: 25px;
    height: 25px;
    display: none;
    cursor: pointer;
}

.bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    border-radius: 2.5px;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
}

#hamburger-icon .bar:nth-last-child(1) {
    top: 25%;
}

#hamburger-icon .bar:nth-last-child(3) {
    top: 75%;
}

/* Hamburger icon animation */
#hamburger-icon.active .bar:nth-last-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

#hamburger-icon.active .bar:nth-last-child(2) {
    opacity: 0;
}

#hamburger-icon.active .bar:nth-last-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ABOUT SECTION */
#about {
    width: 100%;
    height: 100dvh;
    padding-top: 100px;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 25px;
    text-align: center;
}

#gallery {
    width: 65%;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-image-container {
    width: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-image {
    width: 100%;
    border-radius: 2.5px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25);
}

#thumbnails {
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.thumbnail {
    width: 70%;
    border-radius: 2.5px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25);
}

.thumbnail:active {
    transform: scale(0.95);
}

/* FEATURES SECTION */
#features {
    height: 100%;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

#features.light-mode {
    background-color: var(--secondary-light-color);
}

#features.dark-mode {
    background-color: var(--secondary-dark-color);
}

.feature {
    width: 75%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.feature img {
    width: 35%;
    padding-right: 25px;
    padding-left: 25px;
}

.feature-description {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12.5px;
    text-align: center;
}

.reverse {
    flex-direction: row-reverse;
}

#description {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12.5px;
    text-align: center;
}

/* FOOTER */
footer {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

footer.light-mode {
    background-color: var(--secondary-light-color);
}

footer.dark-mode {
    background-color: var(--secondary-dark-color);
}

footer ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12.5px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: 0.25s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
}

.social-icon:active {
    transform: scale(0.95);
}

.social-icon img {
    width: 50px;
    height: 50px;
}

#copyright {
    text-transform: uppercase;
}

/* MOVE TO TOP BUTTON */
#move-to-top-button {
    position: fixed;
    right: 25px;
    bottom: -50px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: 0.25s ease;
}

#move-to-top-button:hover {
    background-color: var(--secondary-color);
}

#move-to-top-button:active {
    transform: scale(0.95);
}

#move-to-top-button img {
    width: 25px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    h3 {
        font-size: 1.5rem;
    }

    header.light-mode {
        background-color: var(--secondary-light-color);
    }

    header.dark-mode {
        background-color: var(--secondary-dark-color);
    }

    nav {
        position: fixed;
        top: 75px;
        right: -125%;
        width: 100%;
        padding: 25px 0;
        border-bottom: 5px solid var(--primary-color);
    }

    nav.light-mode {
        background-color: var(--secondary-light-color);
    }

    nav.dark-mode {
        background-color: var(--secondary-dark-color);
    }

    nav.active {
        right: 0px;
    }

    nav ul {
        flex-direction: column;
    }

    nav button {
        display: none;
    }

    #toggle-mode-btn {
        display: none;
    }

    #hamburger-icon {
        display: block;
    }

    #about {
        padding-right: 25px;
        padding-left: 25px;
    }

    #gallery {
        width: 100%;
        flex-direction: column;
        gap: 25px;
    }

    #main-image-container {
        width: 100%;
    }

    #thumbnails {
        width: 100%;
        height: auto;
        flex-direction: row;
    }

    .thumbnail {
        width: calc(100% / 5)
    }

    #features {
        padding: 75px 0;
        gap: 75px;
    }

    .feature {
        width: 100%;
        gap: 25px;
        flex-direction: column-reverse;
    }

    .feature img {
        width: 100%;
    }

    .feature-text {
        width: 100%;
        padding: 0;
    }

    #move-to-top-button {
        display: none;
    }
}

/* GLOBAL PAGE ANIMATION */
.hidden {
    opacity: 0;
    transition: all 0.5s;
}

.show {
    opacity: 1;
}

.hidden-top {
    opacity: 0;
    transform: translateY(-25%);
    transition: all 0.5s;
}

.show-top {
    opacity: 1;
    transform: translateY(0);
}

.hidden-right {
    opacity: 0;
    transform: translateX(25%);
    transition: all 0.5s;
}

.show-right {
    opacity: 1;
    transform: translateX(0);
}

.hidden-bottom {
    opacity: 0;
    transform: translateY(25%);
    transition: all 0.5s;
}

.show-bottom {
    opacity: 1;
    transform: translateY(0);
}

.hidden-left {
    opacity: 0;
    transform: translateX(-25%);
    transition: all 0.5s;
}

.show-left {
    opacity: 1;
    transform: translateX(0);
}

@media(prefers-reduced-motion) {
    .hidden {
        transition: none;
    }

    .hidden-top {
        transition: none;
    }

    .hidden-right {
        transition: none;
    }

    .hidden-bottom {
        transition: none;
    }

    .hidden-left {
        transition: none;
    }
}

/* Global page animation Responsive */
@media (max-width: 768px) {
    .hidden-top {
        opacity: 1;
        transform: translateY(0%);
        transition: none;
    }

    .hidden-right {
        opacity: 1;
        transform: translateX(0%);
        transition: none;
    }

    .hidden-bottom {
        opacity: 1;
        transform: translateY(0%);
        transition: none;
    }

    .hidden-left {
        opacity: 1;
        transform: translateX(0%);
        transition: none;
    }
}