:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --text-color: #333;
  --background-color: #f5f6fa;
  --white: #ffffff;
  --aspect-ratio: 75%;  /* 4:3 aspect ratio */
}

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

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

header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

ul {
  list-style: none;
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo img{
  height: 100px;
}

.language-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.3s;
  font-size: 0.9rem;
  color: var(--text-color);
}

.lang-btn.active {
  opacity: 1;
  font-weight: bold;
  color: var(--secondary-color);
}

.lang-separator {
  color: var(--text-color);
  opacity: 0.4;
}

.nav {
  position: absolute;
  top: 124px;
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.4rem;
  transition: background-color 0.3s;
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero {
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.hero-description {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.featured-projects {
  margin: 2rem 0;
}

.featured-projects h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.swiper {
  width: 100%;
  height: auto;
}

.swiper-slide {
  transition: all 0.3s ease;
  transform: scale(0.8);
  opacity: 0.5;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

.featured-product {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.featured-product img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.featured-product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  border-radius: 0 0 8px 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swiper-slide-active .featured-product-info {
  opacity: 1;
}

.featured-product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.featured-product-info p {
  font-size: 1rem;
  opacity: 0.9;
}

.about-page {
  padding: 1rem 0;
}

.about-page h1 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

.about-section.reverse {
  direction: rtl;
}

.about-section.reverse .about-content {
  direction: ltr;
}

.about-content {
  padding: 2rem;
}

.about-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery {
  text-align: center;
}

.gallery h1 {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1rem;
}

.gallery-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-color);
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-item p {
  padding: 1rem;
  font-weight: 500;
}

.product-details {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.back-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-weight: 500;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--primary-color);
}

.back-link.bottom {
  margin-top: 2rem;
  margin-bottom: 0;
}

.product-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.product-images-container {
  width: 100%;
}

.main-image {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f9fa;
  aspect-ratio: 4/3;
}

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

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.thumbnail {
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.3s;
  aspect-ratio: 4/3;
  background-color: #f8f9fa;
}

.thumbnail.active {
  border-color: var(--secondary-color);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 4px;
}

.product-info {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
}

.product-info h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.contact {
  max-width: 600px;
  margin: 0 auto;
}

.contact h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-status {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 4px;
  display: none;
}

.form-status.success.visible {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error.visible {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

button[type="submit"] {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: #2980b9;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  margin-top: 4rem;
}

footer .social-media {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

footer .social-media a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

footer .social-media a:hover img {
  transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.7);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem;
}

/* Menu Icon */
.hamburger {
  cursor: pointer;
  padding: 2rem;
}

.hamburger-line {
  position: relative;
  display: block;
  height: 2px;
  width: 1.5rem;
  background: var(--primary-color);
}

.hamburger-line::before,
.hamburger-line::after{
  position: absolute;
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  background: var(--primary-color);
}
.hamburger-line::before{
  top: 5px;
}

.hamburger-line::after{
  top: -5px;
}

.side-menu {
  display: none;
}

.side-menu:checked ~ nav{
  max-height: 100%;
  padding: .5rem;
}

.side-menu:checked ~ .hamburger .hamburger-line {
  background: transparent;
}

.side-menu:checked ~ .hamburger .hamburger-line::before {
  transform: rotate(-45deg);
  top:0;
}
.side-menu:checked ~ .hamburger .hamburger-line::after {
  transform: rotate(45deg);
  top:0;
}

.-mobile {
  display: flex;
}

.-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    position: relative;
    display: flex;
    justify-content: center;
    top: 0;
    max-height: none;
    box-shadow: none;
  }

  .menu {
    display: flex;
    padding: 1rem;
  }

  .hamburger {
    display: none;
  }

  .-mobile {
    display: none;
  }

  .-desktop {
    display: flex;
  }
}

@media (max-width: 768px) {
  .product-content {
    grid-template-columns: 1fr;
  }
  
  .product-info {
    margin-top: 1rem;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .about-section.reverse {
    direction: ltr;
  }

  .about-content {
    padding: 1rem;
  }

  .about-page h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .about-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
  }

  .about-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .about-image img {
    height: 300px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery h1 {
    margin-bottom: 1rem;
  }

  .logo img{
    height: 100px;
  }

  .menu li {
    padding-bottom: 0.7rem;
  }

  .menu a {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .h-captcha {
    transform: scale(0.7);
    transform-origin: 0 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}