@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@600&display=swap");

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

body {
    background-color: #888aaf;
    font-family: "JetBrains Mono", monospace;
    min-height: 100vh;
    padding: 40px 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 24px;
    margin-bottom: 40px;
    transition: opacity 0.3s ease;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 120px;
    margin-bottom: 40px;
    margin-top: 40px;
}

.back-link:hover {
    opacity: 0.7;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.images-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 85px;
}

.text-column {
    flex: 1;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.image-section {
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.image-section:hover {
    transform: translateY(-5px);
}

.image-section:hover .image-container {
    box-shadow: 0px -5px 120px 0px rgba(0, 0, 0, 0.35);
}

.image-section:hover .arrow-icon {
    transform: translateX(5px);
}

.image-container {
    width: 793px;
    height: 540px;
    background: rgba(218, 255, 153, 0.61);
    border-radius: 15px;
    box-shadow: 0px -5px 100px 0px rgba(0, 0, 0, 0.25);
    padding: 34px 43px 0 43px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.image-description {
    font-size: 24px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    max-width: 672px;
    flex-shrink: 0;
}

.project-image {
    width: 674px;
    height: 415px;
    border-radius: 15px 15px 0 0;
    object-fit: cover;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: auto;
}

.arrow-icon {
    position: absolute;
    top: 54px;
    right: 65px;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.cesar-container {
    height: 540px;
    position: relative;
}

.cesar-description {
    position: absolute;
    top: 34px;
    left: 43px;
    z-index: 2;
}

.cesar-image-1 {
    position: absolute;
    top: 130px;
    left: 43px;
    width: 392px;
    height: 392px;
    border-radius: 15px 0 0 0;
    object-fit: cover;
}

.cesar-image-2 {
    position: absolute;
    top: 197px;
    left: 438px;
    width: 240px;
    height: 240px;
    border-radius: 20px;
    object-fit: cover;
}

.bemperto-container {
    height: 540px;
    position: relative;
}

.bemperto-description {
    position: absolute;
    top: 34px;
    left: 43px;
    z-index: 2;
    font-size: 22px;
}

.bemperto-image-1 {
    position: absolute;
    top: 146px;
    left: 110px;
    width: 258px;
    height: 520px;
    object-fit: contain;
}

.bemperto-image-2 {
    position: absolute;
    top: 146px;
    left: 419px;
    width: 264px;
    height: 520px;
    object-fit: contain;
}

.cta-section {
    width: calc(100% + 40px);
    min-height: 400px;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 50px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -40px;
}

.cta-title {
    font-size: 48px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.cta-description {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.cta-button {
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button.primary {
    background: #181343;
    color: white;
}

.cta-button.primary:hover {
    background: white;
    color: #181343;
    transform: translateY(-3px);
    box-shadow: 0px 10px 30px rgba(255, 255, 255, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    color: #181343;
    border: 2px solid #181343;
    transform: translateY(-3px);
}

.main-text {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.main-text.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.accent-line {
    width: 24px;
    height: 2px;
    background: rgba(218, 255, 153, 0.61);
    margin-bottom: 17px;
}

.project-title {
    font-size: 32px;
    font-weight: 600;
    color: white;
    margin-bottom: 19px;
}

.project-description {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    max-width: 422px;
    margin-bottom: 24px;
}

.tech-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tech-tag:hover {
    transform: translateY(-5px);
    box-shadow: 0px -5px 120px 0px rgba(0, 0, 0, 0.35);
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(218, 255, 153, 0.61);
    padding: 4px 8px;
    border-radius: 10px;
    height: 28px;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.tech-tag svg,
.tech-tag img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.tech-tag span {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

@media (max-width: 1200px) {
    .portfolio-container {
        flex-direction: column;
        gap: 50px;
    }

    .text-column {
        position: relative;
        top: 0;
    }

    .main-text {
        opacity: 1;
        visibility: visible;
        position: relative;
        margin-bottom: 40px;
    }

    .image-container {
        width: 100%;
        max-width: 793px;
        height: auto;
        min-height: 400px;
    }

    .project-image {
        width: 100%;
        max-width: 674px;
    }
}

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

    .image-description {
        font-size: 18px;
    }

    .project-image {
        height: auto;
        min-height: 300px;
    }

    .cesar-container {
        height: auto;
        padding: 20px;
    }

    .cesar-description {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 20px;
    }

    .cesar-image-1 {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 392px;
        height: auto;
        margin-bottom: 12px;
    }

    .cesar-image-2 {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 240px;
        height: auto;
    }

    .bemperto-container {
        height: auto;
        padding: 20px;
    }

    .bemperto-description {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 20px;
        font-size: 18px;
    }

    .bemperto-image-1,
    .bemperto-image-2 {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 300px;
        height: auto;
        margin-bottom: 12px;
    }

    .cta-section {
        padding: 60px 20px;
        margin-top: 60px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-description {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 12px;
    }

    .cta-button {
        width: 100%;
    }

    .project-title {
        font-size: 24px;
    }

    .project-description {
        font-size: 14px;
        max-width: 100%;
    }

    .arrow-icon {
        top: 20px;
        right: 20px;
    }
}
