:root {
  --primary: #ff6b35; /* Orange */
  --primary-dark: #e55a2b; /* Darker Orange */
  --primary-light: #ff8b5c; /* Lighter Orange */
  --secondary: #1a1a1a; /* Black */
  --secondary-light: #333333; /* Lighter Black */
  --accent: #ffffff; /* White */
  --light: #f5f5f5; /* Light Gray */
  --gray: #777777; /* Medium Gray */
  --light-gray: #e0e0e0; /* Light Gray */
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 6px;
}

/* Dark Mode Variables */
.dark-mode {
  --primary: #ff6b35; /* Orange stays same */
  --primary-dark: #e55a2b; /* Darker Orange stays same */
  --primary-light: #ff8b5c; /* Lighter Orange stays same */
  --secondary: #ffffff; /* White becomes text color */
  --secondary-light: #f0f0f0; /* Light Gray for text */
  --accent: #121212; /* Dark background */
  --light: #1e1e1e; /* Darker background for sections */
  --gray: #aaaaaa; /* Lighter gray for text */
  --light-gray: #333333; /* Dark gray for borders */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--secondary);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--accent);
  transition: var(--transition);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-family: "Montserrat", sans-serif;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 4px;
  background: var(--primary);
}

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  text-align: center;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--secondary-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--accent);
}

.btn-white {
  background: var(--accent);
  color: var(--secondary);
}

.btn-white:hover {
  background: var(--light);
  color: var(--secondary);
}

section {
  padding: 100px 0;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background-color: var(--accent);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode header {
  background-color: var(--accent);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

header.scrolled {
  padding: 15px 0;
  background-color: var(--accent);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--secondary);
}

.logo i {
  color: var(--primary);
  margin-right: 10px;
  font-size: 2.2rem;
}

.logo span {
  color: var(--primary);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle,
.language-switcher {
  background: var(--light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.theme-toggle:hover,
.language-switcher:hover {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-3px);
}

.theme-toggle i {
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin-left: 30px;
  display: flex;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  color: var(--secondary);
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-links a.active:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
  background: none;
  border: none;
  margin-left: 15px;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  background: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--secondary-light) 100%
  );
  position: relative;
  overflow: hidden;
  color: var(--accent);
}

.dark-mode .hero {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.dark-mode .hero h1 {
  color: var(--primary);
}

.hero:before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.1);
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 15px;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-image {
  flex: 1;
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Brands Section */
.brands {
  padding: 80px 0;
  background-color: var(--accent);
}

.brands-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  padding: 20px;
  border-radius: var(--radius);
  width: 180px;
  background: var(--light);
}

.brand-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  background: var(--accent);
}

.brand-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  border: 2px solid var(--light-gray);
}

.brand-icon i {
  font-size: 2.5rem;
}

.brand-icon.apple {
  background: var(--accent);
}

.brand-icon.apple i {
  color: var(--secondary);
}

.brand-icon.samsung {
  background: var(--secondary);
}

.brand-icon.samsung i {
  color: var(--accent);
}

.brand-icon.xiaomi {
  background: var(--primary);
}

.brand-icon.xiaomi i {
  color: var(--accent);
}

/* Products Section */
.products {
  background-color: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  display: inline-block;
}

.filter-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background: var(--accent);
  border: 2px solid var(--light-gray);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
  color: var(--secondary);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--light-gray);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.badge-new {
  background: var(--primary);
  color: var(--accent);
}

.badge-used {
  background: var(--secondary);
  color: var(--accent);
}

.product-img {
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  padding: 20px;
}

.product-img img {
  max-width: 80%;
  height: auto;
  transition: var(--transition);
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-info {
  padding: 25px;
}

.product-brand {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.product-name {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}

.product-price span {
  font-size: 1rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 10px;
}

/* About Section */
.about {
  background: var(--accent);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.features {
  margin-top: 30px;
}

.feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-form {
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: "Poppins", sans-serif;
  transition: var(--transition);
  background: var(--accent);
  color: var(--secondary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea.form-control {
  min-height: 150px;
  max-height: 300px;
  resize: vertical;
  overflow-y: auto;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--accent);
  padding: 80px 0 30px;
}

.dark-mode footer {
  background: #000000;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
  font-family: "Montserrat", sans-serif;
  color: var(--accent);
}

.footer-logo span {
  color: var(--primary);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  color: var(--accent);
}

.footer-links h3:after,
.footer-contact h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--accent);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Stats Section */
.stats {
  background: var(--primary);
  color: var(--accent);
  padding: 80px 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}

.stat-text {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero-container,
  .about-container {
    flex-direction: column;
  }

  .hero-content,
  .about-content {
    text-align: center;
    margin-bottom: 50px;
  }

  .hero-btns {
    justify-content: center;
  }

  .about-image {
    order: -1;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links li {
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--accent);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    gap: 15px;
  }

  .dark-mode .nav-links {
    background: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    margin: 5px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .theme-toggle,
  .language-switcher {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .theme-toggle i {
    font-size: 1rem;
  }

  section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 150px;
  }

  .filter-btns {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 25px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .back-to-top {
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .logo i {
    font-size: 1.8rem;
  }
}
