/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-bg: #000000;
  --secondary-bg: #0a0a0a;
  --card-bg: #111111;
  --card-bg-glass: rgba(255, 255, 255, 0.02);
  --accent-color: #ffffff;
  --accent-hover: #f5f5f5;
  --accent-secondary: #e5e5e5;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --border-color: #262626;
  --border-light: #404040;
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-primary: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  --gradient-hover: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
  --gradient-secondary: linear-gradient(135deg, #e5e5e5 0%, #d4d4d4 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-accent: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --border-radius: 0px;
  --border-radius-lg: 4px;
  --transition: all 0.15s ease-out;
  --transition-fast: all 0.1s ease-out;
  --transition-slow: all 0.2s ease-out;
  --transition-spring: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-elegant: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Premium Color Accents - Very Subtle */
  --accent-gold: #d4af37;
  --accent-gold-light: rgba(212, 175, 55, 0.8);
  --accent-gold-subtle: rgba(212, 175, 55, 0.1);
  
  --accent-blue: #4a90e2;
  --accent-blue-light: rgba(74, 144, 226, 0.8);
  --accent-blue-subtle: rgba(74, 144, 226, 0.1);
  
  --accent-purple: #8b5cf6;
  --accent-purple-light: rgba(139, 92, 246, 0.8);
  --accent-purple-subtle: rgba(139, 92, 246, 0.1);
  
  --accent-emerald: #10b981;
  --accent-emerald-light: rgba(16, 185, 129, 0.8);
  --accent-emerald-subtle: rgba(16, 185, 129, 0.1);
  
  --accent-rose: #f43f5e;
  --accent-rose-light: rgba(244, 63, 94, 0.8);
  --accent-rose-subtle: rgba(244, 63, 94, 0.1);
  
  /* Elegant Color Gradients */
  --gradient-gold: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  --gradient-blue: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
  --gradient-purple: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
  --gradient-emerald: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-light));
  --gradient-rose: linear-gradient(135deg, var(--accent-rose), var(--accent-rose-light));
}

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

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Custom Scrollbar for entire page */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--primary-bg);
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--primary-bg);
}

body::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
  transition: var(--transition);
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Layout Container - Premium Grid System */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
  position: relative;
}


@media (max-width: 1200px) {
  .container {
    max-width: 1200px;
    padding: 0 3rem;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 1024px;
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 1.5rem;
  }
}

/* Language Selector */
.language-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.language-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0px;
  cursor: pointer;
  transition: var(--transition-elegant);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 36px;
  height: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-light);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.language-options {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 60px;
  z-index: 1002;
  margin-top: 4px;
}

.language-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.language-option {
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  transition: var(--transition-elegant);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  min-width: 45px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.language-option.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.language-text {
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition-elegant);
}

