/* ===== ESTILOS GLOBALES ===== */
body {
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #f4f4f9;
    background: #121212;
}

:root {
    --neon-color: #9b59b6;
    --hover-scale: 1.1;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #2a2a3f;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: smoothFade 2s ease-in-out;
}

.navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.navbar a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
}

.navbar a:hover {
    color: var(--neon-color);
    transform: scale(1.1);
    animation: rotateScale 0.5s ease-in-out;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* ===== SELECTOR DE IDIOMAS ===== */
.lang-selector {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.3rem;
    background: rgba(26, 26, 46, 0.9);
    padding: 0.3rem 0.5rem;
    border-radius: 20px;
    border: 1.5px solid var(--neon-color);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.4);
    z-index: 1002;
    align-items: center;
}

.lang-btn {
    background: transparent;
    color: #b0b0b0;
    border: none;
    padding: 0.35rem 0.65rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.lang-btn:hover {
    color: #fff;
    background: rgba(155, 89, 182, 0.3);
}

.lang-btn.active {
    background: var(--neon-color);
    color: #ffffff;
    box-shadow: 0 0 10px var(--neon-color);
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 6rem 2.5rem 2.5rem;
    background: #2a2a3f;
    color: #fff;
    animation: fade-in 1.5s ease-in-out, smoothFade 2s ease-in-out;
}

header h1 {
    font-size: 3rem;
    color: #2e0339;
    position: relative;
    font-weight: bold;
    animation: neonGlowEnhanced 3s infinite alternate, textShake 2s infinite ease-in-out;
    text-shadow: 0 0 5px #5e0d77, 0 0 10px #7d338f, 0 0 15px #9b50b9, 0 0 20px #9b50b9, 0 0 25px #9b50b9, 0 0 30px #9b50b9, 0 0 35px #9b50b9;
}

header p {
    font-size: 1.2rem;
    color: #b0b0b0;
}

/* ===== LAYOUT PRINCIPAL ===== */
main {
    padding: 1.5rem;
    max-width: 1200px;
    margin: auto;
}

section {
    margin: 3rem 0;
    padding-top: 5rem;
    scroll-margin-top: 5rem;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #a6a6d6;
    font-size: 2.2rem;
}

/* ===== SECCIÓN DE PROYECTOS ===== */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
    align-items: center;
}

.project-card {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    animation: smoothFade 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.project-card[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: background 0.3s ease;
}

.project-card:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 20px rgba(155, 89, 182, 0.4), 0 0 15px rgba(155, 89, 182, 0.3);
}

.project-title-container {
    position: relative;
    z-index: 2;
    background: rgba(42, 42, 63, 0.8);
    border: 2px solid var(--neon-color);
    padding: 1rem;
    width: 80%;
    max-width: 220px;
    text-align: center;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover .project-title-container {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
}

.project-title-container h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== BADGES EN PORTADAS DE PROYECTOS ===== */
.tech-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(26, 26, 46, 0.9);
    border: 1.5px solid var(--neon-color);
    color: #f4f4f9;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-family: 'Press Start 2P', cursive;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 8px rgba(155, 89, 182, 0.4);
    pointer-events: none;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover .tech-badge {
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.7);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 3;
    background: #00bcd4;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.55rem;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ===== MODAL DE DETALLES DE PROYECTO ===== */
.project-details-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
}

.project-details-container.active {
    opacity: 1;
    visibility: visible;
}

