/* CSS Variables */
:root {
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-color: #333;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --white: #ffffff;
  --font-main: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --max-width: 1100px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary-color: #ecf0f1;
  --text-color: #ecf0f1;
  --light-gray: #1a1a2e;
  --medium-gray: #16213e;
  --white: #0f0f23;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
}

/* DNA Helix Loading Animation */
.dna-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.dna-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.dna-helix {
  position: relative;
  width: 60px;
  height: 160px;
  transform-style: preserve-3d;
  animation: helixRotate 3s linear infinite;
}

@keyframes helixRotate {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(-360deg); }
}

/* Base pair rows */
.dna-row {
  position: absolute;
  width: 100%;
  height: 8px;
  transform-style: preserve-3d;
}

.dna-row:nth-child(1) { top: 0%; transform: rotateY(0deg); }
.dna-row:nth-child(2) { top: 5%; transform: rotateY(18deg); }
.dna-row:nth-child(3) { top: 10%; transform: rotateY(36deg); }
.dna-row:nth-child(4) { top: 15%; transform: rotateY(54deg); }
.dna-row:nth-child(5) { top: 20%; transform: rotateY(72deg); }
.dna-row:nth-child(6) { top: 25%; transform: rotateY(90deg); }
.dna-row:nth-child(7) { top: 30%; transform: rotateY(108deg); }
.dna-row:nth-child(8) { top: 35%; transform: rotateY(126deg); }
.dna-row:nth-child(9) { top: 40%; transform: rotateY(144deg); }
.dna-row:nth-child(10) { top: 45%; transform: rotateY(162deg); }
.dna-row:nth-child(11) { top: 50%; transform: rotateY(180deg); }
.dna-row:nth-child(12) { top: 55%; transform: rotateY(198deg); }
.dna-row:nth-child(13) { top: 60%; transform: rotateY(216deg); }
.dna-row:nth-child(14) { top: 65%; transform: rotateY(234deg); }
.dna-row:nth-child(15) { top: 70%; transform: rotateY(252deg); }
.dna-row:nth-child(16) { top: 75%; transform: rotateY(270deg); }
.dna-row:nth-child(17) { top: 80%; transform: rotateY(288deg); }
.dna-row:nth-child(18) { top: 85%; transform: rotateY(306deg); }
.dna-row:nth-child(19) { top: 90%; transform: rotateY(324deg); }
.dna-row:nth-child(20) { top: 95%; transform: rotateY(342deg); }

/* Nucleotides - glowing purple gradient */
.dna-row::before,
.dna-row::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  top: 0;
}

.dna-row::before {
  left: 0;
  transform: translateZ(20px);
}

.dna-row::after {
  right: 0;
  transform: translateZ(-20px);
}

