@font-face {
    font-family: 'Onest';
    src: url('/fonts/Onest-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; 
    font-style: normal;
    font-display: swap;
}

:root {
    --color-negro: #0A0A0A;
    --color-azul-oscuro: #0D1B2A;
    --color-azul-mas-oscuro: #070b11;
    --color-azul-medio: #263552;
}

/*Body*/

body{
    margin: 0;
    background-color: #0a0a0a;
    /* sin background-attachment */
    background-image: radial-gradient(
        ellipse 120vw 120vh at 50% -20vh,
        rgba(105,105,119,0.3),
        rgba(255,255,255,0)
    );
    background-repeat: no-repeat;
    background-position: 50% -20vh; /* refuerza la posición */
    background-size: 120vw 120vh;   /* tamaño ligado al viewport */
    
}


/*Logo*/

.logo {
    height: 90px;
    width: 150px;
    object-fit: cover;
}

/*Nav*/

nav {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
    padding: 15px 70px;
    
}

nav ul {
    display: flex;
    gap: 90px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none; 
    color: #EAEAEA;        
    font-weight: 800;
    transition: color 0.3s ease;
}

nav a:hover {
    color: rgb(172, 172, 172);
}

/*Social Buttons*/

.social-buttons {
    display: flex;
    align-items: center;
}

.social-buttons ul {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-buttons svg {
    width: 18px;
    height: 18px;
    display: block;
}

.social-buttons .instagram svg {
    transform: scale(1.30); 
    transform-origin: center; 
}

/*Profile Picture*/

.profile-picture {
    position: absolute;
    right: 100px;
    width: 600px;
    height: 600px;
    object-fit: cover;
    opacity: 90%;
    top: 80px;
    animation: fade-in 0.2s ease-out both;
}

.fade-in {
    --fade-duration: 800ms;
    --fade-ease: ease-out;
    animation: fade-in var(--fade-duration) var(--fade-ease) both;
    will-change: opacity;
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.profile-picture {
    mask-image: linear-gradient(to bottom, black 25%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 25%, transparent 100%);
}

/*Text Information*/

.text-information{
    position: absolute;
    font-family: "Onest";
    left: 170px;
    top: 350px;
}

.text-information h1{
    font-family: "Millesa";
    color: white;
    font-size: 75px;
    margin: 0 0;
    font-weight: 900;
    font-style: italic;
}
.text-information h2{
    font-family: "Millesa";
    color: rgb(230, 230, 230);
    font-size: 36px;
    margin: 0 0;
    font-weight: 800;
    
}

/*Typing Machine Effect*/

.typewriter {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #EAEAEA; 
    animation:
        typing 2s steps(17, end) forwards,
        blink .6s step-end infinite 2s forwards; 
}

@keyframes typing {
    from { width: 0.5ch; }  
    to   { width: 11.7ch; }
}

/*Blink cursor*/
@keyframes blink {
    50% { border-right-color: transparent; }
}

/*Bloques*/
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease-out, transform .6s ease-out;
    will-change: opacity, transform;
    position: relative;  
    z-index: 1;
    margin-top: 1000px; 
    overflow: visible;
}

/*Space between*/
.reveal + .reveal {
    margin-top: 700px; 
}

/* Visible in viewport */
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/*Reveal h2*/

.reveal h2 {
    width: 310px;
    font-family: "Millesa";
    font-size: 60px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;       /* centra el texto */
    display: block;
    margin: 0 auto;           /* centra el bloque mismo */
    transition: color 0.3s ease;
    overflow: visible;
}

/* efecto suave al pasar el mouse */
.reveal h2:hover {
    color: rgb(153, 153, 153);  
}

/*Reveal p*/
.reveal p {
    font-size: 30px;        
    font-weight: 500;         
    line-height: 1.6;         
    color: #ffffff;           
    max-width: 1200px;       
    margin: 0 auto;           
    text-align: left;       
    margin-top: 70px;
}

/*P Background*/
.bloque::before {
    content: "";
    position: absolute;
    inset: -350px 0; 
    background-image: url('../images/background-text.png');
    background-repeat: no-repeat;
    background-size: 70% auto;
    background-position: center;
    opacity: 0.070;
    z-index: 0;
}

.bloque * {
    position: relative;
    z-index: 2; 
}

/*Contact links*/

.contact-link{
    text-decoration: none;
    color: rgb(163, 163, 163);
    transition: color 0.3s ease;
    font-size: 30px;
    font-style: italic;
}

.contact-link:hover{
    color: rgb(255, 255, 255);  
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
    .logo {
        display: block;
        margin: 10px auto;
        width: 130px;
        height: auto;
        object-fit: cover;
    }


    .reveal h2 {
        font-size: 28px;
        text-align: center;
        width: auto;
        margin: 0 auto 20px auto;
    }


    .reveal p {
        font-size: 15px;  
        line-height: 1.5;
        max-width: 90vw;
        margin: 0 auto 30px auto;
        text-align: center;
    }


    nav ul {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 0;
        padding: 10px 14px;
        margin: 0;
        background: rgba(10,10,10,0.92);
        backdrop-filter: blur(6px);
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    nav a {
        font-size: 14px;
        font-weight: 700;
        padding: 6px 8px;
    }

    .profile-picture {
        position: static;
        display: block;
        margin: 16px auto 0;
        width: 65vw; height: 65vw;
        max-width: 420px; max-height: 420px;
    }

    .text-information {
        position: static;
        margin: 16px 16px 0;
        text-align: center;
    }

    .text-information h1 { font-size: 40px; }
    .text-information h2 { font-size: 22px; }

    html, body { overflow-x: hidden; }
    body {
        background-position: 60% -25vh;
        background-size: 200vw 150vh;
    }


    .reveal { margin-top: 220px; }
    .reveal + .reveal { margin-top: 150px; }

    .contact-link {
        font-size: 14px;
    }
    }