.project-details {
    max-width: 1200px;
    margin: 1rem auto;
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(155, 89, 182, 0.4);
    display: none;
    animation: slideUp 0.5s ease-out forwards;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.project-details.active {
    display: block;
}

.project-details h2 {
    padding: 1.5rem;
    margin: 0;
    background: linear-gradient(to right, #2a2a43, #3a3a55);
    text-align: left;
    color: #fff;
    font-size: 2rem;
    border-bottom: 2px solid rgba(155, 89, 182, 0.5);
    position: relative;
}

.close-project {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: rgba(155, 89, 182, 0.7);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.close-project:hover {
    background: rgba(155, 89, 182, 1);
    transform: scale(1.1);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

/* ===== SECCIÓN DE MEDIA ===== */
.project-media {
    background: #252538;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.media-tabs {
    display: flex;
    background: #2a2a43;
    border-bottom: 2px solid rgba(155, 89, 182, 0.3);
}

.media-tab {
    padding: 1rem;
    flex: 1;
    background: none;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

.media-tab:hover {
    background: rgba(155, 89, 182, 0.2);
    color: white;
}

.media-tab.active {
    background: rgba(155, 89, 182, 0.4);
    color: white;
    box-shadow: inset 0 -2px 0 var(--neon-color);
}

.media-content {
    display: none;
    padding: 1.5rem;
}

.media-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.screenshot-gallery img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.screenshot-gallery img:hover {
    transform: scale(1.03);
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 5px;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== INFORMACIÓN DE PROYECTO ===== */
.project-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem;
}

.info-section {
    background: rgba(42, 42, 63, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--neon-color);
}

.info-section h3 {
    margin-top: 0;
    color: var(--neon-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-section p, 
.info-section li {
    color: #e0e0e0;
    line-height: 1.6;
}

.info-section ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-section li {
    margin-bottom: 0.5rem;
}

.project-link {
    display: inline-block;
    background: var(--neon-color);
    color: white;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
    text-align: center;
}

.project-link:hover {
    background: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.5);
}

body.project-open {
    overflow: hidden;
}

/* ===== PERFIL ===== */
.profile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin: 2rem 0;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite, smoothFade 2s;
}

/* ===== EDUCACIÓN / EDUCATION ===== */
.education-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 850px;
    width: 100%;
}

.education-card {
    background: rgba(42, 42, 63, 0.7);
    border: 2px solid var(--neon-color);
    border-radius: 12px;
    padding: 2.2rem 2.5rem;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(155, 89, 182, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: smoothFade 1.2s ease-in-out;
}

.education-card.primary-card {
    background: rgba(42, 42, 63, 0.85);
    border: 2.5px solid var(--neon-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(155, 89, 182, 0.35);
}

.education-card.primary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(155, 89, 182, 0.6), 0 0 30px rgba(155, 89, 182, 0.5);
}

/* Secondary Certificate Card - Smaller & Subtle */
.education-card.cert-card-subtle {
    max-width: 680px;
    width: 85%;
    padding: 1.2rem 1.5rem;
    background: rgba(26, 26, 42, 0.55);
    border: 1px solid rgba(155, 89, 182, 0.35);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.education-card.cert-card-subtle:hover {
    transform: translateY(-3px);
    border-color: rgba(155, 89, 182, 0.7);
    box-shadow: 0 6px 15px rgba(155, 89, 182, 0.25);
}

.education-card.cert-card-subtle .education-header {
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(155, 89, 182, 0.25);
}

.education-card.cert-card-subtle .education-header h3 {
    font-size: 0.78rem;
    color: #d8d8ea;
}

.education-card.cert-card-subtle h4 {
    font-size: 0.72rem;
    color: #9292b8;
    margin: 0.4rem 0 0.6rem 0;
}

.education-card.cert-card-subtle .education-details {
    font-size: 0.68rem;
    color: #b5b5cc;
    line-height: 1.6;
}

.education-card.cert-card-subtle .education-actions {
    margin-top: 0.9rem;
    gap: 0.75rem;
}

.education-card.cert-card-subtle .cert-view-btn,
.education-card.cert-card-subtle .cert-link-btn {
    font-size: 0.52rem;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1.5px dashed rgba(155, 89, 182, 0.4);
    padding-bottom: 0.8rem;
}

.education-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.4;
}

.education-badge {
    background: linear-gradient(135deg, #00f2fe, #0077b6);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', cursive;
}

.education-badge.cert-badge {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    font-size: 0.55rem;
    padding: 0.3rem 0.7rem;
    box-shadow: 0 0 8px rgba(142, 68, 173, 0.4);
}

.education-card h4 {
    color: #a6a6d6;
    font-size: 0.88rem;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.5;
}

.education-details {
    color: #e0e0e0;
    font-size: 0.78rem;
    line-height: 1.8;
    margin: 0;
}

.education-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cert-view-btn,
.cert-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cert-view-btn {
    background: rgba(155, 89, 182, 0.25);
    color: #fff;
    border: 1.5px solid var(--neon-color);
}

.cert-view-btn:hover {
    background: var(--neon-color);
    box-shadow: 0 0 15px var(--neon-color);
    transform: translateY(-2px);
}

.cert-link-btn {
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
    border: 1.5px dashed #00f2fe;
}

.cert-link-btn:hover {
    background: #00f2fe;
    color: #0b1120;
    border-style: solid;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    transform: translateY(-2px);
}

/* ===== MODAL CERTIFICADO ===== */
.cert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}

.cert-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cert-modal-content {
    background: #1a1a2e;
    border: 2px solid var(--neon-color);
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(155, 89, 182, 0.5);
    animation: slideUp 0.4s ease-out forwards;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
}

.cert-modal-content h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    padding-right: 2.5rem;
    line-height: 1.5;
}

.close-cert-modal {
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    background: rgba(155, 89, 182, 0.7);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.close-cert-modal:hover {
    background: rgba(155, 89, 182, 1);
    transform: scale(1.1);
}

.cert-img-wrapper {
    width: 100%;
    max-height: 65vh;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(155, 89, 182, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-img-wrapper img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

.cert-modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* ===== HABILIDADES ===== */
#skills {
    text-align: center;
    padding: 3rem 1.5rem;
}

#skills h2 {
    font-size: 2.5rem;
    color: var(--neon-color);
    margin-bottom: 1.5rem;
}

.skills-list h3 {
    font-size: 1.8rem;
    color: #a6a6d6;
    margin-bottom: 1rem;
    animation: smoothFade 1.5s ease-in-out;
}

.skills-list p {
    font-size: 1.2rem;
    color: #e0e0e0;
    display: inline-block;
    margin: 0.5rem 0;
}

/* ===== ENLACES SOCIALES ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-links a {
    text-decoration: none;
    color: #fff;
    background: #6a5acd;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: pulse 2s infinite;
}

.social-links a:hover {
    background: var(--neon-color);
    box-shadow: 0 0 20px var(--neon-color), 0 0 40px var(--neon-color);
    transform: scale(1.2);
}

/* ===== CONTACTO ===== */
.contact-details p {
    font-size: 1.2rem;
    color: #b0b0b0;
}

.contact-details p:hover {
    color: #b0b0b0;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 1.25rem;
    background: #292c36;
    color: #fff;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

footer:hover {
    background: linear-gradient(145deg, #2a2a43, #3a3a55);
    animation: neonGlowEnhanced 3s infinite alternate;
}

/* ===== ANIMACIONES ===== */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes smoothFade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes rotateScale {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes neonGlowEnhanced {
    0% {
        text-shadow: 0 0 5px #5e0d77, 0 0 10px #7d338f, 0 0 15px #9b50b9, 0 0 20px #9b50b9;
        transform: scale(1) rotate(0deg);
    }
    50% {
        text-shadow: 0 0 15px #9b50b9, 0 0 25px #9b50b9, 0 0 30px #7d338f, 0 0 35px #5e0d77;
        transform: scale(1.2) rotate(3deg);
    }
    100% {
        text-shadow: 0 0 5px #5e0d77, 0 0 10px #7d338f, 0 0 15px #9b50b9, 0 0 20px #9b50b9;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes textShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== UTILIDADES ===== */
h1 span,
h2 span {
    font-size: 1.8em;
}

.subsection-title {
    text-align: center;
    font-size: 1.6rem;
    color: var(--neon-color);
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

/* Custom styles for image size and video highlight */
.project-card[data-project="revelant-terrassa"] {
    background-size: 70% auto !important;
    background-color: #ffecb4 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.project-card[data-project="la-sobremesa"] {
    background-image: url('./images/projects/la-sobremesa/logo.png'), linear-gradient(135deg, #1e0b36, #461159, #8c1170) !important;
    background-size: 85% auto, cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.project-card[data-project="modular-ui"] {
    background-image: url('./images/projects/modular-ui/LogoConNombre.png'), linear-gradient(135deg, #0f172a, #1e293b, #0f172a) !important;
    background-size: 85% auto, cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ===== FEATURED PROJECT STYLING ===== */
.featured-title {
    color: #00f2fe !important;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.6), 0 0 25px rgba(0, 180, 216, 0.4) !important;
    font-size: 1.4rem;
    margin-top: 3.5rem !important;
    margin-bottom: 2rem !important;
}

.featured-projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1150px;
    margin: 0 auto 3.5rem auto;
    justify-items: center;
    width: 100%;
}

.project-card.featured-card {
    width: 100%;
    max-width: 540px;
    height: 340px;
    border: 3px solid #00f2fe;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4), 0 10px 30px rgba(0, 0, 0, 0.7);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.project-card.featured-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 45px rgba(0, 242, 254, 0.7), 0 15px 35px rgba(0, 180, 216, 0.5);
    border-color: #38bdf8;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #00f2fe, #0077b6);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.4);
    z-index: 3;
    letter-spacing: 0.5px;
    animation: pulse 2.5s infinite;
}

.featured-badge.team-badge {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    box-shadow: 0 4px 14px rgba(255, 65, 108, 0.6);
}

.featured-title-container {
    max-width: 460px !important;
    width: 90% !important;
    background: rgba(11, 17, 32, 0.88) !important;
    border: 2px solid #00f2fe !important;
    padding: 1.25rem !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.25) !important;
}

.featured-subtitle {
    font-size: 0.65rem;
    line-height: 1.4;
    color: #cbd5e1;
    margin: 0.6rem 0 0.8rem 0;
    font-family: inherit;
}

.view-details-btn {
    display: inline-block;
    font-size: 0.6rem;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.12);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px dashed #00f2fe;
    margin-top: 0.4rem;
    transition: background 0.3s, color 0.3s;
}

.project-card.featured-card:hover .view-details-btn {
    background: #00f2fe;
    color: #0b1120;
    border-style: solid;
}

.revelant-logo-img {
    max-width: 250px;
    width: 100%;
    margin: 0 auto;
    display: block;
    background-color: #ffecb4;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.media-tab.highlight {
    background: rgba(0, 242, 254, 0.15) !important;
    color: #00f2fe !important; /* Turquoise text */
    box-shadow: inset 0 -3px 0 rgba(0, 242, 254, 0.6) !important;
}

.media-tab.highlight:hover {
    background: rgba(0, 242, 254, 0.3) !important;
}

.media-tab.highlight.active {
    background: rgba(0, 242, 254, 0.4) !important;
    color: #00f2fe !important;
    box-shadow: inset 0 -3px 0 #00f2fe, 0 0 12px rgba(0, 242, 254, 0.5) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .projects-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        max-width: 1000px;
        margin: 0 auto 3rem auto;
    }
}

@media (max-width: 992px) {
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .project-details {
        margin: 1rem;
        max-height: 90vh;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .lang-selector {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-left: auto;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2a2a3f;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        text-align: center;
    }

    .navbar ul.active {
        display: flex;
        animation: smoothFade 0.3s ease-in-out;
    }

    .navbar ul li {
        margin: 0.75rem 0;
    }
    
    section {
        padding-top: 5rem;
    }
    
    header {
        padding-top: 6rem;
    }

    .projects-list {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .project-card h3 {
        font-size: 1rem;
    }
    
    .project-details h2 {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    .project-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .close-project {
        right: 1rem;
        top: 1rem;
        width: 30px;
        height: 30px;
    }
    
    .info-section {
        padding: 1rem;
    }
    
    .info-section h3 {
        font-size: 1.1rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-links a {
        width: 100%;
        max-width: 300px;
    }

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

    header h1 {
        font-size: 1.8rem;
    }

    section h2 {
        font-size: 1.6rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .project:hover {
        transform: scale(1.05) rotate(1deg);
    }
}

@media (max-width: 480px) {
    .projects-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        height: 180px;
    }
    
    .media-tab {
        font-size: 0.7rem;
        padding: 0.8rem 0.5rem;
    }
    
    .project-details {
        margin: 0.5rem;
        border-radius: 10px;
    }

    header h1 {
        font-size: 1.4rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .project {
        padding: 1rem;
    }
    
    .skills-list h3 {
        font-size: 1.4rem;
    }
    
    .tech-badge,
    .featured-badge {
        font-size: 0.45rem;
        padding: 3px 6px;
    }
    .tech-badge {
        bottom: 6px;
        right: 6px;
        top: auto;
    }
    .featured-badge {
        top: 10px;
        right: 10px;
        left: auto;
    }
}