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

html {
  min-width: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 100%;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', 'sans-serif' !important;
  /* -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; */
  overflow-x: hidden;
  /* text-rendering: optimizeLegibility; */
}

.initialized {
  opacity: 0;
}

.visible {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.container-main {
  flex: 1;
  width: 90%;
  margin: 0 auto;
  padding: 0;
  margin-top: 2rem;
}

main {
  flex: 1 0 auto;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* Button styles */
.btn {
  border-radius: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.btn-primary {
  color: #222;
  background-color: rgb(117, 199, 197);
  border-color: rgb(117, 199, 197);
}

.btn-primary:hover {
  background-color: rgb(97, 165, 163);
  border-color: rgb(97, 165, 163);
}

.btn-outline-primary {
  color: rgb(117, 199, 197);
  background-color: transparent;
  border-color: rgb(117, 199, 197);
}

.btn-outline-primary:hover {
  color: #222;
  background-color: rgb(117, 199, 197);
  border-color: rgb(117, 199, 197);
}

.btn-outline-primary:active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show>.btn-outline-primary.dropdown-toggle {
  color: #222;
  background-color: rgb(117, 199, 197);
  border-color: rgb(117, 199, 197);
}

/* disabled button */
.btn-outline-primary:disabled {
  /* color: rgb(117, 199, 197);
  border-color: rgb(117, 199, 197);   */
  color: #b6b6b6;
  border-color: #b6b6b6;
}

.colour-option .btn-outline-primary:disabled{
  color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' preserveAspectRatio='none' viewBox='0 0 100 100'><path d='M100 0 L0 100 ' stroke='black' stroke-width='6'/><path d='M0 0 L100 100 ' stroke='black' stroke-width='6'/></svg>") !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-blend-mode: luminosity !important;
}


/* hide colour option when the button is disabled */
.colour-option:has(.btn-outline-primary:disabled) {
  display: none;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 100%;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}

.category-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  touch-action: pan-y pinch-zoom;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  font-weight: 500;
}

/* Section Headings */
.section-heading {
  margin-bottom: 2rem;
  text-align: start;
  position: relative;
  font-size: 3rem;
  color: black;
}

/* Responsive */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 425px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
}

/* About Section */
.about-section {
  background-color: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin:0 auto;
}

.about-content h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.peqc-text {
  white-space: nowrap;
  display: inline-block;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.about-image {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 90%;
}

@media (max-width: 768px) {
  .about-image {
    justify-content: center;
    margin-top: 2rem;
  }
  .about-section {
    padding: 1.5rem;
  }

  .about-image img {
    max-width: 100%;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }
}

.about-content .btn-primary {
  background-color: rgb(117, 199, 197);
  color: #000;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Override any hover effects on dropdown */
.dropdown-menu {
  display: none;
}

.show.dropdown-menu {
  display: block;
}

/* Utility classes */
.text-primary {
  color: rgb(117, 199, 197) !important;
}

.bg-primary {
  background-color: rgb(117, 199, 197) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: rgb(117, 199, 197);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(97, 165, 163);
}
