/* Custom CSS for new color scheme (White, Black, Gray, Orange), layout, and advanced animations */
body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    /* White background */
    color: #1A202C;
    /* Near black text */
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

.container {
    max-width: 1300px;
    /* Wider container */
    margin: 0 auto;
    padding: 1.5rem;
    /* Adjusted padding for all screen sizes */
}

/* Hero Section Styling */
.hero-section {
    display: flex;
    flex-direction: column;
    /* Default to column for mobile */
    align-items: center;
    text-align: center;
    padding: 3rem 0 4rem;
    /* Adjusted padding */
    position: relative;
    overflow: hidden;
}

.select-tag {
    width: 100%;
    margin-bottom: 3em;
}

/* Custom container styling */

.my-select2-class .select2-selection--single {
    /* background-color: #2d3748; */
    border: 1px solid #f56500;
    color: #ffffff;
    border-radius: 8px;
    padding: 0.5rem;
    height: auto;
}

.my-select2-class .select2-selection__rendered {
    color: #ffffff;
    line-height: 1.2;
}

.my-select2-class .select2-selection__arrow {
    height: 100%;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px;
}

/* Dropdown list */
.select2-container--default .select2-results > .select2-results__options {
    /* background-color: #2d3748; */
   background-color: #ffffff;
    color: #2d3748;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #2d3748 !important;
    color: #ffffff;
}

.my-select2-class span:focus-visible {
    outline: none !important;
}

@media (min-width: 1024px) {

    /* On large screens, switch to row layout */
    .hero-section {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: 6rem 0 8rem;
    }

    .hero-content {
        max-width: 60%;
    }

    .hero-illustration {
        max-width: 35%;
        display: block;
    }
}

.hero-title {
    font-size: 2.5rem;
    /* Default smaller size for mobile */
    font-weight: 800;
    color: #F56500;
    /* Vibrant Orange */
    margin-bottom: 0.8rem;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(245, 101, 0, 0.2);
    /* Orange shadow */
}

