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

body {
    background-color: #83512e;
}

main{
    background-color: #FAD6D3;
}

p {
    margin-bottom: 0;
    font-family: "Vend Sans", sans-serif;
}

/* FONTS */
.vend-sans, .alan-sans, .gravitas-one-regular, .abril-fatface-regular, .gloock-regular {
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

.vend-sans {
    font-family: "Vend Sans", sans-serif;
}

.alan-sans {
    font-family: "Alan Sans", sans-serif;
}

.gravitas-one-regular {
    font-family: "Gravitas One", serif;
}

.abril-fatface-regular {
    font-family: "Abril Fatface", serif;
}

.gloock-regular {
    font-family: "Gloock", serif;
}

/* NAV BAR */
.navbar {
    background-color: #83512e;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand {
    font-family: "Abril Fatface", monospace;
    font-size: clamp(24px, 5vw, 36px);
    color: #FAD6D3;
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar-brand:hover {
    color: #e0bfd6;
}

/* Hamburger Menu */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #FAD6D3;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-family: "Vend Sans", sans-serif;
    color: #FAD6D3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #eceae2;
}

.nav-menu a:active{
    color: #eceae2;
  }

/* Social Icons */
.nav-socials {
    display: flex;
    gap: 1rem;
}

.nav-socials img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-socials img:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Form Control */
.form-control {
    border: 2px solid #83512e;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #eceae2;
}

.form-control:focus {
    border-color: #3E2723;
    box-shadow: 0 0 0 0.2rem rgba(139, 26, 22, 0.25);
    background-color: #ECEAE2;
}

/* Buttons */
.btn-primary {
    margin-top: 20px;
    background-color: #83512e;
    border: none;
    color: #eccaca;
}

.btn:hover, .btn-primary:hover, .btn-lg:hover {
    margin-top: 20px;
    background-color: #eccaca !important;
    border: 2px solid #83512e !important;
    color: #83512e !important;
}

.btn-primary:active {
    margin-top: 20px;
    background-color: #3E2723!important;
    border: none;
    color: #eccaca !important;
}

/* FOOTER */
footer {
    background-color: #83512e;
    color: #eceae2;
    text-align: center;
    padding-top: 20px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
}

footer h3 {
    font-size: 96px;
    font-family: "Abril Fatface", serif;
}

#socials-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 48px;
    text-align: left;
    padding: 20px 0;
}

ul {
    padding: 0;
    margin-bottom: 0;
}

#socials-links li {
    list-style: none;
    color: #f5eee6;
    position: relative;
}

#socials-links li a {
    color: #eceae2;
    font-size: 18px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    font-family: "Vend Sans", sans-serif;
}

#socials-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #f5eee6;
    transform: scaleX(0);
    transition: transform 300ms ease;
}

#socials-links li a:hover {
    color: #f5eee6;
}

#socials-links li a:hover::after {
    transform: scaleX(1);
}

/* MEDIA QUERIES */
@media (min-width: 992px) {
    .navbar .container-fluid {
        position: relative;
    }
}

@media (max-width: 950px) {
    .nav-menu {
        gap: 1.5rem;
        font-size: 14px;
    }

    .nav-socials img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: nowrap;
    }

    .navbar-brand {
        font-size: clamp(20px, 4vw, 28px);
        position: relative;
        left: auto;
        transform: none;
        margin: 0 auto;
        order: 2;
    }

    .nav-toggle {
        display: flex;
        order: 1;
    }

    .nav-socials {
        order: 3;
        gap: 0.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #83512e;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 18px;
    }

    footer h3{
        font-size: 72px;
    }
}

@media screen and (max-width: 865px) {
    .download-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -550%);
        z-index: 2;
    }

    .download-buttons .btn {
        font-size: 14px;
    }

    .about-header {
        padding-top: 11vh;
    }

    .about-header .nickname {
        margin-left: 0;
    }
}

@media (max-width: 780px), (min-width: 769px) and (max-width: 991px) {
    .navbar-brand {
        font-size: 24px;
    }

    .nav-link {
        font-size: 20px;
        padding: 2% 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-item {
        position: relative;
    }

    .nav-item::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background-color: #3E2723;
        transform: scaleX(0);
        transition: transform 300ms ease;
    }

    .nav-item:hover::after {
        transform: scaleX(1);
    }
}

