/* ==========================================
   EPIC AAA GAME DEVELOPER PORTFOLIO
   Maximum Power - Professional Grade
   ========================================== */

/* CSS Custom Properties - Epic Design System */
:root {
  /* Epic Color Palette */
  --epic-primary: #00d4ff;
  --epic-primary-dark: #0099cc;
  --epic-primary-light: #33e0ff;
  --epic-secondary: #ff6b6b;
  --epic-accent: #4ecdc4;
  --epic-gold: #ffd700;
  --epic-purple: #9c27b0;
  --epic-dark: #0a0a0a;
  --epic-darker: #000000;
  --epic-light: #f8f9fa;
  --epic-gray: #1a1a1a;
  --epic-gray-light: #2d2d2d;
  --epic-gray-lighter: #404040;

  /* Epic Gradients */
  --gradient-epic: linear-gradient(135deg, var(--epic-primary) 0%, var(--epic-purple) 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-button: linear-gradient(135deg, var(--epic-primary) 0%, var(--epic-accent) 100%);

  /* Epic Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Epic Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Epic Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Epic Shadows */
  --shadow-epic: 0 1.25rem 2.5rem rgba(0, 212, 255, 0.3);
  --shadow-glow: 0 0 1.25rem rgba(0, 212, 255, 0.5);
  --shadow-card: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.3);
  --shadow-button: 0 0.3125rem 0.9375rem rgba(0, 212, 255, 0.4);

  /* Epic Transitions */
  --transition-epic: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s ease;
  --transition-slow: 0.8s ease;

  /* Epic Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

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

/* Epic Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Anchor scroll offset so fixed navbar doesn't cover section titles */
#hero, #about, #projects, #game-jams, #contact {
  scroll-margin-top: 5rem;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--epic-light);
  background-color: var(--epic-darker);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: clamp(60px, 8vh, 80px);
}

/* Epic Loading Screen */
.epic-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--epic-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

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

.loader-logo {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.loader-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.loader-subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
  letter-spacing: 0.1em;
}

.loader-progress {
  width: clamp(20rem, 50vw, 30rem);
  height: 0.125rem;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  border-radius: 0.0625rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-epic);
  width: 0%;
  animation: loadProgress 2s ease-out forwards;
}

/* Epic Skip Link */
.epic-skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--epic-primary);
  color: var(--epic-darker);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
}

.epic-skip-link:focus {
  top: 6px;
}

/* Epic Navigation */
.epic-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  z-index: var(--z-fixed);
  transition: var(--transition-epic);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(60px, 8vh, 80px);
}

.nav-brand .brand-link {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  text-decoration: none;
  color: var(--epic-primary);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  transition: var(--transition-fast);
}

.brand-icon {
  width: clamp(30px, 5vw, 40px);
  height: clamp(30px, 5vw, 40px);
  background: var(--gradient-epic);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--epic-darker);
}

.nav-menu {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav-link {
  color: var(--epic-light);
  text-decoration: none;
  font-weight: 500;
  padding: clamp(0.3rem, 1vh, 0.5rem) clamp(0.5rem, 2vw, 1rem);
  border-radius: 25px;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--epic-primary);
  background: rgba(0, 212, 255, 0.1);
}

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

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--epic-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Epic Hero Section */
.epic-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

.hero-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  opacity: 0.1;
  animation: gradientShift 10s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-badge {
  margin-bottom: 2rem;
}

.badge-text {
  background: var(--gradient-epic);
  color: var(--epic-darker);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  animation: badgeGlow 2s ease-in-out infinite alternate;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.title-line {
  display: inline-block;
  background: linear-gradient(135deg, var(--epic-light) 0%, var(--epic-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line.highlight {
  background: var(--gradient-epic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  line-height: 1.6;
  color: rgba(248, 249, 250, 0.8);
  max-width: min(90vw, 600px);
  margin-bottom: clamp(1.5rem, 5vh, 3rem);
}

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 5vw, 3rem);
  margin-bottom: clamp(1.5rem, 5vh, 3rem);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  background: var(--gradient-epic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: rgba(248, 249, 250, 0.6);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-epic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border: none;
  border-radius: 50px;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-epic);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-epic.primary {
  background: var(--gradient-button);
  color: var(--epic-darker);
  box-shadow: var(--shadow-button);
}

.btn-epic.secondary {
  background: rgba(248, 249, 250, 0.1);
  color: var(--epic-light);
  border: 2px solid var(--epic-primary);
}

.btn-epic:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-epic);
}

.btn-epic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-epic:hover::before {
  left: 100%;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.hero-text {
  width: 100%;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  box-sizing: border-box;
  position: relative;
  z-index: 20;
  background-color: rgba(10, 10, 10, 0.85);
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  color: var(--epic-light);
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero-avatar {
  position: relative;
  width: clamp(200px, 40vw, 400px);
  height: clamp(200px, 40vw, 400px);
}

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-epic);
  padding: 8px;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--epic-darker);
}

.avatar-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: var(--gradient-epic);
  border-radius: 50%;
  opacity: 0.3;
  animation: glowPulse 3s ease-in-out infinite;
  z-index: -1;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.floating-element {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--gradient-epic);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--epic-darker);
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-element:nth-child(1) { top: 10%; right: 20%; }
.floating-element:nth-child(2) { top: 20%; left: 10%; }
.floating-element:nth-child(3) { bottom: 20%; left: 15%; }
.floating-element:nth-child(4) { bottom: 10%; right: 15%; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(248, 249, 250, 0.6);
}

