/* General */

:root {
    --blue-color: #0077B7;
}

body {
    font-family: 'Anonymous Pro', monospace;
    background: #2F2F2F;
    color: #ffffff;
}

.hide {
    display: none !important;
}

.not-visible {
    visibility: hidden;
}

.d-flex {
    display: flex;
}

.column-aligned {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-center {
    text-align: center;
}

button,
a {
    cursor: pointer;
}

a {
    color: white;
    text-decoration: none;
}


/* Header */

.hamburger {
    position: absolute;
    right: 15px;
    cursor: pointer;
    z-index: 1;
}

.hamburger .menu-line {
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    margin: 8px 0 0 0;
}

@keyframes line1-animation {
    60% {
        transform: translate(0, 10px);
    }
    100% {
        transform: translate(0, 10px) rotate(225deg);
        background-color: #23b2ff;
    }
}

@keyframes line2-animation {
    60% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes line3-animation {
    60% {
        transform: translate(0, -10px);
    }
    100% {
        transform: translate(0, -10px) rotate(315deg);
        background-color: #23b2ff;
    }
}


@keyframes line1-animation-back {
    50% {
        transform: translate(0, 10px) rotate(-180deg);
    }

    70% {
        transform: translate(0, 10px) rotate(-180deg);
    }
    100% {
        transform: translate(0, 0) rotate(-180deg);
        background-color: #fff;
    }
}

@keyframes line2-animation-back {
    60% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes line3-animation-back {
    50% {
        transform: translate(0, -10px) rotate(-360deg);
    }

    70% {
        transform: translate(0, -10px) rotate(-360deg);
    }
    100% {
        transform: translate(0, 0) rotate(-360deg);
        background-color: #fff;
    }
}

/* Hero section */

.hero-section {
    height: 100vh;
}

.hero-section h1 {
    line-height: 1.7rem;
}

.hero-section span,
.portfolio-section > h2,
.see-more-btn,
.form-section h2 {
    color: var(--blue-color);
}

.social-icons {
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.social-icons img {
    margin: 10px 0 0 0;
    max-width: 35px;
    transition: all 0.1s ease-in-out;
}

.social-icons img:hover,
.social-icons img:active,
.social-icons img:focus,
.see-more-btn:hover,
.see-more-btn:active,
.see-more-btn:focus {
    transform: scale(1.1);
    transform: scale(1.1);
    filter: drop-shadow(0 0 2px var(--blue-color)) brightness(1.4);
    transition: all 0.1s ease-in-out;
}

.menu-items-container {
    width: 100%;
    position: absolute;
    margin: 0;
    top: 20px;
    left: -40px;
    padding: 0;
    justify-content: end;
    z-index: 0;
}

.menu-items-container li {
    list-style: none;
    margin: 0 -35px 0 0;
    opacity: 0;
}

.open-menu {
    animation: open-menu 0.5s forwards;
}

.open-menu a:hover {
    filter: drop-shadow(0 0 2px var(--blue-color)) brightness(1.4);
}

.close-menu {
    animation: close-menu 0.3s forwards;
}


@keyframes open-menu {
    70% {
        margin-right: 35px;
    }
    70% {
        margin-right: 40px;
    }
    100% {
        margin-right: 35px;
        opacity: 1;
    }
}

@keyframes close-menu {
    0% {
        margin-right: 35px;
        opacity: 1;
    }
    80% {
        
    }
    100% {
        margin-right: -40px;
        opacity: 0;
    }
}

/* Portfolio section */

.portfolio-section,
.form-section {
    padding: 30px;
}

.portfolio-section .cards-container {
    gap: 1.33%;
    flex-wrap: wrap;
}

.portfolio-section .card {
    background-color: #000;
    width: 32.3%;
    margin: 10px 0 0 0;
    cursor: pointer;
}

.portfolio-section .info-container {
    padding: 5px;
    height: 100%;
    width: 90%;
    justify-content: space-between;
    align-items: start;
}

.portfolio-section .info-container .card-title-container {
    margin: 15px 0;
}

.portfolio-section .info-container .title {
    margin: 5px 0 0 0;
}


.card-img-container {
    margin: 15px 0 0 0;
    height: 230px;
    width: 100%;
    margin-bottom: 15px;
}

.card-img-container img {
    max-height: 100%;
    width: auto;
}


.portfolio-section .card .top-border {
    height: 2px;
    width: 100%;
    /* background-color: #0077B7; */
    transition: all 0.2s ease-in-out;

}

.portfolio-section .card:hover {
    transform: scale(1.01);
    transition: all 0.2s ease-in-out;

}

.light-focus {
    position: relative;
    top: 0;
    width: 0%;
    height: 1px;
    background: transparent;

}


@keyframes card-flash {
    0% {
        margin: 0;
        opacity: 0;
    }

    10% {
        opacity: 0.7;
        height: 2px;
        box-shadow: 0 0 10px #ffffff;
    }

    60% {
        width: 30%;
    }

    100% {
        margin-left: 90%;
        opacity: 0;
        width: 15%;
        background-color: #2e2f30;
        box-shadow: 0 0 20px #ffffff;
    }
}

.portfolio-section .card:hover .light-focus {
    animation: card-flash 0.4s ease-in-out 0.2s 1 alternate forwards;
}

.see-more-btn {
    margin: 20px 0;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 1.2rem;
    transition: all 0.1s ease-in-out;
}

.btn-container {
    width: 100%;
}

.cards-container-new {
    height: 0;
    overflow-y: hidden;
    animation: new-cards 0.3s forwards;
}

@keyframes new-cards {
    60% {
        height: 0;
    }
    80% {
        height: 180px;
    }

    100% {
        height: 160px;
    }
}


/* Modal Section */

.modal-section {
    position: fixed;
    justify-content: center;
    align-items: center;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #2e2f30;
    height: 100%;
    overflow-y: scroll;
    animation: modal-fade;
    z-index: 999;
}

.portfolio-section .card:hover .light-focus.with-modal{
    animation: unset;
}

.card.card.with-modal:hover {
    transform: none;
    transition: none;
}
.card.with-modal .top-border{
    padding: 0;
}

.modal-section.closing {
    animation: closing-modal 0.5s ease-in-out forwards;
}

@keyframes closing-modal {
    50% {
        transform: scaleY(0.005);
    }
    70% {
        transform: scaleY(0.005);
    }
    100% {
        transform: scaleY(0.005);
        transform: scale(0);
    }
}


.modal-section .close-btn {
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 2rem;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 999;
}

.modal-inner-container {
    width: 100%;
    height: 100%;
    background: url('/images/dots-background.svg');
    justify-content: center;
    opacity: 0;
    animation: modal-fade 1.5s forwards;
}

@keyframes  modal-fade {
    100% {
        opacity: 1;
    }
}

.modal-inner-container .text-container {
    padding: 50px;
    max-width: 900px;
    height: fit-content;
}

.modal-inner-container .text-container h2 {
    font-size: 2.5rem;
    font-weight: bolder;
    margin: 0;
}

.modal-inner-container .text-container h3 {
    font-size: 2.5rem;
    font-weight: bolder;
    margin: 40px 0 0 0
}

.modal-inner-container .text-container p {
    margin: 50px 0 30px 0;
    font-size: 1.2rem;
}

.modal-img-m {
    display: none;
}

.modal-inner-container .text-container img {
    width: 100%;
    box-shadow: 2px 5px 10px #000000;
}

.modal-inner-container .text-container .project-btn-container {
    justify-content: space-between;
    margin: 40px 0 10px 0;
}
.modal-inner-container .text-container .project-btn {
    font-family: 'Roboto', sans-serif;
    width: 30%;
    min-width: 200px;
    margin: 0 0 20px 0;
    padding: 10px 30px;
    border: 0;
    color: transparent;
    font-size: 1rem;
    font-weight: 700;
    background: none;
    letter-spacing: 1px;
    transition: transform 0.2s ease-in-out, filter  0.4s ease-in-out;
}

.modal-inner-container .text-container .project-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    transition: all ease-in-out 0.2s;
}

.modal-inner-container .text-container .project-btn:active {
    transform: scale(1.02);
    filter: brightness(1.5);
    transition: all ease-in-out 0.002s;
}

.modal-inner-container .stack-container {
    width: 100%;
    margin: 20px 0 0 0;
    flex-wrap: wrap;
}

.modal-inner-container .stack-card {
    box-shadow: 2px 2px 5px 0 #0000009f;
    width: fit-content;
    padding: 10px;
    background-color: #4c4c4c;
    margin: 0 15px 0 0;
}

.modal-inner-container .stack-card h3 {
    font-size: 0.9rem;
    margin: 0;
}

.portfolio-section .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Form section */

form input,
form textarea {
    margin: 10px 0;
    background-color: #444343;
    color: #fff;
    border: 0;
    font-family: inherit;
    padding: 10px 0;
    font-size: 1rem;
    width: 100%;
}

.submit {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.submit:hover {
    background: #0077B7;
    filter: drop-shadow(0 0 2px var(--blue-color)) brightness(1.4);
    transition: all 0.2s ease-in-out;
}


form input::placeholder,
form textarea::placeholder {
    color: #2F2F2F;
    padding: 0 0 0 5px;
}

form input:focus-visible,
form textarea:focus-visible {
    outline: none;
    caret-color: var(--blue-color);
}

form input:focus-visible::placeholder,
form textarea:focus-visible::placeholder {
    color: transparent;
}

.group-input-50 {
    gap: 1%;
}

.form-section .filled:after  {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background-color: var(--blue-color);
    bottom: 10px;
    left: 0;
    animation: input-bottom 0.4s forwards;
}

@keyframes input-bottom {
    100% {
        width: 100%;
        box-shadow: 0 0 5px var(--blue-color);
    }
}

.form-section .input-field  {
    width: 100%;
    position: relative;
}

.form-section .error {
    color: #ff0000;
    font-size: 0.9rem;
    margin: 0 0 5px 5px;
}

.group-input-100 input,
.group-input-100 textarea {
    width: 100%;
}

.group-50 {
    width: 50%;
}

.group-input-100 {
    flex-direction: column;
}




@media (max-width: 991px) {
    .portfolio-section .card {
        width: 100%;
        margin: 25px 0 0 0;
    }

    .group-50 {
        width: 100%;
    }

    .group-input-50 {
        flex-direction: column;
    }

    .form-section .input-field {
        padding: 0;
    }

    form input, form textarea {
        padding: 10px 0px 10px 2px;
    }

    form input::placeholder,
    form textarea::placeholder {
        margin: 0 0 0 5px;
    }

    .modal-inner-container .text-container .project-btn {
        min-width: 150px;
        padding: 10px 25px;
    }

    .modal-inner-container .text-container {
        padding: 60px 20px;
    }

    .card-img-container {
        height: 300px;
    }
    
    .social-icons {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        left: 0;
    }    
    .social-icons a {
        margin: 0 15px;
    }
}

@media (max-width: 541px) {
    .card-img-container {
        height: 160px;
    }

    .modal-img-d {
        display: none;
    }
    .modal-img-m {
        display: block;
    }

    .modal-inner-container .stack-card {
        margin: 10px 15px 0 0;
    }
}
