/* ============================================= */
/* VARIÁVEIS GLOBAIS ATUALIZADAS */
/* ============================================= */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --dark: #1e293b;
  --darker: #0f172a;
  --light: #f8fafc;
  --lighter: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --accent: #ec4899;
  --featured: #f59e0b;
  --featured-dark: #d97706;
  --success: #10b981;
  --error: #ef4444;
  
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================= */
/* RESET E ESTILOS BASE */
/* ============================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Classes para controle de loading */
.is-loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.is-loaded {
  opacity: 1;
}

/* ============================================= */
/* LAYOUT */
/* ============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  scroll-margin-top: 80px; /* Espaço para o header fixo */
}

/* ============================================= */
/* COMPONENTES COMUNS */
/* ============================================= */
.loading,
.no-projects,
.error-message {
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
}

.loading {
  color: var(--gray-400);
}

.no-projects {
  color: var(--gray-500);
}

.error-message {
  color: var(--error);
}

.server-message {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.server-message i {
  font-size: 1.25rem;
}

.server-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-left: 4px solid var(--error);
}

.server-message.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-left: 4px solid var(--success);
}

/* ============================================= */
/* MODAL DE CONFIRMAÇÃO ESTILIZADO - INTEGRADO AO SEU TEMA */
/* ============================================= */
.confirm-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  z-index: 1100;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.confirm-modal-content {
  background-color: var(--lighter);
  padding: 1.75rem;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 28rem;
  box-shadow: var(--shadow-xl);
  animation: modalFadeIn 0.3s ease-out;
  border: 1px solid var(--gray-200);
}

.confirm-modal-header {
  margin-bottom: 1.25rem;
}

.confirm-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.confirm-modal-message {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.confirm-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.confirm-modal-btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.confirm-modal-btn i {
  font-size: 0.75rem;
}

.confirm-modal-btn-cancel {
  background-color: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.confirm-modal-btn-cancel:hover {
  background-color: var(--gray-200);
  color: var(--gray-700);
}

.confirm-modal-btn-confirm {
  background-color: var(--error);
  color: var(--lighter);
  border: 1px solid var(--error-dark);
}

.confirm-modal-btn-confirm:hover {
  background-color: var(--error-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Estilos específicos para o modal de registro */
.auth-modal {
    max-width: 480px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9375rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--gray-100);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: white;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--gray-500);
    font-size: 1rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
}

.auth-switch {
    text-align: center;
    color: var(--gray-600);
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Estilos para a barra de progresso da senha */
.password-strength-container {
    margin: 0.75rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password-strength-meter {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

/* Cores para diferentes níveis de força */
.strength-0 { width: 20%; background: var(--error); }          /* Muito fraca */
.strength-1 { width: 40%; background: #ff784e; }               /* Fraca */
.strength-2 { width: 60%; background: var(--featured); }       /* Moderada */
.strength-3 { width: 80%; background: #4dabf7; }               /* Forte */
.strength-4 { width: 100%; background: var(--success); }       /* Muito forte */

.strength-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strength-label {
    font-weight: 600;
}

.strength-value {
    font-weight: 500;
}

/* Classes de cor para o texto de força */
.strength-label[data-strength="0"] { color: var(--error); }
.strength-label[data-strength="1"] { color: #ff784e; }
.strength-label[data-strength="2"] { color: var(--featured); }
.strength-label[data-strength="3"] { color: #4dabf7; }
.strength-label[data-strength="4"] { color: var(--success); }

.password-requirements {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.password-requirements ul {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.password-requirements li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.375rem;
    transition: color 0.2s ease;
}

.password-requirements li i {
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 0.875rem;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid i {
    color: var(--success);
}

.password-requirements li.invalid {
    color: var(--gray-500);
}

.password-requirements li.invalid i {
    color: var(--gray-400);
}

/* Feedback de correspondência de senhas */
.match-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.match-success {
    color: var(--success);
}

.match-error {
    color: var(--error);
}

.match-icon {
    font-size: 0.875rem;
}

.hint-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================= */
/* MENSAGENS DE SUCESSO - INTEGRADO AO SEU TEMA */
/* ============================================= */
.alert-success {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 0.875rem 1.5rem;
  background-color: var(--success);
  color: var(--lighter);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  border-left: 4px solid var(--secondary-dark);
}

.alert-success i {
  font-size: 1.25rem;
}

/* ============================================= */
/* ANIMAÇÕES PARA MODAIS E MENSAGENS */
/* ============================================= */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; }
}

/* ============================================= */
/* CARROSSEL DE DESTAQUES - ESTILOS COMPLETOS */
/* ============================================= */
#destaques .projects-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding-bottom: 20px;
}

#destaques .projects-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    gap: 30px;
    scrollbar-width: none;
    scroll-padding: 20px;
}

#destaques .projects-list::-webkit-scrollbar {
    display: none;
}

#destaques .project-card {
    scroll-snap-align: start;
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

#destaques .carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    padding: 0 20px;
}

#destaques .carousel-control {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--gray-300);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

#destaques .carousel-control.active {
    background-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

#destaques .carousel-control:hover {
    background-color: var(--primary-light);
}

/* Esconde controles quando não há projetos */
#destaques .projects-carousel:has(.no-projects) .carousel-controls {
    display: none;
}

/* Responsividade */
@media (max-width: 1024px) {
    #destaques .project-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    #destaques .projects-list {
        gap: 15px;
        padding: 15px;
        scroll-padding: 15px;
    }
    
    #destaques .project-card {
        flex: 0 0 calc(100% - 30px);
        min-width: calc(100% - 30px);
    }
}

/* ============================================= */
/* CARROSSEL DE PROJETOS - ESTILOS COMPLETOS */
/* ============================================= */
#projetos .projects-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding-bottom: 20px;
}

