:root {
  --bg: #0b1020;
  --bg-elev: #0f1630;
  --card: #111a3a;
  --border: #202a48;
  --text: #e6e9f2;
  --muted: #9aa6c3;
  --soft: #c8d0e3;
  --brand: #7c3aed; /* purple */
  --brand-2: #22d3ee; /* cyan */
  --brand-3: #f472b6; /* pink */
  --ok: #22c55e;
  --warn: #f59e0b;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

html {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(
    -45deg,
    rgba(10, 14, 39, 1) 0%,
    rgba(26, 31, 58, 1) 25%,
    rgba(15, 20, 40, 1) 50%,
    rgba(124, 58, 237, 0.15) 75%,
    rgba(34, 211, 238, 0.12) 100%
  );
  background-size: 400% 400%;
  position: relative;
  overflow-x: hidden;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="rgba(124, 58, 237, 0.3)" stroke="rgba(124, 58, 237, 0.8)" stroke-width="2"/></svg>')
      12 12,
    auto;
  animation: fadeIn 0.3s ease-in, gradientShift 20s ease infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

a,
button {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="rgba(34, 211, 238, 0.5)" stroke="rgba(34, 211, 238, 1)" stroke-width="2"/></svg>')
      12 12,
    pointer;
}

/* Camada de degradê adicional */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.12) 0%, transparent 50%);
  animation: float-particles 25s ease-in-out infinite, particleFade 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes particleFade {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes float-particles {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  margin-left: calc(50% - 640px - 60px);
  padding: var(--space-6) var(--space-8);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-8);
  align-items: start;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: var(--space-5);
  }
}

/* Nav (horizontal top navbar) */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.95);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  margin: 0 0 var(--space-6) 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px var(--space-8);
  gap: var(--space-3);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
  flex-shrink: 0;
}
.menu-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.menu-icon {
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  border-radius: 2px;
}
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.menu-icon::before {
  top: -6px;
}
.menu-icon::after {
  top: 6px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-link.active {
  color: var(--brand);
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.1);
}
.nav-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .header {
    flex-direction: column;
    text-align: center;
    padding: var(--space-4) 0;
  }
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-image {
    margin: 0 0 var(--space-4) 0;
    width: 120px;
    height: 120px;
  }
  .name {
    font-size: 2.2rem;
  }
  .title {
    font-size: 1rem;
    padding: 3px 10px;
  }
  .status {
    font-size: 0.85rem;
    padding: 4px 10px;
  }
  .profile-details {
    padding: var(--space-2);
  }
  .detail-item {
    padding: var(--space-1);
  }
}

/* Header - GitHub Profile Style */
.header {
  background: rgba(17, 26, 58, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  padding-top: calc(var(--space-8) + 24px);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
  animation: fadeInUp 0.4s ease-out 0.1s both;
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Botões estilo macOS */
.mac-buttons {
  position: absolute;
  top: 16px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.mac-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.mac-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mac-btn:hover::after {
  opacity: 1;
}

.mac-close {
  background: #ff5f56;
  box-shadow: 0 0 8px rgba(255, 95, 86, 0.4);
}

.mac-close:hover {
  background: #ff4136;
  transform: scale(1.1);
}

.mac-close::after {
  content: '×';
  color: #6b0000;
}

.mac-minimize {
  background: #ffbd2e;
  box-shadow: 0 0 8px rgba(255, 189, 46, 0.4);
}

.mac-minimize:hover {
  background: #ffaa00;
  transform: scale(1.1);
}

.mac-minimize::after {
  content: '−';
  color: #8b6500;
}

.mac-maximize {
  background: #27c93f;
  box-shadow: 0 0 8px rgba(39, 201, 63, 0.4);
}

.mac-maximize:hover {
  background: #1fb036;
  transform: scale(1.1);
}

.mac-maximize::after {
  content: '+';
  color: #0b5d1e;
}
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.1), transparent 50%);
  pointer-events: none;
}
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
  gap: var(--space-3);
}
.profile-image {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
}

.profile-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(124, 58, 237, 0.4),
    rgba(147, 51, 234, 0.3),
    rgba(168, 85, 247, 0.4),
    rgba(192, 132, 252, 0.3),
    rgba(168, 85, 247, 0.4),
    rgba(147, 51, 234, 0.3),
    rgba(124, 58, 237, 0.4)
  );
  filter: blur(12px);
  animation: fire-rotate 4s linear infinite;
  z-index: -1;
}

.profile-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 40%,
    rgba(124, 58, 237, 0.2) 50%,
    rgba(168, 85, 247, 0.3) 60%,
    rgba(192, 132, 252, 0.2) 70%,
    transparent 80%
  );
  filter: blur(10px);
  animation: fire-pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes fire-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.05);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

