@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600&family=Plus+Jakarta+Sans:wght@400;500;700;800;900&display=swap');


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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;

    scrollbar-width: none;
    max-width: 100vw;
}

body {
    min-height: 100vh;
    max-width: 100vw;

    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    background-image: url('..//assets/background1.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    
    background-image: url('..//assets/background1.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Blur */
    filter: blur(16px) brightness(0.75); 
    -webkit-filter: blur(16px) brightness(0.75);
    
    z-index: -1;
    transform: scale(1.02); 
}

#bg-video-mobile {
    display: none;
}

section {
    width: 100%;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
}

/*------------------- Aux Classes ----------------------*/

.container {
    max-width: 1280px;
    width: 98%;
    margin: 0 auto;
    padding: 0 2%;

    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.clear {
    clear: both;
}

.center {
    text-align: center;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    letter-spacing: -1.5px;
}

p, a, li {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 17px;  
    line-height: 1.6; 
    color: #FFFFFF;  
}

.badge-tag {
    display: inline-block;
    padding: 6px 14px;
    border-left: 3px solid #F5A623;
    color: #FFFFFF;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.highlight {
    color: #FFFFFF;
    display: inline-block;
    padding: 0 6px;
    background: linear-gradient(120deg, rgba(9, 83, 186, 0.6) 0%, rgba(25, 0, 254, 0.5) 100%);
    background-repeat: no-repeat;
    background-size: 0% 38%;
    background-position: 0 88%;
    border-radius: 3px;
    transition: none;
}

.highlight.animate {
    animation: highlightDraw 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.glass-card {
    display: flex;
    align-items: center;
    padding: 26px 30px;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.07) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;

    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(245, 166, 35, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(245, 166, 35, 0.15);
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.03) 100%
    );
}

.glass-card:hover::before {
    opacity: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/*------------------- Aux Classes ----------------------*/

/*------------------- Header ----------------------*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 40px;          /* Espaçamento elegante e equilibrado */
    box-sizing: border-box;
    background: transparent;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo:hover .logo-img {
    transform: scale(1.03);      /* Efeito micro-interativo suave ao passar o rato */
    opacity: 0.9;
}

.logo-img {
    height: 100px;                 /* Controla o tamanho exato da logo (ajusta entre 32px e 45px conforme preferires) */
    width: auto;                  /* Preserva a proporção sem distorcer nem cortar */
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-container {
    width: 150px;
    height: 100px;
    background-image: url('assets/logo1.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-size: cover;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Controla a distância EXATA entre o menu e o botão PT */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    margin: 0;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
   color: #E09216;
}

.nav-actions {
    display: flex;
    align-items: center;
    position: relative;
    width: 38px;
    height: 38px;
}

.lang-selector {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 38px;
    max-height: 38px; /* Altura inicial (círculo) */
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    z-index: 1000;
}

/* Hover simples no estado fechado */
.lang-selector:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Estado Expandido (Cilindro aberto) */
.lang-selector.open {
    max-height: 115px; /* Altura exata para caber PT + ES + EN */
    height: auto;
    background: transparent;
    border-color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 166, 35, 0.2);
}

/* Botão do topo (Principal) */
.lang-btn.main-lang {
    width: 38px;
    height: 38px;
    min-height: 38px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
}

/* Container de opções internas */
.lang-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 6px;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}

.lang-selector.open .lang-options {
    opacity: 1;
}

/* Opções dentro do cilindro */
.lang-option {
    width: 100%;
    height: 32px;
    min-height: 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    outline: none;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

/*------------------- Header ----------------------*/


/*------------------- Hero ----------------------*/

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; 
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    max-width: 55%;
    text-align: left;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    color: #FFFFFF;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-text{
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFFFFF;
    opacity: 0.85;
    margin-bottom: 35px;
    max-width: 540px;
    text-align: left;
}

.hero-3d-wrapper {
    width: 50%;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    pointer-events: none; 
    border-radius: 16px; 
}

.btn-primary {
    background-color: #F5A623;
    color: #FFFFFF;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(224, 146, 22, 0.5);
    background-color: #E09216;
    color: #FFFFFF;
}

/*------------------- Hero ----------------------*/


/*------------------- About ----------------------*/

.about {
    height: auto;
    min-height: 100vh;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 50px;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.about-title {
    font-size: 2.5rem;
    line-height: 1.1;
    color: #FFFFFF;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.5px; 
}

.about-text, .about-subtext {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFFFFF;
    opacity: 0.85;
    margin-bottom: 35px;
    max-width: 540px;
    text-align: left;
}

.roles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-num {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: #F5A623;
    opacity: 0.5;
    background: rgba(245, 166, 35, 0.1);
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.2);
    transition: all 0.3s ease;
}

.glass-card-content h3 {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.glass-card-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.glass-card:hover .glass-card-content h3 {
    color: #F5A623;
}

.glass-card:hover .card-num {
    opacity: 1;
    background: #F5A623;
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.4);
}

/*------------------- About ----------------------*/


/*------------------- Projects ----------------------*/

.projects {
    height: auto;
    min-height: 100vh;
    width: 100%;
    padding-top: 110px;
    padding-bottom: 50px;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.projects-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    width: 100%;
}

.projects-header {
    width: 100%;
}

.projects-title {
    font-size: 2.5rem;
    line-height: 1.1;
    color: #FFFFFF;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

/* Carrossel Layout */
.carousel-main-layout {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 35px;
}

.projects-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #073f8c;
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(0, 101, 243, 0.544);
}

a.project-card {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.project-card {
    flex: 0 0 calc((100% - 48px) / 3);
    padding: 0 !important;
    overflow: hidden;
    border-radius: 20px;
    box-sizing: border-box;
    height: 380px;
    position: relative;
    display: flex;
    text-decoration: none;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-live-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.5s ease;
}

.project-card-wrapper {
    position: relative;
    z-index: 2;
    width: 100% !important;
    min-width: 0 !important;
    height: 100%;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    box-sizing: border-box;
    background: transparent;
    transition: background 0.3s ease;
}

.coming-soon-wrapper {
    width: 100%;
    height: 100%;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px; 
    box-sizing: border-box;
}

.project-card-content,
.glass-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.glass-card-content {
    padding: 20px 24px 24px 24px;
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--hover-bg, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 5;
    padding: 20px;
}

.hover-logo {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:not(.card-coming-soon):hover .card-hover-overlay {
    display: none;
}

.project-card:not(.card-coming-soon) {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:not(.card-coming-soon):hover {
    flex: 0 0 calc(((100% - 48px) / 3) + 300px);
    transform: translateY(-6px);
    border-color: rgba(245, 166, 35, 0.6);
    z-index: 10;
    box-shadow: none;
}

.project-card:not(.card-coming-soon):hover .project-card-wrapper {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.card-title{
    color: #FFFFFF;
}

.project-card:not(.card-coming-soon):hover .card-title,
.project-card:not(.card-coming-soon):hover .card-description {
    opacity: 0;             
    visibility: hidden;    
    transform: translateY(10px);
}

.project-card:not(.card-coming-soon):hover .card-live-preview {
    opacity: 1;
    visibility: visible;
}

.project-card:not(.card-coming-soon):hover .preview-img {
    transform: scale(1.05);
}

.project-card:not(.card-coming-soon):hover .card-image {
    transform: scale(1.05);
}

.project-card:not(.card-coming-soon):hover .card-overlay {
    opacity: 1;
}

/* Coming Soon */
.project-card.card-coming-soon {
    cursor: default;
    opacity: 0.75;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.project-card.card-coming-soon:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.4);
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto 0;
    gap: 12px;
}

.coming-soon-icon {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.coming-soon-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.coming-soon-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    max-width: 200px;
}

/*------------------- Projects ----------------------*/


/*------------------- Contact + footer ----------------------*/

.contact {
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 20px;
    box-sizing: border-box;
    scroll-snap-align: start;
    position: relative;
}

.contact-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}

.step-contact-section {
    min-height: 100vh;         
    width: 100%;
    display: flex;
    align-items: center;       
    justify-content: center;    
    background-color: #0b0b0b;
    padding: 0 20px;
    box-sizing: border-box;
}

.step-container {
    width: 100%;
    max-width: 750px;
    position: relative;
    margin: 0 auto;
    text-align: center;
}

.step-header {
    margin-bottom: 48px;
    text-align: center;
}

.step-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: #e5e5e5;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}

.step-item {
    display: none;
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-item.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: stepIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-item.exit {
    display: block;
    animation: stepOut 0.4s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.step-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #a1a1a1;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #F5A623;
}

.step-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 2.2rem;
    font-weight: 600;
    color: #ffffff;
    padding-right: 50px;
}

.step-input::placeholder {
    color: #FFFFFF;
    opacity: 0.9;
    font-weight: 600;
}

.btn-step-next {
    position: absolute;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F5A623;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-input:valid ~ .btn-step-next,
.step-input:not(:placeholder-shown) ~ .btn-step-next {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.btn-step-next:hover {
    transform: scale(1.1);
    background: #E09216;
}

.step-success {
    display: none;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.step-success.active {
    display: block;
    opacity: 1;
}

.step-success h3 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #F5A623;
}

.step-success p {
    color: #a1a1a1;
    font-size: 1.1rem;
}

.step-title-highight {
    font-style: italic;
}

.footer-bottom {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

/*------------------- Contact + footer ----------------------*/


/*------------------- LEGAL MODAIS (PRIVACY & COOKIES) ----------------------*/

.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-content {
    position: relative;
    max-width: 650px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    background: rgba(18, 22, 30, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.close-modal:hover {
    color: #E09216;
    transform: scale(1.1);
}

.legal-modal-content h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.legal-text h3 {
    color: #F5A623;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.legal-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 12px;
}

.legal-text a {
    color: #F5A623;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-text a:hover {
    color: #ffffff;
}

.legal-modal-content::-webkit-scrollbar {
    width: 6px;
}

.legal-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
    background: #F5A623;
}

/*------------------- LEGAL MODAIS (PRIVACY & COOKIES) ----------------------*/

/*------------------- PÁGINA DE ERRO 404 ----------------------*/

.error-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0f1d; /* Tom de fundo do teu tema */
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.error-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Esfera/Glow Dourado no Fundo */
.glow-effect {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.35) 0%, rgba(245, 166, 35, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* Cartão Glassmorphism */
.error-card {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 45px 35px;
    text-align: center;
    background: rgba(20, 24, 33, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Número 404 Destacado com Gradiente */
.error-code {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    background-color:#F5A623;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.error-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
}

.error-message {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Botões de Ação */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #e09216;
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.4);
    transform: translateY(-2px);
}


/*------------------- KeyFrames ----------------------*/

@keyframes stepIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes stepOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.98);
    }
}

@keyframes highlightDraw {
    0% {
        background-size: 0% 38%;
    }
    100% {
        background-size: 100% 38%;
    }
}

/*------------------- KeyFrames ----------------------*/


/*------------------- Media Queries ----------------------*/

@media screen and (max-width: 1024px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .navbar {
        width: 100%;
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }

    h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero {
        padding: 0 32px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1;
    }

    .about {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .about-container {
        gap: 32px;
        align-items: center;
    }

    .about-header, .about-content {
        gap: 16px;
    }

    .about-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .about-description, .about-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .about-cards-grid, .about-grid {
        gap: 16px;
    }

    .about-card, .about .glass-card {
        padding: 20px 24px;
        min-height: auto;
    }

    .about-card-title, .card-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .about-card-text, .card-description {
        font-size: 0.85rem;
    }

    .about-icon, .card-icon {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
}

@media screen and (max-height: 850px) {
    .projects {
        padding-top: 90px;
        padding-bottom: 20px;
    }

    .projects-container {
        gap: 16px; 
    }

    .projects-title {
        font-size: 2rem; 
        margin-bottom: 10px;
    }

    .carousel-wrapper {
        padding: 15px 10px; 
    }

    .card-image-wrapper {
        height: 110px;
    }

    .glass-card-content {
        padding: 14px;
    }

    .card-title {
        font-size: 1.1rem;
        color: white;
    }

    .card-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .footer-bottom {
        width: 100%;
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 768px) {

    /* --- Estrutura Geral & Layout --- */
    html, body {
        scroll-snap-type: none;
        overflow-y: auto;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .logo-container {
        display: flex;
        width: 120px;
        margin: 0 auto;
    }

    .nav-menu {
        display: none;
    }

    .navbar {
        padding: 12px 40px;
    }
    
    .logo-img {
        height: 80px; 
    }

    .navbar .container {
        justify-content: space-between;
    }

    /* --- Background Video & Overlays --- */
    #bg-video-mobile {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        object-fit: cover;
        z-index: -1; 
        pointer-events: none; 
    }

    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        pointer-events: none;
    }

    /* --- Secção Hero --- */
    .hero-3d-wrapper {
        display: none;
    }

    .hero-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-content {
        max-width: 100% !important;
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.15;
    }

    /* --- Secção About --- */
    .about {
        padding-top: 100px;
        padding-bottom: 40px;
        height: auto;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
    }

    .about-content {
        max-width: 100%;
        text-align: center;
    }

    .about-title {
        font-size: 1.9rem;
        line-height: 1.2;
        text-align: center;
    }

    .about-text, 
    .about-subtext {
        max-width: 100% !important;
        text-align: center;
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .about-card, 
    .about .glass-card {
        padding: 16px 20px;
    }

    .badge-tag {
        display: block;
        width: fit-content;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px;
    }

    .roles-wrapper {
        width: 100%;
        gap: 16px;
    }

    .glass-card {
        padding: 20px 24px;
        flex-direction: row;
        align-items: center;
    }

    /* --- Secção Projetos & Carrossel --- */
    .projects-title {
        text-align: center;
        font-size: 1.9rem;
    }

    .carousel-main-layout {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .carousel-wrapper {
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .projects-track {
        display: flex;
        gap: 16px;
        width: max-content;
        transform: none !important;
        transition: none !important;
    }

    .project-card {
        flex: 0 0 85vw;
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: center;
        box-sizing: border-box;
    }

    .project-card .card-num,
    .project-card .badge-tag,
    .carousel-btn { 
        display: none !important; 
    }

    .card-image-wrapper {
        width: 100%;
        height: 200px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 16px;
    }

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

    .project-card:not(.card-coming-soon) .card-image-wrapper,
    .project-card:not(.card-coming-soon) .card-hover-overlay {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .projects-track.is-swiping .card-image-wrapper,
    .projects-track.is-swiping .card-hover-overlay {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .project-card:not(.card-coming-soon).is-active:not(.is-swiping) .card-image-wrapper,
    .project-card:not(.card-coming-soon).is-active:not(.is-swiping) .card-hover-overlay {
        opacity: 1;
        visibility: visible;
    }

    .glass-card-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .glass-card-content .card-num {
        position: static !important;
        display: inline-block;
        font-size: 0.9rem;
        font-weight: 700;
        color: #F5A623;
        margin-bottom: 8px;
        transform: none !important;
    }

    .card-title {
        font-size: 1.3rem;
        color: #FFFFFF;
        margin-bottom: 6px;
    }

    .card-description {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 16px;
    }

    /* --- Secção Form / Passos --- */
    .step-header {
        margin-bottom: 36px;
    }
    
    .step-title {
        font-size: 1.4rem;
    }

    .step-input {
        font-size: 1.2rem;
    }

    /* --- Rodapé --- */
    .footer-bottom {
        display: flex;
        flex-wrap: wrap; /* Permite que o texto do copyright vá para a linha de baixo */
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 20px;
        text-align: center;
    }

    .footer-legal,
    .footer-links {
        display: inline-flex;
        justify-content: center;
        gap: 16px;
    }

    .footer-bottom p {
        order: 3;
        margin: 0;
    }

    .footer-socials {
        display: flex;
        justify-content: center;
        gap: 16px;
    }

    .footer-legal {
        order: 1;
    }

    .footer-links {
        order: 2;
    }
}


@media screen and (max-height: 680px) {
    .projects {
        height: auto;
        min-height: 100vh;
    }
}

@media screen and (max-width: 480px) {

    .hero-title {
        font-size: 1rem;
        line-height: 1.15;
    }

    .btn-step-next {
        display: none;
    }
    .story-wrapper > .badge-tag{
        font-size: 1rem;
    }

    .legal-modal-content h2 {
        display: none;
    }

    .legal-text p {
        font-size: 0.8rem;
    }

    .legal-modal-content{
        padding: none;

    }
    .navbar {
        height: 60px;
        padding-top: 10px;
    }

    .hero, #hero {
        padding-top: 110px;
    }

    .hero, #hero {
        padding-top: 100px; /* Cria o recuo necessário abaixo do header */
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* 1. Navbar e Espaçamentos */
    .navbar {
        padding: 12px 16px; /* Reduz a margem das bordas da ecrã */
    }

    /* 2. Reduzir o tamanho da Logo */
    .logo-container {
        width: 160px;  /* Ajusta para a logo não ocupar a ecrã toda */
        height: 50px;
    }

    /* 3. Textos do Hero (Títulos e Parágrafos) */
    h1, .hero-title {
        font-size: 1.8rem; /* Reduz o tamanho da tipografia principal */
        line-height: 1.2;
    }

    p, .hero-description {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* 4. Botão de Chamada para Ação (CTA) */
    .btn-primary, .cta-button {
        width: 100%; /* Faz o botão ocupar a largura total do telemóvel */
        padding: 14px 20px;
        text-align: center;
    }

    /* 5. Imagem / Vídeo do Hero ou Ilustrações */
    .hero-image, .hero-right {
        width: 100%;
        margin-top: 20px;
    }

    /* 6. Desativar background-attachment: fixed se a imagem tremer no iOS */
    body {
        background-attachment: scroll;
    }

    .footer-legal,
    .footer-links {
        gap: 10px;
    }

    .legal-modal-content {
    position: relative;
    max-width: 650px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    background: rgba(18, 22, 30, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


@media screen and (max-height: 600px) {

    .hero-container{
        padding: 100px;
    }

    .hero-3d-wrapper {
        padding-top: 20px;
    }
    .hero-title {
        font-size: 1.5rem;
        line-height: 1;
    }

    .about-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    about-card, .about .glass-card {
        padding: 20px;
        max-height: 120px;
    }

    .projects .glass-card {
        max-height: 300px;
    }

}

}

/*------------------- Media Queries ----------------------*/
