/* Modularian styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&family=Source+Sans+3&display=swap');

:root {
  --primary-color: #407cff;
  --primary-b-color: #7b2cbf;
  --accent-color: #f59e0B;
  --neutral-color: #0f172A;
  --background-color: #ffffff;
  --surface-color: #f8f9fa;
  --text-color: #333;
  --heading-color: var(--neutral-color);
  --border-color: #dee2e6;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --dark-background-color: #fff;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Source Sans 3', sans-serif;
  margin: 0;
  line-height: 1.6;
  position: relative;
}

main {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.header {
  background: var(--background-color);
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.header nav a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s ease;
}

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

.burger-menu {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: var(--neutral-color);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  min-height:50vh;
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  color: #f8f9fa;
  margin-bottom: 30px;
}

/* Marquee Section */
.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  background-color: #f8f9fa;
  padding: 20px 0;
  display: flex;
}

.marquee__content {
  display: flex;
  animation: marquee 30s linear infinite;
  gap: 40px; /* Spacing between logos */
  flex-shrink: 0;
}

.marquee__content img {
  max-height: 50px; /* Adjust as needed */
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Widgets Section */
.widgets-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.widgets-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 40px;
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filters input,
.filters select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card .thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  font-size: 1.25rem;
  margin: 1rem 1rem 0.5rem;
}
.card h3 a {
  color: var(--heading-color);
  text-decoration: none;
}

.card .meta {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin: 0 1rem 1rem;
}

.card .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: auto 1rem 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #0056b3;
}

.card .btn {
  margin: 0 1rem 1rem;
  background-color: var(--heading-color);
  color: #fff;
}

.card .btn:hover {
  background-color: #000;
}

/* Footer */
.footer {
  background-color: var(--surface-color);
  color: var(--secondary-color);
  padding: 40px 0;
  text-align: center;
  margin-top: 60px;
}

/* Product Page */
.product-main {
  padding: 60px 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--secondary-color);
  text-decoration: none;
}

.back-link:hover {
  color: var(--primary-color);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-gallery img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

.product-details h1 {
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-top: 0;
}

.product-details .meta {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.product-details .price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 1.5rem 0;
}

.widgets-section + .widgets-section {
  margin-top: 40px;
}

.about-section {
  background-color: var(--neutral-color);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.about-section.visible {
    opacity: 1;
}

.about-section h2 {
  color: #fff;
}

.about-section p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.chart-container {
  margin-top: 4rem;
  padding: 2rem;
  background-color: var(--surface-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

.chart-container h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
}

.charts-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--surface-color);
}

.chart-card {
  flex: 0 0 400px;
  padding: 1.5rem;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

/* Features Section */
.features-section {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.features-image img {
  max-width: 100%;
  height: auto;
}

.features-list h2 {
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 2rem;
}

.features-list ul {
  list-style: none;
  padding: 0;
}

.features-list li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Advantages Section */
.advantages-section {
  padding: 60px 0;
  background: linear-gradient(to right, #407cff, #7b2cbf);
  color: #fff;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.advantage-item img {
  height: 64px;
  margin-bottom: 1rem;
}

.advantage-item h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.box {
  position: fixed;
  top: 0;
  transform: rotate(80deg);
  left: 0;
  z-index: -1;
}

.wave {
  position: fixed;
  opacity: 0.2;
  width: 1500px;
  height: 1300px;
  margin-left: -150px;
  margin-top: -250px;
  transform-origin: 50% 48%;
  border-radius: 43%;
  animation: drift 12000ms infinite linear;
  z-index: -1;
}

.wave.-one {
    background: var(--primary-b-color);
    left: 10%;
}

.wave.-two {
  animation-duration: 10000ms;
  opacity: 0.1;
  background: var(--primary-color);
  left: 15%;
}

.wave.-three {
  animation-duration: 15000ms;
  background-color: var(--primary-b-color);
  left: 70%;
}


@keyframes drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background-color: var(--surface-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0 0 10px;
}

.stat-item p {
  font-size: 1.2rem;
  color: var(--heading-color);
}

/* Blog Page */
.blog-posts {
    margin-top: 2rem;
}

.blog-post {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.blog-post h2 {
    margin-top: 0;
}

.blog-post h2 a {
    color: var(--heading-color);
    text-decoration: none;
}

.blog-post .post-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}


@media (max-width: 768px) {
    .header nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: var(--box-shadow);
    }

    .header nav.active {
        display: flex;
    }

    .header nav a {
        margin: 1rem;
        text-align: center;
    }

    .burger-menu {
        display: block;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .advantage-item {
        display: flex;
        align-items: center;
        text-align: left;
    }

    .advantage-item img {
        flex: 0 0 80px; /* Adjust size as needed */
        margin-right: 1.5rem;
        margin-bottom: 0;
    }

    .advantage-item-text {
        flex: 1;
    }

    .filters {
        flex-direction: column;
    }
}
