/* =======================================================
   RESET & BASE
   ======================================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    transition: background-color 0.3s, color 0.3s;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  img {
    max-width: 100%;
    display: block;
  }
  
  /* =======================================================
     VARIÁVEIS (Paleta inspirada na Apple)
     ======================================================= */
  :root {
    --primary-color: #0071e3;
    --secondary-color: #5ac8fa;
    --light-bg: #ffffff;
    --light-text: #1d1d1f;
    --dark-bg: #1d1d1f;
    --dark-text: #ffffff;
    --accent-color: #ffcc00;
    --border-color: #d2d2d7;
  }
  
  /* Modo claro */
  body.light-mode {
    background-color: var(--light-bg);
    color: var(--light-text);
  }
  body.light-mode .navbar,
  body.light-mode .footer {
    background-color: var(--light-bg);
  }
  body.light-mode .section {
    background-color: var(--light-bg);
  }
  body.light-mode .card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  
  /* Modo escuro */
  body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
  }
  body.dark-mode .navbar,
  body.dark-mode .footer {
    background-color: var(--dark-bg);
  }
  body.dark-mode .section {
    background-color: var(--dark-bg);
  }
  body.dark-mode .card {
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(255,255,255,0.1);
  }
  
  /* =======================================================
     PRÉ-CARREGADOR
     ======================================================= */
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  body.dark-mode #preloader {
    background: var(--dark-bg);
  }
  .loader {
    width: 60px;
    height: 60px;
    border: 6px solid var(--primary-color);
    border-top: 6px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  /* =======================================================
     LOGIN BAR
     ======================================================= */
  .login-bar {
    background: var(--light-bg);
    padding: 5px 0;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
  }
  body.dark-mode .login-bar {
    background: var(--dark-bg);
  }
  
  /* =======================================================
     NAVBAR
     ======================================================= */
  .navbar {
    padding: 1rem 0;
    transition: background 0.3s;
  }
  .navbar-brand img {
    max-height: 50px;
    width: auto;
  }
  .navbar .nav-link {
    font-size: 1.1rem;
    margin: 0 10px;
    transition: color 0.3s;
  }
  .navbar .nav-link:hover {
    color: var(--primary-color);
  }
  .btn-toggle {
    border: none;
    background: transparent;
    font-size: 1.3rem;
    transition: color 0.3s;
  }
  /* Adicionando estilo para o menu transparente */
  .navbar.navbar-transparent {
    background-color: rgba(255, 255, 255, 0.8) !important;
    transition: background-color 0.3s ease;
  }
  
  /* =======================================================
     HERO SECTION
     ======================================================= */
  .hero-section {
    position: relative;
    height: 100vh;
    background: url('https://source.unsplash.com/1600x900/?quasar,space') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
  }
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
  }
  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 15px;
  }
  .hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  }
  .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
  }
  .hero-content img {
    max-width: 300px;
    height: auto;
  }
  .btn-quasar {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
  }
  .btn-quasar:hover {
    background: var(--secondary-color);
  }
  
  /* =======================================================
     SECTION HEADER
     ======================================================= */
  .section-header {
    margin-bottom: 50px;
    text-align: center;
  }
  .section-header h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
  }
  .section-header p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* =======================================================
     SOBRE SECTION
     ======================================================= */
  .sobre-section {
    padding: 80px 0;
  }
  .sobre-section .row {
    align-items: center;
  }
  .sobre-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
  }
  .sobre-section p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
  }
  
  /* =======================================================
     PORTFOLIO SECTION
     ======================================================= */
  .portfolio-section {
    padding: 80px 0;
  }
  .projeto-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
  }
  .projeto-card .card-img-top {
    height: 250px;
    object-fit: cover;
  }
  .projeto-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  .projeto-card .card-text {
    font-size: 1rem;
    color: var(--light-text);
  }
  
  /* =======================================================
     MODAIS DOS PROJETOS
     ======================================================= */
  .modal-content {
    border-radius: 10px;
  }
  .modal-header, .modal-footer {
    border: none;
  }
  .modal-body ul {
    list-style: none;
    padding: 0;
  }
  .modal-body ul li {
    margin-bottom: 10px;
    font-size: 1rem;
  }
  
  /* =======================================================
     SEÇÃO RPG
     ======================================================= */
  .rpg-section {
    background: var(--light-bg);
    color: var(--light-text);
    padding: 80px 0;
  }
  .rpg-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .rpg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0,0,0,0.15);
  }
  .rpg-card .card-img-top {
    height: 220px;
    object-fit: cover;
  }
  .rpg-card .card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  .rpg-card .card-text {
    font-size: 0.95rem;
    color: var(--light-text);
  }
  /* Slider para RPG */
  .custom-slider {
    position: relative;
    overflow: hidden;
    height: 400px;
    margin-top: 30px;
  }
  .custom-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
  }
  .custom-slider .slide.active {
    opacity: 1;
  }
  
  /* =======================================================
     TIME SECTION
     ======================================================= */
  .time-section {
    background: var(--light-bg);
    padding: 80px 0;
  }
  .team-card {
    border: none;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0,0,0,0.15);
  }
  .team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
  }
  .team-card h5 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  .team-card p {
    font-size: 1rem;
    color: var(--light-text);
  }
  
  /* =======================================================
     CONTATO SECTION (Chat) - não há formulário fixo, usamos chat balloon
     ======================================================= */
  .contato-section {
    padding: 80px 0;
  }
  
  /* =======================================================
     MAPA DE LOCALIZAÇÃO
     ======================================================= */
  .mapa-section {
    padding: 80px 0;
  }
  .map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
  }
  .map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
  }
  
  /* =======================================================
     BALÃO DE MENSAGEM / MINI CHAT
     ======================================================= */
  #chatBalloon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  #chatWindow {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  #chatWindow .chat-header {
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #chatWindow .chat-body {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
  }
  #chatWindow form {
    display: flex;
    border-top: 1px solid var(--border-color);
  }
  #chatWindow form input {
    flex: 1;
    border: none;
    padding: 10px;
  }
  #chatWindow form button {
    border: none;
    background: var(--primary-color);
    color: #fff;
    padding: 0 15px;
  }
  
  /* =======================================================
     SELETOR DE IDIOMA
     ======================================================= */
  #languageSelector {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
  }
  #languageSelector select {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
  }
  
  /* =======================================================
     FOOTER
     ======================================================= */
  footer {
    background: var(--light-bg);
    padding: 40px 0;
    text-align: center;
    color: var(--light-text);
  }
  footer .social-links a {
    margin: 0 10px;
    font-size: 1.5rem;
    transition: opacity 0.3s;
  }
  footer .social-links a:hover {
    opacity: 0.7;
  }
  
  /* =======================================================
     MEDIA QUERIES
     ======================================================= */
  @media (max-width: 992px) {
    .hero-content h1 {
      font-size: 3.5rem;
    }
    .section-header h2 {
      font-size: 2.2rem;
    }
  }
  @media (max-width: 768px) {
    .sobre-section .row {
      flex-direction: column;
    }
    .navbar .nav-link {
      padding: 8px 0;
    }
    .projeto-card .card-img-top {
      height: 200px;
    }
  }
  @media (max-width: 576px) {
    .hero-content h1 {
      font-size: 2.8rem;
    }
    .hero-content p {
      font-size: 1.2rem;
    }
  }
