/* ==========================================
   RYMO Landing Page - Premium Styles
   ========================================== */

/* Local Fonts */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Heebo-Variable.ttf') format('truetype');
}

@font-face {
  font-family: 'Signika';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/Signika-Variable.ttf') format('truetype');
}

/* CSS Variables */
:root {
  /* Brand Colors */
  --color-accent: #2563EB;
  --color-accent-dark: #1D4ED8;
  --color-accent-light: #3B82F6;
  --color-accent-glow: rgba(37, 99, 235, 0.2);

  /* Light Mode */
  --color-primary: #0F172A;
  --color-body: #FFFFFF;
  --color-surface: #F8FAFC;
  --color-border: #E2E8F0;
  --color-text: #475569;
  --color-text-dark: #0F172A;
  --color-text-light: #64748B;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  --gradient-hero: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
  --gradient-cta: linear-gradient(135deg, var(--color-accent) 0%, #7C3AED 100%);

  /* Fonts */
  --font-primary: 'Heebo', sans-serif;
  --font-secondary: 'Signika', sans-serif;
  --font-size-base: 16px;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 100px;
  --gap: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-accent: 0 4px 14px 0 rgba(37, 99, 235, 0.39);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --color-primary: #FFFFFF;
  --color-body: #0F172A;
  --color-surface: #1E293B;
  --color-border: #334155;
  --color-text: #94A3B8;
  --color-text-dark: #F1F5F9;
  --color-text-light: #64748B;

  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-body);
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
  color: #FFFFFF;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--gradient-accent);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-3px);
}

.btn-white {
  background: #FFFFFF;
  color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: var(--color-accent-dark);
}

/* Button with arrow icon */
.btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ==========================================
   Header
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

[data-theme="dark"] .header {
  background-color: rgba(15, 23, 42, 0.8);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-dark);
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  font-weight: 600;
  color: var(--color-text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  color: var(--color-text-dark);
  transition: all var(--transition-base);
}

.menu-toggle:hover {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.menu-toggle .close-icon { display: none; }
.menu-toggle.active .hamburger-icon { display: none; }
.menu-toggle.active .close-icon { display: block; }

/* ==========================================
   Hero/Banner Section
   ========================================== */
.banner {
  padding: 160px 0 var(--section-padding);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.banner .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-content {
  max-width: 560px;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-accent-glow);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.banner-badge svg {
  width: 16px;
  height: 16px;
}

.banner-content h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--color-text-dark) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-content p {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 32px;
  line-height: 1.8;
}

.banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-image {
  position: relative;
}

.banner-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow);
}

.banner-image:hover img {
  transform: translateY(-10px);
}

/* Floating elements around banner image */
.banner-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  opacity: 0.1;
  z-index: -1;
}

.banner-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  border-radius: var(--radius-lg);
  opacity: 0.1;
  z-index: -1;
}

/* Trust badges */
.trust-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badge svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

/* ==========================================
   Feature Sections
   ========================================== */
.feature {
  padding: var(--section-padding) 0;
  position: relative;
}

.feature:nth-child(even) {
  background-color: var(--color-surface);
}

.feature .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature:nth-child(odd) .feature-image {
  order: 2;
}

.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-accent-glow);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.feature-content h2 {
  margin-bottom: 16px;
}

.feature-content > p {
  color: var(--color-text);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.feature-list {
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.feature-list li .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-glow);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

.feature-list li .icon svg {
  width: 16px;
  height: 16px;
}

.feature-list li strong {
  color: var(--color-text-dark);
}

.feature-image {
  position: relative;
}

.feature-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-slow);
}

.feature-image:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.feature-image img[src*="screenshots"],
.banner-image img[src*="screenshots"] {
  cursor: zoom-in;
}

.screenshot-zoom {
  position: relative;
  display: block;
}

.screenshot-zoom::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E")
    no-repeat center center,
    rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.screenshot-zoom:hover::after {
  opacity: 1;
}

/* ==========================================
   Product Cards Section
   ========================================== */
.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.product-card {
  background: var(--color-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.product-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: var(--color-text-dark);
}

.product-card h4 span {
  color: var(--color-accent);
}

.product-status {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.product-status.available {
  background: #D1FAE5;
  color: #065F46;
}

.product-status.development {
  background: #FEF3C7;
  color: #92400E;
}

[data-theme="dark"] .product-status.available {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
}

[data-theme="dark"] .product-status.development {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta {
  padding: var(--section-padding) 0;
  background: var(--gradient-cta);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-image {
  position: relative;
}

.cta-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Contact Page
   ========================================== */
.page-header {
  padding: 160px 0 60px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  margin-bottom: 16px;
  position: relative;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text);
  font-size: 1.1rem;
  position: relative;
}

.contact-section {
  padding: var(--section-padding) 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-body);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-primary);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-body);
  color: var(--color-text);
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  padding: 18px 32px;
  font-size: 1.1rem;
}

/* ==========================================
   Privacy Page
   ========================================== */
.content-page {
  padding: var(--section-padding) 0;
}

.content-page .container {
  max-width: 800px;
}

.content-page h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-glow);
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page p {
  color: var(--color-text);
  line-height: 1.8;
}

.content-page strong {
  color: var(--color-text-dark);
}

.content-page hr {
  margin: 48px 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

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

/* ==========================================
   Footer
   ========================================== */
.footer {
  padding: 60px 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  color: var(--color-text);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-from {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ==========================================
   Scroll Animations
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================
   Lightbox
   ========================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  z-index: 2001;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ==========================================
   Gallery Section
   ========================================== */
.gallery {
  padding: var(--section-padding) 0;
  background-color: var(--color-surface);
  text-align: center;
}

.gallery .feature-label {
  display: inline-flex;
}

.gallery-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.gallery-category {
  margin-bottom: 48px;
  text-align: left;
}

.gallery-category:last-child {
  margin-bottom: 0;
}

.gallery-category h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  background: var(--color-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: zoom-in;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E")
    no-repeat center center,
    rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  border-radius: var(--radius-md);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .banner .container,
  .feature .container,
  .cta .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature:nth-child(odd) .feature-image {
    order: 0;
  }

  .banner-content {
    max-width: 100%;
    text-align: center;
  }

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

  .trust-badges {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cta-content {
    text-align: center;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .header .container {
    height: 70px;
  }

  .banner {
    padding: 120px 0 var(--section-padding);
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-body);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

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

  .menu-toggle {
    display: flex;
  }

  .page-header {
    padding: 120px 0 40px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 48px;
  }

  .container {
    padding: 0 16px;
  }

  .btn {
    width: 100%;
  }

  .banner-buttons {
    flex-direction: column;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }

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

  .product-card {
    padding: 20px;
  }

  .product-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
