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

/* ==========================================================================
   CSS Variables & Theme Configuration
   ========================================================================== */
:root {
  /* Colors - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-primary-rgb: 255, 255, 255;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-color: #059669;
  --accent-light: #10b981;

  --gradient-primary: linear-gradient(135deg, #2563eb, #3b82f6);
  --gradient-accent: linear-gradient(135deg, #059669, #10b981);
  --gradient-mixed: linear-gradient(135deg, #2563eb, #059669);

  --border-color: #e2e8f0;

  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(226, 232, 240, 0.8);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --h1-size: clamp(2.5rem, 5vw, 4rem);
  --h2-size: clamp(2rem, 4vw, 3rem);
  --h3-size: clamp(1.25rem, 2.5vw, 1.75rem);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.25rem;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-primary-rgb: 15, 23, 42;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --primary-color: #3b82f6;
  --primary-hover: #60a5fa;
  --accent-color: #10b981;

  --border-color: #334155;

  /* Glassmorphism in dark mode */
  --card-bg: rgba(30, 41, 59, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

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

@keyframes shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  25% { transform: translate(30px, -20px) rotate(90deg); opacity: 0.8; }
  50% { transform: translate(-20px, -40px) rotate(180deg); opacity: 0.5; }
  75% { transform: translate(20px, -10px) rotate(270deg); opacity: 0.7; }
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: var(--text-primary);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 1.5rem;
}

.loading-content p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(var(--bg-primary-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-title {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-mixed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

.nav-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: var(--bg-tertiary);
}

.nav-link i {
  font-size: 0.9rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  transition: all var(--transition-base);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.25);
  pointer-events: none;
  animation: ripple 0.6s ease-out;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 2rem 4rem;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
  z-index: 0;
}

[data-theme="dark"] .hero-background {
  background:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0.04;
}

.hero-particles::before {
  top: 10%;
  left: 10%;
  background: var(--primary-color);
  animation: particleFloat 15s ease-in-out infinite;
}

.hero-particles::after {
  bottom: 15%;
  right: 10%;
  background: var(--accent-color);
  animation: particleFloat 20s ease-in-out infinite reverse;
}

.hero-content {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
  position: relative;
}

.hero-image-container {
  position: relative;
  width: 260px;
  height: 260px;
  margin-bottom: 2.5rem;
  flex-shrink: 0;
}

.hero-image-border {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gradient-mixed);
  z-index: 1;
  animation: rotateGradient 10s linear infinite;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 5px solid var(--bg-primary);
  z-index: 2;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-base);
}

.hero-image:hover {
  transform: scale(1.03);
}

.hero-title {
  font-size: var(--h1-size);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-title-line {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 1.2em;
}

.hero-subtitle {
  font-size: var(--h3-size);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero-description {
  max-width: 620px;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.hero-badge i {
  color: var(--primary-color);
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.hero-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
}

.hero-btn:hover::after {
  animation: shine 1.2s ease;
}

.hero-btn.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.hero-btn.primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

.hero-btn.secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.hero-btn.secondary:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.scroll-indicator i {
  animation: bounce 2s infinite;
}

/* ==========================================================================
   Sections - Common
   ========================================================================== */
.main-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
}

.section {
  display: none;
  min-height: calc(100vh - var(--header-height));
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: var(--h2-size);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-icon {
  color: var(--primary-color);
  font-size: 0.85em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 500;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.about-text,
.about-skills {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about-text:hover,
.about-skills:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.about-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-heading i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.about-paragraph {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.about-paragraph:last-child {
  margin-bottom: 0;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.skill-item:hover {
  transform: translateX(6px);
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

.skill-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.skill-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.skill-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Resume Section */
.resume-section {
  margin-top: 1rem;
}

.resume-heading {
  justify-content: center;
  font-size: 1.5rem !important;
  margin-bottom: 2rem !important;
}

.resume-viewer-container {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.resume-viewer {
  width: 100%;
  height: 900px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.resume-viewer iframe {
  border: none;
  border-radius: var(--border-radius-md);
  background: white;
}

.resume-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.resume-download-btn,
.resume-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  cursor: pointer;
}

.resume-download-btn {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.resume-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.resume-view-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.resume-view-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* ==========================================================================
   Research Section
   ========================================================================== */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.research-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-mixed);
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.ai-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, var(--card-bg) 100%);
}

.quantum-card {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.04) 0%, var(--card-bg) 100%);
}

[data-theme="dark"] .ai-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, var(--card-bg) 100%);
}

[data-theme="dark"] .quantum-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--card-bg) 100%);
}