#projetos .projects-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    gap: 30px;
    scrollbar-width: none;
    scroll-padding: 20px;
}

#projetos .projects-list::-webkit-scrollbar {
    display: none;
}

#projetos .project-card {
    scroll-snap-align: start;
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

#projetos .carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    padding: 0 20px;
}

#projetos .carousel-control {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--gray-300);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

#projetos .carousel-control.active {
    background-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

#projetos .carousel-control:hover {
    background-color: var(--primary-light);
}

/* Esconde controles quando não há projetos */
#projetos .projects-carousel:has(.no-projects) .carousel-controls {
    display: none;
}

/* Responsividade */
@media (max-width: 1024px) {
    #projetos .project-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    #projetos .projects-list {
        gap: 15px;
        padding: 15px;
        scroll-padding: 15px;
    }
    
    #projetos .project-card {
        flex: 0 0 calc(100% - 30px);
        min-width: calc(100% - 30px);
    }
}

/* ============================================= */
/* ESTILOS PARA QUANDO NÃO HÁ PROJETOS */
/* ============================================= */
.no-projects {
    background-color: var(--gray-100);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--gray-600);
    width: 100%;
    grid-column: 1 / -1;
    margin: 0 auto;
}

.no-projects i {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--error);
    width: 100%;
    grid-column: 1 / -1;
    margin: 0 auto;
    border-left: 4px solid var(--error);
}

.error-message i {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

/* ============================================= */
/* ESTILOS ESPECÍFICOS PARA O UPLOAD DE AVATAR */
/* ============================================= */
.avatar-upload-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gray-400);
}

.avatar-upload-label {
  padding: 0.75rem 1.5rem;
  background: var(--gray-100);
  color: var(--dark);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  border: 1px dashed var(--gray-300);
}

.avatar-upload-label:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

.avatar-upload-label i {
  font-size: 1rem;
  color: var(--gray-500);
}

.avatar-actions {
  margin-top: 1rem;
}

.btn-remove-avatar {
  background-color: var(--error);
  color: var(--lighter);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.btn-remove-avatar:hover {
  background-color: var(--error-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-remove-avatar i {
  font-size: 0.875rem;
}

/* ============================================= */
/* HEADER E MENU MOBILE */
/* ============================================= */
header {
  background: var(--dark);
  color: white;
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  background-color: rgba(30, 41, 59, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

.logo i {
  color: var(--primary-light);
}

/* Menu hamburguer - visível apenas em mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 1001;
  position: relative;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger:before,
.hamburger:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: white;
  transition: all 0.3s ease;
}

.hamburger:before {
  top: -8px;
}

.hamburger:after {
  top: 8px;
}

/* Container da navegação */
.nav-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Navegação principal */
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

nav li {
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--gray-200);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link i {
  font-size: 0.875rem;
}

/* Link ativo na navegação */
.nav-link.active {
  color: white !important;
  background: var(--primary) !important;
}

/* Botões de autenticação */
.auth-buttons {
  display: flex;
  gap: 0.75rem;
}

/* Perfil do usuário no header */
.profile-dropdown {
  position: relative;
  margin-left: 1rem;
}

.btn-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
}

.btn-profile:hover {
  background: rgba(255, 255, 255, 0.2);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 100;
}

.profile-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.dropdown-item:hover i {
  color: var(--primary);
}

#logout-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .profile-dropdown {
    margin-left: 0;
    width: 100%;
  }
  
  .btn-profile {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0;
    background: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    width: 100%;
    padding: 0;
    margin-top: 0.5rem;
    display: none;
  }
  
  .profile-dropdown:hover .dropdown-menu,
  .profile-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-item {
    color: var(--gray-200);
    padding: 0.75rem 0 0.75rem 2rem;
  }
  
  .dropdown-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .dropdown-item i {
    color: var(--gray-400);
  }
}
/* ============================================= */
/* ESTILOS PARA MOBILE */
/* ============================================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-container {
  position: fixed;
  top: 0;
  left: -100%; /* alterado de right: -100% */
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--darker);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 5rem 1.5rem 2rem;
  box-shadow: 5px 0 15px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  z-index: 1000;
  gap: 2rem;
}

