/*
Theme Name: LOOTBOX
Theme URI: https://lootbox.my
Description: Beautiful smart home and electronics landing page for LOOTBOX
Version: 1.1
Author: LOOTBOX Team
Author URI: https://lootbox.my
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lootbox
Domain Path: /languages
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

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

html, body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d4ed8;
}

button, input[type="button"], input[type="submit"] {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

@media (min-width: 768px) {
  header .container {
    height: 80px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo img {
    height: 40px;
    width: 40px;
  }
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 1.5rem;
  }
}

nav {
  display: none;
  gap: 1rem;
}

@media (min-width: 768px) {
  nav {
    display: flex;
    gap: 2rem;
  }
}

nav a {
  color: #4b5563;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

nav a:hover {
  color: #111827;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 3rem;
  margin-top: 70px;
  overflow: hidden;
  background-color: #ffffff;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    margin-top: 80px;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-size: 400px 400px;
  background-position: top right;
  background-repeat: no-repeat;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-bg {
    background-size: 600px 600px;
  }
}

.hero .container {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    gap: 2rem;
  }
}

.hero-title {
  font-size: 2rem;
  line-height: 1.2;
  color: #111827;
  margin: 0;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-title .highlight {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero-description {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  max-width: 28rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

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

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

.btn-primary {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  width: 100%;
}

@media (min-width: 640px) {
  .btn-primary {
    width: auto;
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  border: 2px solid #d1d5db;
  color: #111827;
  background: transparent;
  width: 100%;
}

@media (min-width: 640px) {
  .btn-secondary {
    width: auto;
  }
}

.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .trust-indicators {
    gap: 1.5rem;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .trust-item {
    font-size: 0.95rem;
  }
}

.trust-icon {
  color: #2563eb;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-text {
  color: #1f2937;
  font-weight: 500;
}

.hero-image {
  position: relative;
  height: 250px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .hero-image {
    height: 300px;
  }
}

@media (min-width: 768px) {
  .hero-image {
    height: 100%;
    min-height: 350px;
  }
}

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

/* Products Section */
.products {
  padding: 3rem 0;
  background-color: #f9fafb;
}

@media (min-width: 640px) {
  .products {
    padding: 4rem 0;
  }
}

@media (min-width: 768px) {
  .products {
    padding: 6rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-title {
  font-size: 1.875rem;
  color: #111827;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  font-size: 1rem;
  color: #4b5563;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-description {
    font-size: 1.125rem;
  }
}

.products-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.product-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #f3f4f6;
}

@media (min-width: 768px) {
  .product-image {
    height: 250px;
  }
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

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

@media (min-width: 768px) {
  .product-content {
    padding: 1.5rem;
  }
}

.product-title {
  font-size: 1.125rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .product-title {
    font-size: 1.25rem;
  }
}

.product-description {
  color: #4b5563;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  flex-grow: 1;
}

.product-link {
  color: #2563eb;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.product-link:hover {
  color: #1d4ed8;
}

/* Features Section */
.features {
  padding: 3rem 0;
  background-color: white;
}

@media (min-width: 640px) {
  .features {
    padding: 4rem 0;
  }
}

@media (min-width: 768px) {
  .features {
    padding: 6rem 0;
  }
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .feature-item {
    padding: 2rem;
  }
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .feature-icon {
    font-size: 2.25rem;
  }
}

.feature-title {
  font-size: 1rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .feature-title {
    font-size: 1.125rem;
  }
}

.feature-description {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* CTA Section */
.cta {
  padding: 3rem 0;
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  text-align: center;
}

@media (min-width: 640px) {
  .cta {
    padding: 4rem 0;
  }
}

@media (min-width: 768px) {
  .cta {
    padding: 6rem 0;
  }
}

.cta-title {
  font-size: 1.875rem;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3rem;
  }
}

.cta-description {
  font-size: 1rem;
  color: #dbeafe;
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
}

.btn-cta {
  background-color: white;
  color: #2563eb;
  display: inline-flex;
}

.btn-cta:hover {
  background-color: #f3f4f6;
}

/* Footer */
footer {
  background-color: #111827;
  color: #d1d5db;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  footer {
    padding: 3rem 0;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.footer-section a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  header,
  .cta {
    display: none;
  }

  body {
    background-color: white;
  }
}