/* Color Palette Selector */
.color-palette {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.color-palette-toggle {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-elegant);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.color-palette-toggle:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.color-palette-toggle i {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: var(--transition-elegant);
}

.color-palette-toggle:hover i {
  color: var(--text-primary);
}

.color-options {
  position: absolute;
  top: 36px;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 0px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 140px;
}

.color-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.color-option {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 0px;
  cursor: pointer;
  transition: var(--transition-elegant);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.color-option:hover {
  transform: translateY(-1px);
  border-color: var(--border-light);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.color-option.active {
  border-color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.color-option.active::after {
  content: '●';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Special styling for premium mix option */
.color-option-mix {
  background: linear-gradient(135deg, #d4af37 0%, #4a90e2 25%, #8b5cf6 50%, #10b981 75%, #f43f5e 100%) !important;
  position: relative;
  overflow: hidden;
}

.color-option-mix::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.color-option-mix:hover::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.color-option-mix.active::after {
  content: '✨';
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Back to Top Button - Ultra Minimalist and Premium */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 0px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: none;
  box-shadow: none;
}

.back-to-top.visible {
  opacity: 0.6;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  opacity: 1;
  color: var(--accent-gold);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--accent-gold-subtle);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
  opacity: 0.8;
}

.back-to-top i {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 900 !important;
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  display: inline-block !important;
  line-height: 1 !important;
}

.back-to-top:hover i {
  transform: translateY(-0.5px);
}

/* Responsive Back to Top */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}

/* Responsive Site Controls */
@media (max-width: 768px) {
  .site-controls {
    top: 90px;
    right: 15px;
    gap: 0.75rem;
  }
  
  .language-toggle {
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
  }
  
  .language-flag {
    font-size: 1rem;
  }
  
  .color-palette-toggle {
    width: 45px;
    height: 45px;
  }
  
  .color-palette-toggle i {
    font-size: 1.1rem;
  }
  
  .color-options {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    padding: 1.25rem;
    gap: 0.75rem;
    width: 180px;
    max-width: 90vw;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .color-options.active {
    transform: translate(-50%, -50%);
  }
  
  .color-option {
    width: 40px;
    height: 40px;
  }
  
  .project-filters {
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }
  
  .filter-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
  }
}

/* Header e Navegação */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-elegant);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  opacity: 0.4;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  gap: 3rem;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.nav-avatar:hover {
  border-color: var(--border-light);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  position: relative;
}

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

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

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Menu Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-avatar {
    width: 35px;
    height: 35px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--secondary-bg);
    flex-direction: column;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-controls {
    gap: 0.75rem;
  }

  .language-toggle {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: 35px;
    height: 28px;
  }

  .language-options {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    padding: 0.5rem;
    gap: 0.25rem;
    min-width: 70px;
    max-width: 90vw;
  }

  .language-options.active {
    transform: translate(-50%, -50%);
  }

  .language-option {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    min-width: 30px;
    height: 24px;
  }

  .color-palette-toggle {
    width: 28px;
    height: 28px;
  }

  .color-palette-toggle i {
    font-size: 0.875rem;
  }

  .color-options {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    padding: 1rem;
    gap: 0.5rem;
    width: 160px;
    max-width: 90vw;
    grid-template-columns: repeat(3, 1fr);
  }

  .color-options.active {
    transform: translate(-50%, -50%);
  }

  .color-option {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    display: block;
  }
  
  .project-filters {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.9), rgba(10, 10, 10, 0.85)),
    url('./images/hero_background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

/* Hero starts visible (no animation needed) */
.hero {
  opacity: 1;
  transform: translateY(0);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent, var(--primary-bg));
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(99, 102, 241, 0.02) 2px,
      rgba(99, 102, 241, 0.02) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 92, 246, 0.015) 2px,
      rgba(139, 92, 246, 0.015) 4px
    );
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
  will-change: transform;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero-text h1::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--text-primary), transparent);
  opacity: 0.6;
}

.hero-text .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 650px;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: var(--transition-elegant);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--transition-elegant);
}

.btn:hover::before {
  opacity: 0.05;
}

.btn:active {
  transform: translateY(1px);
  transition: transform 0.1s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--primary-bg);
  border: 1px solid var(--accent-blue);
}

.btn-primary:hover {
  background: var(--accent-blue-light);
  color: var(--primary-bg);
  border-color: var(--accent-blue-light);
  transform: translateY(-1px);
}


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

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: var(--card-bg);
}

.hero-image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

@media (max-width: 968px) {
  .hero {
    background-attachment: scroll;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-image {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(180deg, transparent, var(--card-bg-glass), transparent);
}


.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}


.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Filtros de Projetos */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 0px;
  cursor: pointer;
  transition: var(--transition-elegant);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-light);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
  color: var(--text-primary);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Grid de Projetos - Premium Layout - Sempre 3 colunas */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.3s ease;
  justify-items: center;
  position: relative;
}

/* Tablet - 2 colunas */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    gap: 2rem;
  }
}

/* Mobile - 1 coluna */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1.5rem;
  }
  
  .project-card {
    max-width: 100%;
  }
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: var(--transition-elegant);
  opacity: 1;
  transform: scale(1);
  will-change: opacity, transform;
  width: 100%;
  max-width: 400px;
  height: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-elegant);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  border-color: var(--border-light);
  background: var(--card-bg-glass);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.project-card.hidden {
  display: none;
}