.scroll-arrow {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* Epic Sections */
.epic-section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.epic-section.dark {
  background: linear-gradient(135deg, var(--epic-gray) 0%, var(--epic-darker) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-badge {
  display: inline-block;
  background: var(--gradient-epic);
  color: var(--epic-darker);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--epic-light) 0%, var(--epic-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(248, 249, 250, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Epic About Section */
#about {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--epic-gray) 0%, var(--epic-darker) 100%);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.about-content {
  perspective: 1000px;
  width: 100%;
}

.about-card {
  background: var(--gradient-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: var(--transition-epic);
}

.about-card:hover {
  transform: rotateY(5deg) rotateX(5deg);
  box-shadow: var(--shadow-epic);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-epic);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--epic-darker);
  font-size: 1.5rem;
}

.card-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--epic-primary);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(248, 249, 250, 0.8);
  margin-bottom: 1.5rem;
}

.tech-stack {
  background: var(--gradient-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.tech-stack h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--epic-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.tech-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition-fast);
  cursor: pointer;
}

.tech-item:hover {
  background: var(--gradient-epic);
  color: var(--epic-darker);
  transform: translateY(-5px);
}

.tech-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.tech-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Epic Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 25vw, 350px), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2rem;
}

.project-card-epic {
  position: relative;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-epic);
  cursor: pointer;
}

.project-card-epic.large {
  grid-column: span 2;
  height: 600px;
}

.project-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.project-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 212, 255, 0.3) 100%);
  opacity: 0;
  transition: var(--transition-epic);
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  transform: translateY(100%);
  transition: var(--transition-epic);
}

.project-card-epic:hover .project-content {
  transform: translateY(0);
}

.project-card-epic:hover .project-overlay {
  opacity: 1;
}

.project-card-epic:hover .project-bg {
  transform: scale(1.1);
}

.project-header {
  margin-bottom: 1rem;
}

.project-category {
  background: var(--gradient-epic);
  color: var(--epic-darker);
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--epic-light);
  margin-bottom: 1rem;
}

.project-description {
  color: rgba(248, 249, 250, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: rgba(0, 212, 255, 0.2);
  color: var(--epic-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--epic-primary);
}

.project-footer {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--epic-light);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition-fast);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.project-link:hover {
  background: var(--epic-primary);
  color: var(--epic-darker);
  transform: translateY(-2px);
}

.project-link.primary {
  background: var(--gradient-epic);
  color: var(--epic-darker);
}

/* Epic Game Jams Timeline */
.game-jams-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.game-jams-timeline::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-epic);
}

.timeline-item {
  position: relative;
  margin-left: 100px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.timeline-marker {
  position: absolute;
  left: -35px;
  top: 0;
  width: 70px;
  height: 70px;
  background: var(--gradient-epic);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--epic-darker);
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.timeline-content {
  background: var(--gradient-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.timeline-date {
  color: var(--epic-primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--epic-light);
  margin-bottom: 1rem;
}

.timeline-description {
  color: rgba(248, 249, 250, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-achievement {
  background: var(--epic-gold);
  color: var(--epic-darker);
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

/* Epic Contact Section */
.contact-content {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: var(--gradient-epic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.3rem;
  color: rgba(248, 249, 250, 0.7);
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--gradient-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-epic);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-epic);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-epic);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--epic-darker);
  font-size: 2rem;
}

.contact-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--epic-primary);
  margin-bottom: 1rem;
}

.contact-card p {
  color: rgba(248, 249, 250, 0.7);
  margin-bottom: 2rem;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient-epic);
  color: var(--epic-darker);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-epic);
}

.academic-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.institution {
  font-weight: 600;
  color: var(--epic-primary);
}

.graduation {
  font-size: 0.9rem;
  color: rgba(248, 249, 250, 0.6);
}

/* Epic Footer */
.epic-footer {
  background: var(--epic-darker);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--epic-primary);
}

