/* ===== RESET & BASICS ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary: #2563EB;
  --secondary: #3B82F6;
  --accent: #60A5FA;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Light Theme */
  --bg-primary: #FEFEFE;
  --bg-secondary: #F9FAFC;
  --bg-tertiary: #F2F5F8;
  --text-primary: #1A202C;
  --text-secondary: #718096;
  --text-muted: #A0AEC0;
  --border: #E2E8F0;
  --shadow: rgba(15, 23, 42, 0.06);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  
  /* Radius - sutilmente orgânico */
  --radius-sm: 0.4rem;
  --radius: 0.6rem;
  --radius-lg: 0.8rem;
  --radius-xl: 1.2rem;
  --radius-full: 50%;
  
  /* Shadows - orgânicas e naturais */
  --shadow-sm: 1px 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 2px 4px 8px -1px rgba(0, 0, 0, 0.08), 1px 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 4px 10px 20px -2px rgba(0, 0, 0, 0.09), 2px 4px 8px -1px rgba(0, 0, 0, 0.05);
  --shadow-xl: 6px 16px 32px -4px rgba(0, 0, 0, 0.1), 3px 8px 16px -3px rgba(0, 0, 0, 0.06);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.5);
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.8);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .header.scrolled {
  background: rgba(15, 23, 42, 0.95);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--secondary);
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 3px;
}

.mobile-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(59, 130, 246, 0.02));
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-greeting {
  color: var(--primary);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-lg);
}

.hero-title {
  margin-bottom: var(--space-lg);
  line-height: 1 !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem !important;
}

.hero-name {
  display: block;
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  color: var(--text-primary);
  margin-bottom: 0 !important;
  line-height: 1 !important;
}

.hero-role {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: 0.5rem;
}

.stat {
  text-align: center;
  padding: 1rem 0.8rem;
  background: rgba(37, 99, 235, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
}

.stat:nth-child(2) {
  margin-top: 0.5rem;
}

.stat:nth-child(3) {
  margin-top: -0.3rem;
}

.stat-number {
  font-size: clamp(1.25rem, 2.5vw, var(--font-size-2xl));
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
  word-break: keep-all;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 385px;
  height: 385px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 6px;
  transition: all 0.4s ease;
  animation: borderRotate 8s linear infinite;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    var(--primary),
    var(--secondary),
    var(--accent),
    transparent
  );
  animation: borderSpin 4s linear infinite;
  z-index: -1;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--bg-primary);
  border-radius: 50%;
  z-index: -1;
}

.hero-image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.hero-image-wrapper:hover .hero-image {
  filter: brightness(1.1);
}

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

@keyframes borderRotate {
  0%, 100% {
    filter: hue-rotate(0deg) brightness(1);
  }
  50% {
    filter: hue-rotate(20deg) brightness(1.1);
  }
}

/* Estilo para imagem na seção About */
.about-image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 6px;
  transition: all 0.4s ease;
  animation: borderRotate 8s linear infinite;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    var(--primary),
    var(--secondary),
    var(--accent),
    transparent
  );
  animation: borderSpin 4s linear infinite;
  z-index: -1;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--bg-primary);
  border-radius: 50%;
  z-index: -1;
}

.about-image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.about-image-wrapper:hover .about-image {
  filter: brightness(1.1);
}

.floating-element {
  position: absolute;
  width: 58px;
  height: 62px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.12);
  animation: floatOrganic 7s ease-in-out infinite;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

