/* --------GENERAL STYLES -------- */
* {
    margin: 0;
    padding: 0;
    scroll-padding-top: 4rem;
}

:root {
    --bg-color: #000;
    --font-color: #fff;
    --secondary-bg-color: #961515;
    --font: "Poppins";
}
body {
    background-color: var(--bg-color);
    font-family: var(--font);
    color: var(--font-color);
    height: 100vh;
    max-width: 100vw;
}

.container {
    padding: 0rem 12rem;
}

@media screen and (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }
}

/* ------ CHANGE SCROLL BAR -------*/
body::-webkit-scrollbar {
    width: 0.6rem;
}

body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: rgb(165, 162, 162);
}
body::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:active {
    background-color: var(--secondary-bg-color);
}
body::-webkit-scrollbar-track {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: rgba(104, 103, 103, 0.3);
}

/* ------- HEADER -------- */
.navbar {
    padding: 0 12rem;
    background-color: var(--bg-color);
    position: relative;
}

.logo img {
    width: 120px;
    height: auto;
    margin-top: 1rem;
}

.header__info ul li {
    padding: 2.5rem 1.2rem 1rem 1.2rem;
    cursor: pointer;
}

.hireMe__button a {
    background-color: var(--secondary-bg-color);
    color: var(--font-color);
    font-family: var(--font);
    font-size: small;
    padding: 1rem 1.5rem;
    border-color: unset;
    border-width: 0;
}
.header__info ul li:hover {
    background-color: var(--secondary-bg-color);
}


/**Responsive design navbar**/

@media screen and (max-width: 1200px) {
    .navbar {
        padding: 0 2rem;
    }
    .navbar .checkbox {
        position: absolute;
        display: block;
        height: 32px;
        width: 32px;
        top: 2rem;
        right: 2rem;
        z-index: 2;
        opacity: 0;
        cursor: pointer;
    }

    .navbar .hamburger__lines {
        display: block;
        height: 26px;
        width: 32px;
        position: absolute;
        top: 2rem;
        right: 2rem;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .navbar .hamburger__lines .line {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #ffffff;
    }
    .navbar .hamburger__lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }
    .navbar .hamburger__lines .line2 {
        transition: transform 0.2s ease-in-out;
    }
    .navbar .hamburger__lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    .header__info ul li {
        padding: 0;
        margin: 2rem 0;
        cursor: pointer;
        font-size: x-large;
    }

    .header__info ul li:hover {
        background-color: unset;
    }

    .header__info {
        padding-top: 120px;
        height: 100vh;
        background: var(--secondary-bg-color);
        width: 100%;
        position: absolute;
        top: 0;
        right: 0;
        overflow: auto;
        transform: translate(150%);
        display: flex;
        flex-direction: column;
        transition: transform 0.5s ease-in-out;
    }

    .navbar input[type="checkbox"]:checked ~ .header__info {
        transform: translateX(0);
    }

    .navbar input[type="checkbox"]:checked ~ .hamburger__lines .line1 {
        transform: rotate(45deg);
    }

    .navbar input[type="checkbox"]:checked ~ .hamburger__lines .line2 {
        transform: scaleY(0);
    }

    .navbar input[type="checkbox"]:checked ~ .hamburger__lines .line3 {
        transform: rotate(-45deg);
    } 
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
    .navbar{
        padding: 0 12rem;
    }
    .navbar .checkbox, .navbar .hamburger__lines {
        right: 12rem;
    }
}


/* ------- HOME -------- */

.right__content img{
    height: 100%;
    width: 100%;
}
.right__content img,
.about__me .image img {
    border-radius: 999px; /* make oval/circular */
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
    border: 3px solid rgba(255,255,255,0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.right__content img {
    width: 320px; /* constrain size in home */
    height: 320px;
    max-width: 45vw;
    max-height: 45vw;
    display: block;
    margin: 0 auto;
}
.about__me .image .about-heart {
    width: 388px;
    height: 300px;
    max-width: 100%;
    display: block;
    margin-left: 20%;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
}

.right__content img {
    border-radius: 999px;
}
.right__content img:hover,
.about__me .image img:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), inset 0 2px 0 rgba(255,255,255,0.03);
}
.home__page {
    height: 100vh;
    width: 100%;
    position: relative;
}

.message__bubble {
    display: inline-block;
    position: relative;
    width: 180px;
    height: auto;
    background-color: var(--secondary-bg-color);
}
.triangle:after {
    content: "";
    position: absolute;
    left: 40%;
    border: 15px solid;
    border-color: var(--secondary-bg-color) transparent transparent transparent;
}

.message__text {
    padding: 1rem;
}
.home__buttons button {
    padding: 1rem 2rem;
    color: var(--font-color);
}

.home__buttons a {
    background-color: var(--secondary-bg-color);
    font-size: 0.9rem;
    color: #fff;
    padding: 1rem 1.5rem;
}
.home__buttons button {
    background-color: transparent;
    border: 1px solid #fff;
    border-width: thin;
    font-family: var(--font);
    font-size: 0.9rem;
    color: #fff;
    padding: 1rem 1.5rem;
}

