:root {
  --primary: #1a365d;
  --secondary: #2c5282;
  --accent: #e2e8f0;
  --text: #2d3748;
  --bg: #ffffff;
  --sidebar-width: 64px;
  --gradient: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.95),
    rgba(44, 82, 130, 0.95)
  );
  --heading-font: "Poppins", sans-serif;
  --body-font: "Inter", sans-serif;
}

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

body {
  font-family: var(--body-font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--primary);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-link {
  width: 100%;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  font-family: var(--heading-font);
  font-weight: 500;
  transition: background-color 0.3s;
  position: relative;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-link::after {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 0;
  background: white;
  transition: height 0.3s;
}

.sidebar-link:hover::after {
  height: 100%;
}

.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.hero {
  height: 100vh;
  background-image: linear-gradient(
      rgba(26, 54, 93, 0.85),
      rgba(44, 82, 130, 0.85)
    ),
    url("/api/placeholder/1920/1080");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.hero p {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.section {
  padding: 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--heading-font);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--gradient);
}

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

.research-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.research-card:hover::before {
  transform: scaleX(1);
}

.research-card h3 {
  font-family: var(--heading-font);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.research-card p {
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.9;
}

.publication-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.publication-card:hover {
  transform: translateX(10px);
}

.publication-card h3 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.publication-meta {
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.contact {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.contact h2 {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact p {
  font-family: var(--body-font);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  font-family: var(--heading-font);
  color: white;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.social-link:hover::before {
  transform: translateX(0);
}

.social-link:hover {
  border-color: white;
}

@media (max-width: 768px) {
  .sidebar {
    bottom: 0;
    top: auto;
    width: 100%;
    height: 60px;
    flex-direction: row;
    padding: 0;
  }

  .main-content {
    margin-left: 0;
    margin-bottom: 60px;
  }

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

  .hero p {
    font-size: 1.2rem;
  }

  .section {
    padding: 4rem 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .research-card h3 {
    font-size: 1.3rem;
  }
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 64px;
  background: #111827;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-items {
  margin-top: auto;
  width: 100%;
  padding: 1rem 0;
  border-top: 1px solid rgba(156, 163, 175, 0.1);
}

/* Update previous styles for dark theme compatibility */
.main-content {
  margin-left: 64px;
  min-height: 100vh;
}
:root {
  --primary: #2563eb; /* A rich, deep blue */
  --secondary: #3b82f6; /* Slightly lighter blue */
  --accent: #f0f9ff; /* Very light blue for subtle backgrounds */
  --text: #1e3a8a; /* Dark blue for text */
  --bg: #ffffff;
  --sidebar-width: 64px;
  --gradient: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.95),
    rgba(59, 130, 246, 0.95)
  );
  --heading-font: "Poppins", sans-serif;
  --body-font: "Inter", sans-serif;
}

/* Update sidebar */
.sidebar {
  background: #1e40af; /* Slightly darker than primary for depth */
}


/* Update hero gradient */

/* Update section title color */
.section-title {
  color: var(--primary);
}

/* Update cards */
.research-card {
  border-left: 4px solid var(--primary);
  background: white;
  transition: transform 0.3s, box-shadow 0.3s;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.research-card h3 {
  color: var(--primary);
}

.research-card::before {
  background: var(--gradient);
}

/* Update publication cards */
.publication-card {
  border-left: 4px solid var(--primary);
}

.publication-card h3 {
  color: var(--text);
}

/* Update contact section */
.contact {
  background: var(--gradient);
}

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

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* Bottom items separator */
.bottom-items {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.85),
    rgba(44, 82, 130, 0.6)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-main {
  text-align: center;
}

.hero-tags {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  display: block;
}

.current-work {
  text-align: center;
  margin-top: 3rem;
}

.work-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
}

.pulse::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: pulse 2s ease-out infinite;
}

.work-description {
  font-size: 1.1rem;
  opacity: 0.9;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.9rem;
  font-weight: 500;
}

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

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

@media (max-width: 768px) {
  .hero-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .tag {
    font-size: 0.8rem;
  }
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* Reduced from 2rem */
}

h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1; /* Tighter line height */
  margin: 0; /* Remove default margins */
}

.hero-tags {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem; /* Reduced from 2rem */
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 400;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  opacity: 0.8;
  animation: bounce 2s infinite;
  text-align: center;
}

.scroll-indicator .material-icons {
  font-size: 2rem;
}

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

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-tags {
    flex-wrap: wrap;
  }

  .tag {
    font-size: 0.9rem;
  }

}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Base video layer */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.1); /* Prevents blur edges from showing */
}

/* Blur overlay */
.hero-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  backdrop-filter: blur(15px); /* Main blur effect */
  background: rgba(0, 0, 0, 0.2); /* Slight dimming */
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.7),
    rgba(59, 130, 246, 0.6)
  );
}

