/* -------VARIABLES ------- */
:root {
    --primary-color: #007AFF;
    --secondary-color: #D2D2D2;
    --background-color: #11151C;
    --text-color: #DCDFF1;
    --highlight-color: #11223D;
    --font-family-main: 'Poppins', sans-serif;
    --font-family-heading: 'Roboto', sans-serif;
}

/* ------- GLOBAL STYLES ------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    /* background: linear-gradient(168deg, #11151C -0.32%, #212D40 60.68%); */
    background-color: #090909;
    background-repeat: no-repeat;
    font-family: var(--font-family-main);
}

h1 {
    font-size: 2rem;
    letter-spacing: 0.0625rem;
    font-family: var(--font-family-heading);
    color: var(--text-color);
}

h2 {
    color: var(--secondary-color);
    font-family: var(--font-family-heading);
    text-transform: uppercase;
    letter-spacing: 10px;
    text-align: center;
    margin: 3rem 0;
    font-size: 1.7rem;
}

h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

button {
    background-color: transparent;
    border: none;
}

/* ------ NAV ------- */
header {
    /* background-color: var(--background-color); */
    background-color: #000;
    position: sticky;
    top: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

#logo {
    font-size: 1.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.0625rem;
    z-index: 1;
}

#mobile-menu {
    width: 80%;
    height: 100%;
    background-color: #292929;
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999;
}

#burger-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
    gap: .4rem;
    height: 32px;
    z-index: 1;
}

.burger {
    border-radius: 2rem;
}

#close-button {
    cursor: pointer;
    margin: 2rem 1rem;
}

span.bar {
    width: 2rem;
    height: .3rem;
    background-color: var(--secondary-color);
}

span.bar.close {
    transform: rotateZ(45deg);
    border-radius: 2rem;
    position: absolute;
}

span.bar.close:nth-child(2) {
    transform: rotateZ(-45deg);
    border-radius: 2rem;
}

nav ul {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color .3s ease;
}

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

/* ------- MAIN ------- */
section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
}

section p {
    color: #d2d2d2;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.0625rem;
    font-weight: 400;

}

/* ------- HERO SECTION ------- */
section#hero {
    height: calc(100dvh - 200px);
    text-align: center;
    overflow-x: hidden;
    gap: 2rem;
}

section#hero h1 {
    background: linear-gradient(103deg, #FBFDFE 39.23%, #646373 102.77%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 70%;
}

section#hero p {
    color: #8E8C9E;
    text-align: center;
    font-family: var(--font-family-main);
    font-size: 1.5rem;
}

section#hero .button {
    width: 10rem;
    padding: 1rem 1rem;
    border-radius: 1.5rem;
    background: var(--primary-color);
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.0625rem;
    text-decoration: none;
}

/* ------- ABOUT SECTION ------- */
section#about {
    height: 100dvh;
    gap: 1.5rem;
}

section#about p {
    width: 90%;
}

section#about p:nth-of-type(1) {
    font-size: 1.25rem;
    font-weight: 500;
}

/* -------- PORTFOLIO SECTION ------- */
section#portfolio {
    background-color: var(--background-color);
}

section#portfolio h2 {
    margin: 5rem 0;
}

section#portfolio img {
    margin-bottom: 1rem;
    object-fit: contain;
}

section#portfolio .portfolio-text {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    text-transform: uppercase;
    margin-bottom: 5rem;
}

section#portfolio p:nth-child(3) {
    text-transform: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

section#portfolio .icons {
    width: 100%;
    gap: 1rem;
    display: flex;
    justify-content: flex-end;
}

section#portfolio .portfolio-text p:nth-child(2) {
    color: #F5C000;
    font-weight: 500;
}

/* ------ SERVICES SECTION ------- */
section#services {
    height: calc(100vh + 500px);
    width: 100%;
}

section#services h2 {
    margin-top: 5rem;
}

section#services article {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

section#services article p {
    font-weight: 400;
}

section#services article p:nth-child(2) {
    margin-bottom: 1.5rem;
}

section#services article #service {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: .5rem
}

section#services article #service h3 {
    text-transform: uppercase;
}

section#services article #service p {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

/* ------- FOOTER ------- */
footer {
    background-color: var(--background-color);
    color: var(--secondary-color);
    width: 100%;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

footer #footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: 0;
}

.footer-logo p {
    font-size: .9rem;
    color: #8e8c9e;
}

.footer-nav h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1rem;
    margin-bottom: .5rem;
    color: var(--secondary-color);
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
}

.footer-nav li,
.footer-contact li {
    margin: .5rem 0;
}

.footer-contact a,
.footer-nav a {
    text-decoration: none;
    color: #d2d2d2;
    font-size: .9rem;
    transition: color .3s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: #007AFF;
}

.footer-social {
    text-align: center;
    width: 100%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.footer-social .social-icons a {
    color: #d2d2d2;
    transition: color .3s ease;
}

.footer-social .social-icons a:hover {
    color: #007AFF;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    font-size: .8rem;
    color: #8e8c9e;
    border-top: 1px solid #292929;
    padding-top: 1rem;
}

.fade-in {
    animation: fadeIn 1s ease;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        visibility: hidden;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

}