@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: #000;
}

/* --- HEADER TRANSPARENTE --- */
header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 10%;
}


.logo a { font-size: 1.4rem; font-weight: 900; color: #1d1d1f; text-decoration: none; letter-spacing: -1px; }
.logo span { color: #0071e3; }
.nav-links a { text-decoration: none; color: #1d1d1f; margin-left: 25px; font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: #0071e3; }

/* --- SECCIONES 16:9 --- */
.full-page {
    width: 100%;
    min-height: 100vh;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 2rem;
}

#home { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop'); }
#About-Me { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?q=80&w=2072&auto=format&fit=crop'); }
#academic-awards { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://freedesignfile.com/upload/2016/11/A-rocket-carrying-a-space-shuttle-HD-picture.jpg'); }
#projects { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1583711565105-afd990bb44a4?q=80&w=870&auto=format&fit=crop'); }
#NebulaSystems { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1517976487492-5750f3195933?q=80&w=2070&auto=format&fit=crop'); }
/* --- CONTENEDOR PRINCIPAL (GLASS) --- */
.main-container {
    background: rgba(0, 30, 75, 0.12);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3.5rem;
    border-radius: 40px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    color: white;
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-container.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2 { font-size: 3.2rem; font-weight: 900; margin-bottom: 1rem; letter-spacing: -2px; }
p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.5rem; font-weight: 300; opacity: 0.9; }

/* --- BOTÓN ACADEMIC AWARDS (POSICIÓN) --- */
.navigation {
    margin-top: 30px; 
    margin-bottom: 40px; /* Despega el botón de las redes sociales */
}

.btn-link {
    display: inline-block;
    background: #0071e3;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-link:hover {
    background: #0077ed;
    transform: scale(1.05);
}


.btn-link2 {
    display: inline-block;
    background: #0071e3;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-link2:hover {
    background: #0077ed;
    transform: scale(1.05);
}


.btn-link3 {
    display: inline-block;
    background: #0071e3;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-link3:hover {
    background: #0077ed;
    transform: scale(1.05);
}




/* --- REDES SOCIALES (REDONDAS 90PX) --- */
.social-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.up, .down { display: flex; gap: 12px; }

.card1, .card2, .card3, .card4 {
    width: 90px;
    height: 90px;
    border: none;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Redondez original */
.card1 { border-radius: 90px 8px 8px 8px; }
.card2 { border-radius: 8px 90px 8px 8px; }
.card3 { border-radius: 8px 8px 8px 90px; }
.card4 { border-radius: 8px 8px 90px 8px; }

/* Colores de Iconos */
.instagram { fill: #cc39a4; }
.gmail { fill: #f40303; }
.github { fill: #333; }
.card4 svg { stroke: #1a2a3a; }
.card4 text { fill: #1a2a3a; }

/* Hovers */
.card1:hover { background: #cc39a4; transform: scale(1.1); }
.card2:hover { background: #f40303; transform: scale(1.1); }
.card3:hover { background: #000; transform: scale(1.1); }
.card4:hover { background: #0beee3; transform: scale(1.1); }

.card1:hover .instagram, 
.card2:hover .gmail, 
.card3:hover .github,
.card4:hover svg { 
    fill: white; 
    stroke: white; 
}
.card4:hover text { fill: white; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .full-page { aspect-ratio: auto; }
    h1, h2 { font-size: 2.2rem; }
    
    .navbar {
        padding: 0.1rem 3%;
        flex-direction: column; /* Stack logo and links for more space if needed */
        gap: 0.5rem;
    }

    .logo a { 
        font-size: 0.6rem; /* Casi del mismo tamaño que los links */
        letter-spacing: 0; 
    }
    
    .nav-links {
        display: flex;
        justify-content: center;
        gap: 12px;
        width: 100%;
        flex-wrap: wrap; /* Allow links to wrap to a second line if they don't fit */
    }

    .nav-links a { 
        margin-left: 0 !important; /* Reset margin in favor of gap */
        font-size: 0.75rem; 
        white-space: nowrap;
    }

    .main-container { padding: 2rem 1rem; }
}

/* Extra small screens */
@media (max-width: 480px) {
    h1, h2 { font-size: 1.8rem; }
    .nav-links { gap: 6px; }
    .nav-links a { font-size: 0.65rem; }
}

.hero-text p {
  margin: 0.4rem;
  line-height: 1.3;
}
