/* ========================================
   style.css — Portfólio otavioaugustosw
   Unified stylesheet
   ======================================== */

/* ---- Custom Fonts ---- */
@font-face {
    font-family: "Kiwisoda";
    src: url("/assets/fonts/KiwiSoda.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "EmojiFont";
    src: url("/assets/fonts/EmojiFont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---- Design Tokens ---- */
:root {
    --afternoon-blue: #3C00FF;
    --metro-pink: #FF0095;
    --alien-green: #09e848;
    --little-space: #0D0527;

    --font-title: "Manrope", sans-serif;
    --font-special: "Kiwisoda", cursive;
    --font-emoji: "EmojiFont", cursive;

    --hero-title-size: clamp(2.5rem, 6vw, 5rem);
    --super-hero-title-size: clamp(4rem, 10vw, 8.75rem);
    --brand-title: 5rem;
    --hero-title-weight: 700;

    --title-size: clamp(2rem, 2.8vw, 4rem);
    --title-weight: 700;

    --subtitle-size: clamp(1.2rem, 2vw, 2.8rem);
    --subtitle-weight: bold;

    --text-size: clamp(1rem, 2vw, 1.3rem);
    --text-weight: 400;

    --card-title-size: clamp(2rem, 5vw, 2.875rem);
    --card-title-weight: 800;

    --shadow: 0 2px 30px rgba(0, 0, 0, .3);
}

/* ---- Reset & Base ---- */
* {
    font-family: var(--font-title);
    color: var(--little-space);
}

html,
body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-size: var(--text-size);
    font-weight: var(--text-weight);
    background-color: var(--metro-pink);
    padding: 0;
    background-image: url("../assets/images/common/wallBackground.webp");
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

button {
    background: none;
    border: none;
    outline: none;
}

button:hover,
button:active {
    background: none;
    border: none;
    outline: none;
}

/* ---- Typography Classes ---- */
.special-font {
    font-family: var(--font-special);
}

.emoji-font {
    font-family: var(--font-emoji);
}

.metro-pink {
    color: var(--metro-pink);
}

.afternoon-blue {
    color: var(--afternoon-blue);
}

.alien-green {
    color: var(--alien-green);
}

.brand-title {
    font-size: var(--super-hero-title-size);
}

.super-hero-title {
    font-size: var(--super-hero-title-size);
    line-height: 0.9em;
}

.hero-title {
    font-size: var(--hero-title-size);
    font-weight: var(--hero-title-weight);
}

.title {
    font-size: var(--title-size);
    font-weight: var(--title-weight);
}

.subtitle {
    font-size: var(--subtitle-size);
    font-weight: var(--subtitle-weight);
}

.card-title {
    font-size: var(--card-title-size);
    font-weight: var(--card-title-weight);
}

.text {
    font-size: var(--text-size);
    font-weight: var(--text-weight);
    line-height: 1.6;
    color: var(--little-space);
}

.btn {
    color: var(--afternoon-blue);
    border: none;
    background: none;
}

.btn:active {
    color: var(--alien-green) !important;
}

.btn:hover {
    color: var(--metro-pink);
}

.mb-5 {
    margin-bottom: 4rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

/* ---- Header / Navbar ---- */
.navbar {
    border-bottom: 2px solid var(--afternoon-blue);
}

.navbar .nav-link {
    color: var(--afternoon-blue);
}

.navbar .nav-link:hover {
    color: var(--metro-pink);
}

.navbar .nav-link.active {
    color: var(--metro-pink);
}

.navbar-brand {
    align-items: start;
    display: flex;
    max-height: clamp(100px, 120px, 180px);
}

.navbar-brand .emoji-brand {
    font-family: var(--font-emoji);
    color: var(--metro-pink);
    font-size: var(--brand-title) !important;
}

.navbar-brand .letter-brand {
    font-family: var(--font-special);
    color: var(--afternoon-blue);
    font-size: 90px;
}

/* ---- Footer ---- */
footer {
    width: 100%;
    line-height: 0;
    margin-top: 10em;
}

footer img {
    width: 100%;
    display: block;
}

/* ---- Home Page ---- */
.main-content-flex {
    display: flex;
    align-items: center;
}

.text-column {
    width: 50%;
}

.image-column {
    width: 50%;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: fit-content;
}

.otavio-style-image {
    max-width: 25em;
    display: block;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.art-item {
    position: absolute;
    z-index: 1;
    margin: 0;
}

.art-item img {
    width: 120px;
}

.iLoveIos {
    bottom: -150px;
    left: 20px;
    transform: rotate(-15deg);
}

.cleanBuildFolder {
    bottom: -190px;
    left: 190px;
    transform: rotate(-5deg);
}

.toggle {
    bottom: -120px;
    left: 160px;
    transform: rotate(8deg);
}

.macSmile {
    bottom: -130px;
    right: 30px;
    transform: rotate(10deg);
}

.main.art-block .art-block {
    width: 40vw;
}

.hello img {
    max-width: 100px;
}

.camera img {
    max-width: 120px;
}

.piano img {
    max-width: 120px;
}

.hello {
    transform: rotate(10deg);
}

.camera {
    transform: rotate(-10deg);
}

.piano {
    transform: rotate(10deg);
}

.main.mobile {
    display: none;
}

.main.art-block {
    display: block;
}

@media screen and (max-width: 1000px) {
    .main.art-block {
        display: none !important;
    }

    .main.mobile {
        display: block;
    }

    .main-content-flex {
        flex-direction: column;
    }

    .text-column,
    .image-column {
        width: 100%;
        justify-content: center;
    }

    .text-column {
        text-align: center;
        margin-bottom: 3rem;
    }

    .image-container {
        width: fit-content;
    }

    .otavio-style-image {
        max-width: 350px;
        margin-bottom: 50px;
    }

    .art-item img {
        width: 90px;
    }

    .iLoveIos {
        bottom: -120px;
        left: 10%;
    }

    .cleanBuildFolder {
        bottom: -190px;
        left: 50%;
        transform: translateX(-50%) rotate(-5deg);
    }

    .cleanBuildFolder img {
        width: 120px;
    }

    .toggle {
        bottom: -80px;
        left: 35%;
    }

    .macSmile {
        bottom: -120px;
        right: 0;
    }
}

/* ---- Card System ---- */
.card {
    height: 80vh;
}

.card.education {
    height: max-content;
}

.info-card.card {
    height: 22em;
    width: 36em;
}

figure.portifolio-card {
    margin: 0;
}

.hero-photo {
    min-height: calc(100vh - 200px);
    overflow: hidden;
}

.hero-photo img {
    object-fit: cover;
}

figure.main.portifolio-card {
    height: 30em;
    position: relative;
}

figure.portifolio-card:not(figure.main.portifolio-card) {
    height: 20em;
    margin-bottom: 1em;
}

.item-card {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.item-card span.subtitle,
.item-card .portifolio-card span.subtitle,
.item-card .portifolio-card span.text,
.item-card span.hand {
    z-index: 2;
    color: white;
    text-align: left;
    overflow: hidden;
}

.text-block {
    width: 75%;
}

.text-block span.subtitle {
    margin-bottom: 0.4em;
}

.item-card span.hand {
    position: absolute;
    width: 20%;
    right: 10%;
    text-align: right;
}

.info-block span.hand {
    align-self: flex-end;
}

.item-card span.subtitle:not(.portifolio-card .text-decoration-none.subtitle),
.info-block {
    position: absolute;
    bottom: 5%;
    left: 5%;
    margin-bottom: 1em;
}

.portifolio-card.button {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.portifolio-card.button:hover {
    transform: translateY(-8px);
}

.portifolio-card.button:active {
    transform: translateY(0px);
}

.text-prison {
    position: relative;
    width: 70%;
}

.card img {
    max-height: 100%;
    width: 100%;
    object-fit: cover;
}

.card img,
.card,
.fade-card:after {
    border-radius: 30px;
}

.card {
    box-shadow: var(--shadow);
}

.fade-card {
    position: relative;
    margin: 0;
    padding: 0;
}

.fade-card::after {
    background: linear-gradient(rgba(0, 0, 255, 0), rgba(0, 0, 0, 0.8) 74.37%);
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
}

.fade-card.no-shadow::after {
    background: none;
}

.modal-backdrop {
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    --bs-backdrop-opacity: 1;
}

@media only screen and (hover: none) and (pointer: coarse) {
    figure.main.portifolio-card {
        height: 18em;
    }
}

/* ---- Modal System ---- */
.modal-custom-image-in-body .modal-content {
    border-radius: 0.8rem;
    overflow: hidden;
    border: none;
    background-color: #ffffff;
}

.modal-body-with-top-image {
    padding: 0 !important;
    color: #212529;
}

.modal-image-card {
    height: 22em;
}

.top-image-wrapper-in-body {
    width: 100%;
    height: 480px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 0.8rem;
    border-top-right-radius: 0.8rem;
    box-shadow: var(--shadow);
}

.top-image-wrapper-in-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-close-modal-custom {
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    padding: 0.4rem 0.45rem;
    line-height: 1;
    cursor: pointer;
}

.btn-close-modal-custom:hover {
    background-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.btn-close-modal-custom:active {
    background-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.btn-close-modal-custom:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-content-area {
    padding: 2rem;
}

.main-content-area h2.modal-main-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.main-content-area .description-text {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 1.5rem;
}

.main-content-area .section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.main-content-area .section-text {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
}

.article-image-container {
    margin: 2rem 0;
}

.article-image-container img {
    border-radius: 0.5rem;
}

.iphone-prints-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.iphone-prints-container-ref {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.iphone-print-item {
    flex: 1;
    max-height: 100%;
    background-color: #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.iphone-print-item img {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
    border-radius: 0.75rem;
}

.iphone-print-item:only-child {
    flex: none;
    max-width: 250px;
}

.iphone-print-item video {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
    border-radius: 0.75rem;
}

.external-sources-section {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.external-sources-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #343a40;
}

.external-icons-grid {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.external-icon-item {
    text-align: center;
    flex-basis: 100px;
}

.external-icon-item a {
    text-decoration: none;
    color: inherit;
}

.icon-shape .bi {
    color: white;
}

.icon-shape {
    width: 60px;
    height: 60px;
    background-color: #3d00ff;
    border-radius: 0.6rem;
    margin: 0 auto 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.icon-shape.app-placeholder {
    font-size: 0.8rem;
    font-weight: bold;
}

.external-icon-item .icon-label {
    font-size: 1.2rem;
    font-weight: 500;
}

/* ---- Carousel ---- */
.carousel-container {
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px 0;
}

.carousel-main-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-controls-outer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: none;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.three-item-carousel {
    overflow: visible;
}

.three-item-carousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: visible;
}

.three-item-carousel .carousel-item {
    display: block;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease-out;
    backface-visibility: hidden;
    opacity: 0.8;
    z-index: 1;
}

.three-item-carousel .carousel-item .item-content-wrapper {
    margin: 0 auto;
}

.three-item-carousel .carousel-item .item-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.three-item-carousel .carousel-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 3;
}

.three-item-carousel .carousel-item.partially-visible-prev {
    transform: translateX(-62%);
    z-index: 2;
    display: block !important;
}

.three-item-carousel .carousel-item.partially-visible-next {
    transform: translateX(62%);
    z-index: 2;
    display: block !important;
}

.three-item-carousel .carousel-item:not(.active):not(.partially-visible-prev):not(.partially-visible-next) {
    opacity: 0;
    pointer-events: none;
}

.bi.bi-chevron-right,
.bi-chevron-left {
    color: var(--metro-pink);
}

.carousel-controls-outer button {
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--metro-pink);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.carousel-controls-outer button:hover {
    background-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.carousel-controls-outer button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-controls-outer button:active {
    transform: translateY(0px);
}

@media (max-width: 576px) {

    .three-item-carousel .carousel-item .item-content-wrapper,
    .info-card.card {
        width: 100%;
        overflow: hidden;
    }

    .carousel-controls-outer {
        gap: 20px;
    }
}

/* ---- Segmented Control ---- */
.segmented-control-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
}

.segmented-control {
    display: inline-flex;
    position: relative;
    background-color: #F1F1F1;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 7px 7px 15px #dcdcdc, -7px -7px 15px #ffffff;
    width: max-content;
}

.segmented-control-button {
    background-color: transparent;
    border: none;
    padding: 10px 24px;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    white-space: nowrap;
}

.segmented-control-button.active,
.segmented-control-button.active .bi,
.segmented-control-button.active span {
    color: var(--metro-pink);
}

.segmented-control-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    height: auto;
    background-color: #F1F1F1;
    border-radius: 9px;
    box-shadow: inset 5px 5px 10px #dcdcdc, inset -5px -5px 10px #ffffff;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.portfolio-card-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .segmented-control-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .segmented-control-container::-webkit-scrollbar {
        display: none;
    }

    .segmented-control-button {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

/* ---- About Me ---- */
.mobile-main {
    display: none;
}

.aboutme {
    position: relative;
    height: 100%;
}

.side-bar {
    height: 100%;
    width: 12em;
    background: var(--afternoon-blue);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle.myname {
    color: white;
}

.side-bar .subtitle {
    font-size: 1.5em;
}

.side-bar .pfp img {
    width: 8em;
    height: 8em;
    border-radius: 8em;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow);
}

.sidebar-header {
    width: 50%;
}

.apple-logo {
    margin: 0 !important;
    width: 70%;
}

.apple-logo img {
    width: 100%;
}

.line {
    height: 1px;
    width: 90%;
    background: white;
}

.line.right {
    margin-left: 34px;
}

.line.top {
    margin-bottom: 35px;
}

.line.bottom {
    margin-top: 35px;
}

.contact-logo img {
    height: 100%;
    width: 100%;
}

.contact-logo {
    height: 90%;
    width: 100%;
    display: flex;
    justify-content: center;
}

.aboutme article {
    width: 90vw;
    padding: 0 5vw;
}

.tech-logo img {
    width: 25%;
}

.tech-logo.partner img {
    width: 100%;
    min-width: 140px;
}

@media only screen and (hover: none) and (pointer: coarse) {
    .big-main {
        display: none;
    }

    .mobile-main {
        display: block;
    }

    .side-bar {
        width: 100%;
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem 0;
    }

    .side-bar article {
        width: 80%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tech-logo img {
        width: 40%;
    }
}

/* ---- Edu Card (SwiftStart) ---- */
.card-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background-color: #f0f2f5;
}

.curso-card {
    background-image: url('../assets/images/common/darkmetro.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 100%;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: space-around;
}

.card-column-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-column-right {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
}

.card-top-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-top-icons img {
    height: 40px;
}

.curso-card h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.curso-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.info-item img {
    width: 24px;
    height: 24px;
}

.info-item .info-title,
.info-item span {
    font-size: 1rem;
    margin: 0;
    color: white;
}

.info-item .info-subtitle {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.btn-matricula-link {
    display: inline-block;
    width: 100%;
    line-height: 0;
    text-align: left;
    transition: transform 0.2s ease;
    outline: none;
}

.btn-matricula-img {
    width: 50%;
    height: 100%;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.btn-matricula-link:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .curso-card {
        padding: 3rem;
    }

    .card-content {
        flex-direction: row;
        gap: 3rem;
    }

    .card-column-left {
        max-width: 50%;
    }

    .card-column-right {
        min-width: 30%;
    }

    .info-list {
        margin-bottom: 0;
    }
}