html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  width: 100%;
  margin: 0;
  padding: 60px 0 0 0;
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  display: block;
}

a,
button,
input,
textarea,
.card,
.btn,
.btn-submit,
.logo-img,
#themeToggle,
.sos-button,
nav a,
.header {
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --accent: #6b5cff;
  --accent-light: #8b7cff;
  --border: #dddddd;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --card-bg: #f9f9f9;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --text: #f3f4f6;
  --accent: #8b7cff;
  --accent-light: #a89fff;
  --border: #2a2d35;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --card-bg: #1a1d24;
}

[data-theme="sunrise"] {
  --bg: #fff8f0;
  --text: #2d1810;
  --accent: #ff8c42;
  --accent-light: #ffb380;
  --border: #ffe0cc;
  --shadow: rgba(255, 140, 66, 0.1);
  --shadow-dark: rgba(255, 140, 66, 0.2);
  --card-bg: #fffaf5;
}

[data-theme="sunset"] {
  --bg: #1a0f2e;
  --text: #f5e6ff;
  --accent: #ff006e;
  --accent-light: #ff4d94;
  --border: #6a0572;
  --shadow: rgba(255, 0, 110, 0.15);
  --shadow-dark: rgba(255, 0, 110, 0.3);
  --card-bg: #2d1b47;
}

[data-theme="warm"] {
  --bg: #fef5e7;
  --text: #3d2817;
  --accent: #d4a574;
  --accent-light: #e8c4a0;
  --border: #e8d4b8;
  --shadow: rgba(212, 165, 116, 0.12);
  --shadow-dark: rgba(212, 165, 116, 0.25);
  --card-bg: #fffbf3;
}

[data-theme="cool"] {
  --bg: #e8f4f8;
  --text: #0d3b66;
  --accent: #00b4d8;
  --accent-light: #48cae4;
  --border: #b8e0e8;
  --shadow: rgba(0, 180, 216, 0.1);
  --shadow-dark: rgba(0, 180, 216, 0.2);
  --card-bg: #f0f9fc;
}

[data-theme="midnight"] {
  --bg: #0a0f1c;
  --text: #e6ecff;
  --accent: #3a86ff;
  --accent-light: #6aa3ff;
  --border: #1c2541;
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-dark: rgba(0, 0, 0, 0.7);
  --card-bg: #11182b;
}

[data-theme="nature"] {
  --bg: #eef7f0;
  --text: #1b3a2f;
  --accent: #2d6a4f;
  --accent-light: #52b788;
  --border: #cce3d5;
  --shadow: rgba(45, 106, 79, 0.1);
  --shadow-dark: rgba(45, 106, 79, 0.2);
  --card-bg: #f6fbf7;
}

[data-theme="ice"] {
  --bg: #f5fbff;
  --text: #0b2545;
  --accent: #00a8e8;
  --accent-light: #90dbf4;
  --border: #d6efff;
  --shadow: rgba(0, 168, 232, 0.1);
  --shadow-dark: rgba(0, 168, 232, 0.25);
  --card-bg: #ffffff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.logo {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

.controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.controls button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0.5rem;
  color: var(--text);
}

#menuToggle {
  display: none;
}

#themeToggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.hero {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  background: #000;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 2rem;
}

.hero-overlay h1 {
  font-size: 3.5rem;
  margin: 0 0 1rem 0;
  color: white;
}

.hero-overlay p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

footer {
  text-align: center;
  padding: 2rem;
  opacity: 0.7;
  border-top: 1px solid var(--border);
}

.email-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.email-link:hover {
  color: var(--accent-light);
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--bg);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-dark);
    gap: 0.5rem;
    min-width: 200px;
  }

  nav.active {
    display: flex;
  }

  #menuToggle {
    display: block;
  }

  .hero {
    height: 55vh;
    min-height: 450px;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}

/* =========================
   FORMULÁRIO DE CONTATO
   ========================= */

.contact {
  padding: 4rem 1.5rem;
  text-align: center;
}

.contact h2 {
  margin-bottom: 0.75rem;
  font-size: 2rem;
  color: var(--accent);
}

.contact-subtitle {
  margin-bottom: 2rem;
  opacity: 0.85;
  font-size: 1rem;
}

.contact-form {
  max-width: 620px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px var(--shadow);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, background-color 0.25s ease;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea,
[data-theme="sunset"] .contact-form input,
[data-theme="sunset"] .contact-form textarea,
[data-theme="midnight"] .contact-form input,
[data-theme="midnight"] .contact-form textarea {
  background: rgba(255, 255, 255, 0.04);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(107, 92, 255, 0.14);
  background: var(--bg);
  transform: translateY(-1px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text);
  opacity: 0.45;
}

.btn-submit {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px var(--shadow-dark);
  filter: brightness(1.03);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

/* =========================
   RESPONSIVO
   ========================= */

@media (max-width: 768px) {
  .contact {
    padding: 2.5rem 1rem;
  }

  .contact h2 {
    font-size: 1.6rem;
  }

  .contact-form {
    padding: 1rem;
    border-radius: 16px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    padding: 0.85rem 0.95rem;
  }

  .btn-submit {
    padding: 0.9rem 1rem;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 2rem 0.85rem;
  }

  .contact-form {
    gap: 0.85rem;
  }

  .contact h2 {
    font-size: 1.45rem;
  }

  .contact-subtitle {
    font-size: 0.95rem;
  }
}