/*
 * Kubowhite website styles
 * A minimalist, modern design with a predominantly white color palette and
 * subtle accents inspired by popular digital marketplaces. The layout is
 * responsive, adapting gracefully across screen sizes. Animations are
 * applied via the `.reveal` and `.show` classes using JavaScript.
 */

:root {
  --primary-color: #E85D04;
  --secondary-color: #6930C3;
  --bg-color: #ffffff;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

.language-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-color);
  font-weight: bold;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.btn.primary {
  background: var(--primary-color);
  color: #ffffff;
}

.btn.secondary {
  background: var(--secondary-color);
  color: #ffffff;
}

.btn.primary:hover,
.btn.secondary:hover {
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-color);
}

/* Features Section */
.features {
  background-color: var(--light-gray);
}

.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-item {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.08);
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 93, 4, 0.1);
  border-radius: 50%;
}

.icon {
  width: 32px;
  height: 32px;
  fill: var(--primary-color);
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Products Section */
.product-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.08);
}

.product-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

/* Abstract gradient backgrounds for product placeholders */
.product-bg-1 {
  background-image: linear-gradient(45deg, #e85d04, #ffba08);
}

.product-bg-2 {
  background-image: linear-gradient(45deg, #6930c3, #5e548e);
}

.product-bg-3 {
  background-image: linear-gradient(45deg, #1982c4, #6a4c93);
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.product-info p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
  color: #666666;
}

.price {
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Call to Action */
.cta {
  text-align: center;
  background: linear-gradient(45deg, #e85d04, #f48c06);
  color: #ffffff;
  border-radius: 8px;
}

.cta h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Contact Section */
.contact {
  background-color: var(--light-gray);
}

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

.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

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

.form-group input,
.form-group textarea {
  padding: 0.7rem;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.2);
}

.contact-form .btn {
  align-self: flex-start;
}

/* Footer */
.footer {
  background: #fafafa;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-top: 2rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .nav-links {
    width: 100%;
    justify-content: space-around;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .feature-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}