:root {
    --main-color: #d56043;
    --grey-bracket: #c9c9c9;
    --dark-bg: #0a0a0a;
    --light-bg: #ffffff;
    --tile-bg: #fdfdfd;
    --font-header: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    font-size: 16px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* HERO SECTION */
.hero-section {
    background-color: var(--main-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.75rem 1.25rem;
    text-align: center;
}

.profile-img {
    width: 10rem;
    height: 10rem;
    object-fit: cover;
    margin-bottom: 1.56rem;
}

.name,
.surname {
    font-family: var(--font-header);
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03rem;
    line-height: 1.1;
}

.surname {
    font-size: 4.5rem;
    padding-top: 4px;
    padding-bottom: 1rem;
}

.title {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.93rem;
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    max-width: 25rem;
    font-weight: 400;
}

/* CONTENT SECTION */
.content-section {
    background-color: var(--light-bg);
    padding: 2.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.container {
    width: 100%;
    max-width: 37.5rem;
}

.career-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.career-tile {
    background-color: var(--tile-bg);
    border: 0.06rem solid #eee;
    border-left: 0.31rem solid var(--grey-bracket);
    /* Color changed to #636363 */
    padding: 1.56rem;
    /* Padding balanced: Top and Bottom are now equal */
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
}

.career-tile h3 {
    font-family: var(--font-header);
    margin: 0 0 0.62rem 0;
    font-size: 1.1rem;
    color: var(--main-color);
    text-transform: uppercase;
}

.career-tile p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* ACCORDION WITHIN TILE */
.accordion-item {
    margin-top: 0.5rem;
}

.accordion-header {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
    user-select: none;
}

.header-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 5px;
    transition: opacity 0.2s;
}

.header-trigger:hover {
    opacity: 0.7;
}

.label {
    font-family: var(--font-header);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--main-color);
    letter-spacing: 0.05rem;
}

.accordion-icon {
    font-size: 0.6rem;
    /* Small arrow icon */
    color: var(--main-color);
    transition: transform 0.3s ease;
    display: inline-block;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    /* Flip arrow up when expanded */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.accordion-content p {
    font-size: 0.875rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    opacity: 1;
    padding-top: 0.5rem;
}

/* ACTION BUTTONS */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.93rem;
    width: 100%;
    margin-bottom: 2.5rem;
}

.btn {
    font-family: var(--font-header);
    text-decoration: none;
    padding: 1.12rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--main-color);
    color: white;
    border: 0.125rem solid var(--main-color);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-4px);
    background-color: #b3432e;
    box-shadow: 0 10px 20px rgba(202, 74, 53, 0.22);
}

.btn-secondary {
    border: 0.125rem solid var(--main-color);
    color: var(--main-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    background-color: var(--main-color);
    color: white;
}

/* CONTACT FOOTER */
.contact-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.contact-label {
    font-size: 0.7rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 700;
}

.email-protector::before {
    content: "gosiapytel83" "\40" "gmail.com";
}

.phone-link, .email-protector  {
    color: #999;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: color 0.2s;
}

.phone-link:hover {
    color: var(--main-color);
}

/* DESKTOP SPLIT SCREEN */
@media (min-width: 64rem) {
    .wrapper {
        flex-direction: row;
    }

    .hero-section {
        width: 45%;
        height: 100vh;
        position: fixed;
        padding: 0;
    }

    .content-section {
        width: 55%;
        margin-left: 45%;
        padding: 5rem 2.5rem;
        min-height: 100vh;
        justify-content: center;
    }

.contact-footer {
    flex-direction: row;
    justify-content: flex-start;

}

.contact-item {
    align-items: flex-start;
}


    .name {
        font-size: 2.5rem;
    }

    .surname {
        font-size: 4.5rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .cta-group {
        flex-direction: row;
    }

    .btn {
        flex: 1;
    }
}