:root{
  --bg: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 50%, #16213E 100%);
  --card-bg: #1E1E3F;
  --card-light: #252547;
  --accent: #00F5FF; /* ciano elétrico */
  --accent-light: #40E0D0;
  --accent-dark: #00CED1;
  --secondary: #FF6B6B; /* coral vibrante */
  --tertiary: #4ECDC4; /* turquesa */
  --warning: #FFD93D;
  --success: #6BCF7F;
  --muted: #A0A3BD;
  --strong: #FFFFFF;
  --text: #E4E6EA;
  --border: rgba(0, 245, 255, 0.2);
  --shadow: rgba(0, 0, 0, 0.4);

  --card: #1.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--tertiary), var(--warning));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
  }

}

/* Language Selector */
.language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--card-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.lang-option:hover {
  background: var(--accent);
  color: var(--card-bg);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 245, 255, 0.3);
}

.lang-option.active {
  background: var(--accent);
  color: var(--card-bg);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.4);
}

.lang-option i {
  font-size: 10px;
}

/* Responsive language selector */
@media (max-width: 768px) {
  .language-selector {
    top: 15px;
    right: 15px;
    gap: 6px;
  }
  
  .lang-option {
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .lang-option i {
    font-size: 9px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 20px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated tech grid background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Floating tech icons */
body::after {
  content: "{ } < /> [ ] ( )";
  position: fixed;
  top: 10%;
  right: 5%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  color: rgba(0, 245, 255, 0.1);
  z-index: -1;
  animation: float-code 15s ease-in-out infinite;
}

@keyframes float-code {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
  50% { transform: translateY(-30px) rotate(5deg); opacity: 0.05; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 
    0 20px 60px var(--shadow),
    0 0 0 1px var(--border),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--tertiary), var(--warning));
  background-size: 200% 100%;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

/* Header Section - Full Width */
.header {
  background: linear-gradient(135deg, var(--card) 0%, var(--card-light) 100%);
  padding: 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.05));
  pointer-events: none;
}

.hero {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.avatar-section {
  position: relative;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--card-bg);
  font-weight: 700;
  position: relative;
  box-shadow: 
    0 0 30px rgba(0, 245, 255, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent), var(--secondary), var(--tertiary));
  z-index: -1;
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.name-section h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--strong);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--strong) 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(255, 107, 107, 0.15));
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(0, 245, 255, 0.3);
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--accent);
  color: var(--card-bg);
  transform: translateY(-2px);
}

.summary {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.summary strong {
  color: var(--accent);
  font-weight: 600;
}

/* Main Content Area */
.content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 0;
}

/* Sidebar */
.sidebar {
  background: var(--card-light);
  padding: 40px 30px;
  border-right: 1px solid var(--border);
  position: relative;
}

.sidebar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--secondary));
}

.sidebar-section {
  margin-bottom: 35px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 0;
}

.contact-item:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.contact-item i {
  width: 20px;
  color: var(--accent);
  font-size: 16px;
}

.tech-grid {
  display: grid;
  gap: 8px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  transition: all 0.3s ease;
  font-weight: 500;
}

.tech-item:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--accent);
  transform: translateX(5px);
}

.tech-item i {
  color: var(--accent);
  font-size: 18px;
  width: 24px;
}

.education-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.education-item:last-child {
  border-bottom: none;
}

.education-title {
  font-weight: 600;
  color: var(--strong);
  margin-bottom: 4px;
}

.education-detail {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Main Content */
.main-content {
  padding: 40px;
}

.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--strong);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.section-title i {
  color: var(--accent);
  font-size: 20px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-left: 20px;
}

.experience-item {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.03), rgba(255, 107, 107, 0.03));
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 25px;
  position: relative;
  transition: all 0.4s ease;
}

.experience-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.experience-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 16px 16px 0 0;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

.job-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--strong);
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-title i {
  color: var(--accent);
}

.job-period {
  background: rgba(0, 245, 255, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.job-achievements {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-achievements li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text);
}

.job-achievements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.job-achievements li strong {
  color: var(--accent);
  font-weight: 600;
}

.project-card {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(78, 205, 196, 0.05));
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-color: var(--secondary);
}

.project-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--strong);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-title i {
  color: var(--secondary);
}

.project-link {
  color: var(--tertiary);
  font-size: 14px;
  margin-bottom: 15px;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.2);
  width: fit-content;
}

.project-link:hover {
  color: var(--strong);
  background: var(--tertiary);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.project-link i {
  margin-right: 8px;
}

.project-description {
  color: var(--text);
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.skill-category {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(78, 205, 196, 0.05));
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.skill-category-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  padding: 5px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-list li i {
  color: var(--accent);
  width: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .name-section h1 {
    font-size: 32px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .header {
    padding: 25px;
  }
  
  .main-content,
  .sidebar {
    padding: 25px;
  }
  
  .tagline {
    justify-content: center;
  }
  
  .job-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .avatar {
    width: 80px;
    height: 80px;
    font-size: 24px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
    padding: 0;
  }
  
  .container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .container::before,
  .avatar::before,
  .experience-item::before {
    display: none;
  }
}