.research-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.research-icon {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.research-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.research-card-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.research-list {
  list-style: none;
  padding: 0;
}

.research-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.research-list i {
  color: var(--accent-color);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.research-philosophy {
  background: var(--gradient-accent);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.research-philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.philosophy-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.philosophy-icon {
  font-size: 1.2rem;
  opacity: 0.9;
}

.philosophy-text {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* ==========================================================================
   Sports Section
   ========================================================================== */
.sports-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.sports-philosophy,
.sports-interests {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sports-philosophy:hover,
.sports-interests:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.sports-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.sports-heading i {
  color: var(--primary-color);
}

.sports-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.sports-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sport-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-base);
}

.sport-card:hover {
  transform: translateX(6px);
  background: var(--bg-tertiary);
}

.sport-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.endurance-card .sport-icon { color: #059669; }
.endurance-card { border-left-color: #059669; }
.aquatic-card .sport-icon { color: #0ea5e9; }
.aquatic-card { border-left-color: #0ea5e9; }
.team-card .sport-icon { color: #f59e0b; }
.team-card { border-left-color: #f59e0b; }

.sport-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.sport-description {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.sports-achievements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.achievement-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.achievement-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.achievement-card:nth-child(1) .achievement-icon {
  color: #b45309;
}

.achievement-card:nth-child(2) .achievement-icon {
  color: #1e40af;
}

.achievement-card:nth-child(3) .achievement-icon {
  color: #065f46;
}

.achievement-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.achievement-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   Certifications Section
   ========================================================================== */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.certification-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.certification-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.certification-card:hover .cert-image {
  transform: scale(1.05);
}

.certification-image {
  height: 200px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.cert-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.certification-content {
  padding: 1.5rem;
}

.certification-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cert-icon {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.nptel-card .cert-icon { color: #1e40af; }
.quantum-error-card .cert-icon { color: #7c3aed; }
.teachnook-course-card .cert-icon { color: #059669; }
.ibm-crypto-card .cert-icon { color: #dc2626; }

.cert-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.cert-institution {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.cert-badge-container {
  margin-bottom: 0.75rem;
}

.cert-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cert-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cert-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.cert-authority {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.cert-authority i {
  color: var(--primary-color);
  font-size: 0.75rem;
}

/* Certifications Summary */
.certifications-summary {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.summary-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-number {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--gradient-mixed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-text p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   Certificate Modal
   ========================================================================== */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cert-modal.active {
  display: flex;
}

.cert-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalOverlayIn 0.3s ease;
}

@keyframes modalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalContentIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cert-modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalContentIn 0.35s ease;
}

.cert-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1.1rem;
  z-index: 10;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.cert-modal-close:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.cert-modal-image-container {
  background: var(--bg-secondary);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.cert-modal-image {
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
}

.cert-modal-details {
  padding: 2rem;
}

.cert-modal-badge-container {
  margin-bottom: 1rem;
}

.cert-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cert-modal-institution {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.cert-modal-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .about-content,
  .sports-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .research-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }

  .sports-achievements {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    width: 90%;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-sm);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-image-container {
    width: 180px;
    height: 180px;
  }

  .hero-badges {
    gap: 0.5rem;
  }

  .hero-badge {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .section-title {
    flex-direction: column;
    gap: 0.5rem;
  }

  .resume-viewer {
    height: 600px;
  }

  .sports-achievements {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .summary-stats {
    gap: 2rem;
  }

  .cert-details {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Responsive - Small Mobile
   ========================================================================== */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-subtitle {
    display: none;
  }

  .hero-image-container {
    width: 140px;
    height: 140px;
  }

  .hero-content {
    padding: 0 0.5rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-container {
    padding: 0;
  }

  .about-text,
  .about-skills,
  .sports-philosophy,
  .sports-interests,
  .resume-viewer-container {
    padding: 1.25rem;
  }

  .resume-viewer {
    height: 500px;
  }

  .summary-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-image-container,
  .hero-image-border,
  .hero-particles::before,
  .hero-particles::after,
  .scroll-indicator i {
    animation: none !important;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .header,
  .hero,
  .loading-screen,
  .hero-scroll-indicator,
  .hero-actions,
  .resume-actions,
  .footer {
    display: none !important;
  }

  .section {
    display: block !important;
    page-break-inside: avoid;
    padding: 2rem 0;
  }

  body {
    background: white;
    color: black;
  }
}