@charset "utf-8";

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

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-bg: #0f0f23;
  --light-bg: #ffffff;
  --text-dark: #1a202c;
  --text-light: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

html:has(dialog[open]),
html:has(.image-modal.active) {
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: var(--light-bg);
}

/* Dark mode styles */
body.dark-theme {
  background: var(--dark-bg);
  color: var(--text-light);
}

body.dark-theme .glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

body.dark-theme nav {
  background: rgba(15, 15, 35, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1002;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

body.dark-theme .hamburger span {
  background: var(--text-light);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.cta-button {
  padding: 0.75rem 2rem;
  background: var(--primary-gradient);
  color: white !important;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 5%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
}

.hero-text h1 .sub-title {
  display: block;
  font-size: 0.5em;
}

.hero-logo-img {
  height: 6rem;
  margin-top: 1rem;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.primary-button {
  padding: 1rem 2.5rem;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.secondary-button {
  padding: 1rem 2.5rem;
  background: transparent;
  color: #667eea;
  text-decoration: none;
  border: 2px solid #667eea;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: #667eea;
  color: white;
}

.hero-image {
  position: relative;
  animation: float 6s ease-in-out infinite;
  width: 100%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 400px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.08), 0 5px 10px rgba(0, 0, 0, 0.05),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(102, 126, 234, 0.75);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-preview:hover {
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2),
    0 15px 25px rgba(0, 0, 0, 0.1), 0 8px 15px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

body.dark-theme .dashboard-preview {
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

body.dark-theme .dashboard-preview:hover {
  box-shadow: 0 40px 80px rgba(102, 126, 234, 0.4),
    0 30px 50px rgba(0, 0, 0, 0.35), 0 15px 30px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.dashboard-preview::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.dashboard-preview:hover .dashboard-img {
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3.9rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .hero-logo-img {
    height: 5rem;
  }

  .dashboard-preview {
    aspect-ratio: 1 / 2;
    height: 350px;
  }

  .dashboard-img {
    width: 570px;
    padding-left: 70px;
  }
}

@media (max-width: 768px) {
  .hero-logo-img {
    height: 4rem;
  }

  .dashboard-img {
    width: 110%;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.25));
  }

  .dashboard-preview:hover .dashboard-img {
    transform: scale(1.01);
  }
}

.screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}

/* Features Section */
.features {
  padding: 5rem 5%;
  background: var(--light-bg);
}

body.dark-theme .features {
  background: var(--dark-bg);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats section specific header style */
.stats .section-header h2 {
  background: none;
  -webkit-text-fill-color: white;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stats .section-header p {
  color: white;
  opacity: 0.9;
}

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

.feature-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.feature-card:hover::before {
  opacity: 0.1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Feature Modal Styles */
.feature-modal {
  padding: 0;
  outline: none;
  border: none;
  border-radius: 20px;
  width: 90%;
  max-width: 960px;
  max-height: 80vh;
  background: transparent;
  overflow: visible;
  margin: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--text-dark);
}

body.dark-theme .feature-modal {
  color: var(--text-light);
}

.feature-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.feature-modal[open] {
  animation: modalFadeIn 0.3s ease;
}

.feature-modal[open] .feature-modal-content {
  animation: modalSlideIn 0.3s ease;
}

.feature-modal-content {
  background: var(--light-bg);
  outline: none;
  margin: auto;
  padding: 0;
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

body.dark-theme .feature-modal-content {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.feature-modal-close {
  position: absolute;
  right: 25px;
  top: 20px;
  color: #aaa;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-modal-close:hover,
.feature-modal-close:focus {
  color: #fff;
  text-decoration: none;
  transform: scale(1.1);
}

.feature-modal-header {
  padding: 3rem 3rem 2rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: 20px 20px 0 0;
  position: sticky;
  top: 0;
  z-index: 5;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-modal-header.compact {
  padding: 1rem 4rem 0.6rem;
}

.feature-modal-icon {
  font-size: 3rem;
  transition: all 0.3s ease;
}

.feature-modal-header.compact .feature-modal-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.feature-modal-title {
  font-size: 2rem;
  margin: 0;
  color: white;
  transition: all 0.3s ease;
}

.feature-modal-header.compact .feature-modal-title {
  font-size: 1.5rem;
}

.feature-modal-body {
  padding: 0 4rem 3rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.feature-modal-body::-webkit-scrollbar {
  width: 8px;
}

.feature-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.feature-modal-body::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 4px;
}

.feature-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

.feature-modal-body > :first-child {
  margin-top: 3rem;
  transition: margin 0.3s ease;
}

.feature-modal-header.compact + .feature-modal-body > :first-child {
  margin-top: 3rem;
}

.feature-detail-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
  border-radius: 15px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.feature-modal-body .feature-full-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.feature-modal-body .feature-full-description p {
  margin-bottom: 0.8em;
}

.feature-modal-body .feature-detail-items {
  display: grid;
  gap: 1.5rem;
}

.feature-modal-body .detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 10px;
  border-left: 14px solid #667eea;
}

body.dark-theme .feature-modal-body .detail-item {
  background: rgba(102, 126, 234, 0.1);
}

.feature-modal-body .detail-item h4 {
  font-size: 1.2rem;
  color: #667eea;
}

.feature-modal-body .detail-item p {
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.feature-modal-body .detail-item .note {
  font-size: 0.8em;
}

.feature-modal-body .detail-item .badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  height: 1.6rem;
  padding: 0 0.8rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  color: white;
  background: #667eea;
}

.feature-modal-body .detail-item ul {
  padding-left: 1.5rem;
  list-style-type: none;
}

.feature-modal-body .detail-item ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.feature-modal-body .detail-item ul li:last-child {
  margin-bottom: 0;
}

.feature-modal-body .detail-item ul li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.feature-modal-body .detail-item ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.feature-modal-body .detail-item ul ul li::before {
  content: "◦";
  color: rgba(102, 126, 234, 0.7);
}

body.dark-theme .feature-modal-body .detail-item ul li::before {
  color: #8b9cff;
}

body.dark-theme .feature-modal-body .detail-item ul ul li::before {
  color: rgba(139, 156, 255, 0.7);
}

.feature-modal-body > .note {
  margin-top: 1rem;
  font-size: 0.8em;
}

.feature-card {
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
}

@media (max-width: 768px) {
  .feature-modal {
    width: 95%;
    max-height: 90vh;
  }

  .feature-modal-content {
    max-height: 90vh;
  }

  .feature-modal-close {
    right: 20px;
    top: 15px;
  }

  .feature-modal-header {
    padding: 2rem 2rem 1.5rem;
  }

  .feature-modal-body {
    padding: 0 2rem 2rem;
  }

  .feature-modal-body > :first-child {
    margin-top: 1.5rem;
  }

  .feature-modal-header.compact + .feature-modal-body > :first-child {
    margin-top: 2rem;
  }

  .feature-modal-title {
    font-size: 1.5rem;
  }

  .feature-modal-header.compact {
    padding: 1rem 2rem;
  }

  .feature-modal-header.compact .feature-modal-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .feature-modal-header.compact .feature-modal-title {
    font-size: 1.2rem;
  }

  .feature-detail-image {
    max-height: 250px;
    margin-bottom: 1.5rem;
  }

  .feature-modal-body .detail-item ul {
    padding-left: 1rem;
  }
}

/* Product Gallery Section */
.product-gallery {
  padding: 5rem 5%;
  background: linear-gradient(135deg, #f6f8fb 0%, #f0f4f8 100%);
  overflow: hidden;
  position: relative;
}

body.dark-theme .product-gallery {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.gallery-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gallery-slider {
  display: flex;
  transition: transform 0.5s ease;
  height: 680px;
}

.gallery-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.slide-content img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.slide-content img:hover {
  transform: scale(1.02);
}

.slide-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2d3748;
  font-weight: 700;
}

body.dark-theme .slide-content h3 {
  color: #e2e8f0;
}

.slide-content p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

body.dark-theme .gallery-nav {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.gallery-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gallery-prev {
  left: 2rem;
}

.gallery-next {
  right: 2rem;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-gradient);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .gallery-slider {
    height: auto;
  }

  .slide-content {
    padding: 1rem;
  }

  .slide-content h3 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-prev {
    left: 1rem;
  }

  .gallery-next {
    right: 1rem;
  }
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  animation: modalFadeIn 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
}

.image-modal.active {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  object-fit: contain;
  animation: modalZoomIn 0.3s ease;
  transition: opacity 0.3s ease;
}

@keyframes modalZoomIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

.modal-caption {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  font-size: 1rem;
  max-width: 80%;
}

.modal-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 5px 15px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.modal-close:hover,
.modal-close:focus {
  color: #fff;
  text-decoration: none;
  transform: scale(1.1);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  z-index: 2001;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 30px;
}

.modal-next {
  right: 30px;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }

  .modal-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }

  .modal-caption {
    bottom: 50px;
    font-size: 0.9rem;
    padding: 8px 15px;
  }

  .modal-counter {
    bottom: 15px;
    font-size: 0.8rem;
  }

  .modal-nav {
    width: 45px;
    height: 45px;
  }

  .modal-prev {
    left: 15px;
  }

  .modal-next {
    right: 15px;
  }
}

/* Stats Section */
.stats {
  padding: 5rem 5%;
  background: var(--primary-gradient);
  color: white;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item h3 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Video Tutorials Section */
.video-tutorials {
  padding: 5rem 5%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  position: relative;
  overflow: hidden;
}

body.dark-theme .video-tutorials {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
}

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

.video-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.main-video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: #000;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Technical Specifications Section */
.specifications {
  padding: 5rem 5%;
  background: #f8f9fa;
}

body.dark-theme .specifications {
  background: #1a1a2e;
}

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

.specs-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tab-button {
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 1rem;
}

body.dark-theme .tab-button {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.tab-button:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
}

.tab-button.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.specs-grid {
  display: grid;
  gap: 2rem;
}

.spec-category {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

body.dark-theme .spec-category {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.spec-table td ul {
  padding-left: 1.25rem;
}

.spec-table th {
  background: rgba(102, 126, 234, 0.05);
  font-weight: 600;
  color: #667eea;
}

body.dark-theme .spec-table th {
  background: rgba(102, 126, 234, 0.1);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover {
  background: rgba(102, 126, 234, 0.02);
}

.status-ok {
  color: #10b981;
  font-weight: 600;
}

@media (max-width: 768px) {
  .specs-tabs {
    gap: 0.5rem;
  }

  .tab-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .spec-category {
    padding: 1.5rem;
  }

  .spec-table {
    font-size: 0.9rem;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.75rem 0.5rem;
  }

  .spec-table td ul {
    padding-left: 1.15rem;
  }

  /* Make tables scrollable on mobile */
  .spec-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Specifications Notes */
.specs-notes {
  max-width: 1200px;
  margin: 0.5rem auto 0;
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.specs-notes ul {
  max-width: 1100px;
}

@media (max-width: 768px) {
  .specs-notes {
    padding: 1.5rem 0.5rem;
    margin: 1rem 1rem 0;
  }
}

/* Pricing Section */
.pricing {
  padding: 5rem 5%;
  background: var(--light-bg);
}

body.dark-theme .pricing {
  background: var(--dark-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.pricing-card.featured {
  cursor: pointer;
  transform: scale(1.05);
  border: 2px solid #667eea;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.price {
  font-size: 3rem;
  font-weight: bold;
  line-height: 4.8rem;
  margin: 1rem 0;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.enterprise-price {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
}

.price-features {
  list-style: none;
  margin: 2rem 0;
}

.price-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

body.dark-theme .price-features li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pricing Notes */
.pricing-notes {
  max-width: 1100px;
  margin: 4rem auto 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

body.dark-theme .pricing-notes {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.pricing-notes h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.notes-list {
  list-style: none;
  margin-bottom: 2rem;
}

.notes-list li {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  opacity: 0.9;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.notes-list li:last-child {
  border-bottom: none;
}

body.dark-theme .notes-list li {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .pricing-notes {
    padding: 1.5rem;
    margin: 3rem 1rem 0;
  }

  .notes-list li {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
}

/* Footer */
footer {
  padding: 5rem 5% 0;
  background: #1a202c;
  color: white;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-info h3,
.footer-links h3,
.footer-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item strong {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: white;
  line-height: 1.6;
}

.info-item a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.info-item a:hover {
  color: #667eea;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-cta p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  margin: 0.5rem 0.5rem 0.5rem 0;
  transition: all 0.3s ease;
  text-align: center;
}

.footer-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.footer-button.secondary {
  background: transparent;
  border: 2px solid #667eea;
}

.footer-button.secondary:hover {
  background: #667eea;
}

.footer-bottom {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-image {
  height: 30px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-button {
    display: block;
    margin: 0.5rem 0;
  }
}

/* Theme Toggle Switch */
.theme-toggle-wrapper {
  position: absolute;
  top: 2rem;
  right: 0.5rem;
}

.theme-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 65px;
  height: 34px;
  cursor: pointer;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 10px rgba(116, 185, 255, 0.3);
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 5px;
  bottom: 4px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

.theme-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 2px 10px rgba(118, 75, 162, 0.3);
}

.theme-switch input:checked + .toggle-slider::before {
  transform: translateX(30px);
}

/* Icons */
.toggle-slider .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: white;
}

.toggle-slider .sun {
  left: 8px;
  opacity: 1;
  transform: translateY(-50%) rotate(0deg);
}

.toggle-slider .moon {
  right: 8px;
  opacity: 0.3;
  transform: translateY(-50%) rotate(-30deg);
}

.theme-switch input:checked + .toggle-slider .sun {
  opacity: 0.3;
  transform: translateY(-50%) rotate(30deg);
}

.theme-switch input:checked + .toggle-slider .moon {
  opacity: 1;
  transform: translateY(-50%) rotate(0deg);
}

/* Hover effect */
.theme-switch:hover .toggle-slider {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(102, 126, 234, 0.4);
}

.theme-switch:hover .toggle-slider::before {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .logo-img {
    height: 24px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 5rem 0 2rem;
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 1001;
    overflow-y: auto;
  }

  body.dark-theme .nav-links {
    background: rgba(15, 15, 35, 0.98);
  }

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

  .nav-links a {
    padding: 1.5rem 0;
    font-size: 1.5rem;
    width: 80%;
    display: block;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .cta-button {
    margin-top: 1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 3rem;
    margin-top: 4rem;
  }

  .hero-text p {
    font-size: 1em;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .dashboard-preview {
    height: 250px;
  }
}

/* Picture element responsiveness */
picture {
  display: inline-block;
}

picture img {
  display: block;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