/* Content layer */
.hero-content {
  position: relative;
  z-index: 4;
  /* ... rest of your hero-content styles ... */
}
@supports not (backdrop-filter: blur(10px)) {
  .hero-blur {
    /* Fallback for browsers that don't support backdrop-filter */
    background: rgba(0, 0, 0, 0.4);
  }
}

/* Animation keyframes */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Hero content animations */
.hero-content {
  position: relative;
  z-index: 4;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.hero-main h1 {
  opacity: 0;
  animation: slideUp 1s ease forwards;
  animation-delay: 0.2s;
  font-family: '
}

.hero-tags {
  opacity: 0;
  animation: slideUp 1s ease forwards;
  animation-delay: 0.6s;
}

.tag {
  transition: all 0.3s ease;
}

.tag:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.primary-btn,
.secondary-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

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

/* Scroll indicator animation */
.scroll-indicator {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.2s;
}

/* Optional: Add transitions for the background blur and overlay */
.hero-blur {
  transition: backdrop-filter 0.5s ease;
}

.hero-overlay {
  transition: background 0.5s ease;
}

/* Optional: Add hover effect on the entire hero section */
.hero:hover .hero-blur {
  backdrop-filter: blur(10px);
}

.company-name {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

.position-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.duration {
  color: #666;
  font-size: 0.95rem;
}

/* Achievements List */
.achievements-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.achievement-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.achievement-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Media Gallery */
.media-gallery {
  margin-top: 2rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
}

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

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
}

.gallery-item img,
.gallery-item iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-item.video::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 1rem;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  background: var(--accent);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .experience-section {
    padding: 4rem 1.5rem;
  }

  .position-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

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

.section-container {
  padding: 6rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--heading-font);
  font-size: 3.75rem;
  font-weight: 1000;
  margin-bottom: 0rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: "";
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--gradient);
}

/* Position and Duration styles */
.position-info span {
  position: relative;
  font-family: var(--body-font);
}

.position-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.duration-label {
  color: #666;
  font-weight: 500;
  margin-left: 0.5rem;
}

.key-achievements-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 1.5rem;
}

.media-gallery {
  margin-top: 2rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
}

.gallery-grid {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem; /* Space for scrollbar */
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
  scrollbar-width: thin;
  align-items: flex-start; /* Aligns items to top */
}

/* Custom scrollbar styling */
.gallery-grid::-webkit-scrollbar {
  height: 6px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.gallery-item {
  position: relative;
  height: 400px; /* Fixed height */
  flex: 0 0 auto; /* Prevents stretching */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item img {
  height: 100%;
  width: auto; /* Let width adjust based on aspect ratio */
  object-fit: contain; /* Maintains aspect ratio */
  background: #000; /* Dark background for transparent images */
}

.gallery-item.video {
  width: auto;
}

.gallery-item iframe {
  height: 100%;
  width: auto;
  aspect-ratio: 16/9; /* Maintains video aspect ratio */
}

/* Hover effects */
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Video play button */
.gallery-item.video::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  pointer-events: none;
  transition: background 0.3s ease;
}

.gallery-item.video:hover::after {
  background: rgba(0, 0, 0, 0.8);
}

/* Updated lightbox styles */
.lightbox-content {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-height: 90vh;
  width: auto;
  object-fit: contain;
}

/* Loading state */
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f1f1f1;
  z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-item {
    height: 300px; /* Smaller height on mobile */
  }

  .gallery-grid {
    gap: 1rem;
  }
}

/* Optional: Add smooth snap scrolling */
.gallery-grid {
  scroll-snap-type: x mandatory;
}

.gallery-item {
  scroll-snap-align: start;
}

.gallery-container {
  overflow-x: auto;
  /* Enables horizontal scrolling */
  white-space: nowrap;
  /* Ensures all
items are in a single line */
}

