/* Variables CSS */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --bg-gradient: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* Estilos generales */
body {
    font-family: var(--font-primary);
    color: #333;
    overflow-x: hidden;
    position: relative;
    background-color: #f8f9fa;
}

/* Particle.js container (es la librería del fondo de particulas para que lo sepan XD_SL)*/
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--bg-gradient);
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: rgba(44, 62, 80, 0.9) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand .logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, #3498db, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://i.imgur.com/ks6SBsL.gif') no-repeat center center/cover;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    margin: 10px;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
}

.scroll-down a {
    color: white;
    transition: var(--transition);
}

.scroll-down a:hover {
    color: var(--primary-color);
    transform: translateY(5px);
}

/* sections */
.section-bg {
    background-color: #f8f9fa;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.header-bar {
    height: 3px;
    width: 70px;
    background: var(--bg-gradient);
    margin: 0 auto;
    border-radius: 3px;
}

/* About Section */

.about-content {
    padding: 30px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto; 
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    margin-left: auto; 
    margin-right: auto;
}

.card {
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Skills Section */
.skill-card {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.skill-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.skill-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.skill-list li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.skill-meter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.progress-container {
    margin-bottom: 20px;
}

.skill-name {
    margin-bottom: 5px;
    font-weight: 600;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background: var(--bg-gradient);
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}

/* Experience Section */
.experience-card {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .about-img {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .navbar-brand .logo-text {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .skill-category {
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 15px; 
    }
    
    .skill-card {
        margin-bottom: 20px;
        padding: 20px 15px; 
    }
}

@media (max-width: 768px) {
    .experience-card {
        margin-bottom: 20px;
        padding: 20px 15px;
    }
    
    /* Asegura espacio entre columnas en móvil */
    #experience .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 15px;
    }
}

/*Ajusta la altura en móvil por si acaso*/
@media (max-width: 576px) {
    .experience-card {
        height: auto; 
        min-height: 300px;
    }
}