/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== FONT FACES ===== */
@font-face {
    font-family: 'Ndot55';
    src: url('tipo de letra/Ndot 55.ttf') format('truetype');
}

@font-face {
    font-family: 'NType82-Regular';
    src: url('tipo de letra/NType82-Regular.otf') format('opentype');
}

/* ===== GLOBAL STYLES ===== */
html, body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #F1F9FC;
    color: black;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HEADER STYLES ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    background-color: #DDEAF1;
    border-bottom: 1px solid silver;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, black, silver, white);
    transition: width 0.5s ease;
}

header:has(.menu-toggle:checked)::after,
header:hover::after {
    width: 100%;
}

header h1 {
    color: black;
    font-size: 2rem;
    font-weight: 300;
    font-family: 'Ndot55', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== NAVIGATION STYLES ===== */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Ndot55', 'Helvetica Neue', Arial, sans-serif;
}

nav ul li a:hover, nav ul li a:active {
    color: rgb(255, 255, 255);
    background-color: #333;
}

/* ===== SECTION STYLES ===== */
section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

section h2 {
    color: black;
    margin-bottom: 20px;
    border-bottom: 1px solid silver;
    padding-bottom: 10px;
}

#contato p {
    display: inline-block;
    margin-right: 20px;
}

.teto {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.text {
    display: flex;
    flex-direction: column;
}

.teto img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid silver;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

ul {
    list-style: none;
}

ul li {
    margin-bottom: 10px;
}

/* ===== PROGRESS BAR STYLES ===== */
.progress-bar-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 10px;
    position: relative;
}

.progress-bar-container label {
    font-family: 'NType82-Regular', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2em;
}

progress {
    width: 100%;
    height: 15px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid silver;
    border-radius: 4px;
    background-color: #f0f0f0;
}

progress::-webkit-progress-bar {
    background-color: #f0f0f0;
    border-radius: 4px;
}

progress::-webkit-progress-value {
    background-color: black;
    border-radius: 4px;
}

progress::-moz-progress-bar {
    background-color: black;
    border-radius: 4px;
}

progress.full::-webkit-progress-value {
    background-color: #00c200;
}

progress.full::-moz-progress-bar {
    background-color: #00c200;
}

.percentage {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    font-size: 0.8em;
    font-weight: bold;
    color: black;
    pointer-events: none;
}

/* ===== CAROUSEL STYLES ===== */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    background-color: #f9f9f9;
    border: 1px solid silver;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 15px auto;
}

/* ===== SUB-CAROUSEL STYLES ===== */
.sub-carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 15px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sub-slides {
    display: flex;
    transition: transform 0.5s linear;
    will-change: transform;
}

.sub-slide {
    min-width: 100%;
    text-align: center;
}

.sub-slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}

.sub-prev, .sub-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #333;
    padding: 8px;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    border: none;
    border-radius: 0%;
    transition: all 0.3s ease;
}

.sub-prev {
    left: 5px;
}

.sub-next {
    right: 5px;
}

.sub-prev:hover, .sub-next:hover {
    background-color: rgba(115, 115, 115, 0.9);
}

.slide h3 {
    margin: 15px 0 10px 0;
    color: #333;
    font-family: 'NType82-Regular', 'Helvetica Neue', Arial, sans-serif;
}

.slide p {
    margin: 0;
    color: #666;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #333;
    padding: 15px;
    cursor: pointer;
    font-size: 28px;
    font-family: 'Courier New', monospace;
    border: none;
    border-radius: 0%;
    transition: all 0.3s ease;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover, .next:hover {
    background-color: rgba(115, 115, 115, 0.9);
}

/* ===== FOOTER STYLES ===== */
footer {
    position: relative;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-top: 1px solid silver;
    color: black;
}

#back-to-top {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: black;
    border: 1px solid silver;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    color: rgb(255, 255, 255);
    background-color: #333;
}


/* Responsive design */
@media (max-width: 768px) {
    body {
        touch-action: pan-y;
    }

    nav {
        position: absolute;
        top: 100%;
        right: 0;
        width: fit-content;
        background-color: white;
        border-top: 1px solid silver;
        border-left: 1px solid silver;
        border-radius: 10px 0 0 10px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 10;
    }

    .menu-toggle:checked ~ nav {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        text-align: right;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-icon {
        display: block;
    }

    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .text {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 20px 10px;
    }

    .teto {
        flex-direction: column;
        gap: 15px;
    }

    .teto img {
        width: 200px;
        height: 200px;
    }

    .progress-bar-container label {
        font-size: 1em;
    }

    .carousel {
        max-width: 100%;
        border-radius: 8px;
    }

    .slide {
        padding: 20px 15px;
    }

    .slide img {
        max-height: 200px;
    }

    .sub-carousel {
        max-width: 100%;
    }

    .sub-slide img {
        max-height: 150px;
    }

    .prev, .next {
        padding: 10px;
        font-size: 24px;
    }

    .sub-prev, .sub-next {
        padding: 6px;
        font-size: 16px;
    }

    footer {
        padding: 15px 10px;
    }

    #back-to-top {
        right: 10px;
        padding: 8px;
        font-size: 16px;
    }
}
