/* 04-glass-resume — Glassmorphism CV */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0F172A;
  --gold: #F59E0B;
  --purple: #8B5CF6;
  --text: #F8FAFC;
  --text-muted: rgba(248, 250, 252, 0.72);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Gradient blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.blob--gold {
  width: 420px;
  height: 420px;
  background: var(--gold);
  top: -120px;
  right: -80px;
}

.blob--purple {
  width: 380px;
  height: 380px;
  background: var(--purple);
  bottom: 10%;
  left: -100px;
}

.blob--blue {
  width: 300px;
  height: 300px;
  background: #3B82F6;
  top: 40%;
  right: 20%;
  opacity: 0.25;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--purple);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo svg { color: var(--gold); flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--glass);
  outline: none;
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
  background: rgba(245, 158, 11, 0.12);
}

.nav-toggle {
  display: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 10px;
  cursor: pointer;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

main { min-height: calc(100vh - var(--nav-h) - 120px); }

/* Glass card */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.glass:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

.glass-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .glass-grid--2 { grid-template-columns: 1fr 1fr; }
  .glass-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .glass-grid--sidebar { grid-template-columns: 320px 1fr; }
}

/* Hero */
.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero { grid-template-columns: auto 1fr; }
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  border: 3px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.hero .subtitle {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 1rem;
}

.hero .tagline {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 540px;
}

/* Typography */
h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2 svg { color: var(--gold); flex-shrink: 0; }

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.section { margin-bottom: 2rem; }

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag {
  padding: 0.35rem 0.85rem;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Skill bars */
.skill-item { margin-bottom: 1.25rem; }
.skill-item:last-child { margin-bottom: 0; }

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  transition: width 1s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--purple);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.55);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn--outline:hover {
  background: rgba(245, 158, 11, 0.1);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Timeline / Experience */
.timeline { position: relative; }

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
  border-left: 2px solid rgba(245, 158, 11, 0.35);
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.timeline-meta {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-company {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.timeline ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.timeline li { margin-bottom: 0.35rem; }

/* Education cards */
.edu-card { margin-bottom: 1rem; }
.edu-card:last-child { margin-bottom: 0; }

.edu-degree { color: var(--gold); font-weight: 500; font-size: 0.9rem; }

/* Contact form */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea { min-height: 140px; resize: vertical; }

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

input::placeholder,
textarea::placeholder {
  color: rgba(248, 250, 252, 0.4);
}

/* Social links */
.social-grid {
  display: grid;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--glass-hover);
  border-color: var(--gold);
  outline: none;
}

.social-link svg { color: var(--gold); flex-shrink: 0; }

/* Availability badge */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.info-list li:last-child { border-bottom: none; }
.info-list svg { color: var(--gold); flex-shrink: 0; margin-top: 0.15rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

/* Responsive nav */
@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: none;
  }

  .nav-links.is-open { display: flex; }

  .nav-links a { padding: 0.85rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
