/* Modern CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: #6b7280;
  font-size: 1.1rem;
}

/* Header and Hero Section */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero {
  padding: 4rem 1rem 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

nav a:hover,
nav a:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  margin: 4rem 0;
  padding: 3rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #2563eb;
}

.feature-card h3 {
  color: #2563eb;
  margin-bottom: 1rem;
}

/* Product Categories */
.product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 12px;
  text-align: center;
  border: 1px solid #cbd5e1;
}

.category h3 {
  color: #1e40af;
  margin-bottom: 0.5rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Location Info */
.location-info {
  margin: 2rem 0;
}

.address-card {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  max-width: 400px;
}

.address-card h3 {
  color: #1e40af;
  margin-bottom: 1rem;
}

address {
  font-style: normal;
  line-height: 1.6;
  color: #374151;
}

/* Contact Details */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-method {
  text-align: center;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.contact-method h3 {
  color: #1e40af;
  margin-bottom: 1rem;
}

.contact-method a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

.contact-method a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  margin-top: 0.5rem;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  color: white !important;
}

.whatsapp-btn img {
  width: 24px;
  height: 24px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 4rem;
}

.footer-content p {
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.footer-content p:last-child {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem 2rem;
  }
  
  nav {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  nav a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  .theme-toggle {
    width: 44px;
    height: 44px;
    padding: 0.6rem;
  }
}
  
  section {
    margin: 2rem 0;
    padding: 2rem 1rem;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .product-categories {
    grid-template-columns: 1fr;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .contact-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
  * {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* Dark Theme Toggle Button */
.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.theme-toggle svg {
  position: absolute;
  transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(180deg);
}

/* Dark theme styles */
[data-theme="dark"] {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #e5e5e5;
  --text-muted: #a0a0a0;
  --accent-primary: #3b82f6;
  --accent-secondary: #60a5fa;
  --border-color: #404040;
  --shadow: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

[data-theme="dark"] section {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 4px 6px -1px var(--shadow), 0 2px 4px -1px var(--shadow);
}

[data-theme="dark"] h2 {
  color: var(--accent-secondary);
}

[data-theme="dark"] h3 {
  color: var(--text-primary);
}

[data-theme="dark"] p {
  color: var(--text-secondary);
}

[data-theme="dark"] .feature-card {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

[data-theme="dark"] .feature-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 25px var(--shadow);
}

[data-theme="dark"] .category {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border-color: var(--border-color);
}

[data-theme="dark"] .category h3 {
  color: var(--accent-primary);
}

[data-theme="dark"] .address-card {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

[data-theme="dark"] .address-card h3 {
  color: var(--accent-primary);
}

[data-theme="dark"] address {
  color: var(--text-secondary);
}

[data-theme="dark"] .contact-method {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

[data-theme="dark"] .contact-method h3 {
  color: var(--accent-primary);
}

[data-theme="dark"] .contact-method a {
  color: var(--accent-secondary);
}

[data-theme="dark"] .contact-method a:hover {
  color: var(--accent-primary);
}

[data-theme="dark"] .gallery img {
  border-color: var(--border-color);
  box-shadow: 0 2px 8px var(--shadow);
}

[data-theme="dark"] .gallery img:hover {
  box-shadow: 0 8px 25px var(--shadow);
}

[data-theme="dark"] .search-box input {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .search-box input:focus {
  border-color: var(--accent-primary);
}

[data-theme="dark"] .filter-btn {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

[data-theme="dark"] .no-results {
  color: var(--text-muted);
}

[data-theme="dark"] .image-modal {
  background: rgba(0,0,0,0.95);
}

[data-theme="dark"] .modal-content {
  background: var(--bg-secondary);
  border-radius: 12px;
}

[data-theme="dark"] .modal-caption {
  color: var(--text-primary);
}

[data-theme="dark"] .close-modal {
  color: var(--text-primary);
}

[data-theme="dark"] .close-modal:hover {
  color: var(--text-muted);
}

[data-theme="dark"] .category-tag {
  background: var(--accent-primary);
  color: white;
}

[data-theme="dark"] .image-overlay {
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

/* Dark theme toggle animation */
[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Print Styles */
@media print {
  .hero {
    background: white !important;
    color: black !important;
  }
  
  nav {
    display: none;
  }
  
  .gallery img {
    break-inside: avoid;
  }
}