:root {
    --red:        #e74c3c;
    --red-hover:  #db2b19;
    --red-shadow: #ba463a;
    --accent-red: #c43030;
    --text:       #4f4f4f;
    --text-muted: #999;
    --line-color: #c2c2c2;
    --bg-resume:  #eaeaea;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p { margin: 0 0 10px; }

a { color: #439fe0; text-decoration: none; transition: color 0.25s; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--red);
    border: 3px solid var(--red);
    border-radius: 4px;
    box-shadow: 0 4px 0 var(--red-shadow);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    white-space: nowrap;
}

.btn:hover, .btn:focus {
    background: var(--red-hover);
    border-color: var(--red-hover);
    color: #fff;
}

/* square icon-only button matches height of regular btn */
.btn-icon {
    padding-left: 18px;
    padding-right: 18px;
}

/* ── Hero ── */
.hero {
    height: 380px;
    background-image: url('background-wide.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content { max-width: 100%; }

.hero h1 {
    font-size: 52px;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.hero .lead {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Skills ── */
.skills {
    padding: 60px 0;
    background: #fff;
}

.skills h4 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
}

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

.skill-group h5 {
    color: var(--accent-red);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.skill-group p { margin-bottom: 4px; }

/* ── Resume ── */
.resume {
    padding: 120px 0;
    background: var(--bg-resume);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 80px;
}

/* ── Timeline ── */
.timeline {
    list-style: none;
    padding: 50px;
    margin: 0 auto;
    max-width: 750px;
    border-left: 4px solid var(--line-color);
    position: relative;
}

.event {
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 50px;
    border-bottom: 1px dashed #8c8c8c;
}

.event:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* date label — right-aligned, leaves ~30px gap before the dot */
.event::before {
    content: attr(data-date);
    position: absolute;
    left: -230px;
    top: 0;
    width: 148px;
    text-align: right;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
}

/* circle dot centred on the border-left */
.event::after {
    content: '';
    position: absolute;
    top: 5px;
    left: -57.5px;
    width: 11px;
    height: 11px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--line-color);
}

.event h5 {
    color: var(--accent-red);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.event p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.event a { color: #439fe0; }
.event a:hover { text-decoration: underline; }

/* ── Footer ── */
footer {
    padding: 30px 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-inner p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.footer-inner a { color: #69696e; font-weight: 600; }
.footer-inner a:hover { color: var(--red); }

.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #69696e;
    font-size: 20px;
    font-weight: normal;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .hero { height: auto; padding: 60px 0; }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 40px; }

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

    .timeline { padding: 50px 30px 50px 50px; }

    /* move dates above entry */
    .event { padding-top: 28px; }
    .event::before {
        left: 0;
        top: -22px;
        width: auto;
        text-align: left;
        font-size: 14px;
    }
    .event::after { left: -37.5px; }
}

@media (max-width: 767px) {
    .hero h1 { font-size: 36px; }
    .hero .lead { font-size: 18px; }

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

    .section-title { font-size: 30px; }
    .resume { padding: 80px 0; }

    .timeline { padding: 40px 20px 40px 40px; }
    .event::before { top: -20px; font-size: 13px; }
    .event::after { left: -30px; }

    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
