:root {
  --primary: #FF6B00;
  --primary-rgb: 255, 107, 0;
  --primary-dark: #E05D00;
  --primary-light: #FF8C33;
  --dark: #121212;
  --dark-rgb: 18, 18, 18;
  --dark-light: #1E1E1E;
  --light: #FFFFFF;
  --light-rgb: 255, 255, 255;
  --light-dark: #F5F5F5;
  --gray: #888;
  --gray-light: #ffffff;
  --gray-dark: #555;
}

/* Light Theme */
[data-theme="light"] {
  --bg: var(--light);
  --bg-rgb: var(--light-rgb);
  --bg-secondary: #ffffff;
  --text: #272727;
  --text-rgb: 51, 51, 51;
  --text-secondary: #666666;
  --card-bg: var(--light);
  --border: #E0E0E0;
  --text-color: #333333;
  --menu-bg: rgba(255, 255, 255, 0.95);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: var(--dark);
  --bg-rgb: var(--dark-rgb);
  --bg-secondary: #252525;
  --text: #F5F5F5;
  --text-rgb: 245, 245, 245;
  --text-secondary: #CCCCCC;
  --card-bg: #252525;
  --border: #444444;
  --text-color: #F5F5F5;
  --menu-bg: rgba(30, 30, 30, 0.95);
}

/* Orange Theme */
[data-theme="orange"] {
  --bg: #1A1A1A;
  --bg-rgb: 26, 26, 26;
  --bg-secondary: #2A2A2A;
  --text: #FFE6D5;
  --text-rgb: 255, 230, 213;
  --text-secondary: #FFB380;
  --card-bg: #2A2A2A;
  --border: #FF6B00;
  --text-color: #FFE6D5;
  --menu-bg: rgba(42, 42, 42, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  gap: 8px;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
}

.axl-highlight {
  color: var(--primary);
  font-weight: 700;
}

/*Прелоадер*/

.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--dark, #070707);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
  transition: opacity 0.8s;
}

