/* -------------------------------
   HERO SECTION
-------------------------------- */
.hero-section{
    height: 100vh;
    position: relative;
    z-index: 10;
    background: url('../assets/img/home-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.hero-content{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 20px #00000086;    
}
.hero-content h1{
    font-size: 8rem;
}
.hero-content h2{
    margin-top: 1rem;
}
/*HERO ARROW*/
.hero-arrow {
    position: absolute;
    bottom: 7vh;         /* distancia desde el borde inferior */
    left: 50%;           /* centro horizontal */
    transform: translateX(-50%) rotate(-45deg); /* centra y rota */
    width: 30px;
    height: 30px;
    border-left: 3px solid transparent;
    border-bottom: 3px solid transparent;
    animation: border-color 3s infinite, bounce 3s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(-45deg) translateX(0) translateY(0);
}
60% {
    transform: rotate(-45deg) translateX(-5px) translateY(5px);
    border-color: var(--color-white);
  }
}
/* -------------------------------
   PROJECT SECTION
-------------------------------- */
.projects-section{
    position: relative;
    overflow-x: hidden;
    z-index: 8;
}
.project-left{
    background: var(--color-white);
}
.project-right{
    background-color: #f8f8f8;
}
.projects-block
{
    display: flex;
    align-items: center;
    padding: 10rem;
    z-index: 8;
}
.project-source{
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
}
.project-rectangle{
    width: 50px;
    height: 500px;
    background: linear-gradient(#66E0D0, #009E8A);
    flex-shrink: 0; 
}
.block-image {
    width: 500px;
    height: 500px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    margin: 0 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto 3rem;
    flex: 1;
}
.project-button {
    margin-top: 4rem;
    align-self: center;
    padding: 1.3rem 8rem;
    color: var(--color-main);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 300; /* Light */
    border: 2px solid var(--color-main);
    border-radius: 6rem;
    transition: background-color ease 0.3s, color ease 0.3s, border ease 0.3s;
}
.project-button:hover {
    color: var(--color-white);
    border: 2px solid transparent;
    background-color: var(--color-main);
}

.projects-semi-circle{
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%; /* tamaño del semicírculo */
    height: 500px; /* la mitad de width para semicírculo */
    background-color: var(--color-white); /* mismo color que projects-section para continuidad */
    border-radius: 0 0 100% 100%; /* semicírculo arriba */
    
}
/* -------------------------------
   CONTACT SECTION
-------------------------------- */
.contact-section {
    margin-top: -200px;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-dark);
    z-index: 0;

}
.contact-content{
    width: 100%;
    margin: 0 auto;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-button {
    padding: 0.8rem 2.5rem;
    border: 2px solid #fff;
    border-radius: 2rem;
    background-color: transparent;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 4rem;
    text-decoration: none;
    transition: background-color ease 0.3s, color ease 0.3s;
}
.contact-button:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}
/* LINKS */
.contact-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}
.contact-links a img {
    width: 100px;
    height: 100px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: transform 0.3s, filter 0.3s, opacity 0.3s;
}
.contact-links a:hover img {
    transform: scale(1.2);
    filter: none;
    opacity: 1;
}
/* IMAGE */
.contact-image {
    position: absolute;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;     /* que el contenedor abarque todo el ancho de viewport */
    height: 100%;    /* opcional, solo para referencia si necesitas */
}

.contact-image img {
    position: fixed;  
    height: 30vw;     
    bottom: 0;                 /* sigue pegada al fondo */
    left: 75vw;                /* punto de referencia a 3/4 de la ventana */
    transform: translateX(-52%); /* centra la imagen en ese punto */
    max-width: none;           /* que no se redimensione */
    object-fit: contain;       /* conserva proporciones */
}
/* -------------------------------
    FOOTER SECTION
-------------------------------- */
.footer-section{
    height:40px;
    background: none;
    padding-bottom: 2.5em;
}
/*----------------------------- MOBILE ---------------------------------------*/
@media (max-width: 1500px) {
/* -------------------------------
    HERO SECTION
-------------------------------- */
    .hero-content h1{
        font-size: 2rem;
    }
    /*HERO ARROW*/
    .hero-arrow {
        width: 20px;
        height: 20px;
    }
/* -------------------------------
   PROJECT SECTION
-------------------------------- */
    .projects-block
    {
        flex-direction: column;
        padding: 6rem 4rem;
        z-index: 8;
        gap: 2rem;
    }
    .project-source{
        order:1;
    }
    .project-rectangle{
        display: none;
    }
    .block-image {
        width: 300px;
        height: 300px;
        box-shadow: 0 0 20px #13dabf63;
    }
    .project-content {
        order: 2;
        max-width: 400px;
    }
    .project-button {
        padding: 1rem 5rem;
        font-size: 1rem;
    }

    .projects-semi-circle{
        position: relative;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 150%; /* tamaño del semicírculo */
        height: 200px; /* la mitad de width para semicírculo */
        background-color: var(--color-white); /* mismo color que projects-section para continuidad */
        border-radius: 0 0 100% 100%; /* semicírculo arriba */
        
    }
/* -------------------------------
   CONTACT SECTION
-------------------------------- */
    .contact-section {
        margin-top: -100px;
        height: 80vh;
        justify-content: center;
        text-align: center;
    }
    /* LINKS */
    .contact-links a img {
        width: 80px;
        height: 80px;
    }
    /* IMAGE */
    .contact-image img {
        height: 50vw;     
    }
/* -------------------------------
    FOOTER SECTION
-------------------------------- */
.footer-section{
    padding-bottom: 1em;
}
}