/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE ===== */
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* centers */
  padding: 0 20px;
  /* mobile breathing space */
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo img {
  height: 36px;
}

.logo span {
  color: #3b82f6;
  font-weight: 700;
}

nav a {
  margin-left: 18px;
  text-decoration: none;
  color: #cbd5f5;
  position: relative;
  font-size: 0.95rem;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #3b82f6;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hamburger:hover,
.hamburger:focus {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
  width: 22px;
  height: 2.5px;
  background: #cbd5f5;
  margin: 2px 0;
  transition: 0.3s;
}

.hamburger.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.35);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -5px);
}

/* Responsive Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.98);
    padding: 20px 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  nav a {
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, transform 0.25s ease;
  }

  nav a:hover,
  nav a:focus {
    background: rgba(59, 130, 246, 0.16);
    transform: translateX(4px);
  }

  nav a:active {
    background: rgba(37, 99, 235, 0.24);
    color: #fff;
  }

  nav a:last-child {
    border-bottom: none;
  }
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(600px, 100vw);
  height: min(600px, 100vw);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  pointer-events: none;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: #94a3b8;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 10px;
  max-width: 320px;

  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;

  font-weight: 500;
  letter-spacing: 0.3px;

  transition: all 0.25s ease;
}

#contato .container {
  text-align: left;
}

#contato .btn {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn:active {
  transform: scale(0.97);
}

/* ===== SECTION ===== */
.section {
  padding: 100px 0;
}

.section.dark {
  background: rgba(15, 23, 42, 0.6);
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* ===== CARD ===== */
.card {
  padding: 28px;
  border-radius: 14px;

  background: linear-gradient(145deg,
      rgba(30, 41, 59, 0.9),
      rgba(2, 6, 23, 0.95));

  border: 1px solid rgba(255, 255, 255, 0.06);

  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* subtle glow effect */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent);
  opacity: 0;
  transition: 0.4s;
}

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

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CONTACT SECTION ===== */
.contato-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.form {
  padding: 30px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating labels */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: none;
  outline: none;
  background: rgba(2, 6, 23, 0.8);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group textarea {
  min-height: 120px;
  resize: none;
}

/* Label animation */
.form-group label {
  position: absolute;
  left: 12px;
  top: 14px;
  color: #64748b;
  font-size: 13px;
  transition: 0.3s;
  pointer-events: none;
}

/* Active state */
.form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
  top: -8px;
  font-size: 11px;
  color: #3b82f6;
}

/* Side box */
.contato-side {
  padding: 30px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.2), rgba(2, 6, 23, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.full {
  width: 100%;
  text-align: center;
}

/* Section title */
.section-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #94a3b8;
}

/* Responsive */
@media(max-width: 900px) {
  .contato-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Ensure all sections are centered */
.section,
.hero,
.header {
  width: 100%;
}

/* Ensure everything is centered properly */
.section {
  display: flex;
  justify-content: center;
  /* centers horizontally */
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero .container {
  max-width: 800px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 600;
}

.hero p {
  font-size: 16px;
  line-height: 1.6;
}
.footer {
  text-align: center;
  padding: 30px 0;
  color: #64748b;
  font-size: 14px;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {

  /* Hero text spacing */
  .hero {
    text-align: center;
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  /* Sections spacing */
  .section {
    padding: 60px 0;
    text-align: center;
  }

  /* GRID -> COLUMN */
  .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  @media (max-width: 1024px) {
    .grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 600px) {
    .grid {
      grid-template-columns: 1fr;
    }
  }

  /* Contact fix */
  .contato-wrapper {
    grid-template-columns: 1fr;
  }

  /* NAV spacing */
  nav a {
    margin-left: 12px;
    font-size: 14px;
  }

  /* Button full width on mobile */
  .btn {
    width: 100%;
    max-width: 320px;
  }

}

@media (max-width: 768px) {

  .section {
    padding: 70px 0;
  }

  .section h2 {
    font-size: 22px;
  }

  .card {
    padding: 22px;
  }

  .contato-wrapper {
    gap: 20px;
  }

}

.section {
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: rgba(255,255,255,0.04);
}