:root {
  --primary-color: #6c63ff;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --light-color: #fff;
  --dark-color: #222;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --whatsapp-color: #25D366;
  --telegram-color: #0088cc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: var(--text-color);
  overflow-x: hidden;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.5s ease forwards;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 40px;
  margin-right: 10px;
  animation: rotate 2s ease infinite;
}

.brand .name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  margin: 30px 0;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #5a52d5;
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
}

.btn-whatsapp:hover {
  background-color: #1da851;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-telegram {
  background-color: var(--telegram-color);
}

.btn-telegram:hover {
  background-color: #0077b5;
  box-shadow: 0 10px 20px rgba(0, 136, 204, 0.3);
}

/* Products Section */
.products {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.products h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--dark-color);
  position: relative;
  animation: fadeIn 1s ease;
}

.products h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--light-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.product-info p {
  color: #666;
  margin-bottom: 15px;
}

.product-info .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.order-buttons {
  display: flex;
  gap: 10px;
}

.order-buttons .btn {
  flex: 1;
  padding: 10px;
  font-size: 0.9rem;
}

/* Modal */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.modal.active .modal-content {
  transform: scale(1);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

#caption {
  text-align: center;
  color: white;
  margin-top: 15px;
  font-size: 1.2rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  font-size: 1.5rem;
}

.contact-item.whatsapp i {
  color: var(--whatsapp-color);
}

.contact-item.telegram i {
  color: var(--telegram-color);
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .nav {
    gap: 15px;
  }
  
  .nav a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 60px 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero img {
    width: 180px;
    height: 180px;
    margin: 20px 0;
  }

  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .products {
    padding: 60px 15px;
  }

  .products h2 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .order-buttons {
    flex-direction: column;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }
}