/* all thing for page and box sizing for responsive */
/* all var are used here located in dark and light css flie */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* main part content  */

.hero-section {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    color-mix(in srgb, var(--accent-primary) 60%, var(--accent-secondary)) 100%
  );
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.hero-content .highlight {
  color: var(--accent-secondary-dark);
}
/* for dark and light mode */
html.light .hero-content .highlight {
  color: color-mix(in srgb, var(--accent-secondary) 100%, white 20%);
}

.hero-content p {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}
.hero-cta {
  background-color: var(--accent-secondary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.hero-cta:hover {
  background-color: color-mix(in srgb, var(--accent-secondary) 85%, black);
  transform: translateY(-3px) scale(1.05);
}

/* services part   */
.content-section {
  padding: 5rem 0;
}
.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent-primary);
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
/* use grid for cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}
.service-card:hover {

  box-shadow: 0px 12px 30px rgba(0, 70, 130, 0.12);
  html.dark & {
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.3);
  }

}

.service-card h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}
/* icon style */
.service-card svg {
  height: 50px;
  fill: var(--accent-primary);
}
.service-card p {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/*  products part  */
/* like service use grid for cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.product-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  box-shadow: 0px 10px 28px rgba(0, 0, 0, 0.1);
  html.dark & {
    transform: translateY(-8px);
  }
  html.light & {
    transform: translateY(-8px);
  }
  html.dark & {
    box-shadow: 0px 10px 28px rgba(0, 0, 0, 0.65);
  }
}
.product-image-placeholder {
  height: 220px;
  background-color: var(--accent-primary);
  display: flex;
  background-size: 30px 30px;
}
.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-info h4 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.product-info p {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}
.product-info .btn-details {
  background-color: var(--accent-secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}
.product-info .btn-details:hover {
  background-color: color-mix(in srgb, var(--accent-secondary) 85%, black);
}
.section-cta-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: var(--accent-primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.section-cta-button:hover {
  background-color: color-mix(in srgb, var(--accent-primary) 85%, black);
  transform: translateY(-2px);
}

/* why should choose us part  */

.choose-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.choose-us-item {
  text-align: center;
}

.choose-us-item svg {
  height: 50px;
  fill: var(--accent-primary);
}

.choose-us-item h4 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.choose-us-item p {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* experience part  */
.experience-section {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    color-mix(in srgb, var(--accent-primary) 60%, var(--accent-secondary)) 100%
  );
  color: white;
  padding: 5rem 0;
  text-align: center;
}
.experience-section .section-title,
.experience-section .section-subtitle {
  color: white;
}
.experience-section .section-subtitle {
  opacity: 0.9;
}
.experience-section .btn-main {
  background-color: var(--accent-secondary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.experience-section .btn-main:hover {
  background-color: color-mix(in srgb, var(--accent-secondary) 85%, black);
  transform: translateY(-3px) scale(1.05);
}

/* Responsive  */
/* need little more work */
@media (max-width: 992px) {
  .logo a img {
    height: 3rem;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex;
  }
  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }
  .main-nav li {
    margin: 0;
    text-align: center;
  }
  .main-nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  .main-nav li:last-child a {
    border-bottom: none;
  }
  .main-nav .contact-button a {
    margin: 1rem auto;
    display: inline-block;
  }
  .mobile-menu-trigger {
    display: block;
    margin-left: 1rem;
  }
  .theme-toggle-button {
    margin-left: 1rem;
    margin-top: 0;
  }
  .header-content {
    justify-content: space-between;
  }
  .header-content .main-nav-wrapper {
    display: flex;
    align-items: center;
  }
}
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0;
  }
  .content-section {
    padding: 3rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-column .footer-title {
    margin-top: 1rem;
  }
  .social-links {
    text-align: center;
  }
}
