
/* ========================================
   SANTIAGO MUÑOZ | PORTFOLIO
   Design System
======================================== */

:root {
    --primary: #1677ff;
    --secondary: #00c8ff;
    --dark: #080b14;
    --dark-soft: #0d1220;
    --card: #111827;
    --white: #ffffff;
    --text: #a4aec0;
    --border: rgba(255,255,255,0.08);
    --gradient: linear-gradient(135deg, #1677ff, #00c8ff);
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

.container {
    width: min(1150px, 90%);
    margin: auto;
}

/* FONDO */

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   HEADER
======================================== */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8,11,20,0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -2px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-size: 13px;
    color: var(--text);
    transition: .3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-button {
    padding: 11px 19px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    transition: .3s;
}

.nav-button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ========================================
   HERO
======================================== */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 60px;
    padding-top: 120px;
    padding-bottom: 100px;
    position: relative;
}

.hero-content {
    max-width: 650px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: rgba(255,255,255,.03);
    color: var(--text);
    font-size: 11px;
    margin-bottom: 30px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 12px #22c55e;
}

.eyebrow,
.section-label {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -3px;
    font-weight: 800;
    margin: 18px 0;
}

.hero h1 span,
.section-heading h2 span,
.contact-info h2 span {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero h2 {
    font-size: 17px;
    font-weight: 500;
    color: #d0d8e6;
    margin-bottom: 20px;
}

.separator {
    color: var(--secondary);
    margin: 0 8px;
}

.hero-description {
    color: var(--text);
    max-width: 540px;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 23px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .3s;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(22,119,255,.3);
}

.btn-outline {
    border-color: var(--border);
    color: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(22,119,255,.08);
}

.social {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    transition: .3s;
}

.social a:hover {
    color: var(--secondary);
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* FOTO */

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(130px);
    opacity: .25;
}

.image-frame {
    position: relative;
    width: min(340px, 100%);
    aspect-ratio: 1;
    padding: 10px;
    border: 1px solid rgba(0,200,255,.4);
    border-radius: 30px;
    transform: rotate(3deg);
    background: rgba(255,255,255,.03);
    box-shadow: 0 20px 80px rgba(0,0,0,.4);
}

.perfil {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 23px;
    filter: saturate(.9);
    transform: rotate(-3deg);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -35px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(17,24,39,.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0,0,0,.3);
}

.floating-card > i {
    font-size: 25px;
    color: var(--secondary);
}

.floating-card div {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 13px;
}

.floating-card span {
    font-size: 10px;
    color: var(--text);
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text);
}

.scroll-indicator i {
    color: var(--secondary);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

/* ========================================
   SECCIONES GENERALES
======================================== */

.section {
    padding-top: 110px;
    padding-bottom: 110px;
    scroll-margin-top: 70px;
}

.section-heading {
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1.5px;
    margin: 15px 0;
}

.section-heading p {
    color: var(--text);
    font-size: 14px;
}

.section-heading h2 span {
    display: inline;
}

/* ========================================
   SOBRE MI
======================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.about-text p {
    color: var(--text);
    font-size: 15px;
    line-height: 2;
    margin-bottom: 20px;
}

.about-text strong {
    color: white;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: .3s;
}

.info-card:hover {
    border-color: rgba(22,119,255,.5);
    transform: translateX(7px);
}

.info-card > i {
    font-size: 25px;
    color: var(--secondary);
    width: 35px;
    text-align: center;
}

.info-card h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.info-card p {
    color: var(--text);
    font-size: 12px;
}

/* ========================================
   HABILIDADES
======================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 30px 15px;
    text-align: center;
    transition: .3s;
}

.skill-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    background: rgba(22,119,255,.07);
}

.skill-card i {
    font-size: 35px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.skill-card span {
    font-size: 11px;
    color: var(--text);
}

/* ========================================
   PROYECTOS
======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 35px;
    transition: .3s;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

.project-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    background: rgba(22,119,255,.12);
    border-radius: 12px;
    color: var(--secondary);
    font-size: 24px;
    margin-bottom: 25px;
}

.project-type {
    color: var(--secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.project-info h3 {
    font-size: 22px;
    margin: 10px 0;
}

.project-info p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tags span {
    font-size: 10px;
    padding: 6px 10px;
    color: #b9d9ff;
    background: rgba(22,119,255,.12);
    border-radius: 5px;
}

.github-link {
    text-align: center;
    margin-top: 40px;
}

.github-link a {
    font-size: 13px;
    color: var(--secondary);
    transition: .3s;
}

.github-link a:hover {
    color: white;
}

/* ========================================
   CONTACTO
======================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 55px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.contact-info h2 {
    font-size: clamp(32px, 4vw, 45px);
    line-height: 1.2;
    margin: 20px 0;
    letter-spacing: -1.5px;
}

.contact-info > p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
    color: var(--text);
    font-size: 13px;
}

.contact-detail i {
    color: var(--secondary);
    width: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form label {
    font-size: 12px;
    font-weight: 600;
    color: #dbe4f0;
    margin-top: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--dark);
    color: white;
    font-size: 13px;
    outline: none;
    resize: vertical;
    transition: .3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,119,255,.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #687386;
}

.contact-form button {
    margin-top: 10px;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    border-top: 1px solid var(--border);
    background: #060911;
}

.footer-content {
    min-height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-content p {
    color: var(--text);
    font-size: 11px;
    text-align: center;
}

.back-top {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: .3s;
}

.back-top:hover {
    background: var(--primary);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {

    .nav-links {
        gap: 15px;
    }

    .hero {
        gap: 35px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-wrapper {
        gap: 35px;
    }

}

@media (max-width: 650px) {

    .navbar {
        height: 70px;
    }

    .nav-links {
        display: none;
    }

    .nav-button {
        font-size: 11px;
        padding: 9px 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
        gap: 55px;
    }

    .hero-content {
        margin: auto;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 14px;
        text-align: center;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-buttons,
    .social {
        justify-content: center;
    }

    .hero-image {
        margin: auto;
        width: min(300px, 90%);
    }

    .floating-card {
        left: -10px;
        bottom: 15px;
    }

    .scroll-indicator {
        display: none;
    }

    .section {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .about-grid,
    .projects-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .skill-card {
        padding: 22px 10px;
    }

    .project-card {
        padding: 25px;
    }

    .contact-wrapper {
        padding: 25px;
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
        padding: 25px 0;
        text-align: center;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
