* {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.2s ease;
}

body.light {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Light theme text readability overrides */
body.light .text-slate-400 {
  color: #64748b !important;
}

body.light .text-slate-500 {
  color: #334155 !important;
}

body.light .text-slate-600 {
  color: #1e293b !important;
}

body.light .text-slate-700 {
  color: #0f172a !important;
}

body.light .text-slate-800 {
  color: #0f172a !important;
}

body.dark {
  background-color: #0b1120;
  color: #e2e8f0;
}

.container-custom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.glass-card {
  background: white;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #cbd5e1;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.dark .glass-card {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(51, 65, 85, 0.6);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.control-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  background: white;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}

.dark .control-btn {
  background: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}

.control-btn.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.dark .control-btn.active {
  background: #3b82f6;
  color: white;
}

.theme-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}

.dark .theme-btn {
  background: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}

.skill-badge {
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  background: #3b82f6;
  color: #ffffff;
  border: 1px solid #2563eb;
  transition: all 0.15s;
}

.dark .skill-badge {
  background: #1e3a8a;
  color: #93c5fd;
  border-color: #1e40af;
}

.skill-badge:hover {
  transform: translateY(-1px);
  background: #2563eb;
}

.dark .skill-badge:hover {
  background: #1e40af;
}

.soft-pill {
  background: #e2e8f0;
  color: #0f172a;
  padding: 0.25rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  border: 1px solid #94a3b8;
}

.dark .soft-pill {
  background: #1e2a3a;
  color: #cbd5e1;
  border-color: #3d4f6c;
}

/* Profile card styling */
.profile-card {
  background: white;
  border: 2px solid #cbd5e1;
}

.dark .profile-card {
  background: rgba(23, 37, 84, 0.3);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Language switch container */
.lang-switch-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.9);
}

.dark .lang-switch-container {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(51, 65, 85, 0.8);
}

.exp-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 2px solid #cbd5e1;
  transition: all 0.2s;
  width: 100%;
}

.dark .exp-card {
  background: #111b2f;
  border-color: #253759;
}

.exp-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 12px 25px -12px rgba(59, 130, 246, 0.3);
}

.exp-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hire-banner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  border-radius: 60px;
  padding: 0.6rem 1rem 0.6rem 1.5rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid #e2e8f0;
  z-index: 100;
  font-weight: 500;
  color: #1e293b;
}

.dark .hire-banner {
  background: #1e2b3f;
  border-color: #3d5270;
  color: white;
  box-shadow: 0 15px 35px -10px #00000055;
}

.hire-banner a {
  background: #3b82f6;
  color: white;
  padding: 0.5rem 1.3rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.hire-banner a:hover {
  background: #2563eb;
}

@media (max-width: 500px) {
  .container-custom {
    padding: 1rem;
  }

  .hire-banner {
    bottom: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
  }
}

.gradient-name {
  color: #1e293b;
  font-weight: 700;
  word-break: break-word;
  overflow: visible;
  display: inline-block;
  max-width: 100%;
}

.dark .gradient-name {
  color: #e2e8f0;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #2563eb;
  border: 2px solid #94a3b8;
  transition: all 0.2s;
}

.dark .social-icon {
  background: #1e2a3a;
  color: #90b4ff;
  border-color: #3d4f6c;
}

.social-icon:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* Stile per le immagini delle esperienze */
.exp-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b82f6;
}

.dark .exp-image {
  border-color: #60a5fa;
}

.placeholder-image {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: white;
  font-weight: bold;
}