@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Source+Sans+Pro:wght@300;400;500;600;700&display=swap");

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
  margin: 0;
  color: #333;
  line-height: 1.6;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
}

/* Ensure specific elements use the heading font */
/* (Cleaned up orphaned selector list) */

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Enhanced Name Hover Effect */
.name-hover {
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  position: relative;
  display: inline-block;
  padding: 0;
  margin: 0.5rem 0;
}

.name-hover::before,
.name-hover::after {
  content: "";
  position: absolute;
  inset: -0.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.name-hover::after {
  filter: blur(16px);
  transform: translateZ(0);
}

.name-hover .spotlight {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at var(--x, center) var(--y, center), rgba(255, 255, 255, 0.12) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.name-hover:hover::before,
.name-hover:hover::after,
.name-hover:hover .spotlight {
  opacity: 1;
}

.name-hover:hover {
  transform: translateY(-2px);
  background: linear-gradient(45deg, #4338ca, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.name-hover:hover::before {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 30%, rgba(139, 92, 246, 0.2) 70%, rgba(59, 130, 246, 0.2) 100%);
}

/* Professional Profile Image Styles */
.profile-image-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.profile-image-wrapper {
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: subtle-float 6s ease-in-out infinite;
  position: relative;
  width: 18rem;
  height: 18rem;
}

/* Subtle professional glow */
.image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  z-index: -2;
  opacity: 0.7;
  filter: blur(20px);
  animation: gentle-pulse 4s infinite ease-in-out;
}

/* Professional depth shadow */
.profile-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  z-index: -3;
  opacity: 0.8;
  filter: blur(30px);
}

/* Elegant rim light */
.profile-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.1));
  border-radius: 50%;
  z-index: -1;
  opacity: 0.6;
  filter: blur(1px);
}

@keyframes gentle-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

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

.profile-image {
  position: relative;
  transform: translateZ(0);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(white, white) padding-box;
}

/* Subtle professional reflection */
.profile-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    transparent 30%, 
    transparent 70%, 
    rgba(255, 255, 255, 0.05) 100%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Refined professional enhancements */
.profile-image::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  right: 70%;
  bottom: 70%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}

/* Professional hover state */
.profile-image:hover {
  transform: translateZ(8px) scale(1.02) rotateY(2deg) rotateX(1deg);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.2),
    0 15px 30px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 1);
}

.profile-image:hover::before {
  opacity: 0.8;
}

.profile-image:hover::after {
  opacity: 0.6;
}

/* Enhanced glow on hover */
.profile-image-wrapper:hover .image-glow {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Profile Badges */
.profile-badges {
  display: flex;
  gap: 0.75rem;
  margin-top: -1rem;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  animation: slide-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(0);
  opacity: 1;
}

.badge-primary {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: white;
}

.badge-secondary {
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  color: white;
}

@keyframes slide-up {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Premium Buttons */
.premium-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.premium-button:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: -1;
}

.premium-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.premium-button:hover:before {
  transform: translateX(100%);
}

.primary-button {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: white;
}

.secondary-button {
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  color: white;
}

/* Enhanced Animated Background */
.animated-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.animated-bg::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  animation: pulse 15s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}

/* Animated Shapes */
.animated-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.4;
}

.shape-1 {
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5), rgba(79, 70, 229, 0.2));
  animation: float-shape 20s infinite alternate;
}

.shape-2 {
  bottom: 15%;
  right: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), rgba(124, 58, 237, 0.2));
  animation: float-shape 18s infinite alternate-reverse;
}

.shape-3 {
  top: 50%;
  right: 20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), rgba(14, 165, 233, 0.1));
  animation: float-shape 15s infinite alternate;
}

.shape-4 {
  bottom: 30%;
  left: 25%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3), rgba(219, 39, 119, 0.1));
  animation: float-shape 17s infinite alternate-reverse;
}

@keyframes float-shape {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -20px);
  }
  100% {
    transform: translate(-20px, 40px);
  }
}

/* Particles Container */
.particles-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Text Animations */
.animated-title {
  overflow: hidden;
  position: relative;
}

.animated-title h1 {
  animation: fade-in-title 1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fade-in-title {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.typing-text {
  position: relative;
  display: inline-block;
  overflow: visible;
  white-space: nowrap;
}

.typing-text::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 10%;
  height: 80%;
  width: 2px;
  background-color: #6366f1;
  animation: blink 1s step-end infinite;
}

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

.fade-in-text {
  animation: fade-in 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Card Enhancements */
.media-card {
  position: relative;
  overflow: hidden;
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-card:hover::before {
  opacity: 1;
}

/* Social Icons Enhancement */
.social-icon {
  @apply text-2xl transition-all duration-300;
  position: relative;
}

.social-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.social-icon:hover::after {
  opacity: 1;
}

.social-icon-footer {
  @apply text-xl transition-all duration-300 text-gray-400 hover:text-white;
  position: relative;
}

.social-icon-footer::after {
  content: "";
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon-footer:hover {
  transform: scale(1.25);
}

.social-icon-footer:hover::after {
  opacity: 1;
}

/* Progressive Image Loading */
.image-wrapper {
  position: relative;
  overflow: hidden;
}

.image-wrapper img {
  transition: filter 0.3s ease;
}

.image-wrapper.loading img {
  filter: blur(10px);
}


/* Particle Animation */
.particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: float-particle infinite linear both;
  opacity: 0;
}

@keyframes float-particle {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translate(var(--tx, 100px), var(--ty, -100px)) rotate(360deg);
    opacity: 0;
  }
}

/* Character animation */
.char-animate {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: char-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  background: inherit;
  -webkit-background-clip: inherit;
  background-clip: inherit;
  -webkit-text-fill-color: inherit;
}

@keyframes char-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhance spotlight effect */
.spotlight {
  animation: subtle-pulse 5s infinite alternate;
}

@keyframes subtle-pulse {
  0% {
    filter: blur(20px);
  }
  100% {
    filter: blur(30px);
  }
}

/* Top Navigation Controls */
.top-nav-controls {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}







.lang-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.lang-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: white;
}

.lang-flag {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.lang-link:hover .lang-flag {
  transform: scale(1.1);
}

.lang-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  transition: color 0.3s ease;
}

.lang-link:hover .lang-text {
  color: #6366f1;
}

/* Animation for language switcher */
@keyframes float-in {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-nav-controls {
  animation: float-in 0.5s ease-out 1s forwards;
  opacity: 0;
}

/* Labs Page Styles */
.labs-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.labs-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.labs-container {
    display: grid;
    gap: 2rem;
}

.lab-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lab-category h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.lab-item {
    background: white;
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.lab-item:hover {
    transform: translateX(5px);
}

.lab-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.lab-item p {
    color: #4a5568;
    margin-bottom: 1rem;
}

.lab-item .btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lab-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.container {
  max-width: 960px;
}


/* Ensure video container fills full viewport height */
#video-container {
  min-height: 100svh !important;
}

/* Video styling for full coverage without black bars */
#background-video {
  min-height: 100svh !important;
  object-fit: cover !important;
  object-position: center !important;
}