.chip-core {
  position: relative;
  width: 150px; height: 150px;
  border: 2px solid var(--accent, #FF6B00);
  border-radius: 20px;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 0 20px #ff6f08, inset 0 0 15px #c95400;
  animation: pulse 2s infinite;
}

.axl {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent,#FF6B00);
  text-shadow: 0 0 15px var(--accent, #FF6B00);
}

.lines span {
  position: absolute;
  background: var(--accent, #FF6B00);
  box-shadow: 0 0 10px var(--accent, #FF6B00);
  animation: signal 2s infinite;
}

/* Горизонтальные линии */
.lines span:nth-child(1),
.lines span:nth-child(2) {
  width: 60px; height: 2px;
  top: 50%; transform: translateY(-50%);
}
.lines span:nth-child(1) { left: -60px; animation-delay: 0s; }
.lines span:nth-child(2) { right: -60px; animation-delay: 0.5s; }

/* Вертикальные линии */
.lines span:nth-child(3),
.lines span:nth-child(4) {
  height: 60px; width: 2px;
  left: 50%; transform: translateX(-50%);
}
.lines span:nth-child(3) { top: -60px; animation-delay: 1s; }
.lines span:nth-child(4) { bottom: -60px; animation-delay: 1.5s; }

/* Диагональные */
.lines span:nth-child(5),
.lines span:nth-child(6),
.lines span:nth-child(7),
.lines span:nth-child(8) {
  width: 2px; height: 60px;
  background: var(--accent, #FF6B00);
  transform-origin: center;
}
.lines span:nth-child(5) {
  transform: rotate(45deg); top: -40px; left: -40px;
  animation-delay: 0.3s;
}
.lines span:nth-child(6) {
  transform: rotate(-45deg); top: -40px; right: -40px;
  animation-delay: 0.8s;
}
.lines span:nth-child(7) {
  transform: rotate(-45deg); bottom: -40px; left: -40px;
  animation-delay: 1.3s;
}
.lines span:nth-child(8) {
  transform: rotate(45deg); bottom: -40px; right: -40px;
  animation-delay: 1.8s;
}

@keyframes signal {
  0% { opacity: 0; transform: scaleX(0.2) scaleY(0.2); }
  50% { opacity: 1; transform: scaleX(1) scaleY(1); }
  100% { opacity: 0; transform: scaleX(0.2) scaleY(0.2); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px #c95400, inset 0 0 15px #c95400; }
  50% { box-shadow: 0 0 40px #FF6B00, inset 0 0 25px #FF6B00; }
}

.loading-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  animation: spin 1.5s linear infinite;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.loading-ring:nth-child(2) {
  border-top-color: var(--primary-light);
  animation-delay: 0.2s;
  width: 90%;
  height: 90%;
}

.loading-ring:nth-child(3) {
  border-top-color: var(--primary-dark);
  animation-delay: 0.4s;
  width: 80%;
  height: 80%;
}

.axl-logo {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  z-index: 2;
}

.axl-letter {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 5px;
  opacity: 0;
  transform: translateY(20px);
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
  animation: fadeInUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.axl-letter:nth-child(1) { animation-delay: 0.3s; }
.axl-letter:nth-child(2) { animation-delay: 0.4s; }
.axl-letter:nth-child(3) { animation-delay: 0.5s; }

.loading-progress-container {
  width: 200px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.loading-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 1.8s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.loading-percent {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.loading-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0;
  animation: pulse 1.5s infinite ease-in-out;
}

.loading-dot:nth-child(1) { animation-delay: 0.1s; }
.loading-dot:nth-child(2) { animation-delay: 0.3s; }
.loading-dot:nth-child(3) { animation-delay: 0.5s; }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
}

.particles-js-canvas-el {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* About Section */
.about-section {
  background-color: var(--bg-secondary);
}

.about-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text {
  padding-right: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stats-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  border: 1px solid var(--border);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.stats-title {
  font-size: 1rem;
  color: var(--text-secondary);
}

.about-image img {
  width: 80%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.team-member {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-photo {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
}

.member-info {
  padding: 25px;
  text-align: center;
}

.member-name {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.member-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.member-bio {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.skill-tag {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-10px);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.value-card h3 {
  margin-bottom: 15px;
}

.value-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* CTA Section */
.cta-section {
  text-align: center;
  background-color: var(--dark-light);
  color: white;
}

.cta-section .section-title {
  color: white;
}

.cta-section .section-title::after {
  background-color: white;
}

.cta-section .btn {
  background-color: white;
  color: var(--primary);
}

.cta-section .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta-buttons {
  margin-top: 20px;
  display: flex;
  text-decoration: none;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 60px 0 30px;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.footer-copy {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--light);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* Menu */
.menu-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.menu-wrap .toggler {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.menu-wrap .hamburger {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  padding: 1rem;
  background: rgba(var(--primary-rgb), 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-wrap .hamburger > div {
  position: relative;
  width: 70%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.4s ease;
}

.menu-wrap .hamburger > div::before,
.menu-wrap .hamburger > div::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: inherit;
  transition: all 0.4s ease;
}

.menu-wrap .hamburger > div::before {
  top: -8px;
  right: 0;
}

.menu-wrap .hamburger > div::after {
  top: 8px;
  right: 0;
  width: 80%;
}

/* Toggler animate */
.menu-wrap .toggler:checked + .hamburger > div {
  transform: rotate(135deg);
}

.menu-wrap .toggler:checked + .hamburger > div::before,
.menu-wrap .toggler:checked + .hamburger > div::after {
  top: 0;
  transform: rotate(90deg);
  width: 100%;
}

.menu-wrap .toggler:checked:hover + .hamburger > div {
  transform: rotate(225deg);
}

/* Show menu */
.menu-wrap .menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  visibility: hidden;
  overflow: hidden;
  z-index: 999;
  transition: all 0.4s ease;
}

.menu-wrap .menu-content {
  background: var(--menu-bg);
  width: 100%;
  height: 100%;
  padding: 80px 30px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: all 0.4s ease;
}

.menu-wrap .menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-wrap .menu ul li {
  margin-bottom: 15px;
}

.menu-wrap .menu ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.menu-wrap .menu ul li a:hover,
.menu-wrap .menu ul li a.active {
  color: var(--primary);
}

.menu-wrap .menu ul li a i {
  width: 24px;
  text-align: center;
}

.menu-settings {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--text-rgb), 0.1);
}

.language-switcher, .theme-switcher {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.theme-btn {
  border: none;
  color: var(--text-color);
  padding: 8px 15px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-btn.active, .theme-btn.active {
  background: var(--primary);
  color: rgb(255, 255, 255);
}

.lang-btn:hover:not(.active){
  background: rgb(105, 105, 105);
}

.lang-btn {
  border: none;
  color: wheat;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--gray-dark);
  width: 46px;
  height: 26px;
  justify-content: center;
}

.lang-btn:hover {
  background: var(--primary);
  border: none;
  color: var(--text-color);
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--gray-dark);
  width: 46px;
  height: 26px;
  justify-content: center;
}

.theme-btn {
  background: var(--gray-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  justify-content: center;
  padding: 0;
}

.theme-btn:hover {
  background: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  justify-content: center;
  padding: 0;
}

/* Menu state when toggled */
.menu-wrap .toggler:checked ~ .menu {
  visibility: visible;
}

.menu-wrap .toggler:checked ~ .menu .menu-content {
  transform: translateX(0);
}

/* Contact Section Styles */
/* Стили для контактной секции */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 15px;
}

.contact-image:hover .responsive-image {
    transform: scale(1.03);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.info-item p {
    color: var(--text);
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.1);
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.contact-image {
    height: 100%;
}

/* Join Us Section */
.join-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.join-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.join-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.join-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.join-content .section-title {
    color: white;
    text-align: left;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.join-text {
    margin-bottom: 40px;
}

.join-text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.join-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.feature-item i {
    color: var(--primary-light);
}

.join-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-join {
    background: white;
    color: var(--primary);
    padding: 15px 30px;
    font-weight: 600;
}

.btn-join:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-ghost {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    font-weight: 600;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.join-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.join-img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

/* Модалки */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 15px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  z-index: 10;
  transition: all 0.3s ease;
  background: none;
  border: none;
}

.close-modal:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.4s ease;
}

.modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.modal-header h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-method i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.telegram { background: #0088cc; }
.vk { background: #4a76a8; }
.email { background: #d44638; }
.phone { background: var(--primary); }

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Карусель */
.team-carousel {
  width: 100%;
  overflow: hidden;
}

.team-grid {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

.team-member {
  flex: 0 0 280px;
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-photo {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
}

.member-info {
  padding: 25px;
  text-align: center;
}

.member-name {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--text);
}

.member-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.member-bio {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.skill-tag {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}


.team-carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

.team-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 -15px;
    padding: 0 15px;
}

.team-carousel {
    overflow: hidden;
}

.team-carousel:active {
    cursor: grabbing;
}

.team-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
    padding: 10px 0;
}

.team-member {
    flex: 0 0 calc(100% - 20px);
    min-width: 0;
    scroll-snap-align: start;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    background: var(--primary-dark);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.carousel-btn:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.1);
    background: var(--primary-dark);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

/* Точки навигации */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding: 0 15px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.team-modal .modal-content {
  max-width: 900px;
  padding: 0;
  border: none;
}

.member-modal-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 40px;
}

.modal-member-photo-container {
  display: flex;
  justify-content: center;
}

.modal-member-photo {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-member-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-member-name {
  font-size: 2.2rem;
  color: var(--primary);
  margin: 0;
}

.modal-member-role {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0;
}

.modal-member-bio {
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.modal-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.modal-skill-category {
  background-color: rgba(var(--primary-rgb), 0.05);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.modal-skill-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-skill-item {
  padding: 8px 0;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
}

.modal-skill-item:before {
  content: "•";
  color: var(--primary);
  margin-right: 10px;
  font-size: 1.2rem;
}

.modal-skill-item:last-child {
  border-bottom: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.btn-learn-more {
  background-color: var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--primary);
}

.btn-learn-more:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* Smooth animations for all interactive elements */
.team-member {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-member:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.carousel-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-btn:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
}

.skill-tag {
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  background-color: var(--primary);
  color: white;
}

.btn-learn-more {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-learn-more:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

/* Keyframes for smooth animations */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Apply animations to elements */
.team-member {
  animation: fadeInUp 0.6s ease-out;
}

.carousel-btn {
  animation: scaleIn 0.5s ease-out;
}

.modal-content {
  animation: scaleIn 0.3s ease-out;
}

/* Мобильная адаптация модальных окон */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
    align-items: flex-start;
  }
  .about-image,
    .contact-image,
    .join-image {
        display: none;
    }
    
    .about-grid,
    .contact-grid,
    .join-card {
        grid-template-columns: 1fr !important;
    }
    
    /* Исключение для team.jpg - оставляем видимым */
    .team-photo {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

  .modal-content {
    margin: 20px auto;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    animation: slideInUp 0.3s ease-out;
  }
  
  .team-modal .modal-content {
    margin: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .member-modal-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }
  
  .modal-member-photo {
    height: 200px;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .modal-member-name {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .modal-member-role {
    text-align: center;
    font-size: 1rem;
  }
  
  .modal-skills-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .modal-actions {
    justify-content: center;
    margin-top: 20px;
  }
  
  .close-modal {
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  }
}

/* Улучшение отображения на очень маленьких экранах */
@media (max-width: 480px) {
  .modal-content {
    padding: 15px;
    margin: 10px auto;
    width: 95%;
  }
  
  .member-modal-content {
    padding: 10px;
    gap: 15px;
  }
  
  .modal-member-photo {
    height: 150px;
    max-width: 150px;
  }
  
  .modal-member-name {
    font-size: 1.3rem;
  }
  
  .modal-skill-category {
    padding: 12px;
  }
  
  .modal-skill-title {
    font-size: 0.9rem;
  }
  
  .modal-skill-item {
    font-size: 0.85rem;
  }
  
  .btn-learn-more {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
     .team-photo {
        max-width: 250px;
    }
}

/* Предотвращение скроллинга тела при открытой модалке */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Enhanced responsive design for all devices */

/* 4K and large screens (1921px and above) */
@media (min-width: 1024px) {
    .team-member {
        flex: 0 0 calc(25% - 20px);
    }
}

@media (min-width: 1921px) {
  .container {
    max-width: 1600px;
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
  
  .member-photo {
    height: 300px;
  }
  
  .modal-content {
    max-width: 1200px;
  }
}

/* Large desktops (1441px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
  .container {
    max-width: 1400px;
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
  }
}

/* Standard desktops (1201px - 1440px) */
@media (min-width: 1201px) and (max-width: 1440px) {
  .container {
    max-width: 1200px;
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* Small desktops and tablets landscape (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .container {
    max-width: 1100px;
    padding: 0 25px;
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  
  .member-info {
    padding: 20px;
  }
}

/* Tablets landscape (961px - 1024px) */
@media (min-width: 961px) and (max-width: 1024px) {
  .container {
    max-width: 1000px;
    padding: 0 20px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .team-carousel-container {
    padding: 0 35px;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
  }
}

/* Tablets portrait (769px - 960px) */
@media (min-width: 769px) and (max-width: 960px) {
  .container {
    max-width: 900px;
    padding: 0 20px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .team-carousel-container {
    padding: 0 30px;
  }
  
  .member-photo {
    height: 220px;
  }
  
  .member-info {
    padding: 18px;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
  
  .member-modal-content {
    grid-template-columns: 220px 1fr;
    gap: 25px;
    padding: 25px;
  }
}

/* Large mobile devices (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .team-carousel-container {
    padding: 0 25px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .member-photo {
    height: 200px;
  }
  
  .member-info {
    padding: 16px;
  }
  
  .member-name {
    font-size: 1.2rem;
  }
  
  .member-bio {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .modal-content {
    margin: 5% auto;
    width: 95%;
  }
  
  .member-modal-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .modal-member-photo {
    height: 250px;
    max-width: 250px;
    margin: 0 auto;
  }
}

@media (min-width: 480px) {
    .team-member {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (min-width: 768px) {
    .team-member {
        flex: 0 0 calc(33.333% - 20px);
    }
}

/* Medium mobile devices (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 25px;
  }
  
  .team-carousel-container {
    padding: 0 20px;
  }
  
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  
  .carousel-dots {
    margin-top: 25px;
  }
  
  .member-photo {
    height: 220px;
  }
  
  .member-info {
    padding: 20px;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
    border-radius: 12px;
  }
  
  .member-modal-content {
    padding: 25px 20px;
  }
  
  .modal-member-name {
    font-size: 1.8rem;
  }
  
  .modal-member-role {
    font-size: 1.1rem;
  }
  
  .modal-skills-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .modal-skill-category {
    padding: 18px;
  }
}

/* Small mobile devices (421px - 480px) */
@media (min-width: 421px) and (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .section {
    padding: 45px 0;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }
  
  .team-grid {
    gap: 20px;
    max-width: 350px;
  }
  
  .team-carousel-container {
    padding: 0 15px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }
  
  .member-photo {
    height: 200px;
  }
  
  .member-info {
    padding: 18px;
  }
  
  .member-name {
    font-size: 1.1rem;
  }
  
  .member-role {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  
  .member-bio {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }
  
  .skill-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
  }
  
  .modal-content {
    margin: 5% auto;
    width: 98%;
    border-radius: 10px;
  }
  
  .member-modal-content {
    padding: 20px 15px;
    gap: 18px;
  }
  
  .modal-member-photo {
    height: 220px;
    max-width: 220px;
  }
  
  .modal-member-name {
    font-size: 1.5rem;
  }
  
  .modal-member-role {
    font-size: 1rem;
  }
  
  .modal-member-bio {
    font-size: 0.9rem;
  }
  
  .modal-skill-title {
    font-size: 0.9rem;
  }
  
  .modal-skill-item {
    font-size: 0.85rem;
  }
  
  .btn-learn-more {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* Extra small mobile devices (320px - 420px) */
@media (max-width: 420px) {
  .container {
    padding: 0 10px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .team-grid {
    gap: 18px;
    max-width: 300px;
  }
  
  .team-carousel-container {
    padding: 0 10px;
  }
  
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
  
  .member-photo {
    height: 180px;
  }
  
  .member-info {
    padding: 15px;
  }
  
  .member-name {
    font-size: 1rem;
  }
  
  .member-role {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }
  
  .member-bio {
    font-size: 0.75rem;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .skill-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
  }
  
  .modal-content {
    margin: 2% auto;
    width: 98%;
    border-radius: 8px;
  }
  
  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
  }
  
  .member-modal-content {
    padding: 18px 12px;
    gap: 15px;
  }
  
  .modal-member-photo {
    height: 200px;
    max-width: 200px;
  }
  
  .modal-member-name {
    font-size: 1.3rem;
  }
  
  .modal-member-role {
    font-size: 0.9rem;
  }
  
  .modal-member-bio {
    font-size: 0.8rem;
  }
  
  .modal-skills-grid {
    gap: 12px;
  }
  
  .modal-skill-category {
    padding: 15px;
  }
  
  .modal-skill-title {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  
  .modal-skill-item {
    font-size: 0.8rem;
    padding: 6px 0;
  }
  
  .btn-learn-more {
    padding: 8px 18px;
    font-size: 0.8rem;
  }
}

/* Адаптив */
@media (max-width: 992px) {
  .team-member { flex: 0 0 45%; }
}
@media (max-width: 600px) {
  .team-member { flex: 0 0 90%; }
  .member-photo { height: 200px; }
  .modal-member-photo { height: 220px; }
}

/* Ultra-small devices (max-width: 320px) */
@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }
  
  .team-grid {
    max-width: 280px;
    gap: 15px;
  }
  
  .member-photo {
    height: 160px;
  }
  
  .member-info {
    padding: 12px;
  }
  
  .modal-member-photo {
    height: 180px;
    max-width: 180px;
  }
  
  .modal-content {
    margin: 1% auto;
  }
}

/* High DPI (Retina) displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .member-photo {
    background-size: cover;
    image-rendering: -webkit-optimize-contrast;
  }
  
  .modal-member-photo {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .team-member:hover {
    transform: none;
  }
  
  .carousel-btn:hover {
    transform: translateY(-50%);
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: var(--dark);
    --bg-secondary: #252525;
    --text: #F5F5F5;
    --text-secondary: #CCCCCC;
    --card-bg: #252525;
    --border: #444444;
  }
}

/* Print styles */
@media print {
  .team-carousel-container,
  .carousel-btn,
  .carousel-dots,
  .btn-learn-more {
    display: none !important;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  .team-member {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* Fix for touch devices */
@media (hover: none) and (pointer: coarse) {
  .team-member:hover {
    transform: none;
  }
  
  .carousel-btn:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Smooth transitions for all interactive elements */
.team-member,
.carousel-btn,
.btn,
.modal-content,
.filter-btn,
.price-tab {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Performance optimizations */
.team-member,
.carousel-btn,
.modal-content {
  will-change: transform, opacity;
}

/* Backface visibility fix for smoother animations */
.team-member,
.modal-content,
.carousel-btn {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Alternative more complex floating animation */
.floating-image {
    animation: complexFloat 8s ease-in-out infinite;
}

@keyframes complexFloat {
    0% {
        transform: 
            translateY(0px) 
            rotate(0deg) 
            scale(1);
    }
    25% {
        transform: 
            translateY(-12px) 
            rotate(2deg) 
            scale(1.02);
    }
    50% {
        transform: 
            translateY(-8px) 
            rotate(-1deg) 
            scale(1.01);
    }
    75% {
        transform: 
            translateY(-15px) 
            rotate(1deg) 
            scale(1.03);
    }
    100% {
        transform: 
            translateY(0px) 
            rotate(0deg) 
            scale(1);
    }
}