@keyframes fire-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.profile-image > img {
  position: relative;
  z-index: 2;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4), 0 0 30px rgba(168, 85, 247, 0.2),
    inset 0 0 15px rgba(0, 0, 0, 0.2);
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.name {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(90deg, #fff 0%, #c4b5fd 25%, #22d3ee 50%, #c4b5fd 75%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-text 3s ease infinite;
  text-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
  filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.3));
}

@keyframes gradient-text {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.title {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin: var(--space-1) 0 var(--space-2) 0;
  line-height: 1.4;
  background: rgba(124, 58, 237, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: var(--space-2);
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-indicator {
  width: 10px;
  height: 10px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.profile-details {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}
.detail-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  min-width: 90px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.detail-value {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

/* Language Dropdown */
.language-dropdown {
  position: absolute;
  right: var(--space-8);
  flex-shrink: 0;
}

.lang-dropdown-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.lang-dropdown-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(34, 211, 238, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lang-dropdown-btn:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(34, 211, 238, 0.15));
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.lang-dropdown-btn:hover::before {
  opacity: 1;
}

.lang-dropdown-btn .current-lang {
  position: relative;
  z-index: 1;
}

.lang-dropdown-btn .dropdown-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  stroke: var(--primary);
}

.lang-dropdown-btn[aria-expanded='true'] {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(34, 211, 238, 0.2));
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.lang-dropdown-btn[aria-expanded='true'] .dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: rgba(11, 16, 32, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(124, 58, 237, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  overflow: hidden;
}

.lang-dropdown-menu[aria-hidden='false'] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  overflow: hidden;
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), rgba(34, 211, 238, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lang-option:hover {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(34, 211, 238, 0.05));
  padding-left: 22px;
}

.lang-option:hover::before {
  opacity: 1;
}

.lang-option.active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), rgba(34, 211, 238, 0.1));
  color: var(--primary);
  padding-left: 22px;
}

.lang-option.active::before {
  opacity: 1;
}

.lang-option .lang-flag {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.lang-option:hover .lang-flag {
  transform: scale(1.2);
}

.lang-option .lang-name {
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Main Content - Central Area */
.main-content {
  margin-top: var(--space-6);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}
.section {
  background: rgba(17, 26, 58, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease-out both;
}

.section:nth-child(1) {
  animation-delay: 0.15s;
}

.section:nth-child(2) {
  animation-delay: 0.2s;
}

.section:nth-child(3) {
  animation-delay: 0.25s;
}

.section:nth-child(4) {
  animation-delay: 0.3s;
}

.section:nth-child(5) {
  animation-delay: 0.35s;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(34, 211, 238, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.section:hover::before {
  opacity: 1;
}

.section:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}
.section[style*='display: none'] {
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  overflow: hidden;
}
.section-title {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.1) 0%,
    rgba(34, 211, 238, 0.1) 50%,
    rgba(244, 114, 182, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title .mac-buttons {
  position: static;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.content-box {
  padding: var(--space-5);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  width: 100%;
  align-items: start;
}
.skills-grid .skill-item {
  background: rgba(17, 26, 58, 0.4);
  padding: var(--space-5);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: fadeInScale 0.3s ease-out both;
  transition: all 0.3s ease;
  overflow: hidden;
}

.skills-grid .skill-item:nth-child(1) {
  animation-delay: 0.05s;
}
.skills-grid .skill-item:nth-child(2) {
  animation-delay: 0.08s;
}
.skills-grid .skill-item:nth-child(3) {
  animation-delay: 0.11s;
}
.skills-grid .skill-item:nth-child(4) {
  animation-delay: 0.14s;
}
.skills-grid .skill-item:nth-child(5) {
  animation-delay: 0.17s;
}
.skills-grid .skill-item:nth-child(6) {
  animation-delay: 0.2s;
}
.skills-grid .skill-item:nth-child(7) {
  animation-delay: 0.23s;
}
.skills-grid .skill-item:nth-child(8) {
  animation-delay: 0.26s;
}
.skills-grid .skill-item:nth-child(9) {
  animation-delay: 0.29s;
}
.skills-grid .skill-item:nth-child(10) {
  animation-delay: 0.32s;
}
.skills-grid .skill-item:nth-child(11) {
  animation-delay: 0.35s;
}
.skills-grid .skill-item:nth-child(12) {
  animation-delay: 0.38s;
}
.skills-grid .skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 0 4px 4px 0;
}
.skills-grid .skill-item:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
}
.skill-name {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: var(--space-3);
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.skill-bar {
  width: 100%;
  height: 10px;
  background: rgba(124, 58, 237, 0.15);
  border: none;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: var(--space-2);
  position: relative;
}
.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
  position: relative;
  overflow: hidden;
}

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

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.skill-percentage {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  margin-top: 4px;
}

/* Projects - Modern Showcase */
.project-section {
  margin-bottom: var(--space-10);
}

.project-category {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 var(--space-6) 0;
  padding-left: var(--space-4);
  border-left: 4px solid var(--brand);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.project-category::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--space-6);
}

.project-card {
  background: rgba(17, 26, 58, 0.4);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  animation: fadeInUp 0.3s ease-out both;
}

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

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  transition: width 0.3s ease;
}

.project-card:hover::before {
  width: 6px;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.25);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.project-name {
  font-weight: 900;
  font-size: 1rem;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.project-status-badge {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: var(--space-3);
}

.project-status-badge.completed {
  background: var(--ok);
  color: #041a0b;
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.project-status-badge.in-progress {
  background: var(--warn);
  color: #1f1603;
  border: 2px solid rgba(245, 158, 11, 0.3);
}

.project-status-badge.planning {
  background: #64748b;
  color: #0b1220;
  border: 2px solid rgba(100, 116, 139, 0.3);
}

.project-description {
  color: var(--soft);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-size: 0.95rem;
}

.project-tech-stack {
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
  display: block;
}

.tech-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

.project-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.github-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  background: rgba(124, 58, 237, 0.1);
}

.github-link:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: var(--brand);
  transform: translateX(2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.project-note {
  color: var(--muted);
  font-style: italic;
  font-size: 0.85rem;
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
}

/* Project type specific styles */
.project-card[data-project-type='freelancer'] {
  background: linear-gradient(135deg, rgba(17, 26, 58, 0.5), rgba(124, 58, 237, 0.1));
}

.project-card[data-project-type='current'] {
  background: linear-gradient(135deg, rgba(17, 26, 58, 0.5), rgba(34, 197, 94, 0.1));
}

.project-card[data-project-type='public'] {
  background: linear-gradient(135deg, rgba(17, 26, 58, 0.5), rgba(59, 130, 246, 0.1));
}

/* Experience */
.experience-timeline {
  display: grid;
  gap: var(--space-6);
}

.experience-item {
  position: relative;
  background: rgba(17, 26, 58, 0.4);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  animation: fadeInUp 0.4s ease-out both;
}

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

.experience-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(34, 211, 238, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.experience-item:hover::before {
  opacity: 1;
}

.experience-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.experience-item:hover::after {
  opacity: 1;
}

.experience-item:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2), 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.experience-header {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.experience-company {
  margin: 0;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.experience-period {
  color: var(--text);
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.experience-period::before {
  content: '📅';
  font-size: 0.9rem;
}

.experience-item:hover .experience-period {
  background: rgba(124, 58, 237, 0.3);
  border-color: var(--brand);
  transform: scale(1.05);
}

.experience-position {
  color: var(--brand-2);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: var(--space-3);
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.experience-position::before {
  content: '💼';
  font-size: 1rem;
}

.experience-description {
  color: var(--soft);
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Contact */
/* Contact Section */
.contact-intro {
  margin-bottom: var(--space-6);
  text-align: center;
}
.contact-message {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(17, 26, 58, 0.4);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  text-decoration: none;
  overflow: hidden;
  animation: fadeInScale 0.3s ease-out both;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(34, 211, 238, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2);
}

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

.contact-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: rgba(124, 58, 237, 0.3);
  transform: scale(1.1);
}

.contact-icon svg {
  transition: all 0.3s ease;
}

.email-card:hover .contact-icon {
  background: rgba(239, 68, 68, 0.2);
}

.github-card:hover .contact-icon {
  background: rgba(163, 163, 163, 0.2);
}

.linkedin-card:hover .contact-icon {
  background: rgba(14, 118, 168, 0.2);
}

.contact-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.contact-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.contact-card:hover .contact-value {
  color: var(--primary);
}

.contact-arrow {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: var(--space-4);
  }
  .contact-icon {
    width: 48px;
    height: 48px;
  }
}

/* Terminal */
.terminal-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.terminal-header {
  background: var(--bg-elev);
  color: var(--text);
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.terminal-buttons {
  display: flex;
  gap: 8px;
}
.btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.btn.close {
  background: #ef4444;
}
.btn.minimize {
  background: #f59e0b;
}
.btn.maximize {
  background: #22c55e;
}
.terminal-body {
  padding: var(--space-4);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
}
.terminal-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.command,
.cursor {
  color: var(--muted);
}

/* Footer */
.footer {
  width: 100%;
  padding: var(--space-6) 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  text-align: center;
}
.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-content p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* About Section Improvements */
.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-description {
  margin-bottom: var(--space-4);
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--soft);
  margin: 0;
  text-align: justify;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.stat-card {
  background: rgba(17, 26, 58, 0.4);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 0 4px 4px 0;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 100%;
    padding: var(--space-4);
    margin-left: 0;
  }

  .sidebar {
    position: static;
    width: 100%;
  }

  .header {
    position: static;
    padding: var(--space-6);
  }

  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-inner {
    padding: var(--space-4);
    max-width: 100%;
  }

  .language-dropdown {
    right: var(--space-4);
  }

  .section-title {
    font-size: 1.3rem;
  }

  .footer-content {
    padding: 0 var(--space-4);
  }
}

/* Mobile landscape and below (768px) */
@media (max-width: 768px) {
  :root {
    --space-8: 1.5rem;
    --space-6: 1rem;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding: var(--space-3);
    gap: var(--space-4);
  }

  /* Header mobile */
  .header {
    padding: var(--space-5);
  }

  .profile-image {
    width: 140px;
    height: 140px;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .name {
    font-size: 1.5rem;
  }

  .title {
    font-size: 0.9rem;
  }

  .status {
    font-size: 0.75rem;
  }

  .detail-label,
  .detail-value {
    font-size: 0.75rem;
  }

  .mac-buttons {
    top: 12px;
    left: 12px;
    gap: 6px;
  }

  .mac-btn {
    width: 10px;
    height: 10px;
  }

  /* Navigation mobile */
  .nav-inner {
    padding: var(--space-3);
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 26, 58, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    flex-direction: column;
    padding: var(--space-4);
    gap: 0;
    z-index: 100;
  }

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

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    padding: var(--space-3);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    display: block;
    width: 100%;
  }

  .menu-btn {
    display: flex;
    gap: 8px;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--text);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .menu-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--brand);
  }

  .menu-icon {
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    display: block;
  }

  .menu-icon::before,
  .menu-icon::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
    left: 0;
    transition: all 0.3s ease;
  }

  .menu-icon::before {
    top: -6px;
  }

  .menu-icon::after {
    top: 6px;
  }

  .menu-btn[aria-expanded='true'] .menu-icon {
    background: transparent;
  }

  .menu-btn[aria-expanded='true'] .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
  }

  .menu-btn[aria-expanded='true'] .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .language-dropdown {
    position: static;
    margin-left: auto;
  }

  /* Sections mobile */
  .section {
    padding: var(--space-5);
    margin-bottom: var(--space-5);
  }

  .section-title {
    font-size: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .section-title .mac-buttons {
    position: static;
  }

  .content-box {
    padding: var(--space-4);
  }

  /* Skills mobile */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .skills-grid .skill-item {
    padding: var(--space-4);
  }

  .skill-name {
    font-size: 0.9rem;
  }

  .skill-percentage {
    font-size: 0.85rem;
  }

  /* Projects mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .project-card {
    padding: var(--space-4);
  }

  .project-category {
    font-size: 1rem;
  }

  .project-name {
    font-size: 1rem;
  }

  .project-description {
    font-size: 0.85rem;
  }

  /* Experience mobile */
  .experience-item {
    padding: var(--space-4);
  }

  .experience-header {
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
  }

  .experience-company {
    font-size: 1.1rem;
  }

  .experience-period {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .experience-position {
    font-size: 0.95rem;
  }

  .experience-description {
    font-size: 0.9rem;
  }

  /* About mobile */
  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .stat-card {
    padding: var(--space-4);
  }

  .stat-icon {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-value {
    font-size: 0.9rem;
  }

  /* Contact mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .contact-card {
    padding: var(--space-4);
  }

  .contact-message {
    font-size: 0.85rem;
  }

  /* Footer mobile */
  .footer {
    padding: var(--space-5) 0;
  }

  .footer-content p {
    font-size: 0.8rem;
  }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
  .container {
    padding: var(--space-2);
  }

  .header {
    padding: var(--space-4);
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .profile-img {
    width: 90px;
    height: 90px;
  }

  .name {
    font-size: 1.3rem;
  }

  .title {
    font-size: 0.85rem;
  }

  .section {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .section-title {
    font-size: 1.1rem;
  }

  .content-box {
    padding: var(--space-3);
  }

  .nav-inner {
    padding: var(--space-2) var(--space-3);
  }

  .lang-dropdown-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* Large screens */
@media (min-width: 1500px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .container {
    max-width: 1400px;
  }

  .nav-inner {
    max-width: 1400px;
  }

  .footer-content {
    max-width: 1400px;
  }
}

/* Focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Selection & scrollbar */
::selection {
  background: var(--brand);
  color: #fff;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: #2a3355;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4470;
}
