/* ============================================
   ASHISH KUMAR - About Page Styles
   Unified Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* --- Design Tokens (same as homepage) --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(124, 58, 237, 0.4);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --accent-green: #00ffab;
  --accent-purple: #7c3aed;
  --accent-gold: #ffae00;
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  --gradient-main: linear-gradient(135deg, #7c3aed 0%, #00ffab 50%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #ffae00 100%);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent-purple), var(--accent-green)); border-radius: 4px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Background --- */
.bg-animated {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  background: var(--bg-primary);
}
.bg-animated::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 255, 171, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  animation: bgFloat 20s ease-in-out infinite;
}
@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, -2%) rotate(1deg); }
  50% { transform: translate(-1%, 3%) rotate(-1deg); }
  75% { transform: translate(-3%, -1%) rotate(0.5deg); }
}

/* --- Page Loader --- */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity 0.5s ease; pointer-events: none;
}
.page-loader.loaded { opacity: 0; }
.loader-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border-glass);
  border-top-color: var(--accent-purple);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Navbar (same as homepage) --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 0 40px;
  transition: var(--transition-smooth);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}
.nav-container {
  max-width: 1300px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; height: 80px;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px; z-index: 1001;
}
.nav-logo img {
  width: 48px; height: 48px; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.3));
}
.nav-logo span {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary); padding: 8px 18px; border-radius: 50px;
  transition: var(--transition-fast); position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary); background: var(--bg-glass);
}
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--gradient-main); border-radius: 2px;
}
.nav-links a i { margin-right: 6px; font-size: 0.85rem; }
.nav-links a.nav-github {
  background: var(--bg-glass); border: 1px solid var(--border-glass); margin-left: 8px;
}
.nav-links a.nav-github:hover {
  border-color: var(--accent-purple); box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}
.hamburger { display: none; flex-direction: column; cursor: pointer; z-index: 1001; gap: 5px; padding: 10px; }
.hamburger span { width: 28px; height: 2.5px; background: var(--text-primary); border-radius: 2px; transition: var(--transition-smooth); transform-origin: right; }
.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(1px, -1px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(1px, 1px); }

/* --- Shared Section Styles --- */
.section {
  padding: 100px 40px;
  position: relative;
}
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 40px;
  line-height: 1.2;
}
.section-title.center { text-align: center; }
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle {
  text-align: center; color: var(--text-muted); font-size: 0.9rem; margin: -20px 0 40px;
}

/* --- Glass Card Utility --- */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* --- About Section --- */
.about-grid, .intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p, .intro-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}
.about-text strong, .intro-text strong {
  color: var(--accent-green);
}
.about-hobbies {
  display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap;
}
.hobby-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  font-size: 0.9rem; color: var(--accent-gold);
  transition: var(--transition-fast);
}
.hobby-tag:hover { border-color: var(--accent-gold); }

.floating-image {
  display: flex; justify-content: center; align-items: center;
}
.floating-image img {
  max-width: 380px; animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* Intro Photo */
.intro-photo { display: flex; justify-content: center; }
.photo-frame {
  width: 260px; height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              var(--gradient-main) border-box;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
}
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-green));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-dot {
  position: absolute;
  left: -40px; top: 24px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
  z-index: 1;
}
.timeline-card {
  padding: 28px;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}
.timeline-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.timeline-badge {
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}
.timeline-badge.current {
  background: rgba(0, 255, 171, 0.1);
  border-color: rgba(0, 255, 171, 0.3);
  color: var(--accent-green);
}
.timeline-role {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
}
.skill-card {
  padding: 20px 10px;
  text-align: center;
  cursor: default;
}
.skill-card img {
  width: 50px; height: 50px;
  margin: 0 auto 10px;
  transition: var(--transition-smooth);
}
.skill-card:hover img {
  transform: scale(1.15) rotate(-5deg);
}
.skill-card p {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- Achievements Section --- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.achievement-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  align-items: flex-start;
}
.achievement-card img {
  width: 100px; height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.achievement-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.achievement-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  transition: var(--transition-fast);
}
.card-link:hover { color: var(--accent-green); }
.card-link i { font-size: 0.9rem; }

/* --- Certifications Section --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.cert-card {
  padding: 16px;
  text-align: center;
}
.cert-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.cert-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* --- Image Modal --- */
.modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
}
.modal.open { display: flex; }
.modal-image {
  max-width: 85%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-purple);
  animation: zoomIn 0.4s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2.5rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2001;
}
.modal-close:hover { color: var(--accent-green); }
#modalCaption {
  text-align: center; color: var(--text-muted);
  margin-top: 12px; font-size: 0.9rem;
  position: absolute; bottom: 30px;
  width: 100%;
}

/* --- Scroll Reveal Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.04s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.06s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.14s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.18s; }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(11) { transition-delay: 0.22s; }
.reveal-stagger.visible > *:nth-child(12) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(13) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(14) { transition-delay: 0.28s; }
.reveal-stagger.visible > *:nth-child(15) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(16) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(17) { transition-delay: 0.34s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-grid, .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .floating-image img { max-width: 280px; }
  .about-section .about-image-wrapper { order: -1; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center;
    gap: 8px; padding: 40px;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-glass);
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    font-size: 1.1rem; padding: 14px 24px; width: 100%; text-align: left;
    border-radius: var(--radius-md);
  }
  .section { padding: 60px 20px; }
  .achievements-grid { grid-template-columns: 1fr; }
  .achievement-card { flex-direction: column; align-items: center; text-align: center; }
  .cert-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
  .skill-card { padding: 14px 8px; }
  .skill-card img { width: 40px; height: 40px; }
  .photo-frame { width: 200px; height: 200px; }
}
