@font-face {
    font-family: 'Beezle';
    src: url('/fonts/Beezle.otf') format('truetype');
}

:root {
    --primary-color: #00684a;
    --secondary-color: #00ed64;
    --radius-bottom: 220px;
    --color-text: #333333;
    /*------Dark Mode Variables------*/
    --bg-color: #ffffff;
    --text-color: #333333;
    --nav-bg: #f8f9fa;
    --nav-border: #e9ecef;
    --link-color: #495057;
    --link-hover: #000000;
    --toggle-bg: #e9ecef;
    --toggle-circle: #ffffff;
    --toggle-text: #6c757d;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    margin: 0;
    font-family: "Archivo", sans-serif;
    color: #1c1c1c;
}

header {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d6d6d6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1500px;
    position: fixed;
    margin-top: 3rem;
    z-index: 1;
}

.nav-icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    background-color: var(--primary-color);
    border-radius: 7px;
    padding: 5px;
    margin-left: 10px;
}

.navbar a {
    font-weight: bold;
    text-decoration: none;
    margin-left: 15px;
    color: #858585;
    cursor: pointer;
    text-transform: uppercase;
    padding: 0.5rem;
    font-family: 'Beezle', serif;
}

.navbar a:hover {
    border-bottom: 3px solid var(--secondary-color);
    transition: all 0.1s ease-in-out;
}

.logo {
    display: flex;
}

html {
    scroll-behavior: smooth;
}

h1 {
    border-radius: 10px;
    font-weight: 900;
    font-size: 8rem;
    color: #1c1c1c;
}

.btn {
    border: none;
    margin-right: 10px;
    width: 180px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    gap: 5px;
    transition: all 0.3s ease-in-out;
    border: 2px solid #002e21;
}

.btn a {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1rem;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.05);
    color: white;
    border-radius: 15px;
}

.btn:hover a {
    color: white;
}

.btn-container {
    display: flex;
    margin-top: 1.5rem;
}

.name {
    font-family: 'Beezle', serif;
    line-height: 0.75;
    color: white;
}


.ver-todos {
    color: rgb(233, 233, 233);
    text-decoration: none;
    background-color: #333;
    padding: 10px;
    border-right: 3px solid var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

.ver-todos:hover {
    color: var(--secondary-color);
}

.profession {
    color: rgb(235, 235, 235);
    font-family: "Archivo", sans-serif;
    font-size: 1.5rem;
    margin-top: 1rem;
}

#proyectos {
    background-color: var(--primary-color);
}

.first-section {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-evenly;
    scroll-snap-align: start;
    width: 100%;
}

.presentacion-text {
    width: 90%;
    height: 80%;
    background-image: url(/images/magicpattern-mesh-gradient-1758828239372.png);
    background-size: cover;
    padding: 100px;
    border-radius: 30px;
    margin: 0;
}

#developer-designer {
    background-color: var(--primary-color);
}

.presentacion-text a {
    text-decoration: none;
}

.full-screen-section {
    height: 110vh;
    max-width: 1500px;
    margin: 0 auto;
}

.margin-0 {
    margin: 0;
}

.second-section {
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
}

.radius-bottom {
    border-radius: 0px 0px var(--radius-bottom) 0px;
}

.text-container {
    border-radius: 10px 0px 0px 10px;
    background-color: #ffffff;
    max-width: 1500px;
    border-left: 10px solid var(--secondary-color);
    padding: 2rem;
    width: 80%;
}

.phrase {
    font-size: 6rem;
    margin: 0;
    color: white;
    border-left: 10px solid var(--secondary-color);
}

.text-container h2 {
    text-transform: uppercase;
    font-size: 6rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.text-container p {
    font-weight: 500;
    font-size: 1.3rem;
    color: rgb(75, 75, 75);
}

/* Underline Reveal */
.hvr-underline-reveal {
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    overflow: hidden;
}

.hvr-underline-reveal:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    height: 4px;
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

.hvr-underline-reveal:hover:before,
.hvr-underline-reveal:focus:before,
.hvr-underline-reveal:active:before {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.title-1 {
    padding: 2% 0 0 8%;
    font-size: 3rem;
    color: white;
}

.fifth-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mid-screen-section {
    height: 75vh;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

#tecnologias {
    width: 100%;
    padding-top: 6%;
    display: flex;
}

.width {
    width: 90%;
    margin: 1%;
}

#tecnologias p {
    font-size: 1.5rem;
    padding-left: 4%;
    margin: 0;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    color: white;
    border-left: 5px solid var(--secondary-color);
}

.width p:last-child {
    border-bottom-right-radius: 15px;
}

#tecnologias p:hover {
    transform: scale(1.02);
    font-weight: bold;
}

