/* CV Website styles */

/* ── Variables ── */
:root {
  --bg: #0d1117;
  --bg-alt: #0a0e14;
  --card: #161b22;
  --card-hover: #1c2330;
  --border: #21262d;
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.15);
  --teal-dim: rgba(45, 212, 191, 0.6);
  --white: #f0f6fc;
  --muted: #8b949e;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1100px;
  --radius: 12px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 1rem; }
p { color: var(--muted); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin-bottom: 3rem; }

/* ── Navbar ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--teal);
  letter-spacing: 0.05em;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 0.45rem 1.2rem;
  background: var(--teal);
  color: #0d1117;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: #5eead4;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Animated dot-grid background */
.hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #21262d 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  animation: bgShift 20s linear infinite;
}
@keyframes bgShift {
  0% { background-position: 0 0; }
  100% { background-position: 32px 32px; }
}

/* Teal glow orb */
.glow-orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,212,191,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero-photo {
  flex-shrink: 0;
}
.hero-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
  box-shadow: 0 0 40px rgba(45,212,191,0.25), 0 0 80px rgba(45,212,191,0.1);
}
.hero-text {
  flex: 1;
}
@media (max-width: 768px) {
  .hero-content { flex-direction: column; gap: 2rem; text-align: center; }
  .hero-photo img { width: 160px; height: 160px; }
  .hero-tagline { max-width: 100%; }
  .hero-cta { justify-content: center; }
}
.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 1rem;
}
h1 .teal {
  color: var(--teal);
  text-shadow: 0 0 40px rgba(45,212,191,0.4);
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  margin: 1.5rem 0 1rem;
  font-weight: 500;
}
.hero-tagline {
  max-width: 560px;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--teal);
  color: #0d1117;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 0.95rem;
}
.btn-primary:hover {
  background: #5eead4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,212,191,0.3);
}
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 0.95rem;
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--teal-dim);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(45,212,191,0.08);
}
.card-icon {
  font-size: 1.8rem;
  color: var(--teal);
  margin-bottom: 1rem;
}
.card h3 { color: var(--white); }
.card-muted { opacity: 0.5; }
.card-muted:hover { opacity: 0.7; transform: none; box-shadow: none; }
.project-banner {
  display: block;
  max-width: 100%;
  width: auto;
  margin: 0 0 1.5rem 0;
  border-radius: 6px;
  image-rendering: -webkit-optimize-contrast;
}

/* AI strip */
.ai-strip {
  text-align: center;
  color: var(--teal);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  border: 1px dashed rgba(45,212,191,0.3);
  border-radius: var(--radius);
}

/* ── About ── */
.about-grid { max-width: 860px; }
.about-text > p { margin-bottom: 1.5rem; }
.about-badges { display: flex; flex-direction: column; gap: 1rem; }
.ai-badge {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}
.badge-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.ai-badge strong { color: var(--white); display: block; margin-bottom: 0.25rem; }
.ai-badge p { margin: 0; font-size: 0.9rem; }

/* ── Tech tags ── */
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tech-tags span, .tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 999px;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 500;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), rgba(45,212,191,0.1));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
  box-shadow: 0 0 12px rgba(45,212,191,0.5);
}
.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  transition: border-color 0.3s;
  position: relative;
}
.timeline-card:hover { border-color: var(--teal-dim); }
.timeline-card.active { border-color: rgba(45,212,191,0.4); }
.timeline-period {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}
.timeline-card h3 { color: var(--white); margin-bottom: 0.25rem; }
.badge-current {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(45,212,191,0.15);
  color: var(--teal);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .timeline { padding-left: 3rem; }
  .timeline-card { max-width: 600px; }
}

/* ── Certifications ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  transition: all 0.3s;
}
.cert-card:hover {
  border-color: var(--teal-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45,212,191,0.08);
}
.cert-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.cert-info h3 { color: var(--white); font-size: 1rem; }
.cert-info p { font-size: 0.85rem; }
.cert-arrow { margin-left: auto; color: var(--teal); font-size: 1.2rem; flex-shrink: 0; }

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Languages ── */
.languages h4 { margin-bottom: 1.5rem; }
.lang-list { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }
.lang-item {
  display: grid;
  grid-template-columns: 2rem 120px 1fr 100px;
  align-items: center;
  gap: 1rem;
}
.lang-flag { font-size: 1.3rem; }
.lang-name { color: var(--white); font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; }
.lang-bar {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-fill {
  height: 100%;
  background: linear-gradient(to right, var(--teal), #5eead4);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease 0.3s;
}
.lang-fill.animated { transform: scaleX(1); }
.lang-level { font-size: 0.8rem; color: var(--muted); text-align: right; }

@media (max-width: 600px) {
  .lang-item { grid-template-columns: 2rem 1fr 80px; }
  .lang-bar { display: none; }
}

/* ── Contact ── */
.contact-wrap { text-align: center; }
.contact-sub { font-size: 1.1rem; margin: 0.75rem 0 2rem; }
.contact-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .cert-card { flex-direction: column; text-align: center; }
  .cert-arrow { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
}