.image-gallery img {
  vertical-align: middle;
  /* Aligns images in case they have
different heights */
  max-height: 300px;
  /* Adjust this value to set your desired height */
  margin-right: 10px;
  /* Adjust the gap between images */
  display: inline-block;
}

.gallery-container .image-gallery iframe,
.gallery-container .image-gallery img {
  vertical-align: top;
  /* Aligns the top edges of the iframe and images */
}

.fancy-button {
  display: inline-block;
  background-color: red;
  /* Button color */
  color: white;
  /* Text color
*/
  padding: 10px 20px;
  /* Button padding */
  text-decoration: none;
  /* Remove underline from link */
  font-weight: bold;
  /* Make the text bold */
  border-radius: 5px;
  /* Rounded corners */
  transition: all 0.3s ease;
  /* Smooth
transition for all changes */
  position: relative;
  /* Needed for arrow positioning */
  overflow: hidden;
  /*
Ensures the pseudo-elements don't overflow the button's boundaries */
}

.fancy-button:hover {
  background-color: darkred;
  /* Darker shade on hover */
}

.fancy-button .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  /* Smooth transition for the arrow movement */
}

.fancy-button:hover .arrow {
  transform: translateX(5px);
  /* Move the arrow to the right on hover */
}

.fancy-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  /* Light overlay for
a 'shine' effect */
  transition: all 0.3s ease;
  transform: skewX(-20deg);
}

.fancy-button:hover::before {
  left: 100%;
}

.google-play-button {
  display: inline-block;
  background-color: #00a862;
  /* Google Play green */
  color: white;
  padding: 10px 20px;
  border-radius: 3px;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-weight: bold;
}

.google-play-button .arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.google-play-button:hover,
.google-play-button:focus {
  background-color: #008f7a;
  /* A slightly
darker green for hover state */
  transform: translateY(-2px);
}

.google-play-button:hover .arrow,
.google-play-button:focus .arrow {
  transform: translateX(5px);
}

/* For the Google Play icon */
.fab.fa-google-play {
  margin-right: 8px;
}

.tech-highlight {
  color: var(--primary);
  font-weight: 500;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "Fira Code", monospace;
  margin: 0 0.2rem;
}

.tech-pill i {
  font-size: 0.8em;
  margin-right: 0.3rem;
}

