/* Animated logo transition for landing page */
.brand-splash .logo-img {
  transition: transform 2.5s cubic-bezier(0.4,1.6,0.4,1), opacity 1s ease;
}
.brand-splash.grow-out .logo-img {
  transform: scale(3.2);
  opacity: 0;
}
/* TOS page styles */
#terms { padding: 40px 0; }
/* Contact section styling */
#contact .contact-card {
  background: linear-gradient(180deg, #141414 0%, #0f0f0f 100%);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  display: grid;
  gap: 14px;
  align-items: start;
}

/* QR page button polish */
.btn-pill { border-radius: 999px; padding: 12px 22px; box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.btn-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; }
.btn-primary.btn-pill {
  background: linear-gradient(180deg, #e50914 0%, #c40812 100%);
}
.btn-primary.btn-pill:hover {
  background: linear-gradient(180deg, #ff2a35 0%, #e50914 100%);
  transform: translateY(-1px);
}
.btn-secondary.btn-pill {
  background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid #2a2a2a;
  color: #fff;
}
.btn-secondary.btn-pill:hover {
  background: #222;
  border-color: #3a3a3a;
  transform: translateY(-1px);
}
#contact .qr-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#contact .qr-actions { justify-content: center; }
#contact .qr-actions .btn { min-width: 220px; }
#contact .qr-actions .btn-secondary { display: inline-flex; align-items: center; gap: 8px; }
#contact .qr-actions .btn-secondary::before { content: ""; }
#contact .about-text { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

.logo::after { content: none; }
#contact .about-text .contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid #2a2a2a;
  color: #dcdcdc;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 1px 8px rgba(0,0,0,0.35);
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}
#contact .about-text .contact-chip:hover {
  background: #222;
  border-color: #3a3a3a;
  transform: translateY(-1px);
}
#contact .about-text .contact-chip--muted { opacity: 0.8; cursor: default; }
#contact .btn.btn-primary { align-self: start; padding: 12px 16px; font-weight: 600; }
@media (max-width: 768px) {
  #contact .contact-card { padding: 16px; }
  #contact .btn.btn-primary, #contact .qr-actions .btn-secondary, #contact .qr-actions .btn { width: 100%; }
}

