@import url('https://fonts.googleapis.com/css2?family=Platypi:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --primary: #A187C1;
    --primary-dark: #6A4E91;
    --primary-light: #D8CCE9;
    --secondary: #52796F;
    --secondary-dark: #4F6B57;
    --secondary-light: #CDE4D1;
    --accent: #E58E4C;
    --accent-dark: #B55E32;
    --accent-light: #FADACB;
    --bg-white: #F4F1E9;
    --text-black: #313131;
    --gray-1: #EDE7DB;
    --gray-2: #E4E8ED;
    --gray-3: #5E5043;
    --gray-4: #4A4A4A;
}

body {
    font-family: 'Platypi', serif;
    background-color: var(--bg-white);
    color: var(--text-black);
    scroll-behavior: smooth;
}

section {
    padding-left: 80px !important;
    padding-right: 80px !important;
}

@media (max-width: 767px) {
    section {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (min-width: 768px) and (max-width:1200px) {
    section {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
}

.py-6 {
    padding: 6rem 0;
}

h1 {
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-black);
}

h1 span {
    color: var(--primary);
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 3rem;
    text-align: center;
}

h4 {
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--secondary);
}

h4 span {
    font-size: 1.2rem;
    color: var(--text-black);

}

h5 {
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-black);
}

p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 3rem;
}

li {
    margin-bottom: 20px;
}

.text-purple {
    color: var(--primary);
}

/* Animação de Hover Global para Clicáveis */
a,
button,
.clickable-card {
    transition: transform 0.3s ease;
    display: inline-block;
}

a:hover,
button:hover,
.clickable-card:hover {
    transform: scale(1.05);
}

a:not(.slider-arrow):hover,
button:not(.slider-arrow):hover,
.clickable-card:hover {
    transform: scale(1.05);
}

/* Navbar */
.navbar {
    background-color: rgba(244, 241, 233, 0.95);
    backdrop-filter: blur(5px);
    height: 70px;
    display: flex;
    align-items: center;
}

@media (min-width: 767px) {
    .navbar {
        padding: 0 1.5rem;
    }
}

.nav-link:hover {
    color: var(--primary-dark) !important;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.nav-item {
    margin: 0 !important;
    padding: 0 !important;
}

.nav-link {
    color: var(--text-black) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin-right: 0.5rem;
    display: block !important;
    transform: none !important;
}

@media (max-width: 767px) {
    .nav-link {
        display: none !important;
    }
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    padding: 60px;
}

@media (min-width: 767px) {
    .hero-section-row {
        width: 100%;
    }
}

.hero-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .hero-section {
        text-align: center;
        min-height: 70vh;

    }
}

@media (max-width: 767px) {
    .hero-section {
        text-align: center;
        min-height: 80vh;
        margin-top: 2rem;

    }
}

@media (max-width: 320px) {
    .hero-section {
        min-height: 60vh;

    }

    .hero-img {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
    }
}

/* Botões Fixos Inferiores */
.fixed-widgets {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.btn-fixed,
.btn-fixed-purple {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-fixed:hover {
    background: var(--accent-dark);
}

.btn-fixed-purple {
    background: var(--primary);
}

.btn-fixed-purple:hover {
    background: var(--primary-dark);
}

#contact {
    background-color: var(--gray-1);
}

@media (min-width: 1024px) {
    #contact p {
        padding: 0 10%;
    }
}


/* Cards de Projetos */
.project-card-img {
    width: 100%;
    object-fit: cover;
}

.badge-web {
    background-color: var(--secondary-light);
    color: var(--text-black);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

/* Slider de Projetos */
.work-slider-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 30px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.work-slider-container::-webkit-scrollbar {
    display: none;
}

.work-card {
    flex: 0 0 88%;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .work-card {
        flex: 0 0 45%;
        scroll-snap-align: start;
    }
}

@media (min-width: 1200px) {
    .work-card {
        flex: 0 0 31%;
    }
}

.project-card-img {
    height: 220px;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--bg-white);
    border: none;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.slider-arrow.prev {
    left: -25px;
}

.slider-arrow.next {
    right: -25px;
}

.slider-arrow:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-50%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* Timeline */
.timeline-container {
    padding-left: 80px;
}

@media (max-width: 767px) {
    .timeline-container {
        padding-left: 10px;
    }
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--primary);
    padding-bottom: 50px;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    z-index: 1;
}

.timeline-item:last-child .timeline-dot {
    background-color: var(--accent);
    width: 24px;
    height: 24px;
    left: -12px;
}

.inner-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-top: -1rem;
    padding: 10px;
}

.inner-slider::-webkit-scrollbar {
    display: none;
}

