/* =========================================
   ALBERTO PORTFOLIO — style.css (Sysadmin Refocused v5)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --max-w: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.bg-alt { background-color: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 70px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav-logo { font-weight: 700; font-size: 1.2rem; color: var(--text-main); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--text-muted); font-weight: 500; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cv-btn {
  border: 1px solid var(--accent); padding: 8px 16px; border-radius: 6px;
  font-weight: 600; transition: 0.2s;
}
.nav-cv-btn:hover { background: var(--accent); color: white; }

/* Mobile Menu */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--text-main); transition: 0.3s; }
.nav-mobile {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 99;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.nav-mobile a { font-weight: 500; display: block; padding: 8px 0; border-bottom: 1px solid #f1f5f9; color: var(--text-muted); }
.nav-mobile a:hover { color: var(--accent); }

/* --- Hero --- */
#about { padding: 140px 0 80px; }
.hero-card {
  background: var(--surface); padding: 48px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; gap: 48px; align-items: center;
}
.hero-photo { border-radius: 50%; box-shadow: 0 0 0 4px white, 0 0 0 6px var(--border); }
.hero-status {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
  padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 16px;
}
.hero-status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; }
.hero-name { font-size: 2.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 8px; }
.hero-title { font-size: 1.1rem; color: var(--accent); font-weight: 600; margin-bottom: 24px; }
.hero-bio { font-size: 1rem; color: var(--text-muted); margin-bottom: 32px; max-width: 600px; }
.hero-bio strong { color: var(--text-main); }

.hero-actions { display: flex; gap: 16px; margin-bottom: 32px; }
.btn-primary, .btn-secondary {
  padding: 10px 24px; border-radius: 6px; font-weight: 600; transition: 0.2s; border: none; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: white; color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary:hover { background: #f8fafc; }

.social-links { display: flex; gap: 12px; }
.social-btn {
  display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); background: #f8fafc; padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border);
  transition: 0.2s;
}
.social-btn:hover { background: white; border-color: var(--accent); color: var(--accent); }

/* --- Sections Base --- */
section { padding: 80px 0; }
.section-label { color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.section-divider { width: 60px; height: 4px; background: var(--accent); border-radius: 2px; margin-bottom: 48px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-top: -32px; margin-bottom: 48px; }

/* --- Skills Grid --- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skill-category { background: var(--surface); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.skill-category h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-main); border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }

/* --- Projects --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.project-card {
  background: var(--surface); padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: 0.2s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-color: #bfdbfe; }
.project-icon { font-size: 2rem; margin-bottom: 16px; }
.project-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.project-desc { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; margin-bottom: 24px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span { font-size: 0.8rem; font-weight: 600; background: var(--bg-alt); padding: 4px 10px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-muted); }

/* --- Experience & Education --- */
.experience-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; }
.column-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }

.exp-card { background: var(--surface); padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.exp-header { margin-bottom: 16px; }
.exp-role { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.exp-company { display: block; color: var(--accent); font-weight: 600; margin: 4px 0; }
.exp-date { font-size: 0.85rem; color: var(--text-muted); }
.exp-desc { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }
.exp-bullets { list-style: none; }
.exp-bullets li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--text-muted); font-size: 0.95rem; }
.exp-bullets li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

.edu-card { background: var(--surface); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow); }
.edu-degree { font-weight: 700; font-size: 1rem; color: var(--text-main); }
.edu-school { display: block; font-size: 0.95rem; color: var(--text-muted); margin-top: 4px; }
.text-small { font-size: 0.85rem; margin-top: 2px; }

.certs-container { background: var(--surface); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 24px; box-shadow: var(--shadow); }
.certs-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; color: var(--text-main); }
.certs-list { list-style: none; }
.certs-list li { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
.certs-list strong { color: var(--text-main); display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }

/* --- Contact --- */
.contact-wrapper {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; box-shadow: var(--shadow);
}
.contact-info { background: var(--bg-alt); padding: 48px; border-right: 1px solid var(--border); }
.contact-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-link { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text-main); }
.contact-link span { font-size: 1.2rem; }

.contact-form { padding: 48px; display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: 1rem;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  background: var(--accent); color: white; border: none; padding: 12px; border-radius: 6px;
  font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.2s;
}
.contact-form button:hover { background: var(--accent-hover); }
.form-success { display: none; background: #f0fdf4; color: #166534; padding: 12px; border-radius: 6px; border: 1px solid #bbf7d0; text-align: center; margin-top: 8px; }
.form-success.show { display: block; }

/* --- Footer --- */
footer { background: var(--surface); padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-left strong { display: block; font-size: 1.1rem; }
.footer-left span { color: var(--text-muted); font-size: 0.9rem; }
.footer-right { display: flex; gap: 24px; }
.footer-right a { color: var(--text-muted); font-weight: 500; }
.footer-right a:hover { color: var(--accent); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-card { flex-direction: column; text-align: center; padding: 32px; }
  .hero-actions, .social-links { justify-content: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .experience-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--border); }
  .nav-links, .nav-cv-btn { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 600px) {
  .hero-name { font-size: 2rem; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
}