/* Text contact card layout for QR page */
#contact .contact-list { display: grid; gap: 12px; }
#contact .contact-item { display: flex; gap: 12px; align-items: baseline; }
#contact .contact-item .label { min-width: 110px; color: #bdbdbd; font-weight: 600; }
#contact .contact-item a { color: #e0e0e0; text-decoration: none; border-bottom: 1px solid transparent; }
#contact .contact-item a:hover { color: #e50914; border-color: #e50914; }
#terms .container { max-width: 1000px; margin: 0 auto; background: linear-gradient(180deg, #121212 0%, #0d0d0d 100%); border: 1px solid #2a2a2a; border-radius: 12px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
#terms h1 { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: 0.2px; }
#terms p { color: #cfcfcf; margin-bottom: 12px; line-height: 1.85; }
#terms hr { border: 0; border-top: 1px solid #2a2a2a; margin: 20px 0; }
#terms a { color: #e50914; text-decoration: none; }
#terms a:hover { text-decoration: underline; }
.accent-link { font-weight: 700; color: #e50914; }
.important-links { margin-top: 12px; }
.important-links h3 { color: #fff; margin-bottom: 10px; }
.important-links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.important-links li a { display: block; background: #1a1a1a; border: 1px solid #2a2a2a; color: #e0e0e0; padding: 12px 14px; border-radius: 8px; transition: background 160ms ease, border-color 160ms ease, transform 120ms ease; }
.important-links li a:hover { background: #2a2a2a; border-color: #3a3a3a; color: #fff; transform: translateY(-1px); }

@media (max-width: 768px) {
  #terms .container { padding: 20px; }
  #terms h1 { font-size: 1.8rem; }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f0f;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Global selection control: disable selection by default */
html, body, body * { -webkit-user-select: none; -ms-user-select: none; user-select: none; }
/* Allow selection for explicit exceptions */
.selectable, .selectable * { -webkit-user-select: text !important; -ms-user-select: text !important; user-select: text !important; }

/* Landing (Profile Selection) */
.landing-body {
  background: #000;
}
.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
}
.is-hidden { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  transition: opacity 180ms ease;
}
.modal:not(.is-hidden) { opacity: 1; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.85) 60%);
  backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  max-width: 860px;
  margin: 60px auto;
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 28px;
  color: #e0e0e0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  transform: translateY(8px) scale(0.99);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.modal:not(.is-hidden) .modal-content { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #222;
  border: 1px solid #333;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 150ms ease, transform 150ms ease;
}
.modal-close:hover { background: #2a2a2a; transform: scale(1.05); }
.modal-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  margin-bottom: 6px;
}
.modal-subtitle { color: #e50914; margin-bottom: 16px; font-weight: 600; }
.modal-body { display: grid; gap: 12px; }
.modal-body p { margin: 0; line-height: 1.85; color: #cfcfcf; }
.modal-body p.lead { color: #e6e6e6; font-size: 1.02rem; }
.modal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.modal-links a { color: #fff; background: #2a2a2a; border: 1px solid #333; border-radius: 6px; padding: 8px 12px; text-decoration: none; }
.modal-links a:hover { color: #fff; background: #e50914; border-color: #e50914; }

/* Tech stack chips for project modal */
.modal-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; padding-top: 8px; border-top: 1px solid #2a2a2a; }
.modal-tags .label { display: block; width: 100%; color: #bdbdbd; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.2px; margin-bottom: 4px; }
.modal-tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid #2f2f2f;
  color: #e0e0e0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.87rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 1px 8px rgba(0,0,0,0.35);
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}
.modal-tags .tag:hover { background: #222; border-color: #3a3a3a; transform: translateY(-1px); }
.modal-tags .tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bdbdbd;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}
/* Accents by technology */
.modal-tags .tag--php::before { background: #777bb3; }
.modal-tags .tag--mysql::before { background: #4479a1; }
.modal-tags .tag--moodle::before { background: #f98012; }
.modal-tags .tag--html::before { background: #e34f26; }
.modal-tags .tag--css::before { background: #1572B6; }
.modal-tags .tag--javascript::before { background: #f7df1e; }

/* Footer styles */
.footer { background: #0d0d0d; border-top: 1px solid #2a2a2a; margin-top: 40px; }
.footer-container { max-width: 1100px; margin: 0 auto; padding: 28px 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.footer-section h4 { color: #fff; margin-bottom: 10px; font-size: 1rem; }
.footer-brand h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.brand-accent { color: #e50914; }
.footer-brand p { color: #bdbdbd; margin-bottom: 10px; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 36px; height: 36px; display: grid; place-items: center; background: #1f1f1f; border: 1px solid #2f2f2f; border-radius: 50%; color: #e0e0e0; text-decoration: none; transition: background 160ms ease, transform 160ms ease; }
.social-links a:hover { background: #2a2a2a; transform: translateY(-1px); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a { color: #cfcfcf; text-decoration: none; }
.footer-links a:hover { color: #e50914; }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: 24px; padding-top: 18px; }
.footer-bottom-content { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer-bottom-content p { color: #bdbdbd; margin: 0; }
.footer-bottom-links { display: flex; gap: 10px; align-items: center; color: #cfcfcf; }
.footer-bottom-links a { color: #cfcfcf; text-decoration: none; }
.footer-bottom-links a:hover { color: #e50914; }
.footer-bottom-links .divider { color: #3a3a3a; }

@media (max-width: 768px) {
  .footer-container { padding: 24px 16px; }
  .footer-content { grid-template-columns: 1fr; gap: 16px; }
  .footer-bottom-content { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Card image support for image icons */
.card-image { overflow: hidden; }
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card.clickable { cursor: pointer; }
.landing-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(229,9,20,0.25) 0%, rgba(0,0,0,0.9) 60%);
  z-index: -1;
}
.brand-splash {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 32px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
  position: relative;
}
.brand-splash:hover { transform: scale(1.03); }
.brand-name .accent { color: #e50914; }
.brand-splash::after { content: none; }

/* Arc text styles for header and landing */
.logo-arc {
  display: block;
  height: 44px;
}
.logo-arc text { font: 700 1.6rem 'Roboto', sans-serif; fill: #e50914; letter-spacing: 2px; }
.brand-arc { display: block; width: 660px; max-width: 90vw; height: 170px; }
.brand-arc text { font: 900 4.6rem 'Roboto', sans-serif; fill: #e50914; letter-spacing: 2px; }
.brand-arc .accent { fill: #e50914; }
.landing-subtitle {
  color: #b3b3b3;
  margin-bottom: 24px;
}
.profile-select {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 800px;
}
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(229,9,20,0.25);
}
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #1a1a1a;
  border: 2px solid #e50914;
  margin-bottom: 12px;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.profile-name {
  color: #fff;
  font-weight: 700;
}

/* Interactive page */
.sim-panel { position: relative; background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%); border: 1px solid #2a2a2a; border-radius: 12px; padding: 20px; box-shadow: 0 16px 40px rgba(0,0,0,0.4); margin-top: 20px; transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease; }
.sim-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-top-left-radius: 12px; border-top-right-radius: 12px; background: linear-gradient(90deg, #e50914 0%, #ff4a54 50%, #e50914 100%); }
.sim-panel.is-hidden { opacity: 0; transform: translateY(6px) scale(0.98); box-shadow: none; }
.sim-panel:not(.is-hidden) { opacity: 1; transform: none; }
.sim-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sim-header h3 { color: #fff; font-size: 1.5rem; margin-bottom: 4px; letter-spacing: 0.2px; }
.sim-header .modal-subtitle { margin: 0; }
.sim-score { display: grid; gap: 10px; margin: 10px 0 16px; }
.score-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; }
.score-label { color: #bdbdbd; font-weight: 600; }
.score-meter { position: relative; height: 10px; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.score-meter::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--score, 0) * 12%); background: linear-gradient(90deg, #e50914 0%, #ff4a54 100%); box-shadow: 0 1px 6px rgba(229,9,20,0.35); }
.sim-body { display: grid; gap: 12px; }
.sim-body .lead { color: #e6e6e6; font-size: 1.08rem; }
.sim-options { display: flex; flex-wrap: wrap; gap: 10px; }
.sim-options .btn { min-width: 220px; }
.sim-options .btn:focus-visible { outline: 2px solid #e50914; outline-offset: 2px; }
.sim-summary { color: #e0e0e0; }
#interactive .card .card-image { font-size: 2.6rem; color: rgba(255,255,255,0.3); }
.interactive-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.interactive-layout .sim-panel { position: sticky; top: 90px; }
.sim-meter-animate .score-meter::after { transition: width 220ms ease; }
/* Scenario card polish */
#scenario-grid .card { border: 1px solid #3a3a3a; background: linear-gradient(180deg, #262626 0%, #222 100%); }
#scenario-grid .card:hover { box-shadow: 0 10px 24px rgba(229,9,20,0.35); transform: translateY(-3px) scale(1.03); }
#scenario-grid .card:focus-visible { outline: 2px solid #e50914; outline-offset: 2px; }
.sim-footer { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.sim-summary { display: block; color: #e0e0e0; background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%); border: 1px solid #2a2a2a; border-radius: 8px; padding: 10px 12px; }
/* Interactive layout */
.interactive-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.interactive-layout .sim-panel { position: sticky; top: 90px; }
.sim-meter-animate .score-meter::after { transition: width 220ms ease; }

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  z-index: 1000;
  padding: 20px 0;
}

.navbar--solid {
  background: #0b0b0b;
  border-bottom: 1px solid #2a2a2a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-right { display: flex; align-items: center; gap: 16px; }

/* Mobile menu toggle (hamburger) */
.nav-toggle {
  display: none;
  width: 36px;
  height: 28px;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0,0,0,0.28);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #e0e0e0;
  border-radius: 2px;
}
.nav-toggle span:nth-child(1) { top: 8px; }
.nav-toggle span:nth-child(2) { top: 13px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e50914;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s ease;
}

.nav-menu a:hover {
  color: #e50914;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 2px;
  background: #e50914;
  transition: width 200ms ease;
}
.nav-menu a:hover::after { width: 100%; }

/* Header role button (Netflix-style avatar) */
.nav-role-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  margin-left: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.28);
  cursor: pointer;
}
.nav-role-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-role { position: relative; }
.nav-role-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  padding: 8px;
  display: none;
  z-index: 1200;
}
.nav-role.open .nav-role-menu { display: block; }
.nav-role-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 6px;
}
.nav-role-menu a:hover { background: #2a2a2a; color: #fff; }
.nav-role-menu img { width: 18px; height: 18px; border-radius: 4px; }
/* Divider and embedded nav links in role menu */
.nav-divider { border: 0; border-top: 1px solid #2a2a2a; margin: 8px 0; }
.nav-links-slot { display: grid; gap: 6px; }
.nav-links-slot a { display: block; color: #e0e0e0; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.nav-links-slot a:hover { background: #2a2a2a; color: #fff; }

/* Hero Banner */
.hero-banner {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  margin-bottom: 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e50914 0%, #831010 100%);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 15, 0.3) 50%, rgba(15, 15, 15, 0.8) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 32px;
  max-width: 600px;
  color: #e0e0e0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-primary {
  background: #e50914;
  color: #fff;
}

.btn-primary:hover {
  background: #c40812;
  transform: scale(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Content Sections */
.content-section {
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}

/* About Section */
.about-text {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #b3b3b3;
}

/* Horizontal Scroll Container */
.scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
  height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #e50914;
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #ff1f1f;
}

/* Cards for Projects, Experience, Education */
.card {
  flex: 0 0 320px;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.3);
}

.card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e50914, #831010);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Logo cards (education/certifications) use contain and neutral background */
.card--logo .card-image { background: #121212; background-size: cover; background-position: center; }
.card--logo .card-image img { object-fit: contain; }

/* Modal details (definition list style) */
.modal-details { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; align-items: baseline; margin-top: 8px; }
.modal-details .label { color: #bdbdbd; font-weight: 600; }
.modal-details .value { color: #e0e0e0; }
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.copy-input { flex: 1; padding: 8px 10px; background: #1f1f1f; border: 1px solid #2f2f2f; border-radius: 6px; color: #e0e0e0; font-family: monospace; }
.btn-copy { background: #2a2a2a; border: 1px solid #333; border-radius: 6px; color: #fff; padding: 8px 12px; cursor: pointer; }
.btn-copy:hover { background: #e50914; border-color: #e50914; }

.card-content {
  padding: 20px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.card h4 {
  font-size: 0.95rem;
  color: #e50914;
  margin-bottom: 6px;
  font-weight: 600;
}

.card .period {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: #b3b3b3;
  line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.skill-badge {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid #3a3a3a;
}

.skill-badge:hover {
  background: #e50914;
  border-color: #e50914;
  transform: translateY(-4px);
}

.skill-badge h4 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

/* Responsive: Mobile-only tweaks without affecting desktop */
@media (max-width: 768px) {
  .navbar { padding: 12px 0; }
  .nav-container { padding: 0 16px; }
  /* Hide inline menu and use full-width role menu */
  .nav-menu { display: none; }
  /* Compact role dropdown on mobile (aligned to avatar) */
  .nav-role-menu {
    position: absolute;
    right: 12px;
    top: calc(100% + 8px);
    min-width: 220px;
    border-radius: 10px;
    padding: 8px;
    display: none;
  }
  .nav-role.open .nav-role-menu { display: block; }
  .nav-role-menu a { font-size: 1rem; }

  /* Backdrop overlay when menu open */
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    z-index: 1200;
  }
  body.nav-open .nav-backdrop { display: none; }

  /* Slightly reduce logo for mobile */
  .logo-arc { height: 36px; }

  .hero-banner { height: auto; padding-bottom: 40px; margin-bottom: 20px; align-items: center; }
  .hero-content { padding: 0 16px; text-align: center; }
  .hero-title { font-size: 2.2rem; }
  .hero-description { font-size: 1rem; max-width: none; }
  .hero-buttons { flex-direction: column; gap: 12px; }

  .content-section { padding: 32px 16px; }
  .section-header h2 { font-size: 1.8rem; }

  .scroll-container { gap: 12px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .card { flex: 0 0 85vw; scroll-snap-align: start; }
  #interactive .scroll-container { scroll-snap-type: x mandatory; }
  .card-image { height: 140px; }
  .sim-panel { padding: 16px; }
  .score-row { grid-template-columns: 90px 1fr; }
  .sim-options .btn { width: 100%; min-width: unset; }
  .card-content { padding: 16px; }
  .card h3 { font-size: 1.05rem; }
  .card h4 { font-size: 0.9rem; }
  .card p { font-size: 0.95rem; }

  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .skill-badge { padding: 16px; }

  .profile-select { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
  .profile-card { padding: 16px; }
  .profile-avatar { width: 80px; height: 80px; }

  .about-text { font-size: 1rem; }
  .footer { padding: 16px; text-align: center; }

  /* Modal mobile-friendly sizing */
  .modal-content { margin: 20px auto; width: 95vw; max-width: none; max-height: 80vh; overflow-y: auto; }
  .modal-close { top: 8px; right: 8px; font-size: 2rem; }
}

@media (max-width: 480px) {
  .card { flex: 0 0 90vw; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .section-header h2 { font-size: 1.6rem; }
}

/* Contact Form */
.contact-form {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e50914;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: #1a1a1a;
  padding: 40px 24px;
  text-align: center;
  color: #666;
  border-top: 1px solid #2a2a2a;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 16px 0;
  }

  .nav-container {
    padding: 0 20px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-menu {
    gap: 20px;
    font-size: 0.85rem;
  }

  .hero-banner {
    height: 60vh;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .content-section {
    padding: 40px 20px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .card {
    flex: 0 0 250px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
