* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #1DF300;
    --bg-black: #000000;
    --bg-dark: #0f0f0f;
    --bg-darker: #080808;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --border-opacity: 0.15;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(29, 243, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar.scrolled .logo-icon {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-150%);
        border-bottom: 2px solid var(--primary-green);
        box-shadow: 0 4px 20px rgba(29, 243, 0, 0.3);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(29, 243, 0, 0.03) 0%, transparent 60%);
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0s forwards, floatIcon 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(29, 243, 0, 0.4));
    transition: transform 0.3s ease;
}

.hero-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--primary-green);
    text-shadow: 0 0 15px rgba(29, 243, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.glitch {
    position: relative;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.role {
    font-size: 1.1rem;
    color: var(--text-white);
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* Sections */
.section {
    min-height: auto;
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(29, 243, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Proyectos Section */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.proyecto-card {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-darker));
    border: 1px solid rgba(29, 243, 0, var(--border-opacity));
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.6s ease forwards;
}

.proyecto-card:nth-child(1) { animation-delay: 0.1s; }
.proyecto-card:nth-child(2) { animation-delay: 0.2s; }
.proyecto-card:nth-child(3) { animation-delay: 0.3s; }

.proyecto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(29, 243, 0, 0.2);
    border-color: rgba(29, 243, 0, 0.4);
}

.proyecto-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--bg-darker);
}

.proyecto-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proyecto-info {
    padding: 1.5rem;
}

.proyecto-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.proyecto-info p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-proyecto {
    width: 100%;
    padding: 0.75rem;
    background-color: transparent;
    color: var(--primary-green);
    border: 1px solid rgba(29, 243, 0, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Lato', sans-serif;
}

.btn-proyecto:hover {
    background-color: var(--primary-green);
    color: var(--bg-black);
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 243, 0, 0.3);
}

/* Redes Section */
.redes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.red-item {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-darker));
    border: 1px solid rgba(29, 243, 0, var(--border-opacity));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.red-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(29, 243, 0, 0.15);
    border-color: rgba(29, 243, 0, 0.3);
}

.red-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    color: var(--primary-green);
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(29, 243, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.red-item:hover .red-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(29, 243, 0, 0.5));
}

.red-icon svg {
    width: 100%;
    height: 100%;
}

.red-icon i {
    font-size: 2.8rem;
}

.red-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.red-username {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.red-note {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
}

.btn-red-link {
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: var(--primary-green);
    border: 1px solid rgba(29, 243, 0, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    position: relative;
}

.btn-red-link:hover {
    background-color: var(--primary-green);
    color: var(--bg-black);
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(29, 243, 0, 0.3);
}

/* Amigos Section */
.amigos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
    max-width: 1000px;
    margin: 0 auto;
}

.amigo-card {
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-darker));
    border: 1px solid rgba(29, 243, 0, var(--border-opacity));
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.amigo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(29, 243, 0, 0.2);
    border-color: rgba(29, 243, 0, 0.35);
}

.amigo-avatar {
    margin-bottom: 1rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-green), #0a8000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-black);
}

.amigo-avatar img {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(29, 243, 0, 0.3);
    transition: all 0.3s ease;
}

.amigo-card:hover .amigo-avatar img {
    border-color: var(--primary-green);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(29, 243, 0, 0.4);
}

.amigo-nombre {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--primary-green);
}

.amigo-alias {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.amigo-descripcion {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.amigo-redes {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.amigo-red-btn {
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: 2px solid rgba(29, 243, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-green);
    position: relative;
    font-size: 1.3rem;
}

.amigo-red-btn:hover {
    background-color: var(--primary-green);
    color: var(--bg-black);
    transform: scale(1.1);
    border-color: var(--primary-green);
}

.amigo-red-btn svg,
.amigo-red-btn i {
    width: 24px;
    height: 24px;
}

.amigo-red-btn i {
    font-size: 1.5rem;
}

/* Changelog Section */
.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.btn-mostrar-todo {
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    white-space: nowrap;
}

.btn-mostrar-todo:hover {
    background-color: var(--primary-green);
    color: var(--bg-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 243, 0, 0.4);
}

.carousel-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.changelog-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.changelog-carousel::-webkit-scrollbar {
    display: none;
}

.changelog-category {
    min-width: 200px;
    padding: 1.5rem;
    background-color: var(--bg-dark);
    border: 1px solid rgba(29, 243, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.changelog-category:hover {
    border-color: var(--primary-green);
    background-color: rgba(29, 243, 0, 0.05);
    transform: scale(1.05);
}

.changelog-category h3 {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.carousel-btn {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--primary-green);
    color: var(--bg-black);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(29, 243, 0, 0.2);
}

.modal-header h2 {
    color: var(--primary-green);
    font-size: 1.8rem;
}

.close-modal {
    font-size: 2rem;
    color: var(--primary-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--text-white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.changelog-item {
    background-color: var(--bg-darker);
    border: 1px solid rgba(29, 243, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.changelog-item h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.changelog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.changelog-date,
.changelog-project {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.changelog-project {
    color: var(--primary-green);
    font-weight: 600;
}

.changelog-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.changelog-image {
    width: 100%;
    border-radius: 5px;
    margin-top: 1rem;
}

/* Social Popup */
.social-popup {
    position: fixed;
    background: linear-gradient(145deg, #0a0a0a, #000000);
    border: 1px solid rgba(29, 243, 0, 0.4);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    z-index: 3000;
    display: none;
    box-shadow: 0 8px 25px rgba(29, 243, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.social-popup.active {
    display: block;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-popup p {
    color: var(--text-white);
    font-size: 0.85rem;
    margin: 0;
    white-space: nowrap;
}

.social-popup .link-hint {
    color: var(--primary-green);
    font-size: 0.75rem;
    margin-top: 0.3rem;
    font-style: italic;
}

/* Unavailable Popup */
.unavailable-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #0f0f0f, #000000);
    border: 1px solid rgba(29, 243, 0, 0.4);
    border-radius: 12px;
    padding: 2rem 3rem;
    z-index: 3000;
    display: none;
    box-shadow: 0 15px 50px rgba(29, 243, 0, 0.3);
    backdrop-filter: blur(15px);
}

.unavailable-popup.active {
    display: block;
    animation: popupScaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupScaleIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.unavailable-popup p {
    color: var(--text-white);
    font-size: 1rem;
    text-align: center;
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(29, 243, 0, 0.2);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    color: var(--text-white);
}

.footer-spacer {
    height: 500vh;
    background: linear-gradient(to bottom, var(--bg-darker) 0%, var(--bg-black) 100%);
}

.easter-egg {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--primary-green);
}

.easter-egg p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(29, 243, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .changelog-header {
        flex-direction: column;
        align-items: stretch;
    }

    .carousel-container {
        width: 100%;
    }

    .redes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.2rem;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    .amigos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .role {
        font-size: 0.9rem;
    }

    .section {
        padding: 2.5rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

