/* ===== Geral ===== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #001f3f;
    color: white;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

input:focus, textarea:focus, select:focus {
    border-color: #6aabff;
}

input::placeholder, textarea::placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #999;
}

/* ===== Header ===== */
header {
    background-color: transparent;
    padding: 18px 60px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo, .footer-logo {
    height: 80px;
    max-height: 150px;
    filter: brightness(0) invert(1);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ===== Timeline ===== */
.timeline-section {
    position: relative;
    min-height: 190vh;
    overflow: hidden;
}

.timeline-background {
    background: url('banner images/tecnico-1.jpg') no-repeat center/cover;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
}

.timeline-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        #001f3f 0%,
        rgba(0,31,63,0.95) 15%,
        rgba(0,31,63,0.75) 35%,
        rgba(0,31,63,0.4) 60%,
        rgba(0,31,63,0) 100%);
    z-index: 0;
}

.timeline-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.626);
    z-index: -1;
}

.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 10px auto 0;
    padding: 140px 20px 60px;
    text-align: center;
    color: #fff;
}

.line-base, .line-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    top: 260px;
    border-radius: 3px;
}

.line-base {
    height: 100%;
    background: #fff;
    z-index: 0;
}

.line-progress {
    height: 0;
    background: #5ac8ff;
    z-index: 1;
    transition: height 0.25s ease-out;
}

.timeline-title {
    font-size: 40px;
    letter-spacing: 6px;
    font-weight: 500;
}

.step {
    position: relative;
    margin: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.step:first-of-type {
    margin-top: 0;
}

.step-content {
    position: relative;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.step-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-content.left {
    order: -1;
    text-align: right;
    margin-right: 500px;
}

.step-content.right {
    text-align: left;
    margin-left: 500px;
}

.checkpoint {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%) scale(0.4);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #5ac8ff;
    opacity: 0;
    transition: all 0.3s ease-out;
    z-index: 2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60%;
    margin: 10px 0;
}

.checkpoint.visible {
    background-color: #5ac8ff;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background-image: url("icons&logos/check.png");
}

.step h2 {
    margin-top: -10px;
    font-size: 26px;
    font-weight: 500;
}

.step p {
    max-width: 600px;
    margin: 5px auto 0;
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.9;
}

/* Remove espaço extra no fim da timeline */
.timeline-section .step:last-child,
.timeline-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== Contact ===== */
.contact-section {
    background: #f7f4f2;
    padding: 50px 0 80px;
}

.contact-wrapper {
    background: #fff;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    box-sizing: border-box;
    padding: 2px 50px 30px 23px;
}

.contact-header {
    text-align: left;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.contact-header p {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

form .row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

form .row .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 500;
    color: #333;
}

select {
    appearance: none;
    background-color: #fff;
    color: #999;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'6'%20viewBox%3D'0%200%2010%206'%20fill%3D'none'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M1%201L5%205L9%201'%20stroke%3D'%23666'%20stroke-width%3D'1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

select:focus {
    border-color: #6aabff;
    color: #333;
}

select:not(:focus):not(:invalid) {
    color: #333;
}

/* Botões e upload */
button, .custom-file-upload {
    background: #6aabff;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover, .custom-file-upload:hover {
    opacity: 0.9;
}

.custom-file-upload {
    display: inline-block;
    margin-top: 10px;
    font-size: 17px;
}

.custom-file-upload img.clip-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-bottom: -3px;
    margin-right: 6px;
}

/* ===== Footer ===== */
.ieee-footer {
    background-color: #001f3f;
    color: white;
    padding: 40px 20px;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 10px;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-center { 
  font-size: 1rem; 
}

.footer-center p:first-child { 
  font-weight: bold; 
  margin: 5px 0;
}

.footer-center p {
  margin: 5px 0;
}

.footer-right { 
  align-items: flex-end; 
  text-align: right;  
}

.footer-right p { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  margin: 10px 180px; 
  white-space: nowrap; 
  font-size: 1rem; 
}

.icon { 
  width: 28px; 
  height: 28px; 
  object-fit: contain; 
  filter: brightness(0) 
  invert(1); 
}

/* Utilitário */
.full { 
  margin-bottom: 20px; 
}

/* Language Toggle Button */
.lang-toggle button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.lang-toggle button:hover {
  opacity: 0.8;
}

.fi {
  font-size: 24px;
  border-radius: 3px;
}
