* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #ffffff;
  line-height: 1.6;
}

/* HEADER */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.3rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
}

.nav-list a:hover {
  color: #1403ff;
}

/* HERO */
.slider {
  min-height: 360px;
  display: grid;
  place-items: center;
  background-image: url("https://cdn.pixabay.com/photo/2018/09/27/09/22/artificial-intelligence-3706562_1280.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

.slider-title {
  font-size: 2.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* SOBRE */
.services {
  padding: 50px 20px;
  text-align: center;
}

/* COMPONENTES */
.linguagens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  background: #f6f6f6;
}

.info-box {
  background: #12152a;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
  transition: transform .25s;
}

.info-box:hover {
  transform: translateY(-6px);
}

.info-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.info-box h3 {
  padding: 12px;
}

.info-box p {
  padding: 0 12px 16px;
}

/* CONTACTOS / LOGIN */
.contact-section {
  padding: 50px 20px;
}

.contact-wrap {
  max-width: 800px;
  margin: auto;
}

.contact-card {
  background: #f6f7fb;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
}

.input, .textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.textarea {
  min-height: 120px;
}

.actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.primary {
  background: #1403ff;
  color: #fff;
}

.ghost {
  background: transparent;
  border: 1px solid #ccc;
}

/* ADMIN */
.admin-section {
  padding: 50px 20px;
  background: #f6f7fb;
}

.admin-grid {
  max-width: 800px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.admin-card {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: transform .2s;
}

.admin-card:hover {
  transform: translateY(-6px);
}

.admin-card a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  background: #1403ff;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

/* FOOTER */
.site-footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 16px;
}

/* TO TOP */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1403ff;
  color: #fff;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
}

/* RESPONSIVO */
@media (max-width: 720px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}
/* ===== SECÇÃO COMPONENTES ===== */
.componentes-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f4f6f9;
}

.componentes-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

/* Grid */
.componentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card individual */
.componente-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.componente-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Imagem quadrada */
.componente-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Título */
.componente-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Botão */
.btn-componente {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-componente:hover {
    background-color: #0056b3;
}
.simulador{
background:#111;
color:white;
padding:20px;
border-radius:10px;
width:400px;
}

select{
width:100%;
padding:8px;
margin:10px 0;
}

button{
background:#00bfff;
color:white;
border:none;
padding:10px;
cursor:pointer;
}
.login-section{
height:100vh;
display:flex;
justify-content:center;
align-items:center;
background:#0d1117;
}

.login-box{
background:#161b22;
padding:30px;
border-radius:10px;
width:300px;
color:white;
box-shadow:0 0 10px rgba(0,0,0,0.5);
}

.login-box h2{
text-align:center;
margin-bottom:20px;
}

.input-box{
margin-bottom:15px;
}

.input-box label{
display:block;
margin-bottom:5px;
}

.input-box input{
width:100%;
padding:8px;
border:none;
border-radius:5px;
}

button{
width:100%;
padding:10px;
background:#00bfff;
border:none;
color:white;
cursor:pointer;
border-radius:5px;
}

button:hover{
background:#009acd;
}
.simulador-section {
  text-align: center;
  padding: 40px;
}

.simulador-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.simulador-box {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
}

.simulador-box label {
  display: block;
  margin-top: 10px;
}

.simulador-box select {
  width: 100%;
  padding: 5px;
  margin-top: 5px;
}

.simulador-box button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background: #00bcd4;
  border: none;
  cursor: pointer;
}

#total {
  font-size: 24px;
  margin-top: 10px;
}
