/* =========================================================
   Emiliano Carrizosa — Professional Portfolio
   Palette: warm off-white / charcoal / deep navy
   ========================================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

:root {
    --bg:           #F8F7F4;
    --bg-white:     #FFFFFF;
    --bg-subtle:    #EEECEA;
    --text:         #1A1A1E;
    --text-2:       #46464F;
    --text-muted:   #8E8E98;
    --accent:       #1C3F6E;
    --accent-h:     #254F8C;
    --border:       #DEDAD4;
    --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

/* ---- UTILITY ---- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ---- NAVIGATION ---- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(248, 247, 244, 0.93);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ---- SECTION ANATOMY ---- */

.section {
    padding: 100px 0;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.section-rule {
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    margin-bottom: 56px;
}

/* ---- HERO ---- */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-name {
    font-size: 58px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1.5px;
    line-height: 1.0;
    margin-bottom: 16px;
}

.hero-role {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-2);
    margin-bottom: 32px;
    line-height: 1.4;
}

.hero-description {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 44px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    align-items: center;
}

.btn {
    padding: 11px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--accent-h);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
    background-color: rgba(28, 63, 110, 0.05);
}

.hero-photo img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: block;
}

/* ---- ABOUT ---- */

.about-section {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 80px;
}

.about-story p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-2);
    margin-bottom: 22px;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.certs-block {
    margin-bottom: 40px;
}

.certs-block h4,
.langs-block h4 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.cert-item:first-of-type {
    border-top: 1px solid var(--border);
}

.cert-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.cert-status {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.cert-status.earned {
    color: #1A6B3C;
    font-weight: 600;
}

.langs-block p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ---- EXPERIENCE ---- */

.experience-section {
    background-color: var(--bg);
}

.exp-list {
    display: flex;
    flex-direction: column;
}

.exp-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 48px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.exp-item:first-of-type {
    border-top: 1px solid var(--border);
}

.exp-meta {
    padding-top: 3px;
}

.exp-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

.exp-org {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
}

.exp-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.exp-body p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.8;
}

/* ---- SKILLS ---- */

.skills-section {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.skill-category h4 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    font-size: 14px;
    color: var(--text-2);
    padding: 7px 0;
    border-bottom: 1px solid var(--bg-subtle);
    line-height: 1.3;
}

/* ---- PROJECTS ---- */

.projects-section {
    background-color: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 30px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.project-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    flex: 1;
}

.project-date {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 2px;
}

.project-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 20px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 3px 8px;
    background-color: var(--bg-subtle);
    border-radius: 3px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.project-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.15s;
    margin-top: auto;
}

.project-link:hover {
    color: var(--accent-h);
}

/* ---- CONTACT ---- */

.contact-section {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
}

.contact-inner {
    max-width: 640px;
}

.contact-lead {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 48px;
}

.contact-rows {
    display: flex;
    flex-direction: column;
}

.contact-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-row:first-of-type {
    border-top: 1px solid var(--border);
}

.contact-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-row a,
.contact-row span {
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
}

.contact-row a:hover {
    color: var(--accent);
}

/* ---- FOOTER ---- */

footer {
    background-color: var(--bg);
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent);
}

/* ---- ABOUT PAGE (about.html) ---- */

.page-header {
    padding-top: 128px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.page-header .section-eyebrow {
    margin-bottom: 10px;
}

.page-header h1 {
    font-size: 44px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.page-header p {
    font-size: 17px;
    color: var(--text-2);
}

.about-page-section {
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}

.about-page-section:last-child {
    border-bottom: none;
    padding-bottom: 100px;
}

.about-page-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 28px;
}

.about-page-section > p {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 20px;
    max-width: 720px;
}

.about-page-section > p:last-child {
    margin-bottom: 0;
}

.about-exp-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    max-width: 720px;
}

.about-exp-item:first-of-type {
    border-top: 1px solid var(--border);
}

.about-exp-item:last-child {
    border-bottom: none;
}

.about-exp-org {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.about-exp-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.about-exp-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.about-exp-item p:not(.about-exp-org):not(.about-exp-meta) {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-exp-item p:not(.about-exp-org):not(.about-exp-meta):last-child {
    margin-bottom: 0;
}

.about-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 80px;
}

.about-skill-group h4 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.about-skill-group ul {
    list-style: none;
    padding: 0;
}

.about-skill-group li {
    font-size: 14px;
    color: var(--text-2);
    padding: 7px 0;
    border-bottom: 1px solid var(--bg-subtle);
    line-height: 1.4;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-container {
        padding: 0 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-photo {
        order: -1;
    }

    .hero-name {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .hero-role {
        font-size: 17px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-skills-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }

    footer .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .page-header h1 {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 34px;
    }

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

    .nav-links a {
        font-size: 12px;
    }

    .nav-links {
        gap: 16px;
    }

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

    .hero-cta {
        flex-wrap: wrap;
    }
}
