/* Custom styles for Identidad Web */

/* Base styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f1329 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    overflow-x: hidden;
}

.orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Stars Background */
#stars, #stars2, #stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    animation: none !important;
    background: transparent !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f1329;
}

::-webkit-scrollbar-thumb {
    background: #4361ee;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a0ca3;
}

/* Navigation links */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #6c8dfa;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Service cards */
.service-card {
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
}

/* Portfolio items */
.portfolio-item {
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(10px);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.2);
}

/* Form elements */
input, textarea, select {
    color: white;
}

input::placeholder, textarea::placeholder {
    color: #b8c2ff;
}

/* Typing animation container */
.typing-container {
    display: inline-block;
    position: relative;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive notifications */
@media (max-width: 640px) {
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Planet animations */
@keyframes planet-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

.planet-img {
    animation: planet-rotate 20s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(108, 141, 250, 0.5));
}

.planet-img:hover {
    animation: planet-rotate 5s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(108, 141, 250, 0.8));
}

/* ================================================== */
/* ANIMACIONES PARA ESTRELLAS SUTILES */
/* ================================================== */

@keyframes starFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    70% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100vh) translateX(10px);
        opacity: 0;
    }
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.4;
    }
    50% { 
        opacity: 0.8; 
    }
}

/* Contenedores de estrellas */
#stars, #stars2, #stars3 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* Efecto de profundidad */
#stars div {
    opacity: 0.25 !important;
    animation-duration: 50s, 8s !important;
}

#stars2 div {
    opacity: 0.18 !important;
    animation-duration: 80s, 10s !important;
}

#stars3 div {
    opacity: 0.12 !important;
    animation-duration: 100s, 12s !important;
}

/* Efecto de desvanecimiento al hacer scroll */
body.stars-dimmed #stars div,
body.stars-dimmed #stars2 div,
body.stars-dimmed #stars3 div {
    opacity: 0.1 !important;
}

/* Ajustar el gradiente de fondo */
body {
    background: linear-gradient(135deg, #0a0e23 0%, #13162b 50%, #0d1123 100%) !important;
}

/* ================================================== */
/* AJUSTES ESPECÍFICOS PARA EL HERO SECTION */
/* ================================================== */

/* Asegurar que el hero ocupe toda la altura */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
}

/* Contenedor del texto - posición central */
#home .relative.z-10 {
    position: relative;
    z-index: 20;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
    margin-top: 0 !important;
}

/* Título principal */
#home h1.orbitron {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-size: 3.0rem;
}

/* Texto de typing */
.typing-container {
    display: block;
    margin: 0.5rem 0;
}


/* ================================================== */
/* AJUSTES ESPECÍFICOS PARA MÓVILES */
/* ================================================== */

@media (max-width: 768px) {
    /* Ajuste para el header fijo */
    body {
        padding-top: 60px !important;
    }
    
    /* Hero section para móviles */
    #home {
        min-height: 100vh;
        padding: 0 0.5rem !important;
        margin-top: -100px !important;
        padding-top: 60px !important;
    }
    
    /* Header optimizado para móviles */
    header.fixed {
        height: 60px !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Ajustar el título principal */
    #home h1.orbitron {
        font-size: 2.4rem !important;
        margin-bottom: 0.8rem;
    }
    
    /* Texto de typing */
    #typing-text {
        font-size: 1.2rem !important;
        line-height: 1.2;
    }
    
    /* Subtítulo */
    #typing-text-2 {
        font-size: 0.95rem !important;
        line-height: 1.4;
        margin: 0.4rem 0 1rem;
    }
    
    /* Botón CTA */
    #home .animate-fade-in-up a {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    /* Reducir planetas en móviles */
    #home .absolute {
        transform: scale(0.7);
    }
    
    .service-card, .portfolio-item {
        margin-bottom: 20px;
    }
}

