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

:root {
  --bg: #0f0f1e;
  --text: #e0e0e0;
  --cyan: #00d9ff;
  --magenta: #ff006e;
  --green: #00ff88;
}

/* Skip link per accessibilità */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--magenta);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "SUSE Mono", monospace;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Header */
header {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

header h1::before {
  content: "$ ";
  color: var(--magenta);
}

header p {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.8;
}

/* Sections */
section {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

section h2 {
  font-size: 1.3rem;
  color: var(--magenta);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

section p {
  opacity: 0.9;
}

/* Chi sono */
#chi-sono p {
  max-width: 600px;
}

/* Esperienza */
.experience-item {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--cyan);
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-item h3 {
  font-size: 1.1rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.experience-item .meta {
  font-size: 0.85rem;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}

.experience-item .projects {
  font-size: 0.8rem;
  color: var(--cyan);
  opacity: 0.7;
  margin-top: 0.5rem;
}

.experience-item .projects::before {
  content: "📂 ";
}

.experience-item p:last-child {
  font-size: 0.95rem;
}

/* Competenze */
.skill-category {
  margin-bottom: 1.5rem;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.skill-category h3 {
  font-size: 0.85rem;
  color: var(--magenta);
  font-weight: 500;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.skill-category h3::before {
  content: "# ";
  opacity: 0.6;
}

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

.skill {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--cyan);
  transition: all 0.2s ease;
}

.skill:hover {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--cyan);
}

/* Certificazioni */
.certifications {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.15);
  position: relative;
}

.cert.active {
  border-left: 3px solid #00ff88;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  margin-left: 6px;
  box-shadow: 0 0 6px #00ff88;
  animation: pulse 2s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #00ff88; }
  50% { opacity: 0.6; box-shadow: 0 0 3px #00ff88; }
}

.cert-badge {
  background: var(--magenta);
  color: var(--bg);
  padding: 0.4rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.cert-info h3 {
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.cert-info a {
  text-decoration: none;
}

.cert-info a h3 {
  transition: color 0.2s ease;
}

.cert-info a:hover h3 {
  color: var(--magenta);
}

.cert-info .meta {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.6;
}

/* Progetti */
.project {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 0, 110, 0.05);
  border: 1px solid rgba(255, 0, 110, 0.2);
}

.project:last-child {
  margin-bottom: 0;
}

.project h3 {
  font-size: 1rem;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}

.project h3::before {
  content: "📁 ";
}

.project p {
  font-size: 0.9rem;
}

.project a {
  color: var(--cyan);
  text-decoration: none;
}

.project a:hover {
  text-decoration: underline;
}

/* Contatti */
#contatti ul {
  list-style: none;
}

#contatti li {
  margin-bottom: 0.5rem;
}

#contatti a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

#contatti a:hover {
  color: var(--magenta);
}

#contatti a::before {
  content: "→ ";
  color: var(--magenta);
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Cursor blink animation */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: var(--cyan);
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 1.1rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }
}
