/* =========================================================
   Portfolio — IT Professional
   Theme: dark, modern, accent cyan
   ========================================================= */

:root {
  --bg: #0b1020;
  --bg-alt: #0f1530;
  --panel: #131a36;
  --panel-2: #182040;
  --border: #232b54;
  --text: #e7ecff;
  --text-dim: #a7afd4;
  --muted: #7c85ad;
  --accent: #4cc9f0;
  --accent-2: #b794f4;
  --accent-grad: linear-gradient(135deg, #4cc9f0 0%, #b794f4 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1100px;
  --pad-x: clamp(20px, 4vw, 40px);
}

@media (prefers-color-scheme: light) {
  /* keep dark by default — many IT portfolios look better dark.
     remove this block if you want auto-light support. */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(11, 16, 32, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 10vw, 110px);
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(76, 201, 240, 0.18), transparent 60%),
    radial-gradient(700px 360px at 90% 20%, rgba(183, 148, 244, 0.16), transparent 65%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
}
.hero-inner { position: relative; }
.hero-eyebrow {
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-dim);
  max-width: 640px;
  font-size: 1.08rem;
  margin: 0 0 30px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-grad);
  color: #0b1020;
  box-shadow: 0 8px 22px rgba(76, 201, 240, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(76, 201, 240, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============ HERO STATS ============ */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 620px;
}
.hero-stats > div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.hero-stats strong {
  display: block;
  font-size: 1.6rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.hero-stats span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ============ SECTIONS ============ */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-eyebrow {
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lead { color: var(--text-dim); font-size: 1.05rem; max-width: 60ch; }

/* ============ ABOUT ============ */
.grid-2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list span { color: var(--muted); }
.info-list strong { color: var(--text); font-weight: 600; }

/* ============ SKILLS ============ */
.skills-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.skill-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}
.skill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 201, 240, 0.5);
  background: var(--panel-2);
}
.skill-card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.skill-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.skill-card li {
  font-size: 0.95rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.skill-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============ PROJECTS ============ */
.project-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 148, 244, 0.55);
  box-shadow: var(--shadow);
}
.project-tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(76, 201, 240, 0.08);
  border: 1px solid rgba(76, 201, 240, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}
.project-card h3 { margin: 0; font-size: 1.15rem; }
.project-card p { margin: 0; color: var(--text-dim); }
.project-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-meta li {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}
.project-impact {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  color: var(--text);
  font-size: 0.92rem;
}
.project-impact strong { color: var(--accent); }

/* ============ TIMELINE ============ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.4;
}
.timeline > li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 28px;
}
.timeline-dot {
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.15);
}
.timeline-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.timeline-head h3 { margin: 0; font-size: 1.05rem; }
.timeline-meta { color: var(--muted); font-size: 0.88rem; }
.timeline-content ul { margin: 0; padding-left: 18px; color: var(--text-dim); }
.timeline-content li { margin: 4px 0; }

/* ============ CERTIFICATIONS ============ */
.cert-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cert-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cert-card strong { color: var(--text); font-size: 0.98rem; }
.cert-card span { color: var(--muted); font-size: 0.85rem; }

/* ============ CONTACT ============ */
.contact-inner { text-align: center; }
.contact-lead { margin: 0 auto 28px; }
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.back-top { color: var(--text-dim); }

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    right: var(--pad-x);
    top: calc(100% + 8px);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex-direction: column;
    padding: 12px 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* ============ MOTION PREFERENCE ============ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
