/* ===== GENERAL STYLES ===== */
:root {
  --transition-speed: 0.4s;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-speed) ease, 
              color var(--transition-speed) ease;
}

/* ===== THEME VARIABLES ===== */
/* Light Mode */
body.light-mode {
  --primary-color: #7e57c2;
  --primary-light: #b085f5;
  --primary-dark: #4d2c91;
  --secondary-color: #78909c;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #424242;
  --text-light: #757575;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --button-hover: #6a3093;
  --header-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --footer-gradient: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Dark Mode */
body.dark-mode {
  --primary-color: #9575cd;
  --primary-light: #c7a4ff;
  --primary-dark: #65499c;
  --secondary-color: #546e7a;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-color: #e0e0e0;
  --text-light: #b0b0b0;
  --border-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --button-hover: #7d2dc2;
  --header-gradient: linear-gradient(135deg, var(--primary-dark) 0%, #3a1c71 100%);
  --footer-gradient: linear-gradient(135deg, #3a1c71 0%, var(--primary-dark) 100%);
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: none;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(126, 87, 194, 0.5);
  transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  background-color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(126, 87, 194, 0.8);
}

/* ===== FLOATING ACTION BUTTONS ===== */
.floating-buttons {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 80px; /* Space for theme toggle */
  display: flex;
  gap: 10px;
  z-index: 999;
  transition: all 0.3s ease;
}

.action-btn {
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

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

.review-btn {
  background-color: var(--secondary-color);
  color: white;
  margin-left: auto; /* Push to the right */
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(126, 87, 194, 0.4);
}

.btn-text {
  display: inline;
}

/* ===== SHINY TEXT EFFECT ===== */
.shiny-text {
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine var(--speed, 3s) linear infinite;
}

@keyframes shine {
  0% { background-position: 150%; }
  100% { background-position: -50%; }
}

/* ===== HEADER STYLES ===== */
header {
  padding: 100px 20px 50px;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  background: var(--header-gradient);
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  margin-top: -20px;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  margin: 10px 0 0;
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

.banner {
  margin: 0 auto 20px;
  max-width: 800px;
  text-align: center;
}

.logo-img {
  max-width: 150px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05) rotate(5deg);
}

/* ===== SECTION STYLES ===== */
section {
  padding: 30px;
  margin: 30px auto;
  max-width: 1000px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
  background-color: var(--card-bg);
  box-shadow: 0 4px 20px var(--shadow-color);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color);
}

h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  display: inline-block;
  padding-bottom: 8px;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-light);
}

/* ===== GALLERY STYLES ===== */
.gallery, .product-gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery img, .product-item img {
  max-width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.gallery img:hover, .product-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(126, 87, 194, 0.3);
}

/* ===== PRODUCT ITEM STYLES ===== */
.product-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: calc(33.33% - 20px);
  box-sizing: border-box;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.product-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(126, 87, 194, 0.2);
}

.product-item h3 {
  margin: 15px 0 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.product-item p {
  margin: 8px 0 0;
  color: var(--text-light);
}

/* ===== CONTACT BUTTONS ===== */
.contact-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-buttons a {
  text-decoration: none;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-buttons .whatsapp {
  background-color: #25D366;
}

.contact-buttons .telegram {
  background-color: #0088cc;
}

.contact-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.contact-buttons i {
  font-size: 1.2rem;
}

/* ===== FOOTER STYLES ===== */
footer {
  text-align: center;
  padding: 50px 20px 30px;
  margin-top: 50px;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  background: var(--footer-gradient);
  color: white;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  margin: 10% auto;
  padding: 30px;
  border-radius: 15px;
  width: 80%;
  max-width: 600px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: all 0.3s ease;
  opacity: 0;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close {
  color: var(--primary-color);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close:hover {
  color: var(--primary-light);
  transform: rotate(90deg);
}

#modalTitle {
  color: var(--primary-color);
  margin-bottom: 15px;
}

#modalDescription {
  color: var(--text-color);
  line-height: 1.7;
}

/* ===== NAV BUTTONS ===== */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.nav-button {
  display: inline-block;
  padding: 12px 25px;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.nav-button:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  header {
    padding: 80px 20px 40px;
  }
  
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .gallery img, .product-item img {
    height: 160px;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-buttons a {
    width: 100%;
    justify-content: center;
  }

  .product-item {
    width: calc(50% - 15px);
  }
  
  .action-btn {
    padding: 10px 15px;
    font-size: 0.8rem;
  }
  
  .btn-text {
    display: none;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 18px;
    top: 15px;
    right: 15px;
  }

  .floating-buttons {
    left: 15px;
    right: 65px;
    top: 15px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 20px;
    margin: 20px 10px;
  }
  
  .product-item {
    width: 100%;
  }
  
  .nav-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .nav-button {
    width: 100%;
  }
  
  .modal-content {
    width: 90%;
    padding: 20px;
    margin: 20% auto;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
    top: 10px;
    right: 10px;
  }

  .floating-buttons {
    left: 10px;
    right: 56px;
    top: 10px;
  }

  .action-btn {
    padding: 8px 12px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-gallery {
    gap: 15px;
  }
  
  .product-item {
    width: calc(33.33% - 15px);
  }
}