:root {
  --color-primary: #FF5C8D;
  --color-secondary: #9A73FF;
  --color-background: #f4f4f9;
  --color-light-background: #e0e7ff;
  --color-dark: #2d2d2d;
  --color-dark-light: #1a1a1a;
  --color-white: #ffffff;
  --color-light-gray: #f5f5f5;
  --color-text-dark: #2d2d2d;
  --color-text-medium: #444;
  --color-text-light: #777;
  --color-black: #000000;

  /* Gradients */
  --gradient-hero-bg: linear-gradient(45deg, var(--color-primary) 0%, var(--color-primary) 40%, var(--color-secondary) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  --gradient-underline: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  --gradient-videos: linear-gradient(135deg, var(--color-background), var(--color-light-background));
  --gradient-footer: linear-gradient(135deg, var(--color-dark), var(--color-dark-light));
}

@media (max-width: 768px) {
  :root {
    background: linear-gradient(to bottom,
      var(--color-primary) 0%,
      var(--color-primary) 40%,
      var(--color-secondary) 100%
    );
  }
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gradient-hero-bg);
  color: var(--color-text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('https://via.placeholder.com/1920x1080?text=AR+Drawing+Magic') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--color-white);
  padding: 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  animation: slideInLeft 1s ease-out;
}

.hero p {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  animation: slideInRight 1.2s ease-out;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  animation: fadeInUp 1.5s ease-out;
}

.store-link {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}

.store-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.store-badge {
  width: auto;
  height: 60px;
  object-fit: contain;
}

/* Features Section */
.features {
  background: rgba(255, 255, 255, 0.95);
  padding: 5rem 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.features h2 {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 2.5rem;
  position: relative;
}

.features h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-underline);
  margin: 1rem auto;
}

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

.feature {
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(10px);
}

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

.feature h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.feature p {
  font-size: 1rem;
  color: var(--color-text-medium);
}

/* Videos Section */
.videos {
  background: var(--gradient-videos);
  padding: 5rem 2rem;
  text-align: center;
}

.videos h2 {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 2.5rem;
}

.videos h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-underline);
  margin: 1rem auto;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Always two columns */
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(10px);
}

.video:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.video iframe {
  width: 100%;
  height: 315px;
  border-radius: 1rem;
  border: none;
}

.video p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  margin-top: 1rem;
}

/* Reviews Section */
.reviews {
  background: rgba(255, 255, 255, 0.95);
  padding: 5rem 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.reviews h2 {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 2.5rem;
}

.reviews h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-underline);
  margin: 1rem auto;
}

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

.review {
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(10px);
}

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

.review p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-medium);
}

.review span {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* Footer */
footer {
  background: var(--gradient-footer);
  color: var(--color-white);
  padding: 3rem 2rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: var(--color-white);
  font-size: 2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: var(--color-primary);
  transform: scale(1.2);
}

footer p:last-child {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 300;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 1.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  animation: zoomIn 0.4s ease-in-out;
}

.modal-content h3 {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--color-text-medium);
  font-weight: 400;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.close:hover {
  color: var(--color-primary);
  transform: rotate(90deg);
}

/* Animations */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.3rem;
  }

  .store-badge {
    height: 50px;
  }

  .features h2, .videos h2, .reviews h2 {
    font-size: 2.2rem;
  }

  .video iframe {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

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

  .cta-buttons {
    flex-direction: column;
    gap: 1.2rem;
  }

  .store-badge {
    height: 45px;
  }

  .features-grid, .reviews-grid, .videos-grid {
    grid-template-columns: 1fr;
  }

  .video iframe {
    height: 200px;
  }
}