:root {
  --color-bg: #0f0f10;
  --color-accent: #25baf1; 
  --color-text: #f3f3f3;
  --color-dark: #1a1a1b;
  --font-main: "Ubuntu", sans-serif;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  scroll-behavior: smooth;
  
  /* Borda para desenvolvimento */
  /* border: solid 1px #00bfbf; */
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* LOADER */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden { /* Suave desaparecimento */
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 0.3rem solid var(--color-dark);
  border-top: 0.3rem solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader p {
  margin-top: 0.8rem;
  color: var(--color-accent);
  font-weight: 500;
  font-size: 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  z-index: 100;
}

.navbar .logo a {
  font-size: 1.4rem;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.navbar a:hover { color: var(--color-accent); }


/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  position: relative;
  background: linear-gradient(135deg, #000000, #01062c);
  overflow: hidden;
  padding: 6rem 1rem 3rem; /*  espaço extra por causa da navbar fixa */
}

.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(37,186,241,0.25), transparent 70%);
  animation: pulse 5s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0.4; }
}

.content {
  position: relative;
  z-index: 2;
  max-width: 80ch;
  padding: 0 1rem;
}

.icon-title {
  font-size: 6rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.icon-title:hover { transform: scale(1.1); }

.title {
  font-size: 3.5rem;  
  margin-bottom: 1rem;
  transition: transform 0.3s, color 0.3s;
}
.title:hover {
  transform: scale(1.05);
  color: var(--color-accent);
}

.subtitle {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.btn-fale-comigo {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 1rem 3rem;
  margin-top: 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.btn-fale-comigo:hover {
  background: transparent;
  color: var(--color-accent);
  border: 0.15rem solid var(--color-accent);
  transform: scale(1.05);
}

/* FOOTER */
.rodape {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-dark);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {

  .icon-title { font-size: 5rem; }
  .title { font-size: 3rem; }
  .subtitle { font-size: 1.2rem; }

}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .navbar a { font-size: 1rem; }
  .icon-title { font-size: 3.5rem; } 
  .title { font-size: 2.5rem; }
  .subtitle { font-size: 1.1rem; }
  .btn-fale-comigo {
    width: 60%;
    max-width: 300px;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
  .rodape { font-size: 0.9rem; }
}
