:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f13;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: #121217;
  --line: #1f2937;
  --accent: #e11d48;
  --accent-2: #7f1d1d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --accent-soft: rgba(225, 29, 72, 0.07);
  --accent-border: rgba(225, 29, 72, 0.2);
  --section-bg: rgba(255, 255, 255, 0.02);
  --hover-bg: rgba(225, 29, 72, 0.04);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1000px 600px at 20% -10%, rgba(225, 29, 72, 0.12), transparent 40%),
    linear-gradient(180deg, #0b0c10 0%, #0a0a0b 60%);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background canvas */
#bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 3px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.25;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}
.brand:hover { color: var(--accent); transition: color 0.2s; }

.nav-items {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}
.nav-items a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-items a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-items {
    position: absolute;
    right: 16px;
    top: 62px;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 12px;
    display: none;
    z-index: 100;
  }
  .nav-items.open { display: flex; }
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 56px 0 16px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 8px;
  letter-spacing: .02em;
  line-height: 1.1;
}
.accent {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(225, 29, 72, 0.45);
}
.tag {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  border-radius: 14px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #dc2626);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.3);
}
.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.btn.primary:hover {
  box-shadow: 0 8px 28px rgba(225, 29, 72, 0.4);
}
.btn-icon { font-size: 0.85em; }

/* Ticker */
.ticker {
  margin-top: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0c0c10, #0b0b10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ticker-track {
  display: flex;
  gap: 32px;
  padding: 10px 0;
  white-space: nowrap;
  will-change: transform;
  animation: slide 28s linear infinite;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* SECTIONS */
section {
  margin: 52px 0;
}
section h2 {
  font-size: 1.75rem;
  margin: 0 0 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.01em;
}
section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--accent-border), transparent);
}

.section-body {
  background: var(--section-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}
.section-body:hover {
  border-color: var(--accent-border);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.card:hover {
  border-color: var(--accent-border);
}

/* ABOUT */
.about-list,
.interests-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.about-list li,
.interests-list li {
  padding: 10px 16px;
  border-left: 3px solid var(--accent-border);
  margin: 8px 0;
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.about-list li:hover,
.interests-list li:hover {
  border-left-color: var(--accent);
  background: rgba(225, 29, 72, 0.1);
  color: var(--text);
}
.about-list li strong { color: var(--text); margin-right: 6px; }

.quickfacts {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 8px;
}
.quickfacts li {
  padding: 11px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.quickfacts li:hover { background: rgba(225, 29, 72, 0.1); }

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.timeline-item {
  border-left: 2px solid var(--accent-border);
  padding-left: 24px;
  position: relative;
  transition: border-left-color 0.3s;
}
.timeline-item:hover {
  border-left-color: var(--accent);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.6);
  transition: box-shadow 0.2s;
}
.timeline-item:hover::before {
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.9);
}

.timeline-header { margin-bottom: 12px; }
.timeline-header h3 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 1.15rem;
}
.company {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: 10px;
}
.period {
  color: var(--muted);
  font-size: 0.85rem;
}

.timeline-content {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline-content li {
  padding: 5px 0 5px 20px;
  color: var(--muted);
  position: relative;
  font-size: 0.93rem;
  line-height: 1.55;
}
.timeline-content li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.7;
}

/* EDUCATION & SKILLS */
.edu-section,
.cert-section,
.skills-section {
  margin-bottom: 32px;
}
.edu-section:last-child,
.cert-section:last-child,
.skills-section:last-child {
  margin-bottom: 0;
}

.edu-section h3,
.cert-section h3,
.skills-section h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent-border);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.edu-item h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1.1rem;
}
.school {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.edu-details {
  list-style: none;
  padding: 0;
  margin: 0;
}
.edu-details li {
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.cert-list li {
  padding: 11px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  font-size: 0.93rem;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.cert-list li:hover {
  background: rgba(225, 29, 72, 0.1);
  color: var(--text);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.skill-category h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}
.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill-category li {
  padding: 7px 12px;
  margin: 4px 0;
  background: var(--accent-soft);
  border-radius: 6px;
  border-left: 3px solid var(--accent-border);
  color: var(--muted);
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.skill-category li:hover {
  background: rgba(225, 29, 72, 0.1);
  color: var(--text);
  border-left-color: var(--accent);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 0;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.contact-item:hover {
  background: rgba(225, 29, 72, 0.1);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.contact-icon {
  font-size: 1.1em;
  width: 22px;
  text-align: center;
}
.contact-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
}
.contact-item a:hover { color: var(--accent); }

/* FOOTER */
footer {
  margin-top: 64px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .section-body { padding: 20px; }
  .card { padding: 20px 22px; }
}
