/* Reset and base */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5649c0;
  --primary-light: #a29bfe;
  --secondary: #00b894;
  --dark: #2d3436;
  --light: #f5f6fa;
  --gray: #636e72;
  --light-gray: #dfe6e9;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-transform: capitalize;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--white);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 98px;
}

.header-logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.header-logo:hover {
  color: var(--primary-dark);
}

.header-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(108, 92, 231, 0.1);
}

.btn-reminder {
  background: var(--secondary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-reminder:hover {
  background: #00a085;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  padding: 20px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.modal-footer {
  padding: 20px;
  background: var(--light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid #dc3545;
}

.error-message ul {
  margin: 0;
  padding-left: 20px;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid #28a745;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--dark);
  border-radius: 10px;
  transition: var(--transition);
}

/* Sections */
.operators-section,
.carousel-section,
.video-section {
  margin: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

/* Operators */
.operators {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.operators::-webkit-scrollbar {
  display: none;
}

.operator-card {
  flex: 0 0 auto;
  background: var(--white);
  border-radius: 16px;
  width: 140px;
  height: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 16px;
  border: 1px solid var(--light-gray);
  text-decoration: none;
  color: inherit;
}

.operator-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(108, 92, 231, 0.25);
  border-color: var(--primary-light);
}

.operator-logo {
  max-height: 48px;
  max-width: 48px;
  object-fit: contain;
  margin-bottom: 12px;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
  background: var(--light-gray);
  box-shadow: var(--shadow);
}

.carousel-inner {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/9;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #fff;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev {
  left: 15px;
}

.carousel-control-next {
  right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Video Cards */
.video-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.video-card {
  position: relative;
  border-radius: 12px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  aspect-ratio: 1/1;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-card:hover .play-overlay {
  background-color: rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card .play-overlay::before {
  content: "";
  display: block;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--white);
  left: 9%;
  position: relative;
}

.video-card .video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Info Section */
.info-section {
  text-align: center;
  margin: 60px auto;
  max-width: 700px;
}

.info-section h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--dark);
  line-height: 1.2;
}

.info-section .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 24px;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
  flex-shrink: 0;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-content {
  flex-grow: 1;
}

.step-content strong {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 1.1rem;
}

.step-content span {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: var(--dark);
  padding: 40px 0 24px;
  color: var(--light);
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo .star-icon {
  fill: var(--white);
  height: 20px;
  width: 20px;
}

.footer-about {
  max-width: 300px;
}

.footer-about p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-links-title {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-links-list {
  list-style: none;
}

.footer-link-item {
  margin-bottom: 12px;
}

.footer-link {
  color: var(--light);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-link svg {
  width: 14px;
  height: 14px;
  transition: var(--transition);
}

.footer-link:hover svg {
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Responsive styles */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-container {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-container.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-link {
    padding: 15px 0;
    width: 100%;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .user-profile {
    width: 100%;
  }
  
  .user-toggle {
    width: 100%;
    padding: 15px 0;
  }
  
  .user-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  .user-profile.active .user-dropdown {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .video-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .header-logo {
    font-size: 1.2rem;
  }
  
  .user-name {
    display: none;
  }
  
  .modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .video-cards {
    grid-template-columns: 1fr;
  }
}

html {
  scroll-behavior: smooth;
}