/* ==========================================================
🐍 python_index.css — Javier Redital | Python Projects
Mismo layout y efectos que Power BI, adaptado a Python (azul + dorado)
========================================================== */

/* #region RESET */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    max-width: 1920px;
    margin: 0 auto;
    font: 500 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    color: #ced4da;
    background: #0b0f17;
}
/* #endregion */

/* #region HEADER */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 90px;
    z-index: 1000;
    background: linear-gradient(90deg, #0B263D, #193B5A);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}

.nav {
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo img {
    width: 150px;
    display: block;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFD100;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 209, 0, 0.5);
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(96, 175, 255, 0.15);
    color: #60AFFF;
    border-color: rgba(96, 175, 255, 0.6);
    transform: translateY(-2px);
}
/* #endregion */

/* #region HERO */
.hero-python {
    position: relative;
    min-height: 100vh;
    padding: 120px 24px 80px;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(
        1200px 800px at 50% 10%,
        #072e53 0%,
        #0b0f17 35%,
        #0f1726 100%
    );
}

#particles-js {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-card {
    position: relative;
    z-index: 1;
    width: min(92%, 1000px);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    padding: clamp(24px, 5vw, 56px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.logo-hero {
    width: 120px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(255, 209, 0, 0.5));
}

.hero-card h1 {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    color: #FFD100;
    margin: 0 0 16px;
}

.hero-card p {
    font-size: clamp(16px, 2vw, 20px);
    color: #ced4da;
    opacity: 0.95;
    margin: 0;
}
/* #endregion */

/* #region BREADCRUMBS */
.breadcrumbs {
    background: linear-gradient(180deg, #0B263D 0%, #111a28 50%, #0b0f17 100%);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 32px;
}

.breadcrumbs .trail {
    font-size: 16px;
    color: #aeb7c2;
    display: flex;
    align-items: center;
    line-height: 1;
}

.breadcrumbs a {
    color: #FFD100;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #60AFFF;
}

.breadcrumbs .sep {
    opacity: 0.75;
    margin: 0 8px;
}
/* #endregion */

/* #region CONTENIDO PRINCIPAL */
.content {
    background: linear-gradient(180deg, #0B263D 0%, #111a28 50%, #0b0f17 100%);
    color: #ced4da;
    padding: 60px 24px 100px;
    width: 100%;
}

.content h2 {
    font-size: clamp(26px, 3.6vw, 34px);
    font-weight: 700;
    color: #ced4da;
    text-align: left;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
    padding-left: 18px;
    position: relative;
}

.content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 80%;
    background: #FFD100;
    border-radius: 2px;
}

.grid-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 40px;
    justify-content: center;
}
/* #endregion */

/* #region CARRUSELES */
.carousel {
    position: relative;
    width: 80%;
    max-width: 1000px;
    margin: 24px auto;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    background: #000;
    height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    align-items: center;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    background-color: #000;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 38, 61, 0.6);
    border: 1px solid rgba(255, 209, 0, 0.4);
    color: #FFD100;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel button:hover {
    background: rgba(96, 175, 255, 0.9);
    border-color: rgba(96, 175, 255, 0.9);
    color: #0b0f17;
}

.carousel .prev {
    left: 20px;
}

.carousel .next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.carousel-indicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicators span.active {
    background: #FFD100;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 209, 0, 0.6);
}
/* #endregion */

/* #region INFO PROYECTOS */
.project-info {
    padding: 20px;
}

.project-info h3 {
    color: #FFD100;
    margin: 0 0 12px;
    font-size: 20px;
}

.project-info p {
    color: #ced4da;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFD100;
    color: #0b0f17;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-project:hover {
    background: #60AFFF;
    color: #0b0f17;
    transform: translateY(-2px);
}
/* #endregion */

/* #region FOOTER */
.site-footer {
    position: relative;
    background: radial-gradient(
        1200px 800px at 50% 10%,
        #072e53 0%,
        #0b0f17 35%,
        #0f1726 100%
    );
    color: #ced4da;
    text-align: center;
    padding: 80px 24px 100px;
    overflow: hidden;
}

#particles-footer {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.social-icons {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-icons a {
    font-size: 26px;
    color: #FFD100;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: #60AFFF;
    transform: translateY(-3px);
}

.footer-text {
    position: relative;
    z-index: 1;
    color: #FFD100;
    font-weight: 500;
    margin-top: 20px;
}
/* #endregion */

/* #region BACK TO TOP */
#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFD100;
    color: #0b0f17;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

#backToTop:hover {
    background: #60AFFF;
    transform: translateY(-3px);
}

#backToTop i {
    font-size: 16px;
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
    }
}
/* #endregion */
