:root {
  /* Brand Colors for Dark Theme */
  --color-bg: #1E1D2F;          /* dark background */
  --color-text: #D9E0EE;        /* light text */
  --color-primary: #FFF200;     
  --color-primary-hover: #e5db00;
  --color-header-bg: #000;      
  --color-link: #fff;            
  --color-mobile-bg: #111;      
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  background: var(--color-bg);
  color: var(--color-text);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--color-header-bg);
  color: var(--color-link);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.brand-name {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary);
}

/* Navigation */
.nav-links,
.header-actions {
  display: flex;
  gap: 1.5rem;
}

.nav-links a,
.mobile-nav a {
  color: var(--color-link);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

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

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

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

/* Buttons */
.header-btn,
.mobile-shop,
.btn-primary,
.btn-outline {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.header-btn,
.mobile-shop,
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text);
}

.header-btn:hover,
.mobile-shop:hover,
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: none;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text);
}

/* Search Buttons */
.search-btn,
.mobile-search {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-btn:hover,
.mobile-search:hover {
  color: var(--color-primary-hover);
}

/* Mobile */
.mobile-icons {
  display: none;
  align-items: center;
  gap: 0.5rem;
  z-index: 1010;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* Mobile nav hidden by default */
.mobile-nav {
  position: fixed; /* always relative to viewport */
  top: -100%;      /* start off-screen */
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-mobile-bg);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  transition: top 0.3s ease;
}

/* Mobile nav visible */
.mobile-nav.active {
  top: 0;          /* slide in */
}

/* Prevent scrolling when nav is open */
body.nav-open {
  overflow: hidden;
}

.mobile-nav.active {
  top: 60px;
}

.mobile-nav a {
  padding: 0.8rem 0;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-actions {
  display: flex;
  margin-top: 1rem;
}

.mobile-shop {
  flex: 1;
  justify-content: center;
}



main {
  display: flex;
  flex-direction: column;
  gap: 4rem; /* spacing between sections */
  color: var(--color-text);
}

/* Headings inside main */
main h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

main p {
  font-size: 1rem;
  color: #ccc;
  text-align: center;
  margin-bottom: 2rem;
}

/* Hero Section */
.hero {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2rem;
  text-align: center;
}

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

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links,
  .header-actions {
    display: none;
  }

  .mobile-icons {
    display: flex;
  }
}


/* Why Choose Section */
.why-choose {
  padding: 1rem 2rem;
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

.why-choose h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.why-choose p {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  color: #ccc;
}

.why-choose .features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature {
  background: #1B1A2A;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  width: 290px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.95rem;
  color: #D9D9D9;
}



.featured-laptops {
  padding: 4rem 2rem;
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
}

.featured-laptops h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.featured-laptops p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  color: #ccc;
}

.laptop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.laptop-card {
  background: #1B1A2A;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.15); /* subtle border */
  max-width: 350px; /* added max width */
  width: 100%;       /* ensures responsive shrink */
}

.laptop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.laptop-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.laptop-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.laptop-card .price {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Star rating */
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
  font-size: 1rem;
}

.rating span {
  margin-left: 0.4rem;
  color: #D9D9D9;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Card Buttons */
.card-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.card-actions .btn-primary,
.card-actions .btn-outline {
  flex: 1;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}




@media (max-width: 768px) {
  .laptop-grid {
    grid-template-columns: 1fr; /* single column on mobile */
    gap: 1rem;
  }

  .laptop-card {
    max-width: 100%;
    width: calc(100% - 0rem); /* small padding from edges */
    margin: 0 auto; /* center the card */
  }
}



.guides-section {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 4rem 2rem;
  text-align: left; /* left-align section title & subtitle */
}

.guides-section h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: left; /* ensure left alignment */
}

.guides-section p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  text-align: left; /* ensure left alignment */
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: start; /* align cards to left */
}

.guide-card {
  background: #1B1A2A;
  border-radius: 12px;
  padding: 1rem;
  text-align: left; /* left-align content inside card */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.15);
  width: 100%;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.guide-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.guide-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.95rem;
  color: #D9D9D9;
  margin-bottom: 1rem;
}

.guide-card .btn-outline {
  width: 100%;
  justify-content: center;
  padding: 0.5rem 0;
}


.support-section {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 4rem 2rem;
  text-align: center;
}

.support-section h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.support-section p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.support-card {
  background: #1B1A2A;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.support-card i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.support-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.support-card p {
  font-size: 0.95rem;
  color: #D9D9D9;
}



.testimonials-section {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 4rem 2rem;
  text-align: center;
}

.testimonials-section h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.testimonials-section p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.testimonial-card {
  background: #1B1A2A;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.testimonial-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid var(--color-primary);
}

.testimonial-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: #D9D9D9;
  margin-bottom: 0.8rem;
}

.testimonial-card .rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--color-primary);
}

.testimonial-card .rating span {
  margin-left: 0.4rem;
  color: #D9D9D9;
  font-size: 0.9rem;
  font-weight: 500;
}




.cta-section {
  background: #111; /* dark background */
  color: var(--color-text);
  padding: 2rem 2rem; /* more vertical padding */
  text-align: center;
  border-radius: 0px;
  margin: 4rem 0;
}

.cta-section h2 {
  color: var(--color-primary);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  font-size: 1rem;
  padding: 1rem 2.5rem; /* bigger padding */
  border-radius: 8px;
  background: var(--color-primary);
  color: #111; /* black text for contrast */
  text-align: center; /* ensure text is centered */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-section .btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}



.site-footer {
  background: #111;
  color: #ccc;
  padding: 3rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.footer-brand span {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin-right: 1.5rem;
  transition: color 0.2s ease;
}

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

.footer-social a {
  color: #ccc;
  font-size: 1.3rem;
  margin-right: 1rem;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #999;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .footer-social {
    gap: 1rem;
  }
}