:root {
  --primary-red: #ff003c;
  --dark-red: #8b0000;
  --obsidian: #0d0d0d;
  --charcoal: #1a1a1a;
  --gold: #f1c40f;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-color: #f5f5f5;
  --font-main: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: url('assets/background.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 500px;
  perspective: 1000px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  animation: fadeIn 0.8s ease-out;
}

.card.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.glow-text {
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--text-color);
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.5), 0 0 20px rgba(255, 0, 60, 0.3);
  margin-bottom: 10px;
  text-transform: uppercase;
}

p {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 0, 60, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
}

.primary-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 0, 60, 0.5);
}

.primary-btn:active {
  transform: translateY(0) scale(0.98);
}

.secondary-btn {
  background: transparent;
  border: 2px solid var(--primary-red);
  color: var(--text-color);
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
}

.secondary-btn:hover {
  background: var(--primary-red);
  color: white;
}

.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary-red);
  transition: width 0.4s cubic-bezier(0.445, 0.05, 0.55, 0.95);
  box-shadow: 0 0 10px var(--primary-red);
}

.question-count {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  line-height: 1.4;
}

.options {
  width: 100%;
  display: grid;
  gap: 12px;
}

.option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 1rem;
}

.option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-red);
  padding-left: 25px;
}

.option.correct {
  background: #27ae60 !important;
  border-color: #2ecc71 !important;
}

.option.wrong {
  background: #c0392b !important;
  border-color: #e74c3c !important;
}

.score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  margin: 20px 0;
}

.cta-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--primary-red);
  padding-bottom: 2px;
}

.cta-link:hover {
  filter: brightness(1.2);
}

.feedback-text {
  margin-top: 20px;
  min-height: 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold);
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .card {
      padding: 30px 20px;
  }
  .glow-text {
      font-size: 1.8rem;
  }
}

/* --- Portal Page (sobre.html) Styles --- */

.portal-body {
    background: url('assets/portal-bg.png') no-repeat center center fixed;
    background-size: cover;
    overflow-y: auto;
    display: block; /* Overriding body display flex */
    height: auto;
    min-height: 100vh;
}

.portal-container {
    max-width: 1000px !important;
    padding: 60px 20px;
    margin: 0 auto;
}

.portal-header {
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.section-title {
    color: var(--gold);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 40px 0 20px;
    text-align: left;
    width: 100%;
    border-left: 3px solid var(--primary-red);
    padding-left: 15px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    margin-bottom: 40px;
}

.premium-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.premium-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-red);
    box-shadow: 0 15px 35px rgba(255, 0, 60, 0.2);
}

.premium-card h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.premium-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #bbb;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tag-secret { background: rgba(255, 0, 60, 0.2); color: var(--primary-red); }
.tag-shop { background: rgba(241, 196, 15, 0.2); color: var(--gold); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.premium-card:nth-child(1) { animation-delay: 0.1s; }
.premium-card:nth-child(2) { animation-delay: 0.2s; }
.premium-card:nth-child(3) { animation-delay: 0.3s; }
.premium-card:nth-child(4) { animation-delay: 0.4s; }
.premium-card:nth-child(5) { animation-delay: 0.5s; }
.premium-card:nth-child(6) { animation-delay: 0.6s; }