#tecnologias h2 {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 0.5rem;
    margin-bottom: 0;
    color: rgb(32, 32, 32);
    background-color: #f0f0f0;
    font-size: 2.5rem;
}

.card {
    border-radius: 35px;
    width: 35%;
    height: 70%;
    max-height: 500px;
    margin: 3%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    background-size: cover;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.418);
    transition: all 0.3s ease-in-out;
}

.card img {
    margin: 0 auto;
    width: 50%;
    margin-bottom: 3rem;
}

.card:hover {
    width: 50%;
}

.card:hover .text-card {
    color: white;
    background-color: var(--secondary-color);
}

.card h3 {
    color: #002e21;
    text-align: center;

    font-weight: 700;
    font-size: 1.8rem;
    padding: 5px 0 5px 5px;
    margin-top: 25px;
    transition: all 0.3s ease-in-out;
    font-family: 'Beezle', serif;
}

.text-card {
    color: white;
    background-color: #002e21;
    margin: 0;
    padding: 0 25px 25px 25px;
    transition: all 0.3s ease-in-out;
}

.card a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

#contacto {
    display: grid;
    grid-template-columns: 1fr 2fr;
    justify-items: center;
    align-items: center;
    background-color: #ffffff;
}

.boxes-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
}

.contact-container button {
    margin: 3px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 5px;
}

.contact-container a {
    text-decoration: none;
    color: inherit;
}

.contact-container h3 {
    margin: 0;
}

.contact-container p {
    margin-top: 0.5rem;
}

.boxes-container .box {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 30px;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.box:hover {
    background-color: white;
    border: 3px solid var(--primary-color);
}

.boxes-container .box:hover p {
    color: var(--primary-color);
    font-weight: bold;
}

.boxes-container .box p {
    color: white;
}

.boxes-container p {
    font-size: 1.5rem;
    font-family: "Playfair Display", serif;
    color: rgb(119, 119, 119);
}

.img-contact {
    margin: 0;
    width: 20px;
    height: 20px;
}

#mobile-toggle {
    display: none;
}

/*------Dark Mode Toggle------*/
.theme-toggle {
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--toggle-text);
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--toggle-bg);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--toggle-circle);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

input:checked+.slider:before {
    transform: translateX(30px);
}

/*------Media Queries------*/
@media (max-width: 768px) {
    #mobile-toggle {
        display: block;
        margin-bottom: 20px;
    }

    .navbar {
        display: none;
    }

    .first-section {
        display: block;
    }

    .btn {
        height: 60px;
        width: 100%;
        margin: 0;
        margin-top: 2%;
    }

    .project-img {
        display: none;
    }

    .presentacion-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        width: 100%;
        height: 100%;
        padding: 0;
    }

    .profession {
        margin: 10% 0 10% 0;
        font-size: 2rem;
    }

    .name {
        font-size: 3rem;
        line-height: 0;
        margin: 0 0 10% 0;
    }

    .text-container h2 {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    .btn-container {
        display: block;
        border-radius: 30px;
        padding: 3%;
    }

    .phrase {
        writing-mode: vertical-lr;
        font-size: 3rem;
        text-align: center;
    }

    .card:hover {
        width: 90%;
    }

    .text-container {
        width: 100%;
        padding: 0;
        border-left: none;
        background: none;
    }

    #Sobre-mi {
        border-right: none;
        margin: 0 auto;
    }

    .text-container button {
        width: 100%;
        margin-top: 10%;
        padding: 1rem;
        font-size: 1.2rem;
        text-align: center;
    }

    #tecnologias {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 110vh;
    }

    .width {
        width: 100%;
    }

    .fifth-section {
        flex-direction: column;
        padding: 0 1rem 0 1rem;
    }

    .title-1 {
        margin-bottom: 50px;
    }

    .card {
        width: 90%;
        height: 50%;
        margin: 10% 0 2rem 0;
    }

    #contacto {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
    }

    .boxes-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .boxes-container .box {
        width: 90%;
        height: auto;
    }

    .boxes-container p {
        font-size: 1.2rem;
    }

    .contact-container button {
        width: 40px;
        height: 40px;
    }

    .contact-container h3 {
        font-size: 1.2rem;
    }

    .contact-container p {
        font-size: 0.9rem;
    }
}