/* Para dispositivos muy pequeños */
@media (max-width: 400px) {
    #home h1.orbitron {
        font-size: 1.7rem !important;
    }
    
    #typing-text {
        font-size: 1.7rem !important;
    }
    
    #typing-text-2 {
        font-size: 1.00rem !important;
    }
    
    #home .animate-fade-in-up a {
        padding: 0.6rem 1.1rem;
        font-size: 0.8rem;
    }
}

/* Solución específica para Safari iOS */
@supports (-webkit-touch-callout: none) {
    #home {
        min-height: -webkit-fill-available;
    }
}

/* Prevenir zoom en inputs en iOS */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* ================================================== */
/* POSICIÓN DE PLANETAS Y ASTRONAUTA - VERSIÓN MEJORADA */
/* ================================================== */

/* Ajustar elementos para que no interfieran */
#home .absolute {
    z-index: 0;
}

/* Astronauta (abajo izquierda) */
#home .absolute.bottom-10.left-10 {
    bottom: 15%;
    left: 20%;
    width: 140px;
    height: 140px;
}

/* Planeta rojo (arriba derecha) */
#home .absolute.top-20.right-20 {
    top: 20%;
    right: 15%;
    width: 100px;
    height: 100px;
}

/* Planeta amarillo (centro izquierda) */
#home .absolute.top-1\/3.left-1\/4 {
    top: 35%;
    left: 10%;
    width: 90px;
    height: 90px;
}

/* Planeta azul (abajo derecha) */
#home .absolute.bottom-1\/4.right-1\/4 {
    bottom: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
}

/* ================================================== */
/* AJUSTES PARA DISPOSITIVOS MÓVILES */
/* ================================================== */

@media (max-width: 768px) {
    /* Reducir tamaño de planetas en móviles */
    #home .absolute {
        transform: scale(0.7);
    }
    
    /* Ajustar posiciones para móviles */
    /* Astronauta */
    #home .absolute.bottom-10.left-10 {
        bottom: 10%;
        left: 3%;
        width: 100px;
        height: 100px;
    }

    /* Planeta rojo */
    #home .absolute.top-20.right-20 {
        top: 15%;
        right: 3%;
        width: 70px;
        height: 70px;
    }

    /* Planeta amarillo */
    #home .absolute.top-1\/3.left-1\/4 {
        top: 30%;
        left: 5%;
        width: 60px;
        height: 60px;
    }
    
    /* Planeta azul */
    #home .absolute.bottom-1\/4.right-1\/4 {
        bottom: 15%;
        right: 5%;
        width: 50px;
        height: 50px;
    }
}

/* Ajustes para dispositivos muy pequeños */
@media (max-width: 480px) {
    #home .absolute {
        transform: scale(0.6);
    }
    
    /* Astronauta */
    #home .absolute.bottom-10.left-10 {
        bottom: 8%;
        left: 2%;
        width: 110px;
        height: 110px;
    }

    /* Planeta rojo */
    #home .absolute.top-20.right-20 {
        top: 15%;
        right: 2%;
        width: 100px;
        height: 100px;
    }

    /* Planeta amarillo */
    #home .absolute.top-1\/3.left-1\/4 {
        top: 35%;
        left: 10%;
        width: 90px;
        height: 90px;
    }
    
    /* Planeta azul */
    #home .absolute.bottom-1\/4.right-1\/4 {
        bottom: 20%;
        right: 3%;
        width: 100px;
        height: 100px;
    }
}

/* Agrega esto a tu styles.css para el header */
.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo svg {
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 5px rgba(67, 97, 238, 0.3));
}

.logo:hover svg {
    transform: rotate(15deg);
    filter: drop-shadow(0 0 8px rgba(67, 97, 238, 0.6));
}

/* Para móviles */
@media (max-width: 768px) {
    .logo svg {
        height: 24px;
        width: 24px;
        margin-right: 8px;
    }
    
    .logo span {
        font-size: 1.4rem;
    }
}