/* Purple gradient from light (top) to deep (bottom) */
.dna-row:nth-child(1)::before, .dna-row:nth-child(1)::after { background: radial-gradient(circle at 30% 30%, #e9d5ff, #c084fc, #a855f7); box-shadow: 0 0 12px #c084fc, 0 0 20px rgba(192, 132, 252, 0.5); }
.dna-row:nth-child(2)::before, .dna-row:nth-child(2)::after { background: radial-gradient(circle at 30% 30%, #e9d5ff, #c084fc, #a855f7); box-shadow: 0 0 12px #c084fc, 0 0 20px rgba(192, 132, 252, 0.5); }
.dna-row:nth-child(3)::before, .dna-row:nth-child(3)::after { background: radial-gradient(circle at 30% 30%, #d8b4fe, #b57efc, #9333ea); box-shadow: 0 0 12px #b57efc, 0 0 20px rgba(181, 126, 252, 0.5); }
.dna-row:nth-child(4)::before, .dna-row:nth-child(4)::after { background: radial-gradient(circle at 30% 30%, #d8b4fe, #b57efc, #9333ea); box-shadow: 0 0 12px #b57efc, 0 0 20px rgba(181, 126, 252, 0.5); }
.dna-row:nth-child(5)::before, .dna-row:nth-child(5)::after { background: radial-gradient(circle at 30% 30%, #c4b5fd, #a78bfa, #8b5cf6); box-shadow: 0 0 12px #a78bfa, 0 0 20px rgba(167, 139, 250, 0.5); }
.dna-row:nth-child(6)::before, .dna-row:nth-child(6)::after { background: radial-gradient(circle at 30% 30%, #c4b5fd, #a78bfa, #8b5cf6); box-shadow: 0 0 12px #a78bfa, 0 0 20px rgba(167, 139, 250, 0.5); }
.dna-row:nth-child(7)::before, .dna-row:nth-child(7)::after { background: radial-gradient(circle at 30% 30%, #a78bfa, #8b5cf6, #7c3aed); box-shadow: 0 0 12px #8b5cf6, 0 0 20px rgba(139, 92, 246, 0.5); }
.dna-row:nth-child(8)::before, .dna-row:nth-child(8)::after { background: radial-gradient(circle at 30% 30%, #a78bfa, #8b5cf6, #7c3aed); box-shadow: 0 0 12px #8b5cf6, 0 0 20px rgba(139, 92, 246, 0.5); }
.dna-row:nth-child(9)::before, .dna-row:nth-child(9)::after { background: radial-gradient(circle at 30% 30%, #8b5cf6, #7c3aed, #6d28d9); box-shadow: 0 0 12px #7c3aed, 0 0 20px rgba(124, 58, 237, 0.5); }
.dna-row:nth-child(10)::before, .dna-row:nth-child(10)::after { background: radial-gradient(circle at 30% 30%, #8b5cf6, #7c3aed, #6d28d9); box-shadow: 0 0 12px #7c3aed, 0 0 20px rgba(124, 58, 237, 0.5); }
.dna-row:nth-child(11)::before, .dna-row:nth-child(11)::after { background: radial-gradient(circle at 30% 30%, #7c3aed, #6d28d9, #5b21b6); box-shadow: 0 0 12px #6d28d9, 0 0 20px rgba(109, 40, 217, 0.5); }
.dna-row:nth-child(12)::before, .dna-row:nth-child(12)::after { background: radial-gradient(circle at 30% 30%, #7c3aed, #6d28d9, #5b21b6); box-shadow: 0 0 12px #6d28d9, 0 0 20px rgba(109, 40, 217, 0.5); }
.dna-row:nth-child(13)::before, .dna-row:nth-child(13)::after { background: radial-gradient(circle at 30% 30%, #6d28d9, #5b21b6, #4c1d95); box-shadow: 0 0 12px #5b21b6, 0 0 20px rgba(91, 33, 182, 0.5); }
.dna-row:nth-child(14)::before, .dna-row:nth-child(14)::after { background: radial-gradient(circle at 30% 30%, #6d28d9, #5b21b6, #4c1d95); box-shadow: 0 0 12px #5b21b6, 0 0 20px rgba(91, 33, 182, 0.5); }
.dna-row:nth-child(15)::before, .dna-row:nth-child(15)::after { background: radial-gradient(circle at 30% 30%, #5b21b6, #4c1d95, #3b0764); box-shadow: 0 0 12px #4c1d95, 0 0 20px rgba(76, 29, 149, 0.5); }
.dna-row:nth-child(16)::before, .dna-row:nth-child(16)::after { background: radial-gradient(circle at 30% 30%, #5b21b6, #4c1d95, #3b0764); box-shadow: 0 0 12px #4c1d95, 0 0 20px rgba(76, 29, 149, 0.5); }
.dna-row:nth-child(17)::before, .dna-row:nth-child(17)::after { background: radial-gradient(circle at 30% 30%, #4c1d95, #3b0764, #2e1065); box-shadow: 0 0 12px #3b0764, 0 0 20px rgba(59, 7, 100, 0.5); }
.dna-row:nth-child(18)::before, .dna-row:nth-child(18)::after { background: radial-gradient(circle at 30% 30%, #4c1d95, #3b0764, #2e1065); box-shadow: 0 0 12px #3b0764, 0 0 20px rgba(59, 7, 100, 0.5); }
.dna-row:nth-child(19)::before, .dna-row:nth-child(19)::after { background: radial-gradient(circle at 30% 30%, #3b0764, #2e1065, #1e0040); box-shadow: 0 0 12px #2e1065, 0 0 20px rgba(46, 16, 101, 0.5); }
.dna-row:nth-child(20)::before, .dna-row:nth-child(20)::after { background: radial-gradient(circle at 30% 30%, #3b0764, #2e1065, #1e0040); box-shadow: 0 0 12px #2e1065, 0 0 20px rgba(46, 16, 101, 0.5); }

/* Connecting rungs - purple glow */
.dna-rung {
  position: absolute;
  top: 4px;
  left: 11px;
  right: 11px;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(139, 92, 246, 0.8) 0%,
    rgba(124, 58, 237, 0.4) 50%,
    rgba(139, 92, 246, 0.8) 100%);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.6);
}

/* Ambient purple glow */
.dna-helix::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 180px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Custom Cursor */
.cursor-person,
.cursor-virus {
  display: none;
}

.virus-cursor-active .cursor-person {
  display: block;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  font-size: 24px;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.virus-cursor-active .cursor-virus {
  display: block;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  font-size: 18px;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: virusWobble 0.5s ease-in-out infinite;
}

.virus-cursor-active .cursor-visible {
  opacity: 1;
}

@keyframes virusWobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.virus-cursor-active,
.virus-cursor-active a,
.virus-cursor-active button,
.virus-cursor-active .clickable-image,
.virus-cursor-active .research-image,
.virus-cursor-active .gallery-item,
.virus-cursor-active .tradition-image,
.virus-cursor-active input,
.virus-cursor-active textarea {
  cursor: none !important;
}

/* Virus Toggle Button */
.virus-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 14px;
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.virus-toggle:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.virus-toggle.active {
  background: #e74c3c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--white);
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}


/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 10000;
  transition: width 0.1s ease;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.animated-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.animated-bg .blob:nth-child(1) {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.animated-bg .blob:nth-child(2) {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.2), rgba(245, 87, 108, 0.2));
  top: 50%;
  right: -150px;
  animation-delay: -5s;
}

.animated-bg .blob:nth-child(3) {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(46, 204, 113, 0.2));
  bottom: -100px;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, -50px) rotate(5deg); }
  50% { transform: translate(-30px, 30px) rotate(-5deg); }
  75% { transform: translate(20px, 50px) rotate(3deg); }
}

[data-theme="dark"] .animated-bg .blob {
  opacity: 0.3;
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:not(.logo):not(.nav-link):not(.social-link):not(.contact-link):not(.gallery-item):not(.gradient-link)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

a:not(.logo):not(.nav-link):not(.social-link):not(.contact-link):not(.gallery-item):not(.gradient-link):hover::after {
  width: 100%;
}

/* Gradient styled links */
.gradient-link {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  position: relative;
}

.gradient-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.gradient-link:hover::after {
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] header {
  background: rgba(15, 15, 35, 0.9);
}

header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 400;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link:hover {
  color: #667eea;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 2px solid var(--text-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-color);
}

.theme-toggle:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  transform: rotate(180deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }

[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition);
  transform-origin: center;
}

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

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

/* Animated Profile Image */
.hero-image-container {
  position: relative;
  width: 280px;
  height: 280px;
}

.hero-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: var(--transition);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}


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

/* Typing Effect */
.typing-container {
  display: inline-block;
}

.typing-text {
  font-size: 3.5rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  position: relative;
}

.typing-text::after {
  content: '|';
  animation: blink 0.7s infinite;
  color: #667eea;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  max-width: 700px;
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-description strong {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  background: var(--light-gray);
  transition: var(--transition);
  border: 2px solid transparent;
}

.social-link:hover {
  background: var(--accent-gradient);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.social-link svg {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.social-link:hover svg {
  transform: scale(1.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-color);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-color);
  border-radius: 2px;
  animation: scroll-wheel 1.5s infinite;
}

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

@keyframes scroll-wheel {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

/* Page Content */
.page-header {
  background: var(--light-gray);
  padding: 8rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-gradient);
  opacity: 0.05;
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* Hero Header with Background Image */
.hero-header {
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: top center;
  animation: zoomDrift 20s ease-in-out infinite alternate;
}

@keyframes zoomDrift {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-1%, -1%);
  }
}

.hero-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.hero-header .container {
  position: relative;
  z-index: 2;
}

.hero-header h1 {
  color: white;
  font-size: 4rem;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.hero-header h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-gradient);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.hero-header-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  font-style: italic;
  text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-header {
    min-height: 50vh;
    background-attachment: scroll;
  }

  .hero-header h1 {
    font-size: 2.5rem;
  }

  .hero-header-subtitle {
    font-size: 1.1rem;
  }
}

.page-content {
  padding: 5rem 0;
}

.content-section {
  margin-bottom: 3rem;
}

/* CV Styles */
.tldr-container {
  margin-top: 1.5rem;
  text-align: center;
  position: relative;
}

.tldr-btn {
  padding: 0.5rem 1.5rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tldr-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.tldr-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  text-align: left;
  margin-top: 0;
}

.tldr-container.active .tldr-content {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
}

.tldr-content ul {
  margin: 0;
  padding: 1rem 1.5rem 1rem 2.5rem;
  background: var(--white);
  border-radius: 12px;
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.tldr-content li {
  margin-bottom: 0.25rem;
}

.tldr-content li:last-child {
  margin-bottom: 0;
}

.cv-section {
  margin-bottom: 4rem;
}

.cv-section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.cv-section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.cv-section:hover h2::after {
  width: 100%;
}

/* Interactive Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--medium-gray);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid #667eea;
  border-radius: 50%;
  transition: var(--transition);
  transform: translateX(-6.5px);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -2rem;
  top: 2rem;
  width: 2rem;
  height: 2px;
  background: var(--medium-gray);
}

.timeline-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.timeline-item:hover::before {
  background: #667eea;
  transform: translateX(-6.5px) scale(1.3);
}

.timeline-item h3 {
  font-size: 1.1rem;
  font-family: var(--font-main);
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.timeline-item .date {
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-item .institution {
  font-style: italic;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.timeline-item .position {
  font-style: italic;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.timeline-item p, .timeline-item ul {
  font-size: 0.95rem;
}

.timeline-item ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Resume Subtitle */
.resume-subtitle {
  font-size: 1.1rem;
  font-style: normal;
  color: var(--text-color);
  margin-top: 1rem;
  position: relative;
}

/* Publications List */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.publication-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--medium-gray);
}

.publication-item:last-child {
  border-bottom: none;
}

.publication-item p {
  margin-bottom: 0;
  line-height: 1.7;
}

.publication-legend {
  font-size: 0.85rem;
  color: #888;
  margin-top: 1rem;
  font-style: italic;
}

/* Awards List */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  gap: 1rem;
  border-bottom: 1px solid var(--medium-gray);
}

.award-item:last-child {
  border-bottom: none;
}

.award-name {
  flex: 1;
}

.award-date {
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .award-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .award-date {
    font-size: 0.85rem;
  }
}

/* Animated Skill Bars */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.skill-category h4 {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.skill-bar {
  margin-bottom: 1rem;
}

.skill-bar .skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.skill-bar .bar {
  height: 8px;
  background: var(--medium-gray);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar .bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar.visible .bar-fill {
  width: var(--skill-level);
}

/* Research Cards */
.research-grid {
  display: grid;
  gap: 2rem;
}

.research-project {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  overflow: visible;
}

.research-project:nth-child(even) {
  flex-direction: row-reverse;
}

.research-project:hover {
  background: var(--light-gray);
}

.research-image {
  width: 280px;
  height: 220px;
  min-width: 280px;
  object-fit: contain;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.research-image:hover {
  transform: scale(1.05);
}

/* Image Switcher for hover effect */
.image-switcher {
  position: relative;
  width: 280px;
  height: 220px;
  min-width: 280px;
}

.image-switcher .research-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: unset;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.image-switcher .image-default {
  opacity: 1;
}

.image-switcher .image-hover {
  opacity: 0;
}

.image-switcher:hover .image-default {
  opacity: 0;
}

.image-switcher:hover .image-hover {
  opacity: 1;
  transform: scale(1.05);
}

.research-content {
  flex: 1;
}

@media (max-width: 900px) {
  .research-project,
  .research-project:nth-child(even) {
    flex-direction: column;
  }

  .research-image,
  .research-project:nth-child(even) .research-image {
    width: 100%;
    height: 200px;
    min-width: unset;
    transform: rotate(0deg);
  }

  .image-switcher {
    width: 100%;
    height: 200px;
    min-width: unset;
  }
}

.research-project.no-image,
.research-project.no-image:nth-child(even) {
  display: block;
}

.research-project h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}


.research-project .meta {
  color: #667eea;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.research-project .description {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.research-project .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.research-project .tag {
  padding: 0.25rem 0.75rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.research-project .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--medium-gray);
}

.research-project .links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border-radius: 8px;
  transition: var(--transition);
}

.research-project .links a:hover {
  background: var(--accent-gradient);
  color: white;
}

.research-project .links a::after {
  display: none;
}

/* Adventures Gallery */
.adventures-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Adventures Globe */
.adventures-map-container {
  margin-bottom: 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
}

#adventures-map {
  height: 400px;
  width: 100%;
  cursor: grab;
}

#adventures-map:active {
  cursor: grabbing;
}

#adventures-map canvas {
  border-radius: 16px;
}

/* Globe tooltip styling */
.globe-tooltip {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: var(--font-main);
  text-align: center;
}

.globe-tooltip strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #1a1a2e;
  display: block;
}

.globe-tooltip span {
  font-size: 0.85rem;
  color: #6d28d9;
}

@media (max-width: 768px) {
  #adventures-map {
    height: 300px;
  }
}

.gallery-section {
  margin-bottom: 4rem;
}

.gallery-section h3 {
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--light-gray);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: white;
  font-size: 0.95rem;
  z-index: 2;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .caption {
  transform: translateY(0);
}

.gallery-item .view-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
  color: white;
}

.gallery-item:hover .view-icon {
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  transform: scale(0.8);
  transition: var(--transition);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
}

.lightbox-caption {
  text-align: center;
  color: white;
  padding: 1rem;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: none;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: white;
  color: black;
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 2px solid white;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
}

.lightbox-nav:hover {
  background: white;
  color: black;
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

/* My Roots Styles */
.roots-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.roots-image {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.roots-image:hover {
  transform: scale(1.02);
}

.roots-image img {
  transition: var(--transition-slow);
}

.roots-image:hover img {
  transform: scale(1.05);
}

.roots-image figcaption {
  background: var(--light-gray);
  padding: 1rem;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

/* Tradition Cards */
.traditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .traditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .traditions-grid {
    grid-template-columns: 1fr;
  }
}

.tradition {
  padding: 0;
  background: var(--light-gray);
  border-radius: 16px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tradition:hover {
  box-shadow: var(--shadow-lg);
}

.tradition-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition);
  cursor: pointer;
}

.tradition:hover .tradition-image {
  transform: scale(1.05);
}

.tradition-image:hover {
  opacity: 0.9;
}

.tradition h3 {
  color: var(--primary-color);
  margin: 1.5rem 1.5rem 0.25rem;
  position: relative;
  transition: var(--transition);
}

.tradition:hover h3 {
  color: #667eea;
}

.tradition-subtitle {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: #667eea;
  margin: 0 1.5rem 1rem;
}

.tradition p {
  position: relative;
  line-height: 1.7;
  padding: 0 1.5rem 1.5rem;
  margin-bottom: 0;
}

.tradition .emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* Easter Egg Popup */
.easter-egg-popup {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  animation: popIn 0.3s ease;
}

.tradition:hover .easter-egg-popup {
  display: block;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Animated History Timeline */
.history-timeline {
  margin: 2rem 0;
  position: relative;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #667eea, #764ba2);
}

.history-item {
  padding: 1rem 1rem 1rem 4rem;
  position: relative;
  transition: var(--transition);
}

.history-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 1.25rem;
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 3px solid #667eea;
  border-radius: 50%;
  transition: var(--transition);
}

.history-item:hover::before {
  background: #667eea;
  transform: scale(1.3);
}

.history-item:hover {
  transform: translateX(10px);
}

.history-item strong {
  color: #667eea;
  font-size: 1.1rem;
}

/* Timeline Legend */
.timeline-legend {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.status-icon.autonomous::before {
  content: '✓';
  color: #2ecc71;
}

.status-icon.suppressed::before {
  content: '✗';
  color: #e74c3c;
}

.status-icon.unclear::before {
  content: '—';
  color: #f39c12;
}

/* Timeline item status indicators */
.history-item.autonomous::before {
  border-color: #2ecc71 !important;
  background: var(--white) !important;
  content: '✓' !important;
  color: #2ecc71;
  font-size: 10px;
  font-weight: bold;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.history-item.suppressed::before {
  border-color: #e74c3c !important;
  background: var(--white) !important;
  content: '✗' !important;
  color: #e74c3c;
  font-size: 10px;
  font-weight: bold;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.history-item.unclear::before {
  border-color: #f39c12 !important;
  background: var(--white) !important;
  content: '—' !important;
  color: #f39c12;
  font-size: 10px;
  font-weight: bold;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Contact Section */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h2 {
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--light-gray);
  border-radius: 16px;
  color: var(--text-color);
  min-width: 300px;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  transition: var(--transition);
  z-index: 0;
}

.contact-link:hover::before {
  left: 0;
}

.contact-link:hover {
  color: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.contact-link svg, .contact-link span {
  position: relative;
  z-index: 1;
}

.contact-link svg {
  width: 24px;
  height: 24px;
  transition: var(--transition);
}

.contact-link:hover svg {
  transform: scale(1.2) rotate(10deg);
}

/* Contact Form */
.contact-form {
  max-width: 500px;
  margin: 2rem auto 0;
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 1rem;
  background: var(--white);
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.submit-btn:active {
  transform: translateY(-1px);
}

/* Floating Elements */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-shapes .shape {
  position: absolute;
  opacity: 0.1;
  animation: float-shape 15s ease-in-out infinite;
}

.floating-shapes .shape:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shapes .shape:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.floating-shapes .shape:nth-child(3) {
  bottom: 20%;
  left: 30%;
  animation-delay: -10s;
}

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

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] footer {
  background: #0a0a1a;
  color: var(--white);
}

[data-theme="dark"] footer .copyright {
  color: rgba(255, 255, 255, 0.7);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

footer .social-links {
  margin-bottom: 1.5rem;
}

footer .social-link {
  background: rgba(255,255,255,0.1);
  color: white;
}

footer .social-link:hover {
  background: var(--accent-gradient);
}

footer p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cursor, .cursor-dot {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  [data-theme="dark"] nav {
    background: var(--white);
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .theme-toggle {
    position: absolute;
    bottom: 2rem;
  }

  .typing-text {
    font-size: 2.5rem;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .scroll-indicator {
    display: none;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

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

  .container {
    padding: 0 1rem;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: -2rem;
  }

  .timeline-item::after {
    left: -1rem;
    width: 1rem;
  }

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

  .contact-link {
    min-width: 100%;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Placeholder images */
.gallery-item.placeholder,
.hero-image.placeholder {
  background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 0.9rem;
  opacity: 0.7;
}