.advisors {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.metrics {
  background: var(--accent);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.metric {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  margin-right: 0.5rem;
}

/* Gallery Styling Updates */
.gallery-container {
  margin-top: 3rem; /* Add whitespace above gallery */
  padding: 2rem;
  background: var(--accent);
  border-radius: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

/* Custom Scrollbar Styling */
.gallery-container::-webkit-scrollbar {
  height: 8px; /* Height for horizontal scrollbar */
}

.gallery-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.gallery-container::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.image-gallery {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem;
}

.image-gallery img,
.image-gallery iframe {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-gallery img:hover,
.image-gallery iframe:hover {
  transform: translateY(-5px);
}

/* Firefox Scrollbar */
.gallery-container {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(0, 0, 0, 0.05);
}

/* Add section title for gallery */
.gallery-container::before {
  content: "Project Gallery";
  display: block;
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}


.company-name {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.position-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.role-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.position-title {
  font-weight: 600;
  color: var(--text);
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.location-info {
  color: var(--text);
  font-size: 0.95rem;
  opacity: 0.8;
}

.advisors-section {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.advisors-label {
  font-weight: 500;
  margin-right: 0.5rem;
}

/* Technologies Section */
.technologies-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--accent);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background: var(--accent);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
/* Header Organization */
.experience-header {
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center; /* Aligns the logo vertically between the text content */
  gap: 1rem;
}

/* Content Section */
.experience-content {
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 0rem;
  margin-bottom: 0rem;
  padding-top: 1rem;
}

.experience-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

/* Experience Section */
.experience-section {
  padding: 6rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.experience-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 2rem 0 3rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.technologies-section {
  margin-bottom: 2rem;
  margin-top: 0rem;
}



.company-name {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb; /* Bright blue for company name */
  margin-bottom: 0.75rem;
}

/* Position and Details Row */
.position-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.role-info {
  display: inline-flex;
  align-items: center;
  background: #f0f9ff; /* Light blue background */
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.position-title {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  background: #dbeafe; /* Slightly darker blue for duration */
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #1e40af; /* Dark blue text */
  font-weight: 500;
}

.location-info {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #4b5563;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  background: #f3f4f6;
  border-radius: 6px;
}

.location-info .material-icons {
  font-size: 1rem;
  color: #2563eb;
}

.advisors-section {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.advisors-label {
  font-weight: 500;
  color: #374151;
  margin-right: 0.5rem;
}

.advisor-list {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.advisor-list span:not(:last-child)::after {
  content: "•";
  margin-left: 0.5rem;
  color: #9ca3af;
}


/* Technologies Section */
.technologies-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #f0f9ff;
  color: #2563eb;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.bold-text {
  font-weight: 700; /* Ensures bold, thick font */
  color: #2563eb; /* Bright blue for company name */
}

.education-container {
  display: grid;
}

.education-card {
  background: #fff; /* White background for cards */
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.education-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.education-card .location,
.education-card .duration,
.education-card .degree {
  font-size: 1rem;
  color: #666;
  margin: 2px 0;
}

.coursework {
  margin-top: 20px;
  background: #fff;
  border-radius: 8px;
}

.coursework h4 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2563eb; /* Match section title accent color */
}

.coursework p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px;
}

.education-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.education-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.institution {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.location {
  color: #4a5568;
  margin-bottom: 0.25rem;
}

.duration {
  color: #718096;
  margin-bottom: 0.5rem;
}

.degree {
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 1rem;
}

.involvements-title {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.involvements {
  line-height: 1.6;
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

.coursework {
  background-color: #ffffff;
  border-radius: 8px;
  margin-top: 1rem;
}

.coursework h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

.coursework p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.coursework {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1.5rem;
}

.coursework {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: #f9fafb;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.coursework-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 1rem;
  text-align: left;
  border-bottom: 2px solid #dbeafe;
  padding-bottom: 0.5rem;
}

.course-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
}

.course-list li {
  margin-bottom: 0.75rem;
}

.course-list a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: #1d4ed8;
  transition: color 0.3s, text-shadow 0.3s;
}

.course-list a:hover {
  color: #2563eb;
  text-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
}

.course-list a:after {
  content: " ↗";
  font-size: 0.85rem;
  color: #6b7280;
  vertical-align: middle;
}

.course-list li:hover a:after {
  color: #2563eb;
}

.education-container {
  max-width: 1200px;
  margin: 2rem auto;
}

.education-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.education-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(to right, #f8fafc, #ffffff);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.institution {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0;
}

.gpa-badge {
  display: flex;
  align-items: center;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.gpa-badge i {
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.meta-info {
  display: flex;
  gap: 2rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.meta-info span {
  display: flex;
  align-items: center;
}

.meta-info i {
  font-size: 1.1rem;
  margin-right: 0.5rem;
  color: #2563eb;
}

.education-content {
  padding: 1.5rem;
}

.degree-info {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: #111827;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.degree-info i {
  color: #2563eb;
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.involvement-section h4 {
  display: flex;
  align-items: center;
  color: #1e40af;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.involvement-section h4 i {
  margin-right: 0.5rem;
}

.involvement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.involvement-list li {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0;
  color: #4b5563;
  line-height: 1.5;
}

.involvement-list li i {
  color: #2563eb;
  margin-right: 0.5rem;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .gpa-badge {
    align-self: flex-start;
  }

  .institution {
    font-size: 1.25rem;
  }
}

.education-container {
}

.education-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rg ba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.education-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(to right, #f8fafc, #ffffff);
}

.institution-row {
  margin-bottom: 0.75rem;
}

.institution {
  font-size: 2.25rem; /* Increased size */
  font-weight: 700;
  color: #1e40af;
  margin: 0;
  line-height: 1.2;
}

.info-row {
  display: flex;
  align-items: center;
}

.info-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  color: #4b5563;
  font-size: 1rem;
  font-weight: 500;
}

.info-item i {
  font-size: 1.1rem;
  margin-right: 0.4rem;
  color: #2563eb;
}

.info-separator {
  color: #9ca3af;
  margin: 0 0.5rem;
}

.gpa {
  color: #1e40af;
  font-weight: 600;
}

.education-content {
  padding: 1.75rem 2rem;
}

.degree-section {
  margin-bottom: 2rem;
}

.degree-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem; /* Increased size */
  color: #111827;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.degree-title i {
  color: #2563eb;
  margin-right: 0.75rem;
  font-size: 1.75rem; /* Increased size */
}

.section-subtitle {
  display: flex;
  align-items: center;
  color: #1e40af;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-subtitle i {
  margin-right: 0.5rem;
}

.involvement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.involvement-list li {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0;
  color: #4b5563;
  line-height: 1.5;
}

.involvement-list li i {
  color: #2563eb;
  margin-right: 0.5rem;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .education-header {
    padding: 1.25rem 1.5rem;
  }

  .institution {
    font-size: 1.75rem;
  }

  .info-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .info-separator {
    display: none;
  }

  .degree-title {
    font-size: 1.25rem;
  }

  .education-content {
    padding: 1.25rem 1.5rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  color: #333;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1e3c72;
}

.close-modal {
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
}

.close-modal:hover {
  color: #333;
}

.captcha-container {
  background-color: #f0f4f8;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  text-align: center;
}

#captchaText {
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: #1e3c72;
  font-weight: bold;
}

#captchaInput {
  width: 100%;
  padding: 0.8rem;
  margin: 1rem 0;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.error-message {
  color: #dc3545;
  margin-bottom: 1rem;
  display: none;
}

/* Button Styles */
.reveal-btn,
.verify-btn {
  background-color: #64b5f6;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}

.reveal-btn:hover,
.verify-btn:hover {
  background-color: #1e88e5;
}

.verify-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.hidden {
  display: none;
}

.captcha-container {
  background-color: #f0f4f8;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

#captchaText canvas {
  border-radius: 4px;
}

.captcha-container {
  background-color: #f0f4f8;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

#captchaText canvas {
  border-radius: 4px;
}

.certificate-list {
  list-style-type: none;
  padding: 0;
}

.certificate-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.certificate-list .certificate-title {
  font-weight: bold;
  color: #333;
}

.certificate-list a {
  color: #1e88e5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.certificate-list a:hover {
  color: #0d47a1;
}

.certificate-list em {
  font-style: italic;
}


.header-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures proper spacing between company name and meta info */
}

.company-logo {
  width: 60px; /* Adjust size as needed */
  height: 60px;
  object-fit: contain;
  border-radius: 5px; /* Adds a slight rounded border for aesthetics */
}

.certificate-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certificate-list li {
  margin-bottom: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.certificate-list a {
  text-decoration: none;
  color: #1e88e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.certificate-list a:hover {
  background-color: #f1f1f1;
  color: #0d47a1;
}

.certificate-list a span {
  flex-grow: 1;
}

.material-icons {
  font-size: 1.2rem;
  color: #0d47a1;
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

.captcha-container {
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
}

#captchaCanvas {
  border-radius: 4px;
}

#captchaInput {
  width: 100%;
  padding: 0.75rem;
  margin: 1rem 0;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: var(--body-font);
  font-size: 1rem;
}

.error-message {
  color: #dc2626;
  margin-bottom: 1rem;
  display: none;
}

.hidden {
  display: none;
}

.footer {
  background: var(--gradient); /* Use the gradient defined in variables */
  color: white;
  padding: 4rem 2rem;
  font-family: var(--body-font);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.contact-info, .footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item, .footer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  transition: transform 0.3s, background 0.3s;
}

.contact-item:hover, .footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.contact-icon, .link-icon {
  font-size: 1.25rem;
}

.footer-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-family: var(--body-font);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-button:hover {
  background-color: var(--secondary);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.95rem;
  opacity: 0.9;
}
.publications-section {
  padding: 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.publications-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.publication-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.75rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.publication-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.publication-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.type-paper {
  background: #dbeafe;
  color: #1e40af;
}

.type-paper.in-progress {
  background: #fef3c7;
  color: #92400e;
}

.type-poster {
  background: #dcfce7;
  color: #166534;
}

.type-talk {
  background: #f3e8ff;
  color: #6b21a8;
}

.publication-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.publication-authors {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.publication-details {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

.publication-venues {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.venue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: #4b5563;
}

.venue-item i {
  color: #2563eb;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .publications-section {
    padding: 2rem 1.5rem;
  }
  
  .publication-header {
    flex-direction: column;
  }
  
  .publication-type {
    align-self: flex-start;
  }
}

.research-section {
  padding: 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.research-overview {
  margin-bottom: 3rem;
}

.research-summary {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 2rem;
}

.research-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.interest-tag {
  background: #f0f9ff;
  color: #1e40af;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.interest-tag:hover {
  transform: translateY(-2px);
  background: #dbeafe;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.interest-tag i {
  font-size: 1.1rem;
  color: #2563eb;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  margin: 3rem 0;
}

/* Keep your existing publications-section styles but remove the top padding */
.publications-section {
  padding: 0 4rem 2rem 4rem;
}

@media (max-width: 768px) {
  .research-section {
    padding: 2rem 1.5rem;
  }
  
  .research-summary {
    font-size: 1rem;
  }
  
  .interest-tag {
    font-size: 0.9rem;
  }
}


.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 64px;
  background: #1e3a8a;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 1.5rem 0;
}

.nav-item {
  position: relative;
  width: 100%;
  height: calc(100% / 7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  transition: background 0.3s ease;
}

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

.nav-text {
  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: inherit;
}

/* Active state */
.nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .sidebar {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 64px;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.1);
  }

  .nav-links {
    flex-direction: row;
    padding: 0;
  }

  .nav-item {
    height: 64px;
    writing-mode: horizontal-tb;
    transform: none;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-item:last-child {
    border-right: none;
  }

  .nav-text {
    font-size: 0.75rem;
  }
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.1);
}

.hero-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.3);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.85),
    rgba(37, 99, 235, 0.75)
  );
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 1200px;
  padding: 0 2rem;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

h1 {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-divider {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  opacity: 0;
  animation: slideUp 1s ease forwards;
  animation-delay: 0.8s;
}

.primary-btn,
.secondary-btn {
  padding: 0.875rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-btn {
  background: white;
  color: var(--primary);
}

.secondary-btn {
  background: transparent;
  color: white;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .primary-btn,
  .secondary-btn {
    width: 100%;
    text-align: center;
  }
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.1) rotate(0deg);
  transform-origin: center center;
  will-change: transform;
}

.project-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-title {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

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

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link.github {
  background: #24292e;
  color: white;
}

.project-link.youtube {
  background: #ff0000;
  color: white;
}

.project-link.figma {
  background: #1abcfe;
  color: white;
}

.project-link img {
  width: 20px;
  height: 20px;
}

.project-content {
  padding: 1.75rem 2rem;
}

.project-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.project-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f0f4f8;
  border-radius: 8px;
  color: #4b5563;
  font-size: 0.95rem;
}


.image-gallery {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem;
  overflow-x: auto;
  align-items: flex-start;
}

.image-gallery img {
  height: 300px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.video-wrapper {
  position: relative;
  width: 533px; /* 16:9 aspect ratio based on height of 300px */
  height: 300px;
  flex-shrink: 0;
}

.image-gallery iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: none;
}

.experience-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;  /* Added consistent bottom margin */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.company-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 5px;
}

.experience-content {
  padding: 1.75rem 2rem;
}

.gallery-container {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 8px;
}

.image-gallery {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem;
  overflow-x: auto;
  align-items: flex-start;
}

.image-gallery img {
  height: 300px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.video-wrapper {
  position: relative;
  width: 533px;  /* 16:9 aspect ratio for 300px height */
  height: 300px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Custom scrollbar for gallery */
.image-gallery::-webkit-scrollbar {
  height: 8px;
}

.image-gallery::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.image-gallery::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.image-gallery::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  line-height: 2;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--secondary);
  text-decoration: underline;
}


.hero-main h1 {
  font-size: 7.5em;
  line-height: 1.2;
  margin: 0;
}

.typed-text {
  color: #fff;
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: #fff;
  animation: blink 0.7s infinite;
}

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


.image-viewer {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.viewer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.9);
  opacity: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease-out;
}

.viewer-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#viewerImage {
  max-width: 90%;
  max-height: 90vh;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1),
              opacity 0.3s ease-out;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-button.prev {
  left: 20px;
}

.nav-button.next {
  right: 20px;
}

.close-viewer {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.close-viewer:hover {
  background: rgba(255, 255, 255, 0.2);
}

.image-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Active states */
.image-viewer.active {
  visibility: visible;
}

.image-viewer.active .viewer-backdrop {
  opacity: 1;
}

.image-viewer.active #viewerImage {
  opacity: 1;
  transform: scale(1);
}

.image-viewer.active .nav-button,
.image-viewer.active .close-viewer,
.image-viewer.active .image-counter {
  opacity: 1;
}

/* Gallery image hover effect */
.gallery-container img:not(.company-logo) {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.gallery-container img:not(.company-logo):hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .nav-button {
      width: 40px;
      height: 40px;
      font-size: 20px;
  }

  .nav-button.prev {
      left: 10px;
  }

  .nav-button.next {
      right: 10px;
  }
}

.back-to-top {
  position: fixed;
  bottom: -60px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
  z-index: 99;
  -webkit-tap-highlight-color: transparent; /* Prevents tap highlight on mobile */
}

.back-to-top:hover {
  background: #111827;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Explicitly set active/focus states */
.back-to-top:active,
.back-to-top:focus {
  background: #111827;
  transform: translateY(0);
  outline: none;
}

/* Remove default focus outline and replace with our own style if needed */
.back-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.back-to-top.visible {
  bottom: 30px;
  opacity: 1;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 20px;
  }
  
  .back-to-top.visible {
    bottom: 20px;
  }
}

.back-to-top svg {
  transition: transform 0.2s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* Custom Scrollbar Styling */
/* For Webkit browsers (Chrome, Safari, newer versions of Opera) */
::-webkit-scrollbar {
  width: 12px;  /* Width for vertical scrollbar */
  height: 12px; /* Height for horizontal scrollbar */
}

::-webkit-scrollbar-track {
  background: #f1f5f9;  /* Light gray background */
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border: 3px solid #f1f5f9;  /* Creates padding effect */
  border-radius: 8px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* For small screens - thinner scrollbar */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
}

/* Hide scrollbar on hover but keep functionality */
.hide-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.hide-scrollbar::-webkit-scrollbar-thumb {
  background: transparent;
}

.hide-scrollbar:hover::-webkit-scrollbar-thumb {
  background: var(--primary);
}

/* Firefox scrollbar compatibility */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f1f5f9;
}

/* For Internet Explorer */
body {
  -ms-overflow-style: none;  /* Hide default scrollbar */
  scrollbar-face-color: var(--primary);
  scrollbar-track-color: #f1f5f9;
  scrollbar-arrow-color: var(--primary);
  scrollbar-shadow-color: rgba(0, 0, 0, 0.1);
}

/* Optional: Remove scrollbar for specific elements while maintaining scroll functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform-origin: center center;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 4;
  transform-origin: center center;
  will-change: transform;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  will-change: transform;
}


/* Optimize performance */
.hero * {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform-origin: center center;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 4;
  transform-origin: center center;
  will-change: transform;
}

.hero-content * {
  transform-origin: center center;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
}

.role-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 5px 15px;
  min-width: 50px; /* Minimum width while transitioning */
  display: inline-flex;
  align-items: center;
  transition: width 0.3s ease;
}

.role {
  white-space: nowrap;
  color: white;
  font-weight: 500;
}

/* Animation for text entering */
.animate__bounceIn {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
  80% {
    opacity: 1;
    transform: scale(0.89);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-main {
  transform-origin: center 20%;
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.hero-video {
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.1s linear;
}

.scroll-indicator {
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.company-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-name.primary {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  margin: 0;
  line-height: 1.2;
}

.collaborator-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.collaborator-label {
  font-size: 0.9rem;
  color: #6B7280;
  font-weight: 400;
  position: relative;
  padding-left: 1.5rem;
}

.collaborator-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1rem;
  height: 1px;
  background: #D1D5DB;
}

.company-name.secondary {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4B5563;
  margin: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.company-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.collaborator-logo {
  opacity: 0.8;
  transform: scale(0.9);
}

.collaborator-logo:hover {
  opacity: 1;
  transform: translateY(-2px) scale(0.9);
}

@media (max-width: 768px) {
  .company-name.primary {
      font-size: 2rem;
  }

  .collaborator-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
      margin-left: 1rem;
  }

  .collaborator-label {
      padding-left: 0;
  }

  .collaborator-label::before {
      display: none;
  }

  .logo-container {
      margin-top: 1rem;
  }
}

.position-meta {
  margin-top: 1em;
}