/* Enhanced CSS Inspired by Behance Design for Landing Page */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Icons');

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    text-align: center;
}

p, li {
    font-size: 1rem;
    color: #555;
    margin: 0.5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
header {
    background: linear-gradient(135deg, #f5a623, #f76b1c);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

header p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

header .btn {
    display: inline-block;
    margin: 1rem 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    background-color: #fff;
    color: #f76b1c;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header .btn:hover {
    background-color: #ffe0b2;
    color: #d35400;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

header img {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 800px;
    pointer-events: none;
}

/* How It Works Section */
#how-it-works {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

#how-it-works h2 {
    margin-bottom: 2rem;
    color: #f76b1c;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 2rem;
}

.step {
    background: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 16px;
    width: calc(33.333% - 1rem);
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.step h3 {
    margin-bottom: 1rem;
    color: #f76b1c;
}

.step p {
    color: #666;
    font-size: 1rem;
}

/* Benefits Section */
#benefits {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fef5e7, #fbe9e7);
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#benefits ul {
    list-style-type: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

#benefits li {
    margin: 1rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#benefits li::before {
    content: '\2713';
    color: #f76b1c;
    font-size: 1.5rem;
}

#faq {
    margin: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Footer */
footer {
    padding: 2rem 1rem;
    background: #2c3e50;
    color: #fff;
    text-align: center;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step {
        width: inherit;
    }

    #form-section form {
        padding: 1.5rem;
    }

    header img {
        width: 80%;
    }
}

.form-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    width: 80vw;
    max-width: 400px;
}

.form-popup form {
    display: flex;
    flex-direction: column;
}
.form-popup input {
    padding: 0.8rem;
    margin: 0.5rem 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.form-popup button {
    background: #f76b1c;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0.8rem;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background 0.3s ease;
}
.form-popup button:hover {
    background: #e65100;
}
.form-popup .close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

       /* Ensure the h1 container height matches the tallest text */
header h1 {
        font-size: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
        min-height: 3rem; /* Enough space for one line of text */
}

.text-container {
    position: absolute;
    width: 100%; /* Full width of the parent */
    text-align: center;
    opacity: 0; /* Hidden by default */
    transform: translateY(30px); /* Start below the view */
    animation: fadeSlide 9s infinite;
}

.text-container:nth-child(1) {
    animation-delay: 0s; /* First text starts immediately */
}

.text-container:nth-child(2) {
    animation-delay: 3s; /* Second text starts after 3 seconds */
}

.text-container:nth-child(3) {
    animation-delay: 6s; /* Third text starts after 6 seconds */
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    10%, 30% {
        opacity: 1;
        transform: translateY(0);
    }
    40% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

 /* Responsive Adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem; /* Smaller font size for smaller devices */
        min-height: 3rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem; /* Adjust further for very small screens */
        min-height: 4rem;
    }
}
#products {
    margin: 25px;
    text-align: center;
}

#products h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.product-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.product-gallery::-webkit-scrollbar {
    height: 10px;
}

.product-gallery::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.product-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

.product-item {
    position: relative;
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
}

.product-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item:focus img {
    transform: scale(1.1);
}    

.product-name {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 5px;
    display: none;
}

.product-item:hover .product-name {
    display: block;
}



.faq-container {
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-header h1 {
    font-size: 2rem;
    color: #444;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
    cursor: pointer;
    position: relative;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
    color:  #f76b1c;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    padding: 0 0 0 1rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
}

.faq-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: translateY(-50%) rotate(180deg);
}

@media (min-width: 768px) {
  .product-gallery {
    justify-content: center;
  }
}