/* ========================================
   MELHORIAS FINAIS E EFEITOS ESPECIAIS
======================================== */

/* Preloader melhorado */
.preloader {
  background: var(--dark-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader::after {
  content: '';
  width: 50px;
  height: 50px;
  border: 3px solid rgba(197, 169, 146, 0.3);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Header com scroll */
header.scrolled {
  background: rgba(47, 47, 47, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-medium);
}

/* Botão flutuante de volta ao topo */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: var(--shadow-medium);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* Efeito de hover melhorado para portfólio */
.portfolio-item::after {
  content: '👁️ Ver Projeto';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.portfolio-item:hover::after {
  opacity: 1;
}

/* Melhorias para mobile */
@media (max-width: 768px) {
  .main-logo {
    width: 120px;
    border-radius: 0 10px 10px 0;
  }
  
  .main-logo a {
    font-size: 3.5em;
  }
  
  .back-to-top {
    bottom: 80px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
}

/* Cursor personalizado */
body {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%23C5A992" opacity="0.3"/></svg>'), auto;
}

a, button, .btn {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="%23C5A992" opacity="0.6"/></svg>'), pointer;
}