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

:root {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: 0.5;
  --pointer-from-left: 0.5;
  --card-opacity: 0;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --background-x: 50%;
  --background-y: 50%;
  --card-radius: 16px;
  --sunpillar-1: hsl(174, 100%, 73%);
  --sunpillar-2: hsl(195, 100%, 69%);
  --sunpillar-3: hsl(216, 100%, 69%);
  --sunpillar-4: hsl(237, 100%, 76%);
  --sunpillar-5: hsl(258, 100%, 74%);
  --sunpillar-6: hsl(279, 100%, 73%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
  /* Dark theme gradient background */
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.5s, color 0.5s;
  background-color: black;
}

/* Light Theme Styles */
body.light-theme {
  background-color: rgb(250, 223, 244);
  color: #1f2937;
}

body.light-theme .navbar {
  background-color: rgba(255, 255, 255, 0.8);
}

body.light-theme .nav-links a {
  color: #1f2937;
}

body.light-theme .hamburger-line {
  background-color: #1f2937;
}

body.light-theme .hero-section {
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

body.light-theme .executive-section,
body.light-theme .departments-section {
  background: rgba(255, 255, 255, 0.2);
}

body.light-theme .section-title,
body.light-theme .hero-title {
  color: #1f2937;
}

body.light-theme .hero-tagline {
  color: #374151;
}

body.light-theme .hero-description,
body.light-theme .section-description {
  color: #6b7280;
}

body.light-theme .department-card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

body.light-theme .department-header {
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

body.light-theme .member-item {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

body.light-theme .member-content h4 {
  color: #1f2937;
}

body.light-theme .member-content p {
  color: #6b7280;
}

/* Dark theme member role styling */
body:not(.light-theme) .member-content p {
  color: white;
}

body.light-theme .member-linkedin {
  background: rgba(255, 255, 255, 0.4);
  color: #6b7280;
}

body.light-theme .department-description {
  color: #6b7280;
}

body.light-theme .member-count {
  color: #1f2937;
}

body.light-theme .member-label {
  color: #6b7280;
}

/* Navbar Styles */
#logo {
  height: 25px;
  margin-left: 10px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

body.light-theme #logo {
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
}

.navbar {
  width: 100%;
  height: 8%;
  padding: 1px 10px;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.5s ease;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  padding-right: 10px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ec4899;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1000;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-controls .theme-toggle {
  display: none;
}

.nav-links .theme-toggle {
  display: inline-flex;
}

/* Decorative Elements Container */
.decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Base Shape Styles */
.shape {
  position: absolute;
  opacity: 0.7;
  animation: floatUp 8s ease-in-out infinite;
  transition: all 0.3s ease;
}

/* Circle Shapes */
.shape-circle {
  border-radius: 50%;
}

.shape-1 {
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, #ff6b9d, #ff8fab);
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 15px;
  height: 15px;
  background: linear-gradient(45deg, #4ecdc4, #7fdbda);
  top: 25%;
  right: 8%;
  animation-delay: 1s;
}

.shape-3 {
  width: 25px;
  height: 25px;
  background: linear-gradient(45deg, #45b7d1, #74c7ec);
  bottom: 30%;
  left: 3%;
  animation-delay: 2s;
}

/* Square Shapes */
.shape-square {
  border-radius: 4px;
  transform: rotate(45deg);
}

.shape-4 {
  width: 18px;
  height: 18px;
  background: linear-gradient(45deg, #96ceb4, #b8e6d1);
  bottom: 15%;
  right: 5%;
  animation-delay: 3s;
}

.shape-5 {
  width: 22px;
  height: 22px;
  background: linear-gradient(45deg, #feca57, #fed976);
  top: 60%;
  left: 10%;
  animation-delay: 4s;
}

.shape-6 {
  width: 16px;
  height: 16px;
  background: linear-gradient(45deg, #ff9ff3, #ffb3f7);
  top: 40%;
  right: 15%;
  animation-delay: 5s;
}

/* Diamond Shapes */
.shape-diamond {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.shape-7 {
  background: linear-gradient(45deg, #a8e6cf, #c7f0db);
  top: 35%;
  left: 20%;
  animation-delay: 1.5s;
}

.shape-8 {
  background: linear-gradient(45deg, #ffd93d, #ffe066);
  bottom: 45%;
  right: 25%;
  animation-delay: 3.5s;
}

.shape-9 {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  top: 70%;
  right: 10%;
  animation-delay: 6s;
}

/* Triangle Shapes */
.shape-triangle {
  width: 0;
  height: 0;
  background: transparent;
}

.shape-10 {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 17px solid #c44569;
  top: 50%;
  left: 15%;
  animation-delay: 2.5s;
}

.shape-11 {
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid #6c5ce7;
  bottom: 25%;
  right: 30%;
  animation-delay: 4.5s;
}

/* Hexagon Shapes */
.shape-hexagon {
  width: 20px;
  height: 17px;
  position: relative;
}

.shape-hexagon::before,
.shape-hexagon::after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}

.shape-12 {
  background: #fd79a8;
  top: 45%;
  left: 8%;
  animation-delay: 1.8s;
}

.shape-12::before {
  bottom: 100%;
  border-bottom: 8.5px solid #fd79a8;
}

.shape-12::after {
  top: 100%;
  border-top: 8.5px solid #fd79a8;
}

.shape-13 {
  background: #00b894;
  bottom: 35%;
  left: 25%;
  animation-delay: 5.5s;
}

.shape-13::before {
  bottom: 100%;
  border-bottom: 8.5px solid #00b894;
}

.shape-13::after {
  top: 100%;
  border-top: 8.5px solid #00b894;
}

/* Star Shapes */
.shape-star {
  position: relative;
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 6px solid #fdcb6e;
  transform: rotate(35deg);
}

.shape-star::before {
  content: "";
  position: absolute;
  left: -8px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 6px solid #fdcb6e;
  transform: rotate(-70deg);
}

.shape-star::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 2px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 6px solid #fdcb6e;
  transform: rotate(70deg);
}

.shape-14 {
  top: 20%;
  right: 20%;
  animation-delay: 3.2s;
}

.shape-15 {
  bottom: 50%;
  left: 30%;
  animation-delay: 6.8s;
}

/* Enhanced Floating Animation - Elements move UP when scrolling DOWN */
@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(90deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
  75% {
    transform: translateY(-15px) rotate(270deg);
  }
}

/* Interactive hover effects for shapes */
.shape:hover {
  transform: scale(1.3) !important;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Parallax effect classes */
.shape.parallax-up {
  transition: transform 0.1s ease-out;
}

.page-container {
  min-height: 100vh;
  position: relative;
  padding-top: 80px; /* Account for fixed navbar */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background Elements */
.background-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.orb-1 {
  top: 0;
  right: 0;
  width: 384px;
  height: 384px;
  background: linear-gradient(135deg, #fce7f3, #f9a8d4, #f472b6);
  animation: float-orb-1 20s ease-in-out infinite;
}

.orb-2 {
  bottom: 0;
  left: 0;
  width: 320px;
  height: 320px;
  background: linear-gradient(45deg, #fbcfe8, #f9a8d4, #ec4899);
  animation: float-orb-2 25s ease-in-out infinite reverse;
}

body.light-theme .orb-1 {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1, #94a3b8);
}

body.light-theme .orb-2 {
  background: linear-gradient(45deg, #f1f5f9, #e2e8f0, #cbd5e1);
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: linear-gradient(
      rgba(236, 72, 153, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(236, 72, 153, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

body.light-theme .grid-pattern {
  background-image: linear-gradient(
      rgba(148, 163, 184, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
}

/* Gradient Text Utility */
.gradient-text {
  background: linear-gradient(135deg, #dc2626, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
  background-size: 300% 300%;
  animation: gradientFlow 4s ease-in-out infinite;
}

.gradient-text:hover {
  animation-play-state: paused;
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(236, 72, 153, 0.1);
  backdrop-filter: blur(5px);
}

/* Enhanced Hero Icon Animation */
.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #dc2626, #ec4899, #8b5cf6);
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2);
  transition: all 0.3s ease;
  animation: colorShift 8s ease-in-out infinite;
  background-size: 300% 300%;
}

.hero-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3);
  animation-play-state: paused;
}

.hero-icon i {
  font-size: 40px;
  color: white;
}

/* Enhanced Hero Title Animation */
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  transition: transform 0.5s ease;
  animation: titleGlow 8s ease-in-out infinite;
  color: #ffffff; /* Changed from #f9fafb to pure white for better contrast */
}

body.light-theme .hero-title {
  color: #1f2937;
}

/* Animated title text */
.hero-title .title-our {
  background: linear-gradient(
    135deg,
    #dc2626,
    #ec4899,
    #8b5cf6,
    #6366f1,
    #3b82f6
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 400%;
  animation: smoothGradientFlow 5s ease-in-out infinite;
}

.hero-title .title-team {
  background: linear-gradient(
    135deg,
    #ec4899,
    #8b5cf6,
    #6366f1,
    #3b82f6,
    #dc2626
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 400%;
  animation: smoothGradientFlow 5s ease-in-out infinite 1s;
}

/* Enhanced contrast for dark theme */
body:not(.light-theme) .title-our,
body:not(.light-theme) .title-team {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

body.light-theme .hero-tagline {
  color: #374151;
}

.tagline-word {
  transition: all 0.3s ease;
  cursor: default;
}

.tagline-word[data-color="red-pink"]:hover {
  background: linear-gradient(135deg, #dc2626, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline-word[data-color="pink-purple"]:hover {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline-word[data-color="purple-indigo"]:hover {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline-word[data-color="indigo-blue"]:hover {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: #9ca3af;
  max-width: 768px;
  margin: 0 auto;
  line-height: 1.7;
}

body.light-theme .hero-description {
  color: #6b7280;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

body.light-theme .section-title {
  color: #1f2937;
}

.section-divider {
  width: 96px;
  height: 4px;
  background: linear-gradient(135deg, #dc2626, #ec4899, #8b5cf6);
  margin: 0 auto 24px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
  animation: gradientFlow 4s ease-in-out infinite;
}

.section-description {
  color: #9ca3af;
  max-width: 512px;
  margin: 0 auto;
}

body.light-theme .section-description {
  color: #6b7280;
}

/* Executive Section */
.executive-section {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.executive-section::before,
.departments-section::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(236, 72, 153, 0.3) 50%,
    transparent 100%
  );
  margin-bottom: 0;
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
}

/* Center the last card in the third row */
.executive-card-centered {
  grid-column: 2 / 3;
}

/* Enhanced True 3D Card Effects */
.executive-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  position: relative;
  touch-action: pan-y; /* Allow vertical scrolling */
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 350px;
}

.executive-card::before {
  content: "";
  position: absolute;
  inset: -15px;
  background: inherit;
  background-position: inherit;
  border-radius: inherit;
  transition: all 0.5s ease;
  filter: contrast(1.5) saturate(1.5) blur(30px);
  opacity: 0.6;
  transform: scale(0.8) translateZ(-20px);
  background-size: 100% 100%;
  background-image: radial-gradient(
      farthest-side circle at var(--pointer-x) var(--pointer-y),
      hsla(0, 100%, 90%, var(--card-opacity)) 4%,
      hsla(320, 50%, 80%, calc(var(--card-opacity) * 0.75)) 10%,
      hsla(260, 25%, 70%, calc(var(--card-opacity) * 0.5)) 50%,
      hsla(237, 0%, 60%, 0) 100%
    ),
    radial-gradient(35% 52% at 55% 20%, #dc262644 0%, #073aff00 100%),
    radial-gradient(100% 100% at 50% 50%, #ec4899ff 1%, #073aff00 76%),
    conic-gradient(
      from 124deg at 50% 50%,
      #dc2626ff 0%,
      #ec4899ff 40%,
      #8b5cf6ff 60%,
      #dc2626ff 100%
    );
}

.executive-card:hover,
.executive-card.active {
  --card-opacity: 1;
  transform: translateY(-20px) scale(1.05);
}

.executive-card:hover::before,
.executive-card.active::before {
  filter: contrast(1.2) saturate(1.8) blur(40px) opacity(0.8);
  transform: scale(0.95) translateZ(-30px);
}

.card-inner {
  height: 400px;
  display: grid;
  aspect-ratio: 0.718;
  border-radius: var(--card-radius);
  position: relative;
  transform-style: preserve-3d;
  background-blend-mode: color-dodge, normal, normal, normal;
  animation: glow-bg 12s linear infinite;
  box-shadow: rgba(0, 0, 0, 0.2) calc((var(--pointer-from-left) * 10px) - 5px)
      calc((var(--pointer-from-top) * 15px) - 8px) 20px -3px,
    rgba(0, 0, 0, 0.1) calc((var(--pointer-from-left) * 20px) - 10px)
      calc((var(--pointer-from-top) * 25px) - 12px) 35px -8px,
    rgba(220, 38, 38, 0.15) 0 0 25px -8px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateZ(0) rotateX(0deg) rotateY(0deg);
  background-size: 100% 100%;
  background-position: 0 0, 0 0, 50% 50%, 0 0;
  background-image: radial-gradient(
      farthest-side circle at var(--pointer-x) var(--pointer-y),
      hsla(0, 100%, 90%, var(--card-opacity)) 4%,
      hsla(320, 50%, 80%, calc(var(--card-opacity) * 0.75)) 10%,
      hsla(260, 25%, 70%, calc(var(--card-opacity) * 0.5)) 50%,
      hsla(237, 0%, 60%, 0) 100%
    ),
    radial-gradient(35% 52% at 55% 20%, #dc262644 0%, #073aff00 100%),
    radial-gradient(100% 100% at 50% 50%, #ec4899ff 1%, #073aff00 76%),
    conic-gradient(
      from 124deg at 50% 50%,
      #dc2626ff 0%,
      #ec4899ff 40%,
      #8b5cf6ff 60%,
      #dc2626ff 100%
    );
  overflow: hidden;
}

.executive-card:hover .card-inner,
.executive-card.active .card-inner {
  transition: transform 0.1s ease-out;
  transform: translateZ(50px) rotateX(var(--rotate-y)) rotateY(var(--rotate-x))
    scale(1.02);
  box-shadow: rgba(0, 0, 0, 0.3) calc((var(--pointer-from-left) * 15px) - 8px)
      calc((var(--pointer-from-top) * 20px) - 10px) 30px -3px,
    rgba(0, 0, 0, 0.2) calc((var(--pointer-from-left) * 25px) - 12px)
      calc((var(--pointer-from-top) * 30px) - 15px) 45px -8px,
    rgba(220, 38, 38, 0.25) 0 0 40px -5px,
    rgba(236, 72, 153, 0.15) 0 0 60px -15px;
}

.card-inner * {
  display: grid;
  grid-area: 1 / -1;
  border-radius: var(--card-radius);
  transform-style: preserve-3d;
  pointer-events: none;
}

.card-inside {
  inset: 1px;
  position: absolute;
  background-image: linear-gradient(145deg, #1f2937cc 0%, #374151aa 100%);
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateZ(1px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-shine {
  --space: 5%;
  --angle: -45deg;
  transform: translateZ(10px);
  overflow: hidden;
  z-index: 3;
  background: transparent;
  background-size: cover;
  background-position: center;
  background-image: repeating-linear-gradient(
      0deg,
      var(--sunpillar-1) calc(var(--space) * 1),
      var(--sunpillar-2) calc(var(--space) * 2),
      var(--sunpillar-3) calc(var(--space) * 3),
      var(--sunpillar-4) calc(var(--space) * 4),
      var(--sunpillar-5) calc(var(--space) * 5),
      var(--sunpillar-6) calc(var(--space) * 6),
      var(--sunpillar-1) calc(var(--space) * 7)
    ),
    repeating-linear-gradient(
      var(--angle),
      #0e152e 0%,
      hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%,
      hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--pointer-x) var(--pointer-y),
      hsla(0, 0%, 0%, 0.1) 12%,
      hsla(0, 0%, 0%, 0.15) 20%,
      hsla(0, 0%, 0%, 0.25) 120%
    );
  background-position: 0 var(--background-y),
    var(--background-x) var(--background-y), center;
  background-blend-mode: color, hard-light;
  background-size: 500% 500%, 300% 300%, 200% 200%;
  background-repeat: repeat;
  transition: filter 0.6s ease, transform 0.6s ease;
  filter: brightness(0.66) contrast(1.33) saturate(0.33) opacity(0.5);
  animation: holo-bg 18s linear infinite;
  mix-blend-mode: color-dodge;
}

.executive-card:hover .card-shine,
.executive-card.active .card-shine {
  filter: brightness(0.85) contrast(1.5) saturate(0.5);
  transform: translateZ(15px) scale(1.02);
  animation: none;
}

.card-glare {
  transform: translateZ(20px);
  overflow: hidden;
  background-image: radial-gradient(
    farthest-corner circle at var(--pointer-x) var(--pointer-y),
    hsl(0, 25%, 80%) 12%,
    hsla(320, 40%, 30%, 0.8) 90%
  );
  mix-blend-mode: overlay;
  filter: brightness(0.8) contrast(1.2);
  z-index: 4;
  transition: transform 0.6s ease;
}

.executive-card:hover .card-glare,
.executive-card.active .card-glare {
  transform: translateZ(25px) scale(1.01);
}

.card-content {
  max-height: 100%;
  overflow: hidden;
  text-align: center;
  position: relative;
  transform: translateZ(30px)
    translate3d(
      calc(var(--pointer-from-left) * -8px + 4px),
      calc(var(--pointer-from-top) * -8px + 4px),
      0
    ) !important;
  z-index: 5;
  /* mix-blend-mode: luminosity; */
  transition: transform 0.3s ease;
}

.executive-card:hover .card-content,
.executive-card.active .card-content {
  transform: translateZ(40px)
    translate3d(
      calc(var(--pointer-from-left) * -10px + 5px),
      calc(var(--pointer-from-top) * -10px + 5px),
      0
    ) !important;
}

.image-container {
  position: relative;
  overflow: hidden;
  height: 100%;
  transform: translateZ(5px);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: calc(1.75 - var(--pointer-from-center));
  transform: scale(1.02) translateZ(0);
}

.executive-card:hover .image-container img,
.executive-card.active .image-container img {
  transform: scale(1.05) translateZ(10px);
}

.member-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 12px 14px;
  pointer-events: auto;
  transform: translateZ(50px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.executive-card:hover .member-info,
.executive-card.active .member-info {
  transform: translateZ(60px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(220, 38, 38, 0.2);
}

.member-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.member-text {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.member-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  margin: 0;
}

.member-position {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
  margin: 0;
}

.contact-links {
  display: flex;
  gap: 8px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  font-size: 14px;
  pointer-events: auto;
  cursor: pointer;
}

.contact-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  background: linear-gradient(135deg, #dc2626, #ec4899);
}

/* Departments Section */
.departments-section {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.department-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(236, 72, 153, 0.1);
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(15px);
}

/* Department-specific hover effects */
.department-card[data-department="tech"]:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
  border-color: #dc2626;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.05),
    rgba(236, 72, 153, 0.05)
  );
}

.department-card[data-department="tech"]:hover .department-header {
  border-color: #dc2626;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.1),
    rgba(236, 72, 153, 0.1)
  );
}

.department-card[data-department="design"]:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.15);
  border-color: #ec4899;
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.05),
    rgba(139, 92, 246, 0.05)
  );
}

.department-card[data-department="design"]:hover .department-header {
  border-color: #ec4899;
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.1),
    rgba(139, 92, 246, 0.1)
  );
}

.department-card[data-department="marketing"]:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.05),
    rgba(99, 102, 241, 0.05)
  );
}

.department-card[data-department="marketing"]:hover .department-header {
  border-color: #8b5cf6;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(99, 102, 241, 0.1)
  );
}

.department-card[data-department="content"]:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(59, 130, 246, 0.05)
  );
}

.department-card[data-department="content"]:hover .department-header {
  border-color: #6366f1;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(59, 130, 246, 0.1)
  );
}

.department-card[data-department="media"]:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05),
    rgba(6, 182, 212, 0.05)
  );
}

.department-card[data-department="media"]:hover .department-header {
  border-color: #3b82f6;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(6, 182, 212, 0.1)
  );
}

.department-header {
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(236, 72, 153, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.department-card:hover .department-header {
  border-color: #ec4899;
}

.department-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.department-card:hover .department-icon {
  transform: scale(1.25) rotate(12deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tech-gradient {
  background: linear-gradient(135deg, #dc2626, #ec4899);
}

.design-gradient {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.marketing-gradient {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.content-gradient {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
}

.media-gradient {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.department-info {
  flex: 1;
}

.department-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.tech-text {
  background: linear-gradient(135deg, #dc2626, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.design-text {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.marketing-text {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-text {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.media-text {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.department-card:hover .department-name {
  transform: scale(1.1);
}

.department-description {
  font-size: 0.875rem;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.department-card:hover .department-description {
  color: #374151;
  font-weight: 0.9rem;
}
.department-card:hover:not(.light-theme) .department-description {
  color: white;
  font-weight: 0.9rem;
}

.department-stats {
  text-align: right;
  transition: all 0.3s ease;
}

.department-card:hover .department-stats {
  transform: scale(1.1);
}

.member-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  transition: all 0.3s ease;
}

.department-card:hover .member-count {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.member-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.department-card:hover .member-label {
  color: #374151;
}

.department-members {
  padding: 24px;
}

.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.1);
}

.member-item:hover {
  border-color: #ec4899;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1);
  transform: translateY(-4px) scale(1.02);
}

.member-item:last-child {
  margin-bottom: 0;
}

.member-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.member-item:hover .member-content h4 {
  transform: scale(1.05);
}

.member-content p {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  transition: all 0.3s ease;
}

.member-item:hover .member-content p {
  font-weight: 600;
}

/* Department-specific member role hover effects - solid colors based on theme */
.department-card[data-department="tech"] .member-item:hover .member-content p {
  color: black;
  font-weight: 600;
}

body:not(.light-theme)
  .department-card[data-department="tech"]
  .member-item:hover
  .member-content
  p {
  color: white;
  font-weight: 600;
}

.department-card[data-department="design"]
  .member-item:hover
  .member-content
  p {
  color: black;
  font-weight: 600;
}

body:not(.light-theme)
  .department-card[data-department="design"]
  .member-item:hover
  .member-content
  p {
  color: white;
  font-weight: 600;
}

.department-card[data-department="marketing"]
  .member-item:hover
  .member-content
  p {
  color: black;
  font-weight: 600;
}

body:not(.light-theme)
  .department-card[data-department="marketing"]
  .member-item:hover
  .member-content
  p {
  color: white;
  font-weight: 600;
}

.department-card[data-department="content"]
  .member-item:hover
  .member-content
  p {
  color: black;
  font-weight: 600;
}

body:not(.light-theme)
  .department-card[data-department="content"]
  .member-item:hover
  .member-content
  p {
  color: white;
  font-weight: 600;
}

.department-card[data-department="media"] .member-item:hover .member-content p {
  color: black;
  font-weight: 600;
}

body:not(.light-theme)
  .department-card[data-department="media"]
  .member-item:hover
  .member-content
  p {
  color: white;
  font-weight: 600;
}

/* Keep the light theme override but make it less specific */
body.light-theme .member-item:not([data-department]) .member-content p {
  color: white;
  font-weight: 600;
}

/* Department-specific member name hover effects */
.department-card[data-department="tech"] .member-item:hover .member-content h4 {
  background: linear-gradient(135deg, #dc2626, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.05);
}

.department-card[data-department="design"]
  .member-item:hover
  .member-content
  h4 {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.05);
}

.department-card[data-department="marketing"]
  .member-item:hover
  .member-content
  h4 {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.05);
}

.department-card[data-department="content"]
  .member-item:hover
  .member-content
  h4 {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.05);
}

.department-card[data-department="media"]
  .member-item:hover
  .member-content
  h4 {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.05);
}

.member-linkedin {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(0) rotate(0deg);
}

/* Department-specific member item hover effects */
.department-card[data-department="tech"] .member-item:hover {
  border-color: #dc2626;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.1),
    rgba(236, 72, 153, 0.1)
  );
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
  transform: translateY(-4px) scale(1.02);
}

.department-card[data-department="design"] .member-item:hover {
  border-color: #ec4899;
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1);
  transform: translateY(-4px) scale(1.02);
}

.department-card[data-department="marketing"] .member-item:hover {
  border-color: #8b5cf6;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(99, 102, 241, 0.1)
  );
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
  transform: translateY(-4px) scale(1.02);
}

.department-card[data-department="content"] .member-item:hover {
  border-color: #6366f1;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(59, 130, 246, 0.1)
  );
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transform: translateY(-4px) scale(1.02);
}

.department-card[data-department="media"] .member-item:hover {
  border-color: #3b82f6;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(6, 182, 212, 0.1)
  );
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-4px) scale(1.02);
}

.tech-hover:hover {
  background: linear-gradient(135deg, #dc2626, #ec4899);
  color: white;
  transform: translateY(-4px) rotate(12deg) scale(1.25);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.design-hover:hover {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  transform: translateY(-4px) rotate(12deg) scale(1.25);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.marketing-hover:hover {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  transform: translateY(-4px) rotate(12deg) scale(1.25);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.content-hover:hover {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: white;
  transform: translateY(-4px) rotate(12deg) scale(1.25);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.media-hover:hover {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  transform: translateY(-4px) rotate(12deg) scale(1.25);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-bg {
  0% {
    --bgrotate: 0deg;
  }
  100% {
    --bgrotate: 360deg;
  }
}

@keyframes holo-bg {
  0% {
    background-position: 0 var(--background-y), 0 0, center;
  }
  100% {
    background-position: 0 var(--background-y), 90% 90%, center;
  }
}

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

@keyframes float3D {
  0%,
  100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: translateY(-5px) rotateX(2deg) rotateY(-1deg);
  }
  50% {
    transform: translateY(-10px) rotateX(0deg) rotateY(2deg);
  }
  75% {
    transform: translateY(-5px) rotateX(-2deg) rotateY(-1deg);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.executive-card:not(:hover) .card-inner {
  animation: float3D 6s ease-in-out infinite;
}

/* Enhanced Orb Animations */
@keyframes float-orb-1 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  25% {
    transform: translateY(-20px) translateX(-10px) scale(1.1);
  }
  50% {
    transform: translateY(-40px) translateX(20px) scale(0.9);
  }
  75% {
    transform: translateY(-10px) translateX(-15px) scale(1.05);
  }
}

@keyframes float-orb-2 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  33% {
    transform: translateY(30px) translateX(15px) scale(1.15);
  }
  66% {
    transform: translateY(-15px) translateX(-20px) scale(0.85);
  }
}

/* Enhanced smooth animations */
@keyframes colorShift {
  0% {
    background: linear-gradient(135deg, #dc2626, #ec4899, #8b5cf6);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2);
  }
  20% {
    background: linear-gradient(135deg, #e11d48, #f472b6, #a855f7);
    box-shadow: 0 10px 25px rgba(244, 114, 182, 0.2);
  }
  40% {
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #6366f1);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2);
  }
  60% {
    background: linear-gradient(135deg, #a855f7, #6366f1, #3b82f6);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2);
  }
  80% {
    background: linear-gradient(135deg, #6366f1, #3b82f6, #dc2626);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
  }
  100% {
    background: linear-gradient(135deg, #dc2626, #ec4899, #8b5cf6);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2);
  }
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.1);
  }
  25% {
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.15);
  }
  50% {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  }
  75% {
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
  }
  100% {
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.1);
  }
}

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

@keyframes smoothGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 25%;
  }
  50% {
    background-position: 200% 50%;
  }
  75% {
    background-position: 100% 75%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  .mobile-controls .theme-toggle {
    display: inline-flex;
  }
  .nav-links .theme-toggle {
    display: none;
  }
  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  body.light-theme .nav-links {
    background-color: rgba(255, 255, 255, 0.95);
  }

  .nav-links.nav-active {
    right: 0;
  }
  .nav-links a {
    font-size: 18px;
    font-weight: 500;
    padding: 20px 30px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
  }

  body.light-theme .nav-links a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  body.light-theme .nav-links a:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

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

  .hero-title {
    font-size: 3rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

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

  .executive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .executive-card-centered {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .card-inner {
    height: 350px;
  }

  .member-info {
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 10px 12px;
  }

  .member-avatar {
    width: 40px;
    height: 40px;
  }

  .member-name {
    font-size: 13px;
  }

  .member-position {
    font-size: 11px;
  }

  .contact-link {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

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

  .department-header {
    padding: 20px;
  }

  .department-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .department-name {
    font-size: 1.25rem;
  }

  .member-item {
    padding: 12px;
  }

  .member-linkedin {
    width: 36px;
    height: 36px;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    padding: 1px 5px;
  }
  #logo {
    height: 20px;
    margin-left: 5px;
  }
  .nav-links {
    width: 250px;
    right: -250px;
  }
  .nav-links a {
    font-size: 16px;
    padding: 18px 25px;
  }
  .hamburger-line {
    width: 22px;
    height: 2px;
  }
  .mobile-controls {
    gap: 10px;
  }

  .container {
    padding: 0 16px;
  }

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

  .executive-card-centered {
    grid-column: 1;
  }

  .hero-section,
  .executive-section,
  .departments-section {
    padding: 60px 0;
  }

  .card-inner {
    height: 300px;
  }

  .member-info {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 8px 10px;
  }

  .member-avatar {
    width: 36px;
    height: 36px;
  }

  .member-name {
    font-size: 12px;
  }

  .member-position {
    font-size: 10px;
  }

  .contact-link {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .departments-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .department-card {
    margin: 0 -8px;
  }

  .department-header {
    padding: 16px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .department-info {
    text-align: center;
  }

  .department-stats {
    text-align: center;
  }

  .department-members {
    padding: 16px;
  }

  .member-item {
    padding: 12px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .member-linkedin {
    width: 32px;
    height: 32px;
  }
}

/* Add this new rule for better mobile touch handling */
@media (max-width: 768px) {
  .executive-card {
    touch-action: pan-y; /* Ensure vertical scrolling works on mobile */
  }

  .card-inner {
    touch-action: pan-y; /* Allow scrolling through card content */
  }

  .page-container {
    touch-action: pan-y; /* Ensure main container allows scrolling */
  }
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-title {
    font-size: 5rem;
  }
}
