:root {
    --bg-color: #fff;
    --text-color: #000;
    --alt-color: #eee;
    /* --sec-color: #0096c7; */
    /* --sec-color: #662549; */
    /* --sec-color: #000; */
    /* --sec-color: #5e17eb; */
    --sec-color: #AEC3AE;

    --bg-color: #000;
    --text-color: #eee;
    --sec-color: #0abab5;
    --alt-color: #333533;

    --sec-color: #952323;
    /* --sec-color: #765827; */
}


* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-color);
}

.hr {
    width: 100%;
    height: 2px;
    background-color: var(--alt-color);
    margin: 60px 0 50px;
}

/* ------------- Header ------------ */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    /* padding: 5px 10%; */
    padding: 5px 20px;
    box-shadow: 0 0px 10px 0 var(--alt-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    z-index: 100;
}

.header .logo img {
    width: 60px;
    height: 60px;
}

.header .navbar ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
}

.header .navbar li {
    transition: 0.5s;
}

.header .navbar li a {
    color: var(--text-color);
    padding: 10px;
    display: block;
    transition: 0.5s;
}

.header .navbar li:hover {
    transform: scale(1.1);
}

.header .navbar li a:hover {
    color: var(--sec-color);
}

.open-nav,
.close-nav {
    position: fixed;
    top: 0;
    /* right: 0; */
    padding: 20px;
    font-size: 2rem;
    color: var(--text-color);
    background-color: transparent;
    border: none;
    right: 100%;
    z-index: 100;
}

/* ------------- Home -------------- */

.home {
    margin-top: 75px;
    height: calc(100vh - 75px);
    background: linear-gradient(110deg, var(--bg-color) 0%, var(--bg-color) 57%, transparent 50%);
    box-shadow: 0 0px 10px 0 var(--alt-color);
    background-repeat: no-repeat;
    background-position: 0 -100vh;
    position: relative;
    transition: 1s 0.9s;
}

.home.show {
    background-position: 0 0;
}

.img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: -1;
}

.img img {
    height: 100%;
    position: absolute;
    right: -100%;
    transition: 1s;
}

.img img.show {
    right: 0;
}

.home .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.home .container .text {
    font-size: 250px;
    padding-left: 10%;
    position: relative;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    -webkit-animation: blinker 2s infinite ease-in-out;
    animation: blinker 2s infinite ease-in-out;
    -webkit-animation-delay: 6s;
    animation-delay: 6s;
    color: var(--text-color);
}

.home .container .text::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 70%;
    top: 20%;
    -webkit-animation: blink-caret .75s step-end 8;
    animation: blink-caret .75s step-end 8;
}

/* The typewriter cursor effect */
@-webkit-keyframes blink-caret {

    from,
    to {
        background-color: transparent
    }

    50% {
        background-color: var(--sec-color);
    }
}

@keyframes blink-caret {

    from,
    to {
        background-color: transparent
    }

    50% {
        background-color: var(--sec-color);
    }
}

/* Blinking effect */
@-webkit-keyframes blinker {
    50% {
        scale: 1.01;
    }
}

@keyframes blinker {
    50% {
        scale: 1.01;
    }
}

/* ------------ Services ----------- */

.services {
    padding: 100px 10% 0;
}

.services .service-title,
.portfolio .service-title {
    padding-bottom: 50px;
    font-size: 200%;
}

.services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: space-around;
    grid-gap: 60px;
}

.services .services-item {
    position: relative;
    /* border: var(--sec-color) solid 2px; */
    border-radius: 25px;
    padding: 10px 20px;
    color: var(--text-color);
    background-color: var(--alt-color);
    transition: 0.5s;
    overflow: hidden;
}

.services .title {
    text-align: center;
    padding: 10px;
}

.services .desc {
    text-align: center;
    padding: 10px 0;
}

.services .price {
    text-align: center;
    font-size: 150%;
    font-weight: bold;
    padding-bottom: 15px;
}

.services .details {
    list-style: none;
    padding-top: 10px;
}

.services .details li {
    padding: 10px 0;
}

.services .popup {
    position: absolute;
    top: 100%;
    width: 100%;
    display: flex;
    left: 0;
    padding-bottom: 50px;
    right: 0;
    align-items: end;
    height: 100%;
    background-image: linear-gradient(0deg, var(--sec-color) 0, rgba(0, 0, 0, 0.5) 100%);
    transition: 0.3s;
}

.services .buy {
    margin: 0 auto;
    border: solid var(--text-color) 2px;
    color: var(--text-color);
    padding: 15px 20px;
    font-size: 100%;
    display: block;
    border-radius: 15px;
    transition: 0.3s;
}

.services .buy:hover {
    scale: 1.05;
}

.services .services-item:hover .popup {
    top: 0;
}

/* ----------- Portfolio ----------- */
.portfolio {
    padding: 0 10%;
}

.portfolio .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: space-around;
    grid-gap: 50px;
}

.portfolio .portfolio-item {
    width: 100%;
    height: 300px;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 20px;
    overflow: hidden;
    border: solid var(--sec-color) 3px;
}

.portfolio .portfolio-item img {
    width: 100%;
    height: 100%;
}

/* -------- Footer --------- */

.footer {
    background-color: var(--bg-color);
}

.footer p {
    padding: 20px;
    text-align: center;
    color: var(--text-color);
}

/* --------- Media Queries --------- */
@media screen and (max-width: 992px) {
    .home .container .text {
        font-size: 200px;
    }
}

@media screen and (max-width: 768px) {
    .home {
        background: none;
    }

    .img img.show {
        opacity: 0.3;
    }
}

@media screen and (max-width: 576px) {
    .home .container .text {
        font-size: 150px;
    }

    .header .navbar {
        position: fixed;
        width: 250px;
        top: 75px;
        bottom: 0;
        left: -300px;
        background-color: var(--bg-color);
        box-shadow: 0 0 10px 0 var(--alt-color);
        transition: 0.3s;
    }

    .header .navbar ul {
        flex-direction: column;
        gap: 0;
    }

    .header .navbar li {
        border-bottom: solid var(--alt-color) 1px;
    }

    .header .navbar li a {
        padding: 20px;
        padding-left: 30px;
    }

    .open-nav.active,
    .close-nav.active {
        right: 0;
    }

    .header .navbar.active {
        left: 0;
    }
}