@media screen and (max-width: 576px) {
    .message__bubble {
        width: 160px;
    }
    .home__buttons a {
        padding: 1rem 1rem !important;
    }
}
@media screen and (max-width: 1200px) {
    .home__page{
        padding-top: 10rem;
    }
}



/* ------- ABOUT ME -------- */

.about__me .image img {
    height: 100%;
    width: 100%;
    filter: grayscale(1);
    object-fit: cover;
}

.progress__bar {
    width: 100%;
    height: 0.2rem;
    position: relative;
    background-color: #707070;
}

.progress__bar span {
    height: 100%;
    position: absolute;
}
.progress__wordpress span {
    background-color: #181680;
    width: 100%;
}
.progress__html span {
    background-color: #172c8b;
    width: 95%;
}
.progress__angular span {
    background-color: #111264;
    width: 100%;
}
.progress__reactJs span {
    background-color: #2a127e;
    width: 100%;
}

/* ------- FREE LANCER -------- */

.freelancer {
    height: 50vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)) ,url(./assets/freelancer2.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* ------- SERVICES -------- */
.services {
    padding-top: 81px;
}
.card {
    background-color: #111111;
    transition: all 0.2s ease-in;
}
.service__logo {
    height: 60px;
    width: 60px;
    background-color: #000;
    border-radius: 50%;
    transition: all 0.2s ease-in;
}

.service__logo i {
    font-size: x-large;
    transition: all 0.2s ease-in;
}

.card:hover {
    background-color: var(--secondary-bg-color);
}
.card:hover .service__logo {
    background-color: #fff;
}
.card:hover .service__logo i {
    color: #000;
}


/* ------- PORTFOLIO -------- */

.gallery__categories ul li {
    font-size: small;
    cursor: pointer;
}
.gallery__categories .filter-item.active {
    border-bottom: 1px solid var(--secondary-bg-color);
}

.proyect__gallery {
    gap: 1.25rem !important;
}

.project__card {
    width: 300px;
    height: 360px;
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.project__card:hover {
    transform: translateY(-6px);
    border-color: rgba(150, 21, 21, 0.55);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.project__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}
.project__card:hover img {
    transform: scale(1.05);
}

.project__card .overlay {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(20, 8, 8, 0.92) 70%);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    -webkit-transition: all 0.35s ease-in-out;
    -moz-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
}

.project__card .project__info {
    position: absolute;
    top: 75%;
    left: 50%;
    width: 88%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out 0s;
}

.project__card .project__info h2 {
    font-size: 1.05rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.project__card .project__info p {
    font-size: 0.82rem;
    margin-top: 0.55rem;
    color: #e8e8e8;
    line-height: 1.4;
}

.project__card .fa-arrow-right-long {
    margin-top: 0.85rem;
    cursor: pointer;
}


.project__card:hover .project__info {
    top: 50%;
    left: 50%;
    opacity: 1;
    pointer-events: unset;
}

.project__card:hover .overlay {
    opacity: 1;
}


.project__card.hide {
    display: none;
}
.project__card.show {
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ------- FOOTER -------- */
footer {
    border-top: 2px solid #fff;
}

:is(.social__media, .contact, .my__services) h3 {
    margin-bottom: 1rem;
}

:is(.social__media, .contact, .my__services) p,
:is(.fa-phone, .fa-envelope, .fa-message, .fa-brands) {
    color: #a3a3a3;
}

.social__mediaIcons .fa-brands {
    font-size: 2rem;
    transition: all 0.2s ease-in;
    cursor: pointer;
}

.social__mediaIcons .fa-brands:hover {
    color: var(--secondary-bg-color);
}
.contact a {
    padding: 0.5rem 1.8rem;
    background-color: unset;
    border: 1px solid var(--secondary-bg-color);
    font-family: var(--font);
    font-size: 0.9rem;
    color: #a3a3a3;
}

/* Contact form styles (injected by static/script.js) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: 360px;
    margin-top: 1rem;
}
.contact-form .form-row {
    display: flex;
    flex-direction: column;
}
.contact-form label {
    font-size: 0.85rem;
    color: #cfcfcf;
    margin-bottom: 0.3rem;
}
.contact-form input,
.contact-form textarea {
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 0.95rem;
}
.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}
.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.2rem;
}
.btn {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary {
    background: var(--secondary-bg-color);
    color: #fff;
    width: 100%;
    max-width: 220px;
}
.btn-secondary {
    background: transparent;
    color: #a3a3a3;
    border: 1px solid rgba(255,255,255,0.08);
}
.contact-status {
    margin-top: 0.4rem;
    color: #e6e6e6;
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    .contact-form {
        max-width: 100%;
    }
    .container {
        padding: 0 1rem;
    }
}