/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1F2937;
  --navy-dark: #111827;
  --navy-light: #374151;
  --accent: #0969DA;
  --accent-light: #58a6ff;
  --accent-bg: #dbeafe;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --bg: #ffffff;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1e3a5f 100%);
  color: #fff;
  padding: 10rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(9,105,218,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(88,166,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero-photo {
  width: 260px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo {
    width: 200px;
    height: 250px;
    margin: 0 auto 1.5rem;
    order: -1;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(9,105,218,0.15);
  border: 1px solid rgba(9,105,218,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent-light), #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.hero-location svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #0757b5;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9,105,218,0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 100px;
  margin-top: 0.75rem;
}

/* ===== ABOUT / SUMMARY ===== */
.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== COMPETENCIES GRID ===== */
.competencies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.competency-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.competency-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.competency-tag svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  z-index: 1;
}

.timeline-item.current .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(9,105,218,0.15);
}

.timeline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(9,105,218,0.2);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
}

.timeline-company {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-company span {
  color: var(--text-light);
  font-weight: 400;
}

.timeline-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-details li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== CERTIFICATIONS ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cert-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(9,105,218,0.2);
}

.cert-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-bg), #eff6ff);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.cert-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.cert-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cert-info .cert-year {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.375rem;
}

/* ===== EDUCATION ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.edu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

.edu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(9,105,218,0.2);
}

.edu-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.edu-school {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===== FRAMEWORKS ===== */
.frameworks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.framework-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
}

.framework-badge:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.framework-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.framework-dot.blue { background: var(--accent); }
.framework-dot.green { background: #059669; }
.framework-dot.purple { background: #7C3AED; }
.framework-dot.orange { background: #D97706; }
.framework-dot.red { background: #DC2626; }
.framework-dot.teal { background: #0D9488; }

/* ===== AI & AUTOMATION ===== */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.ai-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.ai-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED 0%, var(--accent) 100%);
}

.ai-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(124,58,237,0.25);
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.ai-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f5f3ff 0%, var(--accent-bg) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7C3AED;
}

.ai-card-icon svg {
  width: 22px;
  height: 22px;
}

.ai-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  flex: 1;
  min-width: 0;
}

.ai-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 999px;
}

.ai-card-tag.personal {
  background: #f5f3ff;
  color: #7C3AED;
}

.ai-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-card-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.ai-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, var(--accent) 100%);
}

.ai-card-list strong {
  color: var(--navy);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
}
.footer-links a:hover { color: #fff; }

.footer-links a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-copy {
  font-size: 0.8rem;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-header {
    flex-direction: column;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .education-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions .btn {
    justify-content: center;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .nav, .hero::before, .hero::after { display: none; }
  
  .hero {
    padding: 2rem;
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1 {
    -webkit-text-fill-color: var(--navy) !important;
    color: var(--navy) !important;
    font-size: 2rem;
  }

  .hero-title-accent {
    -webkit-text-fill-color: var(--accent) !important;
    color: var(--accent) !important;
    background: none !important;
  }

  .hero-subtitle, .hero-location {
    color: var(--text-secondary) !important;
  }

  .hero-badge {
    border-color: var(--border) !important;
    background: none !important;
    color: var(--accent) !important;
  }

  .hero-actions { display: none; }

  .section {
    padding: 1.5rem 0;
    break-inside: avoid;
  }

  .section-alt {
    background: #fff !important;
  }

  .timeline-card, .cert-card, .edu-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .footer { display: none; }

  body { font-size: 11pt; }
}
