/* Base Styles */
:root {
  --primary-color: #1a2942;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --bg-color: #f7f9fc;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e1e5eb;
  --white: #fff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul, ol {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Header & Hero Section */
header {
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 100;
}

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

.logo-container img {
  height: 40px;
  width: auto;
}

.lang-dropdown select {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.lang-dropdown select:hover {
  border-color: var(--secondary-color);
}

.hero-section {
  position: relative;
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color) 0%, #0a1730 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 3rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-image {
  position: absolute;
  bottom: -20px;
  right: 5%;
  max-width: 45%;
  z-index: 1;
  opacity: 0.7;
}

/* Navigation */
.category-nav {
  position: sticky;
  top: 0;
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  z-index: 100;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.category-nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.category-nav a {
  padding: 0.7rem 1.2rem;
  color: var(--text-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  text-align: center;
  font-size: 0.95rem;
}

.category-nav a:hover,
.category-nav a.active {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Products Section */
.category-section {
  margin-bottom: 3rem;
}

.category-header {
  margin-bottom: 2rem;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  overflow: hidden;
  padding-top: 75%; /* 4:3 Aspect Ratio */
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
  transition: var(--transition);
  padding: 1rem;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.product-specs {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.product-specs li {
  margin-bottom: 0.5rem;
}

.buttons {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #14223a;
  color: var(--white);
}

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

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Support Section */
.support-section {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  overflow: hidden;
}

.support-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.support-info {
  padding: 2rem;
}

.support-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.support-text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

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

.support-card {
  background-color: #f9f9fd;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.support-card svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--secondary-color);
}

.support-card h4 {
  margin-bottom: 0.5rem;
}

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

.support-card a {
  color: var(--secondary-color);
  font-weight: 500;
}

.support-image {
  position: relative;
  overflow: hidden;
}

.support-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 0;
}

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

.footer-column {
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
  max-width: 150px;
}

.footer-text {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact span {
  margin-right: 0.5rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

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

.product-3d-wrapper {
  perspective: 1000px;
}

.product-3d-wrapper:hover .product-image {
  transform: rotateX(5deg) rotateY(5deg);
}

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

.modal.open {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
  position: relative;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.modal-close:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

.modal-body {
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}

/* Languages */
.lang-block {
  display: none;
}

.lang-block.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Page Loading Animation */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--border-color);
  border-top: 5px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}

.scroll-top.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background-color: var(--primary-color);
}

/* Floating elements */
.floating-element {
  position: fixed;
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
}

.floating-element.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.floating-element.square {
  width: 120px;
  height: 120px;
  transform: rotate(45deg);
  background: var(--secondary-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-image {
    max-width: 40%;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-image {
    opacity: 0.4;
    max-width: 45%;
  }
  
  .support-content {
    grid-template-columns: 1fr;
  }
  
  .support-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-image {
    display: none;
  }
  
  .products {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
    max-height: 80vh;
  }
}

@media (max-width: 576px) {
  .category-nav a {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-section {
    padding: 2.5rem 0;
  }
  
  .product-specs {
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

/* Compact View Enhancements */
.compact-view .product {
  display: grid;
  grid-template-columns: 120px 1fr;
  height: auto;
}

.compact-view .product-image {
  padding-top: 100%;
}

.compact-view .product-content {
  padding: 1rem;
}

.compact-view .product-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.compact-view .product-specs {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.compact-view .product-specs li {
  margin-bottom: 0.25rem;
}

.compact-view .buttons {
  flex-direction: row;
  align-items: center;
}

.compact-view .btn-primary {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.compact-view .btn-group {
  margin-left: 0.5rem;
}

/* Language Switcher */
.language-switcher {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.language-btn {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.language-btn:hover, .language-btn.active {
  background: white;
  color: var(--primary-color);
  border-color: white;
}