
:root {
  --primary: #6e44ff;
  --primary-dark: #5a36d9;
  --accent: #ff6b6b;
  --dark-bg: #0f172a;
  --card-bg: #1e293b;
  --light-text: #f1f5f9;
  --medium-text: #94a3b8;
  --border: #334155;
  --success: #10b981;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Centered Header Styles */
header {
  background: rgba(15, 23, 42, 0.95);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.header-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  color: var(--light-text);
  text-decoration: none;
}

.logo span {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo i {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: var(--medium-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-size: 16px;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Modern Minimalist Hero Section with Background Elements */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  margin-bottom: 25px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  margin: 0 auto 40px;
  opacity: 0.9;
  max-width: 700px;
  line-height: 1.7;
  color: var(--medium-text);
  font-weight: 400;
}

.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.search-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--border);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(110, 68, 255, 0.2);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 20px;
  color: var(--light-text);
  font-size: 16px;
  outline: none;
}

.search-input::placeholder {
  color: var(--medium-text);
}

.search-button {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(110, 68, 255, 0.4);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--light-text);
  padding: 16px 46px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(110, 68, 255, 0.3);
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(110, 68, 255, 0.4);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--light-text);
  margin-bottom: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 18px;
  color: var(--medium-text);
}

/* Modern Background Elements */
.background-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(110, 68, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 68, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 68, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.bg-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.bg-circle:nth-child(2) {
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -150px;
  animation-delay: -2s;
}

.bg-circle:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 10%;
  animation-delay: -4s;
}

.bg-shape {
  position: absolute;
  opacity: 0.05;
  animation: float 20s infinite linear;
}

.bg-shape:nth-child(4) {
  top: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 20px;
  animation-duration: 25s;
}

.bg-shape:nth-child(5) {
  top: 70%;
  right: 10%;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.bg-shape:nth-child(6) {
  top: 40%;
  left: 20%;
  width: 100px;
  height: 100px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation-duration: 20s;
  animation-delay: -10s;
}

.bg-shape:nth-child(7) {
  bottom: 20%;
  right: 25%;
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, var(--accent), var(--primary));
  border-radius: 10px;
  transform: rotate(45deg);
  animation-duration: 22s;
  animation-delay: -7s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.15;
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(10deg);
  }
  50% {
    transform: translateY(0px) rotate(0deg);
  }
  75% {
    transform: translateY(20px) rotate(-10deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Products Section */
.products-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 20px;
  color: var(--light-text);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-header h2 span {
  position: relative;
}

.section-header h2 span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(110, 68, 255, 0.25);
  border-radius: 4px;
  z-index: -1;
}

.section-header p {
  color: var(--medium-text);
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(30, 41, 59, 0.7);
  color: var(--medium-text);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  font-size: 15px;
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--light-text);
  border-color: transparent;
}

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

.product-card {
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(110, 68, 255, 0.3);
}

.product-image {
  height: 220px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--success);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.free-badge {
  background: var(--accent);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.product-info {
  padding: 22px;
  position: relative;
  z-index: 2;
}

.product-info h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--light-text);
  font-weight: 700;
}

.product-info p {
  color: var(--medium-text);
  margin-bottom: 25px;
  font-size: 15px;
  min-height: 70px;
  line-height: 1.7;
}

/* Rating stars */
.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.stars {
  display: flex;
  margin-right: 8px;
}

.stars i {
  color: #ffc107;
  font-size: 14px;
  margin-right: 2px;
}

.rating-count {
  font-size: 13px;
  color: var(--medium-text);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.original-price {
  font-size: 16px;
  text-decoration: line-through;
  color: var(--medium-text);
}

.free-price {
  color: var(--success);
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buy-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-details-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-details-btn:hover {
  background: rgba(110, 68, 255, 0.1);
}

.buy-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(110, 68, 255, 0.4);
}

.free-button {
  background: var(--success);
}

.free-button:hover {
  background: #0da271;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.preview-btn {
  padding: 12px 25px;
  background: var(--primary);
  color: var(--light-text);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.preview-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background: rgba(15, 23, 42, 0.7);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(110,68,255,0.03)" stroke-width="1"/></svg>');
  background-size: 100px;
  opacity: 0.2;
  z-index: -1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 35px;
  position: relative;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 80px;
  color: var(--primary);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
  font-weight: 800;
}

.testimonial-text {
  margin-bottom: 30px;
  color: var(--light-text);
  position: relative;
  z-index: 2;
  font-size: 16px;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  font-weight: 600;
  font-size: 20px;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--medium-text);
  font-size: 14px;
}

/* Footer */
footer {
  background: rgba(15, 23, 42, 0.95);
  padding: 80px 0 0;
  position: relative;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--light-text);
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-about p {
  color: var(--medium-text);
  margin-bottom: 30px;
  line-height: 1.8;
  font-size: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--medium-text);
  text-decoration: none;
  transition: var(--transition);
  font-size: 16px;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-text);
  transition: var(--transition);
  font-size: 18px;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid var(--border);
  color: var(--medium-text);
  font-size: 15px;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  grid-column: 1 / -1;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(110, 68, 255, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1100px) {
  .container {
    padding: 0 30px;
  }
}

@media (max-width: 900px) {
  .hero-stats {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero p {
    margin: 0 auto 40px;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .filter-bar {
    gap: 10px;
  }
  
  .product-actions {
    flex-direction: row;
  }
  
  .search-bar {
    flex-direction: column;
    padding: 15px;
  }
  
  .search-input {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .search-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  
  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  
  .filter-btn {
    padding: 8px 18px;
    font-size: 14px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  .product-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .product-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
}