.inner-card {
    flex: 0 0 70%;
    background: white;
    border-radius: 15px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inner-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 15px;
}

.inner-card h5 {
    padding: 0 15px;
    margin-bottom: 15px;
}

.inner-card .mt-auto {
    margin-top: auto !important;
    padding: 0 15px 15px 15px;
}

@media (min-width: 768px) {
    .inner-card {
        flex: 0 0 300px;
    }
}

/* Estilização dos Ícones Sociais */
.fs-2 a {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--text-black) !important;
}

.fs-2 a:hover {
    transform: scale(1.2);
    color: var(--primary) !important;
}

/* Container do Switch */
.lang-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.lang-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lang-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #002366;
    transition: .4s;
    border-radius: 34px;
}

.lang-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-white);
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
}

.lang-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: bold;
    transition: .4s;
}

.lang-text.en {
    right: 8px;
    color: #FFB6B6;
}

.lang-text.pt {
    left: 8px;
    color: #FFF9C4;
    opacity: 0;
}

/* ESTADO ATIVO (PT) */
input:checked+.lang-slider {
    background-color: #006733;
}

input:checked+.lang-slider:before {
    transform: translateX(30px);
}

input:checked+.lang-slider .en {
    opacity: 0;
}

input:checked+.lang-slider .pt {
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

footer a {
    color: var(--bg-white);
    text-decoration: none;
}

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

footer span {
    color: var(--gray-2);
    font-size: 0.7rem;
}

.footer-social-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-icons-white {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--bg-white);
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    width: fit-content;
}

.social-icons-white i {
    font-size: 1.6rem;
}

.social-icons-white:hover {
    opacity: 0.7;
    color: var(--bg-white);
}

@media (max-width: 480px) {
    .social-icons-white {
        font-size: 0.95rem;
    }
}

/*Botões*/
.btn-primary {
    background-color: var(--accent);
    color: var(--bg-white);
    border-radius: 8px;
    border: none;
    font-size: 0.8rem;
    padding: 8px 16px;
    font-weight: 500;
    text-decoration: none;
    margin: 0px 8px;
    transition: transform 0.3s ease;
    cursor: pointer;

}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--accent-dark) !important;
}

.btn-purple {
    display: block;
    background-color: var(--primary);
    color: var(--bg-white);
    border-radius: 8px;
    border: none;
    font-size: 0.8rem;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.btn-purple:hover {
    background-color: var(--primary-dark);
}

/* Outros*/
.social-icons {
    color: var(--secondary);
    font-size: 1.4rem;
    margin: 0.8rem 0.8rem 0.5rem 0;
}

.social-icons:hover {
    color: var(--secondary-dark);
}

.social-icons-white {
    color: var(--gray-1);
    font-size: 1.4rem;
    margin: 0.8rem 0.8rem 0.5rem 0;
}

.social-icons-white:hover {
    color: var(--gray-2);
}

.a-work {
    color: var(--secondary);
    text-decoration: none;
}

.a-work:hover {
    color: var(--secondary-dark);
}

/*Formulário*/

.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content-wrapper {
    background-color: white;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    border: none;
    background: transparent;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-3);
    z-index: 10001;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-dark);
    transform: scale(1.1) !important;
}

.modal-body {
    position: relative;
    padding-top: 50px !important;
}

.modal-open {
    overflow: hidden;
}

.contact-success-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--secondary-dark);
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.contact-success-link i {
    color: var(--secondary);
    font-size: 1.4rem;
}

.contact-success-link:hover {
    opacity: 0.8;
    color: var(--secondary);
}

.contact-success-link span {
    font-weight: 500;
}

/*Portfólio*/
article section {
    margin-bottom: 4rem;
    padding: 0;
}

.img-portfolio-gallery,
#p-execucao-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.img-portfolio-gallery {
    margin: 50px 0px 100px 0px;
}

.table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    background-color: var(--secondary-light) !important;
    border-bottom: 2px solid var(--secondary) !important;
    color: var(--secondary-dark);
    font-weight: bold;
    width: 33.33%;
}

.table td {
    padding: 1.2rem;
    font-size: 0.95rem;
    width: 33.33%;
    word-wrap: break-word;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .table {
        table-layout: auto;
        min-width: 600px;
    }

    .table-responsive {
        border-radius: 12px;
        border: 1px solid #dee2e6;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive::after {
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #999;
        margin-top: 8px;
    }
}

.results-section {
    background: var(--gray-1);
    padding: 20px 40px;
    border-radius: 50px;
}

.img-lightbox {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.img-lightbox:hover {
    transform: scale(1.02);
}

#p-execucao-container a[data-fslightbox] {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
}

.img-lightbox {
    cursor: zoom-in;
}