/* ========================================
   MyKitchen AI - World-Class Landing Page
   ======================================== */

:root {
  --primary: #009688;
  --primary-dark: #00796b;
  --primary-light: #4db6ac;
  --accent: #ff9800;
  --accent-dark: #f57c00;
  --text-dark: #1a1a2e;
  --text-light: #ffffff;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #009688 0%, #00796b 100%);
  --gradient-dark: linear-gradient(135deg, #00796b 0%, #004d40 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

body.rtl {
  direction: rtl;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.25rem;
  transition: color 0.3s;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-brand span {
  color: var(--text-dark) !important;
}

.navbar-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-white);
  padding: 3px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar.scrolled .navbar-menu a {
  color: var(--text-dark) !important;
}

.navbar-menu a:hover {
  color: var(--accent);
}

.lang-toggle {
  background: var(--accent);
  color: var(--text-light);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-toggle:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

/* Hamburger Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  position: relative;
  transition: all 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s;
}

.hamburger-icon::before {
  top: -7px;
}

.hamburger-icon::after {
  top: 7px;
}

.navbar.scrolled .hamburger-icon,
.navbar.scrolled .hamburger-icon::before,
.navbar.scrolled .hamburger-icon::after {
  background: var(--text-dark);
}

.mobile-menu-btn.active .hamburger-icon {
  background: transparent;
}

.mobile-menu-btn.active .hamburger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-btn.active .hamburger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-content {
  color: var(--text-light);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.store-badge img {
  display: block;
  height: 53px;
  width: auto;
}

.store-badge.large img {
  height: 60px;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-light);
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Phone Mockup */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.2s;
}

.hero-mockup.visible {
  opacity: 1;
  transform: translateY(0);
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 570px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

/* No notch - clean display */

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-light);
}

.mockup-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

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

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--text-light);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   Screenshots Gallery
   ======================================== */
.screenshots-gallery {
  padding: 5rem 0;
  background: var(--bg-white);
  overflow: hidden;
}

.screenshots-scroll {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.95);
}

.screenshot-item.visible {
  opacity: 1;
  transform: scale(1);
}

.screenshot-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery Navigation */
.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  padding: 0 3rem;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--bg-white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.gallery-nav:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav:hover svg {
  stroke: var(--text-light);
}

.gallery-nav svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-dark);
  transition: stroke 0.3s;
}

.gallery-prev {
  left: 0.5rem;
}