@keyframes floatOrganic {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.floating-element-1 {
  top: 12%;
  right: -8%;
  animation-delay: 0.3s;
}

.floating-element-2 {
  top: 52%;
  left: -13%;
  animation-delay: 2.1s;
}

.floating-element-3 {
  bottom: 18%;
  right: -3%;
  animation-delay: 4.2s;
}

.floating-element-4 {
  top: 78%;
  left: 18%;
  animation-delay: 6.1s;
}

.floating-element-5 {
  top: 28%;
  right: 12%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounceOrganic 3s infinite;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

@keyframes bounceOrganic {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  25% {
    transform: translateY(-8px) rotate(0.5deg);
  }
  45% {
    transform: translateY(-4px) rotate(-0.3deg);
  }
}

.scroll-arrow:hover {
  transform: scale(1.1);
}

.scroll-arrow span {
  display: block;
  width: 12px;
  height: 2px;
  background: white;
  position: relative;
}

.scroll-arrow span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.scroll-arrow span:nth-child(2) {
  transform: rotate(-45deg) translate(-3px, 3px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

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

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

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
    margin-bottom: var(--space-xl);
  }
  
  .hero-image-wrapper {
    width: 300px;
    height: 400px;
  }
  
  .floating-element {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .hero-name {
    font-size: var(--font-size-4xl);
  }
  
  .hero-role {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .navbar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar ul {
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-name {
    font-size: var(--font-size-3xl);
  }
  
  .hero-role {
    font-size: var(--font-size-lg);
  }
  
  .hero-description {
    font-size: var(--font-size-base);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .hero-image-wrapper {
    width: 250px;
    height: 320px;
  }
  
  .floating-element {
    display: none;
  }
  
  .hero-name {
    font-size: var(--font-size-2xl);
  }
  
  .hero-role {
    font-size: var(--font-size-base);
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 200px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: all 0.3s ease;
  cursor: pointer;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
  transform: scale(1.05);
}

/* ===== SKILL CARDS ===== */
.skill-card {
  background: var(--bg-secondary);
  padding: 1.8rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.skill-bar {
  height: 9px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 6px 8px 7px 9px;
  overflow: hidden;
  position: relative;
  margin: 0.4rem 0;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(92deg, var(--primary), var(--secondary));
  border-radius: 6px 8px 7px 9px;
  transition: width 1.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skill-item:hover .skill-progress {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

/* ===== FLOATING ELEMENT ENHANCEMENTS ===== */
.floating-element-5 {
  top: 30%;
  right: 10%;
  animation-delay: 1s;
}

/* ===== BUTTON HOVER ENHANCEMENTS ===== */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
}

/* ===== PROJECT CARD ENHANCEMENTS ===== */
.project-card {
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-xl);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(59, 130, 246, 0.02));
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

/* ===== SOCIAL LINKS HOVER ===== */
a[href*="linkedin"]:hover,
a[href*="github"]:hover,
a[href*="whatsapp"]:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* ===== INTERACTIVE ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1) rotate(0.2deg);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03) rotate(-0.1deg);
  }
}

.hero-greeting {
  animation: pulse 4s ease-in-out infinite;
  transform-origin: left center;
}

/* ===== SCROLL INDICATOR ENHANCEMENT ===== */
.scroll-indicator:hover .scroll-arrow {
  background: var(--secondary);
  transform: scale(1.2);
  animation: bounce 1s infinite;
}

/* ===== FORM HOVER EFFECTS ===== */
input:hover,
textarea:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

input:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

/* ===== TIMELINE HUMANIZADO ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 1.5px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.timeline-item:hover::before {
  transform: scale(1.2);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.25);
}

.timeline-content {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.timeline-date {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* ===== FEATURE CARDS HUMANIZADOS ===== */
.feature-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.03));
  opacity: 0;
  transition: all 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:nth-child(even) {
  /* Remover rotação */
}

.feature-card:nth-child(odd) {
  /* Remover rotação */
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ===== SKILL CARDS ORGÂNICOS ===== */
.skill-card {
  transition: all 0.3s ease;
}

.skill-card:nth-child(2) {
  /* Remover rotação */
}

.skill-card:nth-child(3) {
  /* Remover rotação */
}

.skill-card:hover {
  transform: translateY(-5px);
}

/* ===== SKILL BARS MELHORADOS ===== */
.skill-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  position: relative;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ===== BOTÕES MAIS HUMANIZADOS ===== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* ===== HERO STATS MELHORADOS ===== */
.stat {
  position: relative;
  transition: all 0.3s ease;
}

.stat:nth-child(1) {
  /* Remover rotação */
}

.stat:nth-child(2) {
  /* Remover rotação */
}

.stat:nth-child(3) {
  /* Remover rotação */
}

.stat:hover {
  transform: translateY(-2px) scale(1.02);
}

/* ===== ELEMENTOS FLUTUANTES ORGÂNICOS ===== */
.floating-element {
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.floating-element-1 {
  animation-name: float1;
  animation-delay: 0s;
}

.floating-element-2 {
  animation-name: float2;
  animation-delay: 1s;
}

.floating-element-3 {
  animation-name: float3;
  animation-delay: 2s;
}

.floating-element-4 {
  animation-name: float4;
  animation-delay: 0.5s;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(-5px) rotate(-0.5deg); }
  75% { transform: translateY(-15px) rotate(0.8deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(-1deg); }
  66% { transform: translateY(-12px) rotate(0.7deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-6px) rotate(0.5deg); }
  40% { transform: translateY(-14px) rotate(-0.8deg); }
  80% { transform: translateY(-4px) rotate(0.3deg); }
}

@keyframes float4 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-9px) rotate(-0.6deg); }
  70% { transform: translateY(-11px) rotate(1.2deg); }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets e Desktop pequeno (768px - 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-image-wrapper {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline::before {
    left: 0.75rem;
  }
  
  .timeline-item::before {
    left: -1.25rem;
  }
}

/* Tablets (768px) */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }
  
  .navbar {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
    border-top: 1px solid var(--border);
  }
  
  .navbar.active {
    left: 0;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    align-items: center;
  }
  
  .navbar li {
    width: 100%;
    text-align: center;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .floating-element {
    display: none;
  }
}

/* Mobile Large (480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-name {
    font-size: 1.8rem;
  }
  
  .hero-role {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .timeline {
    padding-left: 1rem;
  }
  
  .timeline::before {
    left: 0.5rem;
  }
  
  .timeline-item::before {
    left: -1rem;
    width: 0.75rem;
    height: 0.75rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .skill-card {
    padding: 1.5rem;
  }
  
  .project-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  input, textarea {
    font-size: 16px !important; /* Evita zoom no iOS */
  }
}

/* Mobile Small (360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-name {
    font-size: 1.6rem;
  }
  
  .hero-role {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .skill-card, .timeline-content {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding-top: 80px;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero-image-wrapper {
    width: 250px;
    height: 250px;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-image-wrapper {
    width: 400px;
    height: 400px;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .grid {
    gap: 3rem;
  }
}

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-content {
    gap: 4rem;
  }
  
  .section {
    padding: 8rem 0;
  }
}

/* Ajustes específicos para formulário */
@media (max-width: 768px) {
  #contact-form {
    gap: 1rem;
  }
  
  .contact-form-grid {
    grid-template-columns: 1fr !important;
  }
  
  #contact-form input,
  #contact-form textarea {
    padding: 0.875rem;
    font-size: 16px !important; /* Evita zoom no iOS */
  }
  
  #contact-form button {
    width: 100%;
    align-self: stretch !important;
  }
}

/* Ajustes para cards de projeto */
@media (max-width: 768px) {
  .project-card {
    margin-bottom: 2rem;
  }
  
  .project-card:hover {
    transform: translateY(-3px);
  }
}

/* Ajustes para navegação móvel */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }
  
  .mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* Print styles */
@media print {
  .floating-element,
  .scroll-indicator,
  .mobile-toggle,
  .theme-toggle {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .timeline-content,
  .skill-card,
  .project-card {
    break-inside: avoid;
  }
}