@media (min-width: 768px) {

    /* Medium screens */
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {

    /* Large screens */
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    /* Default smaller size for mobile */
    color: #4A5568;
    /* Gray 700 */
    max-width: 700px;
    margin-bottom: 2rem;
    /* Adjusted margin */
    line-height: 1.4;
}

@media (min-width: 768px) {

    /* Medium screens */
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (min-width: 1024px) {

    /* Large screens */
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-illustration {
    width: 100%;
    height: 200px;
    /* Adjusted height for mobile */
    background-color: #F7FAFC;
    /* Light Gray */
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #F56500;
    /* Orange */
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(245, 101, 0, 0.15);
    /* Orange shadow */
}

@media (min-width: 1024px) {
    .hero-illustration {
        height: 350px;
        margin-top: 0;
    }
}

/* Filter Buttons Styling - UPDATED */
.filter-buttons-container {
    /* margin-bottom: 3rem; */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* .filter-buttons-container:nth-of-type(3){
    transform: translate(3vw, 0);
} */
.filter-buttons-container#splide02{
    transform: translate(3vw, 0);
}

.filter-buttons {
    padding: 10px 0 !important;
}

.filter-buttons-container .splide__slide {

}

@media (min-width: 768px) {
    .filter-buttons {
        gap: 1rem;
    }
}

.filter-buttons button {
    background-color: #2D3748;
    color: #FFFFFF;
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    white-space: nowrap;
    /* box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); */
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .filter-buttons button {
        padding: 0.9rem 1.8rem;
        /* Original padding for larger screens */
        font-size: 1rem;
    }
}

.filter-buttons button:hover {
    background-color: #1A202C;
    transform: translateY(-8px);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
}

.filter-buttons button:focus-visible{
    outline: none;
}

.filter-buttons button.mixitup-control-active {
    background-color: #F56500;
    color: #FFFFFF;
    box-shadow: 0 10px 10px rgba(245, 101, 0, 0.5);
    transform: translateY(-8px);
}

/* Card Layout and Styling */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Adjusted minmax for smaller screens */
    gap: 2rem;
    /* Adjusted gap */
    align-items: stretch;
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        /* Default for medium screens */
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {

    /* On large screens, force 3 columns */
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: #FFFFFF;
    /* White card background */
    border-radius: 1rem;
    /* Rounded corners */
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* New card style properties */
    background: linear-gradient(135deg, #FFFFFF 0%, #F7FAFC 100%);
    /* Subtle white to light gray gradient */
    border: none;
    /* Remove border for cleaner look with gradient */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.03);
    /* Lighter, more refined shadow */
}

.card:hover {
    transform: translateY(-12px) rotateZ(0.2deg);
    /* Lift and very slight rotation */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    /* More pronounced shadow on hover */
}

.card-image-container {
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    background-color: #F7FAFC;
    /* Light Gray placeholder */
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.card-content {
    padding: 1.2rem;
    /* Adjusted padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .card-content {
        padding: 1.5rem;
    }
}

.card-title {
    font-size: 1.25rem;
    /* Adjusted font size */
    font-weight: 700;
    color: #1A202C;
    /* Near black text */
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
}

.card-description {
    font-size: 0.85rem;
    /* Adjusted font size */
    color: #4A5568;
    /* Gray 700 */
    line-height: 1.5;
    margin-bottom: 1rem;
    /* Adjusted margin */
    flex-grow: 1;
}

@media (min-width: 768px) {
    .card-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
}

.card-tags {
    margin-top: 0.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background-color: #EDF2F7;
    /* Gray 100 */
    color: #4A5568;
    /* Gray 700 */
    padding: 0.3rem 0.7rem;
    /* Adjusted padding */
    border-radius: 0.5rem;
    font-size: 0.7rem;
    /* Adjusted font size */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

@media (min-width: 768px) {
    .tag {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
    }
}

.tag:hover {
    background-color: #E2E8F0;
    /* Gray 200 */
    transform: translateY(-1px);
}

.card-actions {
    display: flex;
    flex-direction: column;
    /* Stack buttons on small screens */
    gap: 0.8rem;
    /* Space between buttons */
    margin-top: auto;
}

@media (min-width: 640px) {

    /* Adjust for medium screens (sm breakpoint) */
    .card-actions {
        flex-direction: row;
        /* Row layout on larger screens */
        justify-content: space-between;
        /* Space out buttons */
    }
}

.demo-link,
.order-link {
    display: block;
    /* Make them block to take full width when stacked */
    background-color: #F56500;
    /* Orange - primary accent */
    color: #FFFFFF;
    padding: 0.7rem 1.4rem;
    /* Adjusted padding */
    border-radius: 0.75rem;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(245, 101, 0, 0.2);
    /* Orange shadow */
    font-size: 0.9rem;
    /* Adjusted font size */
    width: 100%;
    /* Full width for stacked buttons */
}

.order-link {
    background-color: #1A202C;
    /* Darker color for the order button */
    box-shadow: 0 5px 15px rgba(26, 32, 44, 0.2);
}

@media (min-width: 640px) {

    .demo-link,
    .order-link {
        width: auto;
        /* Auto width when in a row */
    }
}

@media (min-width: 768px) {

    .demo-link,
    .order-link {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }
}

.demo-link:hover {
    background-color: #DD6B20;
    /* Darker orange */
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(245, 101, 0, 0.4);
}

.order-link:hover {
    background-color: #2D3748;
    /* Even darker gray/blue */
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(26, 32, 44, 0.4);
}


/* MixItUp specific styles for smooth transitions - GSAP will override these */
.mix {
    /* display: none; Hidden by default */
    /* opacity: 0; Initial state for GSAP */
    transform: translateY(50px) scale(0.9);
    /* Initial state for GSAP */
}

/* GSAP will handle the .show and .hide transitions */

/* Placeholder image styling */
.placeholder-image {
    background-color: #A0AEC0;
    /* Gray 400 */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

/* Footer Styling */
.site-footer {
    background-color: #1A202C;
    /* Dark background for footer */
    color: #E2E8F0;
    /* Light gray text */
    padding: 3rem 1.5rem;
    margin-top: 4rem;
    /* Space above footer */
    text-align: center;
    font-size: 0.9rem;
}

.site-footer .footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .site-footer .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.site-footer p {
    margin: 0;
    line-height: 1.5;
}

.site-footer a {
    color: #F56500;
    /* Orange for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #DD6B20;
    /* Darker orange on hover */
    text-decoration: underline;
}


.filter-buttons button {
    cursor: pointer;
    min-width: max-content;
    padding: 10px 16px;
    background-color: #2d3748;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin-right: 0.5rem;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.filter-buttons button:hover {
    background-color: #4a5568;
}



/* Modal Container */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.visible {
  pointer-events: auto;
  opacity: 1;
}

/* Backdrop */
.modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(45, 55, 72, 0.7); /* #2d3748 with opacity */
}

/* Modal Box */
.modal-content {
  position: relative;
  background: #ffffff;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 10;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.visible .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2d3748;
  cursor: pointer;
}

/* Typography */
.modal-content h2 {
  margin-top: 0;
  color: #2d3748;
  font-size: 1.5rem;
}

/* Form Fields */
.modal-content label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  color: #2d3748;
  font-weight: 600;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9f9f9;
  color: #2d3748;
  outline-color: #f56500;
  transition: border-color 0.2s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
  border-color: #f56500;
}

/* Submit Button */
.modal-content button[type="submit"] {
  margin-top: 1.2rem;
  background: #f56500;
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button[type="submit"]:hover {
  background: #e05400;
}

/* Hide Utility */
.hidden {
  display: none;
}


@media screen and (max-width: 767px) {
  .modal-content {
    width: 90%;
    max-height: 90vh;           /* Limit modal height to 90% of screen */
    overflow-y: auto;           /* Enable scroll inside modal if needed */
    padding: 1.5rem 1rem;
  }

  .modal-close {
    top: 0.5rem;
    right: 0.6rem;
    font-size: 1.75rem;
  }
}
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #2d3748;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast.success {
  background: #38a169; /* Green */
}

.toast.error {
  background: #e53e3e; /* Red */
}

.toast.hidden {
  display: none;
}