.footer-tagline {
  color: rgba(248, 249, 250, 0.6);
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  color: var(--epic-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section a {
  display: block;
  color: rgba(248, 249, 250, 0.7);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--epic-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-copyright {
  color: rgba(248, 249, 250, 0.5);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--epic-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--epic-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--epic-primary);
  color: var(--epic-darker);
  transform: translateY(-2px);
}

/* Epic Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes badgeGlow {
  0% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
  100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
  100% { text-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translate(0); }
  40%, 43% { transform: translate(0, -10px); }
  70% { transform: translate(0, -5px); }
  90% { transform: translate(0, -2px); }
}

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

/* Desktop Project Card Hover Expansion */
@media (min-width: 577px) {
  .project-card-epic:hover {
    height: auto;
    min-height: 500px;
  }

  .project-card-epic:hover .project-content {
    position: relative;
    transform: none;
    background: rgba(0, 0, 0, 0.9);
    height: auto;
    min-height: 100%;
  }

  .project-card-epic:hover .project-overlay {
    opacity: 0;
  }
}

/* Epic Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: clamp(60px, 8vh, 80px);
    left: -100%;
    width: 100%;
    height: calc(100vh - clamp(60px, 8vh, 80px));
    background: var(--epic-darker);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-avatar {
    width: clamp(200px, 50vw, 300px);
    height: clamp(200px, 50vw, 300px);
  }

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

  .project-card-epic.large {
    grid-column: span 1;
    height: 500px;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .nav-container {
    padding: 0 1rem;
  }

  /* Mobile Hero Redesign */
  .epic-hero {
    flex-direction: column;
    padding: clamp(1rem, 4vw, 2rem) clamp(0.5rem, 2vw, 1rem);
    gap: clamp(1rem, 4vw, 2rem);
    min-height: auto;
  }

  .hero-content {
    padding: 0;
  }

  .hero-content .row {
    flex-direction: column;
    gap: clamp(1rem, 4vw, 2rem);
  }

  .hero-visual,
  .hero-text {
    width: 100%;
    order: unset !important; /* Reset Bootstrap order */
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-visual {
    text-align: center;
    margin-bottom: 1rem;
  }

  .hero-avatar {
    width: clamp(150px, 40vw, 200px);
    height: clamp(150px, 40vw, 200px);
    margin: 0 auto;
    max-width: 100%;
    aspect-ratio: 1;
  }

  .avatar-image {
    object-fit: cover;
  }

  .hero-text {
    text-align: center;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(0.5rem, 2vw, 1rem);
    background: rgba(10, 10, 10, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    word-wrap: break-word;
    hyphens: auto;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 1rem;
  }

  .hero-description {
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 3vw, 1rem);
  }

  .hero-stats {
    justify-content: center;
    margin-bottom: 2rem;
  }

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

  .btn-epic {
    width: auto;
    min-width: clamp(120px, 25vw, 140px);
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
  }

  .about-card,
  .tech-stack {
    padding: clamp(1.5rem, 4vw, 2rem) clamp(0.5rem, 2vw, 1rem);
  }

  .timeline-item {
    margin-left: 50px;
  }

  .timeline-marker {
    width: 50px;
    height: 50px;
    left: -25px;
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: clamp(2rem, 5vw, 4rem);
  }

  .section-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .contact-grid {
    gap: clamp(1rem, 3vw, 2rem);
  }

  .contact-card {
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
  }

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

  .project-card-epic {
    height: auto;
    min-height: 400px;
  }

  .project-card-epic.large {
    grid-column: span 1;
    height: auto;
    min-height: 500px;
  }

  /* Mobile: hide project details by default; reveal on tap (hover/focus) */
  .project-card-epic .project-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    transform: translateY(100%);
    transition: var(--transition-epic);
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 1.5rem;
  }
  .project-card-epic .project-overlay {
    opacity: 0;
    transition: var(--transition-epic);
  }

  /* On tap (mobile hover/focus), expand card and show full text */
  .project-card-epic:hover,
  .project-card-epic:focus-within {
    height: auto;
    min-height: 400px;
  }
  .project-card-epic:hover .project-content,
  .project-card-epic:focus-within .project-content {
    position: relative;
    transform: none;
    background: rgba(0, 0, 0, 0.6);
  }
  .project-card-epic:hover .project-overlay,
  .project-card-epic:focus-within .project-overlay {
    display: none;
  }
}

/* Epic Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Epic Print Styles */
@media print {
  .epic-navbar,
  .scroll-indicator,
  .floating-elements,
  .contact-buttons {
    display: none !important;
  }

  .epic-hero,
  .epic-section {
    background: white !important;
    color: black !important;
  }

  .project-card-epic,
  .contact-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

.project-visual {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
  padding: 1rem;
  box-sizing: border-box;
}

.project-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  margin-top: 4rem; /* Added for better spacing between sections */
}

.section-header {
  margin-top: 6rem !important; /* Added for better vertical spacing above section titles */
  margin-bottom: 3rem;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  margin-top: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: var(--gradient-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: var(--transition-epic);
  width: 100%;
  max-width: 350px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-epic);
}

/* Epic Media Styles */
.gallery-image,
.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* Fix for navbar and left box layout issue */
.epic-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(60px, 8vh, 80px);
  z-index: var(--z-fixed);
  background-color: rgba(10, 10, 10, 0.95);
}

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