/* ===== Reset ===== */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Rajdhani', sans-serif;
  background: #050510;
  color: #f5f5f5;
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  display:flex; justify-content:space-between; align-items:center;
  padding:1.2rem 6%;
  background:#050510;
  border-bottom:2px solid #1a1a2d;
  position:sticky; top:0;
  z-index: 999;
}
.logo {
  font-size:1.8rem; font-weight:700;
  color:#fff; letter-spacing:2px;
}
.logo span { color:#ffd700; }
nav ul { display:flex; gap:2rem; list-style:none; }
nav a {
  color:#fff; text-decoration:none; font-weight:600; transition:0.3s;
}
nav a:hover { color:#1e90ff; }

/* ===== Hero ===== */
.hero {
  height:85vh;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center; padding:0 5%;
  background: linear-gradient(135deg, #050510 60%, #0d1a3a 100%);
}
.hero h1 {
  font-size:3.5rem; font-weight:700; text-transform:uppercase;
}
.hero h1 span { color:#ffd700; }
.hero p {
  margin:1rem 0 2rem; max-width:600px; color:#ccc;
}
.btn {
  background:#ffd700; color:#050510;
  padding:.9rem 1.6rem; font-weight:700;
  text-decoration:none; border-radius:6px;
  transition:.3s;
}
.btn:hover { background:#1e90ff; color:#fff; }

/* ===== Sections ===== */
section { padding:4rem 6%; }
.about,.contact { text-align:center; }
h2 {
  font-size:2.2rem; margin-bottom:1.5rem; text-transform:uppercase;
  color:#ffd700;
}
.skills .grid, .projects .grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1.5rem;
}
.card {
  background:#101020; padding:2rem; border-radius:12px;
  text-align:center; font-weight:600;
  transition:.3s;
}
.card:hover { transform:translateY(-5px); border:2px solid #ffd700; }

/* ===== Footer ===== */
footer {
  text-align:center; padding:2rem 6%;
  border-top:2px solid #1a1a2d;
  font-size:.9rem; color:#999;
}
.projects {
  padding: 4rem 6%;
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ffd700;
}

.projects .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #101020;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #1a1a2d;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9; /* mantém 16:9 */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.card h3 {
  color: #ffd700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card .links a {
  display: inline-block;
  margin: 0.3rem;
  background: #1e90ff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.card .links a:hover {
  background: #ffd700;
  color: #050510;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px #1e90ff55;
  border-color: #ffd700;
}

.socials-section {
  text-align:center;
  padding:4rem 6%;
}

.socials-section h2 {
  font-size:2rem;
  margin-bottom:1rem;
  color:#ffd700;
}

.socials-section p {
  margin-bottom:2rem;
  color:#ccc;
}

.socials-section .socials {
  display:flex;
  justify-content:center;
  gap:2rem;
}

.socials-section .socials a {
  font-size:2rem;
  color:#fff;
  transition:.3s;
}

.socials-section .socials a:hover {
  color:#1e90ff;
  text-shadow:0 0 10px #ffd700;
}

#contact .btn {
  margin-top: 5rem; /* aumenta o espaço acima do botão */
  color: #050510;
  padding: 1rem 4rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid #ffd700;
  transition: all 0.3s ease;
}

.downloads-section {
  padding: 4rem 6%;
  text-align: center;
}

.downloads-section input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 0.8rem 1rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  border: 2px solid #ffd700;
  background: #101020;
  color: #fff;
  font-size: 1rem;
}

/* ===== Grid de Downloads ===== */
.downloads-section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* ===== Cards ===== */
.download-card {
  background: #101020;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #1a1a2d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px; /* altura mínima consistente */
  margin: 0 auto;
}

.download-card img {
  width: 200px;        /* imagem quadrada */
  height: 200px;       /* imagem quadrada */
  object-fit: cover;   /* recorte proporcional */
  border-radius: 8px;
  margin: 0 auto 0.8rem auto; /* centraliza horizontalmente */
}

.download-card h3 {
  color: #ffd700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.download-card a {
  display: inline-block;
  margin-top: auto; /* garante botão na base do card */
  background: #1e90ff;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.download-card a:hover {
  background: #ffd700;
  color: #050510;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #1e90ff55;
  border-color: #ffd700;
}

/* ===== Responsividade ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  section { padding: 3rem 5%; }
  nav ul { gap: 1.2rem; }
}

@media (max-width: 768px) {
  header { flex-wrap: wrap; justify-content: space-between; }
  nav { width: 100%; }
  nav ul { flex-direction: column; align-items: center; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .btn { padding: 0.7rem 1.2rem; }
}

@media (max-width: 480px) {
  .hero { height: auto; padding: 3rem 5%; }
  .hero h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  .card { padding: 1rem; }
  footer { font-size: 0.8rem; }
}

/* ===== Botão do menu ===== */
.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1000;
}
.menu-toggle span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  left: 0;
  transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* Animação X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Ajustes responsivos do menu */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    background: #050510;
    border-top: 2px solid #1a1a2d;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  nav.open ul { max-height: 300px; }
}