.nav-container.active {
  left: 0; /* alterado de right: 0 */
}
  
  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  nav li {
    width: 100%;
  }
  
  .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-200);
    width: 100%;
  }
  
  .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .auth-buttons {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    gap: 0.75rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Animação do hamburguer para X */
  .hamburger.active {
    background: transparent;
  }
  
  .hamburger.active:before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .hamburger.active:after {
    transform: rotate(-45deg);
    top: 0;
  }
  
  /* Ajustes para o dropdown do perfil no mobile */
  .profile-dropdown {
    margin-left: 0;
    width: 100%;
  }
  
  .btn-profile {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0;
    background: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    width: 100%;
    padding: 0;
    margin-top: 0.5rem;
    display: none;
  }
  
  .profile-dropdown:hover .dropdown-menu,
  .profile-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-item {
    color: var(--gray-200);
    padding: 0.75rem 0 0.75rem 2rem;
  }
  
  .dropdown-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .dropdown-item i {
    color: var(--gray-400);
  }
}

/* ============================================= */
/* HERO SECTION ATUALIZADA */
/* ============================================= */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 25%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================= */
/* SEÇÕES E TÍTULOS */
/* ============================================= */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  display: inline-block;
}

.section-title p {
  color: var(--gray-500);
  max-width: 700px;
  margin: 0.5rem auto 0;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  margin: 1rem auto 0;
  border-radius: 2px;
}

.featured-projects {
  background: var(--gray-100);
  position: relative;
}

/* ============================================= */
/* PÁGINA DE PERFIL */
/* ============================================= */
.profile-section {
  padding: 4rem 0;
  background-color: var(--gray-100);
}

.profile-form-container {
  background: var(--lighter);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-form .form-group {
  margin-bottom: 1.25rem;
}

.profile-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9375rem;
}

.profile-form input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--gray-50);
}

.profile-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background-color: white;
}

.profile-form input:disabled {
  background-color: var(--gray-100);
  color: var(--gray-600);
  cursor: not-allowed;
}

/* Container do avatar */
.avatar-upload-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gray-400);
  overflow: hidden;
}

.avatar-upload-label {
  padding: 0.75rem 1.5rem;
  background: var(--gray-100);
  color: var(--dark);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  border: 1px dashed var(--gray-300);
}

.avatar-upload-label:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

.avatar-upload-label i {
  font-size: 1rem;
  color: var(--gray-500);
}