.project-image {
  width: 100%;
  height: 280px;
  background: var(--secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

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

.project-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header {
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-status {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.status-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-color);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.active {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.status-badge.featured {
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.status-badge.development {
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.status-active {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.status-development {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--text-muted);
}

.status-featured {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.project-description {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: 0.85rem;
  font-weight: 300;
}

.description-short {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  max-height: 3.2em;
}

.description-full {
  display: none;
}

.btn-see-more {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 300;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-bottom: 1rem;
  transition: var(--transition);
  text-decoration: underline;
  text-decoration-color: transparent;
  letter-spacing: 0.01em;
}

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

/* Premium Focus States */
.btn:focus,
.btn-see-more:focus,
.project-link:focus,
.nav-link:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.btn:focus-visible,
.btn-see-more:focus-visible,
.project-link:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* Elegant Selection */
::selection {
  background: var(--text-primary);
  color: var(--primary-bg);
}

::-moz-selection {
  background: var(--text-primary);
  color: var(--primary-bg);
}

.project-metrics {
  display: none;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-weight: 300;
  letter-spacing: 0.01em;
}

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

.project-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 300;
  transition: var(--transition);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.project-link-primary {
  background: var(--accent-purple);
  color: var(--primary-bg);
  border: 1px solid var(--accent-purple);
}

.project-link-primary:hover {
  background: var(--accent-purple-light);
  color: var(--primary-bg);
  border-color: var(--accent-purple-light);
  transform: translateY(-1px);
}

.project-link-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.project-link-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

/* Skills Section */
.skills-section {
  background: var(--secondary-bg);
  padding: 4rem 0;
  overflow: hidden;
}

.skills-carousel {
  position: relative;
  margin: 2rem 0;
  padding: 2rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.skills-carousel:active {
  cursor: grabbing;
}

.skills-carousel:hover .skills-track {
  animation-play-state: paused;
}

/* Carousel Controls */

/* Custom scrollbar for any scrollable elements */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--secondary-bg);
}

*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--secondary-bg);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
  transition: var(--transition);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.skills-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll 40s linear infinite;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.skills-track::-webkit-scrollbar {
  display: none;
}

.skills-track:hover {
  animation-play-state: paused;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 1.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.skill-item:hover {
  border-color: var(--border-light);
  background: var(--card-bg);
  z-index: 10;
}

.skill-item i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.skill-item:hover i {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-item span {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.skill-item:hover span {
  color: var(--text-primary);
}

/* Animação do carrossel */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  
  .skills-section {
    padding: 3rem 0;
  }
  
  .skills-carousel {
    padding: 1.5rem 0;
  }
  
  .skill-item {
    min-width: 100px;
    padding: 1rem 0.75rem;
  }
  
  
  .skill-item i {
    font-size: 2rem;
  }
  
  .skill-item span {
    font-size: 0.75rem;
  }
  
  .skills-track {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }
  
  .skills-carousel {
    padding: 1rem 0;
  }
  
  .skill-item {
    min-width: 90px;
    padding: 0.75rem 0.5rem;
  }
  
  .skill-item i {
    font-size: 1.8rem;
  }
  
  .skill-item span {
    font-size: 0.7rem;
  }
  
  .skills-track {
    gap: 1rem;
  }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .about-image img {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .about-image img {
    width: 200px;
    height: 200px;
  }
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  object-fit: cover;
  transition: var(--transition-elegant);
}

.about-image img:hover {
  transform: scale(1.02);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
  background: var(--secondary-bg);
}

.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-info {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Contact Toggle Button */
.contact-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 2rem;
  background: transparent;
  border: none;
  border-radius: 0px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  outline: none;
}

.contact-toggle:hover {
  opacity: 1;
  color: var(--accent-blue);
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--accent-blue-subtle);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-toggle:active {
  transform: translateY(0) scale(0.95);
  opacity: 0.8;
}

.contact-toggle i {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 900 !important;
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  display: inline-block !important;
  line-height: 1 !important;
}

.contact-toggle:hover i {
  transform: translateY(0.5px);
}

.contact-toggle.active i {
  transform: rotate(180deg);
}

.contact-toggle.active:hover i {
  transform: rotate(180deg) translateY(0.5px);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form.active {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 2rem;
}

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

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 300;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: var(--transition-elegant);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-blue);
  background: rgba(74, 144, 226, 0.03);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
  transition: var(--transition-elegant);
}

.form-input:focus::placeholder {
  opacity: 0.4;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 2rem;
  font-size: 1rem;
}

.contact-divider {
  text-align: center;
  margin: 2.5rem 0;
  position: relative;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-color);
}

.contact-divider::before {
  left: 0;
}

.contact-divider::after {
  right: 0;
}

.contact-divider span {
  display: inline-block;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}


/* Footer */
.footer {
  background: var(--primary-bg);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.footer-social:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: var(--card-bg);
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Premium Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-color);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-color));
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.scroll-progress.visible {
  opacity: 1;
}


/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Loading state */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Premium Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg, var(--card-bg) 0px, var(--border-color) 40px, var(--card-bg) 80px);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Elegant Fade In Animation */
@keyframes fadeInElegant {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-elegant {
  animation: fadeInElegant 0.6s ease-out forwards;
}

/* Premium Loading States */
@keyframes pulseElegant {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.loading-pulse {
  animation: pulseElegant 2s ease-in-out infinite;
}

/* Elegant Scale Animation */
@keyframes scaleElegant {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.scale-elegant {
  animation: scaleElegant 0.4s ease-out forwards;
}

/* Premium Tooltip System */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--card-bg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Toast Notification System */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2000;
  max-width: 300px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.info {
  border-left: 4px solid var(--text-primary);
}

/* Premium Parallax Elements */
.parallax-element {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.parallax-slow {
  transform: translateY(var(--parallax-offset, 0px));
}

.parallax-fast {
  transform: translateY(calc(var(--parallax-offset, 0px) * 0.5));
}

/* Hero Parallax Classes - Optimized for Performance */
.hero-parallax-content {
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0); /* GPU acceleration */
}

/* Remove individual parallax classes for better performance */
.hero-parallax-text,
.hero-parallax-image,
.hero-parallax-buttons {
  will-change: auto; /* Remove will-change to reduce GPU usage */
}

/* Section Animation Classes */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.section.animate-out {
  opacity: 0.3;
  transform: translateY(-20px);
}

/* Individual Section Elements */
.section-title,
.section-subtitle,
.project-card,
.skill-item,
.about-content,
.contact-info {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.animate-in,
.section-subtitle.animate-in,
.project-card.animate-in,
.skill-item.animate-in,
.about-content.animate-in,
.contact-info.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animation for Multiple Elements */
.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.4s; }

.skill-item:nth-child(1) { transition-delay: 0.05s; }
.skill-item:nth-child(2) { transition-delay: 0.1s; }
.skill-item:nth-child(3) { transition-delay: 0.15s; }
.skill-item:nth-child(4) { transition-delay: 0.2s; }
.skill-item:nth-child(5) { transition-delay: 0.25s; }
.skill-item:nth-child(6) { transition-delay: 0.3s; }

/* Additional Elements Animation */
.project-filters,
.skills-carousel,
.color-palette,
.language-selector {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-filters.animate-in,
.skills-carousel.animate-in,
.color-palette.animate-in,
.language-selector.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, var(--card-bg) 0%, var(--border-color) 50%, var(--card-bg) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 2rem;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 0px;
  border: 1px solid var(--border-color);
  max-width: 700px;
  max-height: 85vh;
  width: 90%;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--secondary-bg);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
  transition: var(--transition);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--card-bg), rgba(255, 255, 255, 0.02));
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  opacity: 0.6;
}

.modal-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  opacity: 0.6;
}

.modal-close:hover {
  color: var(--text-primary);
  opacity: 1;
}

.modal-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--secondary-bg);
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.modal-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modal-image:hover img {
  transform: scale(1.02);
}

.modal-content-section {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-content-section:last-child {
  border-bottom: none;
}

.modal-content-section:nth-child(3) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

.modal-content-section:nth-child(4) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.01), transparent);
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.modal-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-metrics .metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-elegant);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modal-metrics .metric:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-metrics .metric i {
  color: var(--text-muted);
  font-size: 1rem;
}

.modal-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.modal-tech .tech-tag {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-weight: 300;
  transition: var(--transition-elegant);
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modal-tech .tech-tag:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-links .project-link {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  font-weight: 400;
  transition: var(--transition-elegant);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modal-links .project-link-primary {
  background: var(--accent-purple);
  color: var(--primary-bg);
  border: 1px solid var(--accent-purple);
}

.modal-links .project-link-primary:hover {
  background: var(--accent-purple-light);
  color: var(--primary-bg);
  border-color: var(--accent-purple-light);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-links .project-link-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.modal-links .project-link-secondary:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  }
  
  .modal-body {
    padding: 1.25rem;
  }
  
  .modal-image {
    height: 150px;
    margin-bottom: 1.25rem;
  }
  
  .modal-description {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  
  .modal-metrics {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  
  .modal-metrics .metric {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .modal-metrics .metric i {
    font-size: 0.9rem;
  }
  
  .modal-tech {
    gap: 0.375rem;
    margin-bottom: 1.25rem;
  }
  
  .modal-tech .tech-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .modal-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .modal-links .project-link {
    min-width: auto;
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }
}
