:root {
  --primary-color: #1ea840;
  --primary-dark: #178533;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-secondary: #f8f9fa;
  --border-color: #eaeaea;
  --shadow: 0 5px 15px rgba(0,0,0,0.08);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --card-bg: #fff;
  --header-bg: rgba(255, 255, 255, 0.95);
}

.night-mode {
  --primary-color: #2ecc71;
  --primary-dark: #27ae60;
  --text-color: #f0f0f0;
  --text-light: #b0b0b0;
  --bg-color: #121212;
  --bg-secondary: #1e1e1e;
  --border-color: #333;
  --shadow: 0 5px 15px rgba(0,0,0,0.3);
  --card-bg: #1e1e1e;
  --header-bg: rgba(30, 30, 30, 0.95);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: var(--transition);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--header-bg);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.logo img {
  height: 50px;
  transition: var(--transition);
}

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

.nav-links ul {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--primary-color);
  transform: rotate(30deg);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 21px;
  position: relative;
}

.hamburger div {
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 3px;
  position: absolute;
  transition: var(--transition);
}

.hamburger .line1 {
  top: 0;
}

.hamburger .line2 {
  top: 9px;
}

.hamburger .line3 {
  top: 18px;
}

.hamburger.active .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .line2 {
  opacity: 0;
}

.hamburger.active .line3 {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--bg-color);
  z-index: 1001;
  padding: 80px 30px 30px;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  margin-bottom: 20px;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 500;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-color);
  padding-left: 10px;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.close-menu:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

/* Hero Section */
.team-hero {
  height: 50vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1524758631624-e2822e304c36?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 5%;
  margin-top: 70px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out 0.3s forwards;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: var(--primary-color);
}

/* Team Section */
.team-section {
  padding: 5rem 5%;
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.section-title.animated {
  opacity: 1;
  transform: translateY(0);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  text-align: center;
}

.team-member.animated {
  opacity: 1;
  transform: translateY(0);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.member-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.member-info {
  padding: 1.5rem;
}

.member-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.member-role {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.member-info p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: var(--bg-secondary);
  color: var(--text-color);
  border-radius: 50%;
  transition: var(--transition);
}

.member-social a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Values Section */
.values-section {
  padding: 5rem 5%;
  background: var(--bg-color);
}

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

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

.value-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.value-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.value-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  padding: 5rem 5%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition);
}

.cta-section.animated {
  opacity: 1;
  transform: translateY(0);
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 2px solid transparent;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.9);
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  color: var(--text-color);
  padding: 60px 5% 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition);
}

.footer.animated {
  opacity: 1;
  transform: translateY(0);
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-column a, .footer-column p {
  display: block;
  color: var(--text-light);
  margin-bottom: 10px;
  text-decoration: none;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-column input {
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 5px;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.footer-column input:focus {
  outline: 2px solid var(--primary-color);
}

.footer-column button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
}

.footer-column button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  background: var(--bg-color);
  color: var(--text-light);
  text-align: center;
  padding: 20px 5%;
  border-top: 1px solid var(--border-color);
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .team-section {
    padding: 3rem 5%;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
  
  .value-card {
    padding: 1.5rem;
  }
}
