:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --background: #ffffff;
  --section-bg: #f3f4f6;
  --card-bg: #ffffff;
  --btn-color: #0e42ee;
  --text-color-sct2: #ffffff;
}

.dark-mode {
  --primary-color: #3b82f6;
  --secondary-color: #1e40af;
  --accent-color: #60a5fa;
  /* --text-color: #e5e7eb; */
  --text-color: #545558;
  --light-text: #9ca3af;
  --background: #111827;
  --section-bg: #1f2937;
  --card-bg: #374151;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Styles */
.navfx {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.4rem 5%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  /*  */
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1.5px solid rgba(209, 213, 219, 0.3);
}

.dark-mode .navfx {
  background: rgba(17, 24, 39, 0.95);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .logg:hover::after {
  width: 0%;
}

.logg {
  background: var(--primary-color);
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.8s ease !important;
}

.logg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  background: var(--btn-color);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff20" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  opacity: 0.1;
  animation: wave 10s ease-in-out infinite;
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Services Section */
.services-section {
  padding: 6rem 2rem;
  background: var(--section-bg);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  color: white;
}

.card:hover::before {
  opacity: 1;
}

.card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.1);
}

/* Video Section */
.video-section {
  padding: 6rem 2rem;
  background: var(--background);
}

.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.video-description {
  text-align: center;
}

.video-description h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.video-description p {
  color: var(--light-text);
}

/* Team Section */
.team-section {
  padding: 6rem 2rem;
  background: var(--section-bg);
  text-align: center;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.member {
  text-align: center;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member:hover img {
  /* transform: scale(1.1); */
  transform: scale(1.04);
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 2rem;
  background: var(--section-bg);
}

.testimonials-section h2 {
  text-align: center;
}

.testimonials-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.test-img {
  width: 450px;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
}

/* Contact Section */
.contact-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.contact-section h2,
p {
  text-align: center;
}

.form-container {
  max-width: 600px;
  margin: 3rem auto 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: background 0.3s ease, transform 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  /* display: inline-block; */
  display: flex;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primaryx {
  display: inline-block;
  /* display: flex; */
  justify-content: center;
  padding: 1rem 2.5rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primaryx:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background: var(--text-color);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-icon {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
}

.youtube:hover {
  color: #ff0000;
}

.tiktok:hover {
  color: #69c9d0;
}

.instagram:hover {
  color: #e4405f;
}

.telegram:hover {
  color: #2326ecd0;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  left: 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.dark-mode-toggle:hover {
  background-color: var(--secondary-color);
}

.credits {
  text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .test-img {
    width: 300px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    width: 50px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    /* background: var(--background); */
    background: rgb(255 255 255 / 95%);
    flex-direction: column;
    padding: 2rem;
    clip-path: circle(0% at top right);
    transition: clip-path 0.5s ease-in-out;
  }

  .nav-links.active {
    clip-path: circle(150% at top right);
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .service-cards,
  .testimonials-wrapper,
  .video-container {
    grid-template-columns: 1fr;
  }
}
