:root {
    --accent: #3b82f6;
    --text: #e2e8f0;
}

body {
    background: linear-gradient(270deg, #000820, #0a0035, #001a40, #000820);
    background-size: 600% 600%;
    animation: aurora 30s ease infinite;
    color: var(--text);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0;
}

@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

canvas#particles,
canvas#halo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.text-3d {
    font-family: "Orbitron", sans-serif;
    font-weight: 800;
    color: transparent;
    background: linear-gradient(90deg,
            var(--accent),
            #60a5fa,
            #93c5fd,
            var(--accent));
    -webkit-background-clip: text;
    background-size: 400% 400%;
    animation: textshift 8s infinite linear;
    text-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

@keyframes textshift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h2.section-title {
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    position: relative;
}

h2.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent),
            transparent);
    animation: underline 2s infinite linear;
}

@keyframes underline {
    0% {
        background-position: -200px;
    }

    100% {
        background-position: 200px;
    }
}

.navbar {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-family: "Orbitron", sans-serif;
    font-weight: 800;
    color: var(--accent) !important;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px var(--accent);
    }

    100% {
        text-shadow: 0 0 25px #93c5fd;
    }
}

.nav-link:hover {
    color: var(--accent) !important;
}

.photo-frame {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px var(--accent);
    overflow: hidden;
    perspective: 1000px;
    transition: transform 0.5s, box-shadow 0.5s;
}

.photo-frame:hover {
    transform: rotateY(10deg) rotateX(8deg) scale(1.05);
    box-shadow: 0 0 60px var(--accent);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.15) saturate(1.25);
}

section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
    border-radius: 10px;
    box-shadow: 0 0 10px #3b82f6;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa, #679bd6ff);
}

.widget {
    color: var(--accent);
    font-weight: bold;
    font-family: monospace;
    text-align: center;
    margin-bottom: 6px;
}

/* ==== Placeholders visibles y futuristas ==== */
::placeholder {
    color: rgba(100, 180, 255, 0.6) !important;
    text-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
    font-style: italic;
}

.form-control:focus::placeholder {
    color: rgba(150, 200, 255, 0.8) !important;
    text-shadow: 0 0 10px rgba(100, 180, 255, 0.6);
}

/* Bordes y efectos al interactuar */
.form-control {
    border: 1px solid rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    border-color: rgba(100, 180, 255, 0.8);
}

.nav-link i {
    transition: all 0.3s ease;
    text-shadow: 0 0 0 transparent;
}

.nav-link:hover i {
    text-shadow: 0 0 10px var(--accent);
    transform: scale(1.2);
}

.navbar {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-family: "Orbitron", sans-serif;
    font-weight: 800;
    color: var(--accent, #3b82f6) !important;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px var(--accent, #3b82f6);
    }

    100% {
        text-shadow: 0 0 25px #93c5fd;
    }
}

.nav-link {
    color: #e2e8f0 !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 6px 12px;
}

.nav-link:hover {
    color: #3b82f6 !important;
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.nav-link.active {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    font-weight: 600;
}

.nav-link i {
    transition: all 0.3s ease;
    color: #3b82f6 !important;
}

.nav-link.active i,
.nav-link:hover i {
    text-shadow: 0 0 10px #3b82f6;
    transform: scale(1.2);
}

.widget {
    color: #3b82f6;
    font-weight: bold;
    font-family: monospace;
    text-align: center;
}

/* Selector de idioma */
#langSelect {
    cursor: pointer;
    transition: all 0.3s ease;
}

#langSelect:hover {
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

/* --- NAVBAR RESPONSIVE FIX + ANIMACIÓN + BLUR --- */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1rem !important;
        white-space: nowrap;
    }

    .navbar .widget#clock {
        display: none !important;
        /* Oculta el reloj en móviles */
    }

    /* Fondo borroso y animación */
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.35s ease, transform 0.35s ease, backdrop-filter 0.4s ease;
    }

    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .nav-link {
        font-size: 1rem;
        text-align: center;
        color: #fff !important;
        transition: color 0.3s ease;
    }

    .nav-link:hover {
        color: #3b82f6 !important;
    }

    #hero h1 {
        font-size: 1.5rem !important;
    }

    #hero h2 {
        font-size: 1.1rem !important;
    }

    .photo-frame img {
        width: 180px !important;
        height: auto !important;
    }
}

#contactForm .form-control::placeholder {
    text-align: center;
}

/* Para los h3 dentro de proyectos */
#proyectos .project-card h3 {
    color: #60a5fa !important;
}

/* Para los h3 dentro de habilidades */
#habilidades .project-card h3 {
    color: #60a5fa !important;
}