:root {
  --bg-color: #060608;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --accent-color: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-glow: rgba(59, 130, 246, 0.45);
  --card-bg: rgba(10, 12, 18, 0.35);
  --card-border: rgba(255, 255, 255, 0.14);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--bg-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Fixed Viewport Background Canvas */
.canvas-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: #000;
}

#animationCanvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.canvas-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 6, 8, 0.1) 20%, rgba(6, 6, 8, 0.65) 100%);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 1240px;
  height: 60px;
  background: rgba(10, 12, 18, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.brand-name {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.brand-sub {
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-item {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hud-badge.complete {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-icon {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-color);
}

/* Main Content Layer */
.scroll-content {
  position: relative;
  z-index: 10;
}

.container {
  width: calc(100% - 64px);
  max-width: 1140px;
  margin: 0 auto;
}

.section {
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
}

/* Transparent Card Component (No Blur, High Legibility) */
.glass-card {
  background: rgba(8, 10, 15, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(8, 10, 15, 0.45);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #60a5fa;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Hero Section */
.hero-section {
  padding-top: 140px;
}

.hero-card {
  padding: 56px 48px;
  text-align: center;
}

.status-badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.5);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-headline {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.95);
  margin-bottom: 20px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  max-width: 820px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #2563eb);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 100px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* About Me Section */
.about-card {
  padding: 48px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.about-body strong {
  color: #ffffff;
}

.divider {
  height: 1px;
  background: var(--card-border);
  margin: 36px 0;
}

.subsection-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.strength-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  padding: 24px 20px;
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.strength-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}

.strength-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.strength-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.strength-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Certifications Section Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cert-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.cert-badge.ibm {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.2);
}

.cert-badge.security {
  color: #f87171;
  background: rgba(239, 68, 68, 0.2);
}

.cert-badge.datacamp {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
}

.cert-issuer {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.cert-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.cert-sublist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.cert-subitem {
  font-size: 0.84rem;
  font-weight: 600;
  color: #67e8f9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.margin-top-30 {
  margin-top: 32px;
}

/* Academic Card */
.academic-card {
  padding: 40px;
}

.academic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edu-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.academic-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.academic-univ {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.academic-univ span {
  color: #60a5fa;
}

.academic-cgpa {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  padding: 12px 20px;
  border-radius: 12px;
}

.cgpa-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-emerald);
}

.cgpa-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.coursework-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.coursework-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coursework-cat {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.coursework-cat strong {
  color: #ffffff;
  margin-right: 6px;
}

.prior-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.prior-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prior-degree {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.prior-grade {
  font-size: 0.95rem;
  font-weight: 800;
  color: #34d399;
}

/* Skills Section Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.skill-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.skill-badge.hw {
  background: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.4);
}

.skill-badge.cms {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.4);
}

.skill-badge.tool {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

/* Projects Section */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-card {
  padding: 36px 36px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
  gap: 20px;
}

.project-type {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #67e8f9;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.project-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 4px 0 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.project-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 380px;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.project-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.project-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.project-bullet-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #22d3ee;
  font-weight: 900;
}

.project-actions {
  display: flex;
  gap: 12px;
}

/* Timeline / Experience */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-item {
  padding: 36px 36px;
  position: relative;
  border-left: 4px solid var(--accent-color);
}

.timeline-item:nth-child(2) {
  border-left-color: var(--accent-cyan);
}

.timeline-item:nth-child(3) {
  border-left-color: var(--accent-purple);
}

.timeline-item:nth-child(4) {
  border-left-color: var(--accent-emerald);
}

.timeline-header {
  margin-bottom: 20px;
}

.role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.2);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.role-badge.hw {
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.2);
}

.role-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.role-org {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.timeframe {
  color: #60a5fa;
}

.role-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.role-bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 900;
}

.link-inline {
  color: var(--accent-cyan);
  text-decoration: underline;
  word-break: break-all;
}

/* Contact Card */
.contact-card {
  padding: 48px;
  text-align: center;
  width: 100%;
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 12px 0 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.contact-info-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  padding: 24px 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-info-item:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #60a5fa;
}

.contact-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 12, 18, 0.65);
  border-top: 1px solid var(--card-border);
  z-index: 100;
  padding: 10px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.footer-stats {
  display: flex;
  gap: 18px;
}

.footer-stats strong {
  color: var(--text-main);
}

.progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-cyan));
  box-shadow: 0 0 10px var(--accent-glow);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .skills-grid, .strengths-grid, .cert-grid, .prior-grid {
    grid-template-columns: 1fr;
  }
  .academic-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .academic-cgpa {
    align-items: flex-start;
  }
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-header {
    flex-direction: column;
  }
  .hero-headline {
    font-size: 2.1rem;
  }
  .hero-card, .about-card, .contact-card, .academic-card {
    padding: 36px 24px;
  }
}

@media (max-width: 640px) {
  .navbar {
    width: calc(100% - 24px);
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  .container {
    width: calc(100% - 32px);
  }
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none !important;
}

/* Floating Scroll to Top Button (Covers bottom right corner watermark) */
.scroll-top-btn {
  position: fixed;
  bottom: 65px;
  right: 65px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-width: 120px;
  background: rgba(8, 10, 15, 0.96);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.95), 0 0 20px rgba(59, 130, 246, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(59, 130, 246, 0.6);
  color: #60a5fa;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9), 0 0 24px rgba(59, 130, 246, 0.45);
}


