/* ============================================
   SHAHU WAGH — PERSONAL PORTFOLIO
   Modern, dark-themed, interactive design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card: #14141f;
  --bg-card-hover: #1a1a2e;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --accent: #6c63ff;
  --accent-light: #8b83ff;
  --accent-glow: rgba(108, 99, 255, 0.15);
  --accent-secondary: #00d4aa;
  --accent-tertiary: #ff6b6b;
  --border: #1e1e30;
  --border-hover: #2a2a44;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: white;
}

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  padding: 0.75rem 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

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

.mobile-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--accent);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(0, 212, 170, 0.05) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-roles {
  font-size: 1.25rem;
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 1rem;
  min-height: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 1.4s;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 30px rgba(108, 99, 255, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  padding: 6rem 2rem;
  position: relative;
}

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

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

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.section-title + .section-subtitle {
  margin-top: 0.5rem;
}

.section-title + :not(.section-subtitle) {
  margin-top: 3rem;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.photo-placeholder {
  width: 280px;
  height: 340px;
  background: var(--bg-card);
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.photo-placeholder:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.photo-initials {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.photo-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

.about-intro {
  font-size: 1.2rem !important;
  color: var(--text-primary) !important;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Timeline / Experience --- */
.timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-6px);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.5);
}

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

.timeline-content:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

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

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-org {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.timeline-details {
  list-style: none;
  margin-bottom: 1rem;
}

.timeline-details li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.timeline-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--accent-glow);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* --- Projects --- */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  max-width: 380px;
}

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

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover::before,
.project-card.expanded::before {
  transform: scaleX(1);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.project-tech span {
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.project-expand-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: var(--transition);
}

.project-card:hover .project-expand-hint {
  color: var(--accent);
}

.project-card.expanded .project-expand-hint {
  display: none;
}

.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin-top 0.5s ease;
  margin-top: 0;
}

.project-card.expanded .project-details {
  max-height: 300px;
  margin-top: 1rem;
}

.project-details ul {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.project-details li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.project-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- Project Links --- */
.project-link {
  display: inline-block;
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* --- Impact Metrics --- */
.impact-metric {
  color: var(--accent-secondary);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* --- Awards --- */
.awards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.award-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 240px;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.award-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.15);
}

.award-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.award-rank {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.award-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.award-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.award-detail {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* --- Skills --- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.skill-category-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-hover);
  transition: var(--transition);
  cursor: default;
}

.skill-pill:hover {
  transform: translateY(-2px);
}

.skill-pill[data-level="expert"] {
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.3);
  color: var(--accent-light);
}

.skill-pill[data-level="advanced"] {
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.25);
  color: var(--accent-secondary);
}

.skill-pill[data-level="intermediate"] {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.25);
  color: var(--accent-tertiary);
}

/* --- Beyond Code --- */
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.beyond-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.beyond-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* --- Single image (no slideshow) --- */
.beyond-single-image {
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.beyond-single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.beyond-card:hover .beyond-single-image img {
  transform: scale(1.04);
}

/* --- Slideshow --- */
.beyond-slideshow {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-secondary));
}

.slideshow-slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.slideshow-slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.slideshow-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.beyond-emoji {
  font-size: 3rem;
  transition: transform 0.4s ease;
}

.beyond-card:hover .beyond-emoji {
  transform: scale(1.2);
}

.beyond-image-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 15, 0.6);
  color: var(--text-primary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
}

.slideshow-btn:hover {
  background: rgba(108, 99, 255, 0.7);
}

.slideshow-prev { left: 8px; }
.slideshow-next { right: 8px; }

.beyond-slideshow.has-slides .slideshow-btn {
  display: flex;
}

.slideshow-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 6px;
  z-index: 2;
}

.beyond-slideshow.has-slides .slideshow-dots {
  display: flex;
}

.slideshow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.slideshow-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* --- Beyond Info --- */
.beyond-info {
  padding: 1.25rem;
}

.beyond-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.beyond-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.beyond-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.beyond-link:hover {
  color: var(--accent);
}

/* --- Coin Collecting Card --- */
.beyond-card-coins .beyond-image-placeholder {
  background: linear-gradient(135deg, #1a1510, #0f0f18);
}

.beyond-card-coins:hover {
  border-color: #c9a84c;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.12);
}

/* --- Publications --- */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.publication-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.publication-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.publication-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.publication-info {
  flex: 1;
}

.publication-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.publication-source {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.publication-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: var(--transition);
}

.publication-card:hover .publication-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* --- Languages (Spoken) --- */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.language-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

.language-card:hover {
  border-color: var(--border-hover);
}

.language-name {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.language-level {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.75rem;
}

.language-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.language-fill {
  height: 100%;
  width: var(--fill);
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 2px;
  transition: width 1s ease;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  gap: 1.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.15);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .beyond-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

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

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

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

  .award-card {
    flex: 0 0 calc(50% - 0.75rem);
  }

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

  .hero-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

@media (max-width: 480px) {
  .award-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

.about-photo {
  width: 280px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.6);
  transform-origin: center center;
}