.gallery-next {
  right: 0.5rem;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.gallery-dot.active,
.gallery-dot:hover {
  opacity: 1;
  background: var(--primary);
}

@media (max-width: 768px) {
  .gallery-wrapper {
    padding: 0 1rem;
  }

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

  .gallery-nav svg {
    width: 20px;
    height: 20px;
  }

  .gallery-prev {
    left: 0;
  }

  .gallery-next {
    right: 0;
  }
}

/* ========================================
   Download CTA Section
   ======================================== */
.download-cta {
  background: var(--gradient-dark);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-content {
  color: var(--text-light);
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: 0.9rem;
  opacity: 0.7;
}

.cta-phones {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phones-image {
  max-width: 90%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at center, black 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 90% at center, black 50%, transparent 100%);
  transition: transform 0.5s ease;
}

.phones-image:hover {
  transform: scale(1.03) translateY(-5px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 3rem 1.5rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--text-light);
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ========================================
   Legal Pages
   ======================================== */
.legal-page {
  padding-top: 80px;
  min-height: 100vh;
}

.legal-header {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 4rem 1.5rem;
  text-align: center;
}

.legal-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 2rem 0 1rem;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 1.5rem;
}

.effective-date {
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  font-weight: 500;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-content {
    order: 1;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-stats {
    justify-content: center;
  }

  .hero-mockup {
    order: 2;
    margin-top: 2rem;
  }

  .phone-frame {
    width: 240px;
    height: 490px;
  }

  .cta-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  /* Body scroll lock when menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--gradient-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar-menu.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar-menu a {
    color: var(--text-light) !important;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
  }

  .navbar-menu a:hover,
  .navbar-menu a:focus {
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-light) !important;
    transform: scale(1.05);
  }

  .navbar-menu a::after {
    display: none;
  }

  .navbar-menu .lang-toggle {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
    position: relative;
  }

  /* Hamburger color when menu is open */
  .mobile-menu-btn.active .hamburger-icon,
  .mobile-menu-btn.active .hamburger-icon::before,
  .mobile-menu-btn.active .hamburger-icon::after {
    background: var(--text-light);
  }

  .hero {
    padding-top: 70px;
  }

  .hero-container {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .phone-frame {
    width: 200px;
    height: 410px;
    border-radius: 30px;
    padding: 8px;
  }

  .phone-frame::before {
    width: 70px;
    height: 18px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .features {
    padding: 3rem 1rem;
  }

  .screenshots-gallery {
    padding: 3rem 0;
  }

  .screenshot-item {
    width: 250px;
  }

  .download-cta {
    padding: 3rem 1rem;
  }

  .cta-phones {
    display: none;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-badge img {
    height: 48px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

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

  .screenshot-item {
    width: 220px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   RTL Support
   ======================================== */
/* Desktop only - RTL navbar menu direction */
@media (min-width: 769px) {
  body.rtl .navbar-menu {
    flex-direction: row-reverse;
  }
}

body.rtl .hero-stats {
  flex-direction: row-reverse;
}

body.rtl .store-badge img {
  transform: scaleX(1);
}

body.rtl .feature-card {
  text-align: right;
}

body.rtl .legal-content {
  text-align: right;
}

body.rtl .legal-content ul {
  padding-left: 0;
  padding-right: 1.5rem;
}

body.rtl .footer-links {
  flex-direction: row-reverse;
}

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

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

.screenshot-item:nth-child(1) { transition-delay: 0.05s; }
.screenshot-item:nth-child(2) { transition-delay: 0.1s; }
.screenshot-item:nth-child(3) { transition-delay: 0.15s; }
.screenshot-item:nth-child(4) { transition-delay: 0.2s; }
.screenshot-item:nth-child(5) { transition-delay: 0.25s; }
.screenshot-item:nth-child(6) { transition-delay: 0.3s; }
.screenshot-item:nth-child(7) { transition-delay: 0.35s; }

/* ========================================
   Accessibility - Focus States
   ======================================== */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.navbar-menu a:focus-visible {
  outline-color: var(--text-light);
}

.navbar.scrolled .navbar-menu a:focus-visible {
  outline-color: var(--primary);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 1rem;
}

/* ========================================
   Reduced Motion Preference
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .mockup-glow {
    animation: none;
  }

  .hero-content,
  .hero-mockup,
  .feature-card,
  .screenshot-item {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   High Contrast Mode Support
   ======================================== */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  }

  .feature-card {
    border: 2px solid var(--text-dark);
  }

  .navbar.scrolled {
    border-bottom: 2px solid var(--primary);
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .navbar,
  .hero-wave,
  .mockup-glow,
  .gallery-nav,
  .gallery-dots,
  .footer-social,
  .store-badge,
  .lang-toggle,
  .mobile-menu-btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .hero {
    background: none;
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-content {
    color: #000;
    opacity: 1;
    transform: none;
  }

  .legal-page {
    padding-top: 0;
  }

  .legal-header {
    background: none;
    color: #000;
    padding: 1rem 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }
}

/* ========================================
   Footer Container (for legal pages)
   ======================================== */
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ========================================
   Selection Styles
   ======================================== */
::selection {
  background: var(--primary);
  color: var(--text-light);
}

::-moz-selection {
  background: var(--primary);
  color: var(--text-light);
}

/* ========================================
   Smooth Image Loading
   ======================================== */
img {
  max-width: 100%;
  height: auto;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* ========================================
   Better Touch Targets (Mobile)
   ======================================== */
@media (pointer: coarse) {
  .navbar-menu a,
  .footer-links a,
  .gallery-dot {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

/* ========================================
   Safari-specific Fixes
   ======================================== */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }

  .error-page {
    min-height: -webkit-fill-available;
  }
}
