html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    color: #333;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 60, 95, 0.92);
    backdrop-filter: blur(6px);
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* HERO */
.hero {
    height: 88vh;
    background-image: url("https://raw.githubusercontent.com/Ana-Duag/portfolio/main/fondo4.jpeg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 300;
}

.btn-primary {
    padding: 12px 26px;
    border-radius: 999px;
    background: #f8f9fb;
    color: #0A3C5F;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.btn-primary:hover {
    background: #e1e4ee;
}

/* SECCIONES */
.section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.section h2 {
    font-size: 30px;
    margin-bottom: 18px;
    color: #0A3C5F;
}

/* PROYECTOS */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.project-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    background: white;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
    color: #0A3C5F;
    margin-bottom: 10px;
}

.project-card p {
    margin-bottom: 14px;
    line-height: 1.5;
    text-align: left; /* ✅ NO justificado */
}

.project-card a {
    color: #0A3C5F;
    font-weight: 600;
    text-decoration: none;
}

/* CONTACTO */
#contacto p a {
    font-weight: 600;
}

/* FOOTER */
.footer {
    border-top: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 600px) {

    .nav-links {
        gap: 10px;
        white-space: nowrap;
    }

    .nav-links a {
        font-size: 13px;
        margin: 0 6px;
    }

    .hero {
        height: 75vh;
        padding: 0 12px;
        margin-top: 55px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    .btn-primary {
        font-size: 14px;
        padding: 10px 22px;
    }

    .section {
        margin: 60px auto;
    }

    .project-card {
        padding: 16px;
    }
}

@media (max-width: 450px) {
    .nav-links a {
        font-size: 12px;
        margin: 0 4px;
    }
}

/* ========================================================= */
/* PERFIL – SE MANTIENE JUSTIFICADO */
/* ========================================================= */

#perfil p {
    text-align: justify !important;
    max-width: 720px;
    margin: 0 auto 1.2rem auto;
    line-height: 1.6;
}

/* INTRODUCTORIO (si lo usas) */
.proyectos-intro {
    text-align: justify !important;
    max-width: 700px;
    margin: 0 auto 25px auto;
    line-height: 1.55;
    font-size: 17px;
    color: #444;
}

/* ========================================================= */
/* TECH STACK */
/* ========================================================= */

#tech-stack {
    margin-top: 80px;
}

.tech-stack-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.tech-category {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px 22px;
    background: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tech-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.tech-category h3 {
    color: #0A3C5F;
    margin-bottom: 12px;
    font-size: 18px;
}

.tech-category ul {
    padding-left: 18px;
    margin: 0;
}

.tech-category li {
    margin-bottom: 8px;
    line-height: 1.45;
    font-size: 15px;
}

/* Responsive Tech Stack */
@media (max-width: 600px) {
    .tech-category {
        padding: 16px 18px;
    }

    .tech-category h3 {
        font-size: 17px;
    }

    .tech-category li {
        font-size: 14px;
    }
}







