/* ========================================
   VARIÁVEIS CSS - TEMA DARK E LIGHT
======================================== */

:root {
  /* Cores Dark Mode (padrão) */
  --bg-primary: #0a0e27;
  --bg-secondary: #121729;
  --bg-tertiary: #1a1f3a;
  --bg-card: rgba(26, 31, 58, 0.6);
  --bg-card-hover: rgba(26, 31, 58, 0.9);
  
  --text-primary: #e4e6eb;
  --text-secondary: #b0b3c1;
  --text-muted: #7c7f8e;
  
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --accent-cyan: #00d4ff;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
}

[data-theme="light"] {
  /* Cores Light Mode */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9ecef;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  
  --text-primary: #1a1f3a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --accent-cyan: #0099cc;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.2);
}

/* ========================================
   ESTILOS GLOBAIS
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

section {
  position: relative;
  overflow: hidden;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ========================================
   NAVBAR
======================================== */

.navbar {
  background-color: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-primary) !important;
}

.nav-link:hover::after {
  width: 60%;
}

.btn-theme-toggle {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-theme-toggle:hover {
  background-color: var(--accent-primary);
  color: white;
  transform: rotate(20deg) scale(1.1);
}

/* ========================================
   HERO SECTION
======================================== */

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-section {
  min-height: 100vh;
  position: relative;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-shapes::before,
.hero-shapes::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15), transparent);
  animation: float 20s infinite ease-in-out;
}

.hero-shapes::before {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
}

.hero-shapes::after {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-50px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-description {
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-buttons .btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline-primary {
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.hero-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent-gradient);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.hero-image-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
}

.hero-image-background {
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  border-radius: 50%;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 3px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12rem;
  color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  color: var(--text-secondary);
  font-size: 2rem;
  animation: bounce 2s infinite;
  text-decoration: none;
  display: inline-block;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ========================================
   SECTION HEADERS
======================================== */

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-weight: 800;
}

.section-description {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   SOBRE SECTION
======================================== */

.about-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-card strong {
  color: var(--accent-primary);
}

.education-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.education-card.active {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.education-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.education-year {
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: var(--bg-tertiary);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.education-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.education-institution {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.badge-current {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.375rem 1rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   SERVIÇOS SECTION
======================================== */

.service-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   TECNOLOGIAS SECTION
======================================== */

.tech-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.tech-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
  transform: scale(1.2);
  color: var(--accent-cyan);
}

.tech-name {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   DIFERENCIAIS SECTION
======================================== */

.differential-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.differential-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.differential-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.differential-card:hover .differential-icon {
  transform: rotateY(180deg);
}

.differential-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.differential-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ========================================
   PROJETOS SECTION
======================================== */

.project-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.project-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--accent-gradient);
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
  transition: all 0.3s ease;
}

.project-card:hover .project-image-placeholder {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.project-link {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  gap: 0.75rem;
  color: var(--accent-cyan);
}

/* ========================================
   CONTATO SECTION
======================================== */

.contact-info {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
}

.contact-item a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-cyan);
}

.contact-social {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--accent-gradient);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
}

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: var(--bg-tertiary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control::placeholder {
  color: var(--text-muted);
}

[data-theme="light"] .form-control {
  background-color: var(--bg-primary);
}

[data-theme="light"] .form-control:focus {
  background-color: var(--bg-primary);
}

/* ========================================
   FOOTER
======================================== */

.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.footer-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  background: var(--accent-gradient);
  color: white;
  transform: translateY(-3px);
}

@media (min-width: 768px) {
  .footer-social {
    justify-content: flex-end;
  }
}

/* ========================================
   WHATSAPP FLOAT BUTTON
======================================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  color: white;
}

/* ========================================
   ANIMAÇÕES DE SCROLL
======================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-image-wrapper {
    width: 280px;
    height: 280px;
  }
  
  .hero-image {
    font-size: 9rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding-top: 100px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .hero-image-wrapper {
    width: 250px;
    height: 250px;
  }
  
  .hero-image {
    font-size: 7rem;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
  }
}

@media (max-width: 575px) {
  .hero-social {
    justify-content: center;
  }
  
  .contact-social {
    justify-content: center;
  }
  
  .section-label {
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
  }
}

/* ========================================
   UTILITÁRIOS
======================================== */

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

@media (min-width: 768px) {
  .py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}
