/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #ffffff;
  --foreground: #000000;
  --muted: #666666;
  --border: #e5e5e5;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --max-width: 800px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  min-height: 100vh;
}

.main-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* Header */
.header {
  text-align: left;
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lang-toggle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

.lang-toggle:hover {
  border-color: var(--foreground);
  color: var(--foreground);
}

.lang-buttons {
  display: flex;
  gap: 0.25rem;
}

.lang-toggle.active {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* RTL Support */
[dir="rtl"] .header {
  direction: rtl;
}

[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .about-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .product-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .section-title {
  text-align: right;
}

/* Hero Section */
.hero {
  text-align: left;
}

.hero-large {
  padding: 4rem 0;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

/* About Section */
.about {
  padding: var(--spacing-md) 0;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.about-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.75rem;
}

.about-number {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
  width: 24px;
}

.about-label {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  flex-shrink: 0;
}

.about-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  flex-grow: 1;
}

/* Products Section */
.products {
  padding: var(--spacing-md) 0;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border);
}

.product-item:first-child {
  border-top: 1px solid var(--border);
}

.product-name {
  font-size: 1.125rem;
  font-weight: 400;
}

.product-tag {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Contact Section */
.contact {
  padding: var(--spacing-md) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md) var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.contact-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--foreground);
  flex-shrink: 0;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.contact-value {
  font-size: 0.9375rem;
  color: var(--foreground);
  text-decoration: none;
}

a.contact-value:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 640px) {
  .about-grid {
    gap: var(--spacing-sm);
  }
  
  .about-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .about-desc {
    width: 100%;
    flex-basis: 100%;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .main-wrapper {
    gap: var(--spacing-lg);
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .about, .products, .contact {
  animation: fadeIn 0.8s ease-out;
}

.hero {
  animation-delay: 0.1s;
}

.about {
  animation-delay: 0.2s;
}

.products {
  animation-delay: 0.3s;
}

.contact {
  animation-delay: 0.4s;
}

.footer {
  animation: fadeIn 0.8s ease-out 0.5s both;
}
