/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #d4af37;
  --accent-hover: #b5952f;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 40px -10px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SolaimanLipi Font Face */
@font-face {
  font-family: "SolaimanLipi";
  src: url("https://cdn.jsdelivr.net/gh/ankurk91/Bangla-Fonts@master/SolaimanLipi.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  /* Primary font is SolaimanLipi, with Hind Siliguri as a robust fallback */
  font-family: "SolaimanLipi", "Hind Siliguri", sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =========================================
   2. Utility Classes
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-accent {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #e5c158 100%);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, var(--accent-hover) 0%, #d4af37 100%);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-large {
  padding: 18px 36px;
  font-size: 19px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   3. Scroll Reveal Animations
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.logo img {
  width: 180px;
  height: auto;
}

.logo span {
  color: var(--accent);
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.hamburger::before {
  content: "";
  transform: translateY(-7px);
}
.hamburger::after {
  content: "";
  transform: translateY(5px);
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: "SolaimanLipi", "Hind Siliguri", sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 40px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   6. Trust Indicators
   ========================================= */
.trust-indicators {
  padding: 40px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  flex-shrink: 0;
}

.trust-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 15px;
  color: var(--text-muted);
}

/* =========================================
   7. Benefits & Features
   ========================================= */
.benefits,
.features {
  padding: 100px 0;
}

.benefits {
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.benefit-card {
  background: var(--bg-light);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.benefit-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary);
}

.benefit-card p {
  color: var(--text-muted);
}

.features {
  background: var(--bg-light);
}

.features-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.feature-content h2 {
  font-size: 36px;
  margin-bottom: 32px;
  color: var(--primary);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 18px;
}

.feature-list svg {
  width: 24px;
  height: 24px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 4px;
}

/* =========================================
   8. Product Showcase
   ========================================= */
.products {
  padding: 100px 0;
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 14px;
  color: var(--text-muted);
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.price-unit {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-actions .btn {
  width: 100%;
}

/* =========================================
   9. Testimonials
   ========================================= */
.testimonials {
  padding: 100px 0;
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote-icon {
  font-size: 64px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -20px;
}

.testimonial-text {
  font-size: 17px;
  color: var(--text-main);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.testimonial-author h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-author span {
  font-size: 14px;
  color: var(--text-muted);
}

/* =========================================
   10. FAQ Accordion
   ========================================= */
.faq {
  padding: 100px 0;
  background: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question[aria-expanded="true"] {
  color: var(--accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* =========================================
   11. CTA Section
   ========================================= */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.cta-container {
  position: relative;
  z-index: 2;
}

.cta-container h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-container p {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   12. Footer
   ========================================= */
.footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 80px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  max-width: 300px;
  font-size: 15px;
  line-height: 1.8;
}

.footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  margin-bottom: 12px;
  font-size: 15px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

/* =========================================
   13. Back to Top Button
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

/* =========================================
   14. Responsive Design (Mobile First)
   ========================================= */
@media (max-width: 992px) {
  .hero-container,
  .features-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p,
  .section-header p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .feature-list li {
    justify-content: center;
    text-align: left;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 32px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-header h2,
  .feature-content h2,
  .cta-container h2 {
    font-size: 28px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }
}


/* Image load on image hover*/
.image-hover {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.image-hover img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.image-hover-img {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.image-hover:hover .image-hover-img {
    opacity: 1;
}

.image-hover:hover .image-normal {
    opacity: 0;
}