/* Botão para remover avatar */
.btn-remove-avatar {
  background-color: var(--error);
  color: var(--lighter);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.btn-remove-avatar:hover {
  background-color: var(--error-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-remove-avatar i {
  font-size: 0.875rem;
}

/* Ações do formulário */
.form-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

/* Input com ícone */
.input-container {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 1rem;
  z-index: 2;
}

.input-container input {
  padding-left: 3rem !important;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .profile-form-container {
    padding: 1.5rem;
  }
  
  .avatar-upload-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .form-actions {
    justify-content: center;
  }
  
  .profile-form input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
  }
}
/* Avatar Upload */
.avatar-upload-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
}

.avatar-upload-label {
  padding: 0.75rem 1.5rem;
  background: var(--gray-100);
  color: var(--dark);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.avatar-upload-label:hover {
  background: var(--gray-200);
}

.avatar-upload-label i {
  font-size: 1rem;
}

/* ============================================= */
/* PROJETOS - DESIGN MODERNO */
/* ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.project-media {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media i {
  font-size: 3rem;
  color: var(--gray-300);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-weight: 600;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.tech-tag {
  background: var(--gray-100);
  color: var(--dark);
  padding: 0.375rem 0.875rem;
  border-radius: var(--border-radius);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: var(--transition);
}

.tech-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.project-description {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  flex-wrap: wrap;
}

/* Projetos em destaque */
.project-card.featured {
  border-top: 3px solid var(--featured);
  box-shadow: var(--shadow-xl);
}

.project-card.featured::before {
  content: '★ Destaque';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(to right, var(--featured), var(--featured-dark));
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

/* ============================================= */
/* BOTÕES MODERNOS */
/* ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(2px);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

.view-media-btn {
  flex-grow: 1;
  text-align: center;
}

/* ============================================= */
/* FEEDBACKS E AVATARES */
/* ============================================= */
.feedback-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.feedback-avatar-default {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-weight: bold;
}

.feedback-user-info {
  display: flex;
  align-items: center;
}

/* ============================================= */
/* CARROSSEL DE FEEDBACKS AUTOMÁTICO */
/* ============================================= */
.feedback-carousel {
  position: relative;
  margin: 2rem 0;
  overflow: hidden;
}

.feedback-list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 1rem 0;
  scrollbar-width: none; /* Para Firefox */
  -ms-overflow-style: none; /* Para IE e Edge */
  transition: transform 0.5s ease;
}

.feedback-list::-webkit-scrollbar {
  display: none; /* Para Chrome, Safari e Opera */
}

.feedback-card {
    min-width: 300px;
    max-width: 350px;
    scroll-snap-align: start;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.5s ease;
    flex: 0 0 auto;
    opacity: 0.9;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.feedback-card.active {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    border-left: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
}

.feedback-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.feedback-user {
  font-weight: 600;
  color: var(--dark);
}

.feedback-rating {
  color: var(--featured);
}

.feedback-content {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.feedback-date {
  font-size: 0.875rem;
  color: var(--gray-400);
  text-align: right;
}

/* Controles do carrossel */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.carousel-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-control.active {
  background: var(--primary);
  transform: scale(1.3);
}

.carousel-control:hover {
  background: var(--primary-light);
  transform: scale(1.2);
}

/* ============================================= */
/* FORMULÁRIO DE FEEDBACK */
/* ============================================= */
.login-prompt {
  text-align: center;
  padding: 2rem;
  background: var(--gray-100);
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.login-prompt p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.feedback-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-top: 2rem;
}

.feedback-form h3 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--dark);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: var(--transition);
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.rating-stars {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.rating-stars i {
  font-size: 1.5rem;
  color: var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}

.rating-stars i.hover,
.rating-stars i.active {
  color: var(--featured);
}

/* ============================================= */
/* MODAIS DE LOGIN/REGISTRO ATUALIZADOS */
/* ============================================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.modal-content {
  background: white;
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalFadeIn 0.3s ease-out;
}

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

.modal-header {
  padding: 1.5rem;
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  max-height: 65vh;
  overflow-y: auto;
}

/* Personalização da scrollbar */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 10px;
}

.modal-form .form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.modal-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9375rem;
}

.input-container {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 1rem;
  z-index: 2;
}

.modal-form input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--gray-100);
}

.modal-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  background-color: white;
}

.modal-form button[type="submit"] {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.modal-footer {
  padding: 1rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.modal-footer p {
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.toggle-auth {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--transition);
  padding: 0;
  font-size: inherit;
}

.toggle-auth:hover {
  color: var(--primary-dark);
}

/* Efeito de loading no botão */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from { transform: rotate(0turn); }
  to { transform: rotate(1turn); }
}

/* ============================================= */
/* FOOTER ATUALIZADO */
/* ============================================= */
footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-link {
  color: white;
  font-size: 1.25rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px) scale(1.1);
}

.copyright {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* ============================================= */
/* MODAL E GALERIA MODERNOS */
/* ============================================= */
.media-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

.media-modal-content {
  background: white;
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalFadeIn 0.3s ease-out;
}

.media-modal-header {
  padding: 1.25rem;
  background: var(--dark);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.media-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.media-gallery {
  position: relative;
}

.media-item {
  display: none;
}

.media-item.active {
  display: block;
}

.gallery-media {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.gallery-prev,
.gallery-next {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.gallery-prev:hover,
.gallery-next:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--gray-200);
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 10px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.9;
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--primary);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail i {
  font-size: 1.5rem;
  color: var(--gray-500);
}

/* ============================================= */
/* ANIMAÇÕES */
/* ============================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-card {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

/* ============================================= */
/* RESPONSIVIDADE ADICIONAL */
/* ============================================= */
@media (max-width: 480px) {
  section {
    padding: 3rem 0;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }

  .modal-content {
    max-width: 95%;
    margin: 0 1rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

/* ============================================= */
/* ESTILOS PARA O LINK "ESQUECI MINHA SENHA" */
/* ============================================= */
.forgot-password-link {
    text-align: center;
    margin-top: 15px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-light);
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    transition: var(--transition);
}

.btn-text:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* Estilo para mensagem de sucesso */
.success-message {
    color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid var(--success);
}

.success-message i {
    font-size: 18px;
}

/* ============================================= */
/* MENSAGENS PERSONALIZADAS - ESTILO CONSISTENTE */
/* ============================================= */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 90%;
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 3s forwards;
    font-weight: 500;
    border-left: 4px solid;
}

.custom-alert.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-left-color: var(--error);
}

.custom-alert.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left-color: var(--success);
}

.custom-alert.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--featured);
    border-left-color: var(--featured);
}

.custom-alert i {
    font-size: 1.25rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}