/* index.css */
body {
    background-image: url("/images/pattern-randomized.svg");
    background-attachment: fixed;
    background-size: cover;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.intro.module {
    width: 70%;
    max-width: 900px;
    min-width: 300px;
    line-height: 1.6em;
}

.module h2 {
    font-size: 1.8rem;
}
/*? ↓  Start Intro  ↓ */

.intro {
    margin-top: 50px;
}

.intro h1 {
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.2em;
}

.intro h1 .accent-name {
    color: var(--primary-color);
}

.intro p {
    font-size: 1.1em;
    font-weight: 600;
}

/*? ↓  Start Benefits Section  ↓ */

.benefits-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin: 50px auto;
}

.benefits-container h2,
.benefits-container p {
    color: #495057;
    margin-bottom: 20px;
}

.benefits-container h2, .accordion-container h2, .project-steps h2 {
    color: #2e97be;
}

.benefits-container p, .transition p {
    font-size: 1.1em;
    font-weight: 600;
}

.benefits-visual {
    position: relative;
    display: grid;
    gap: 20px;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    min-height: 150px;
}

/* Media query to force a single column layout below 950px */
@media (max-width: 950px) {
    .benefits-visual {
        grid-template-columns: 1fr;
    }
}

.benefits-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 150px;
    background-color: rgba(234, 126, 11, .4);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px 10px 15px 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.benefits-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(to right, #DDF0FF 0%, #fff 40%, #fff 60%, #DDF0FF 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.benefits-card h3 {
    font-size: 1.8em;
    color: #495057;
    transition: font-size 0.4s ease-in-out;
}

.benefits-card ul {
    list-style: inside;
    padding-top: 10px;
}

.hover-list {
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.benefits-card:hover .hover-list {
    max-height: 300px;
    opacity: 1;
}

.benefits-card:hover h3 {
    font-size: 1.2em;
    text-decoration: underline;
}

.transition {
    margin-top: 30px;
    font-weight: 600;
}

.transition p:first-child {
    font-size: 1.3em;
}

.transition p:last-child {
    font-size: 1.4rem;
}

/*? ↓  Start Services Container  ↓ */

.services-section.module {
    max-width: 850px;
}

.accordion-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 10px auto;
    overflow: hidden;
    min-height: 150px;
    background-color: transparent; /* Ensure no background color is affecting the text */
}

.accordion-container h2, .accordion-container p {
    margin-bottom: 20px;
}

.accordion-container p {
    font-weight: 600;
    color: #333333;
}

.accordion {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.accordion-item {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.accordion-item.active {
    opacity: 1; 
    transform: scale(1.1);
    z-index: 1;
    min-height: 318px; 
}

/* Styles for an active (open) accordion item */
.accordion-item.active .accordion-content {
    max-height: 500px; 
    padding: 15px; 
    border-top: 1px solid #dee2e6; 
}

.accordion-header {
    width: 100%;
    background-color: #ddf0ff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    box-shadow: none;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #333333;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #ca6e0b;
    color: #fff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #ffffff; 
    padding: 0 15px;
    color: #333333; 
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    min-height: 192px;
}

.accordion-content li {
    padding: 10px;
    color: #333333; 
}

.hover-list {
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.hover-list.active {
    max-height: 300px; 
    opacity: 1;
}

/*? ↓  Start CTA Section  ↓ */
.inspiration {
    padding-top: 20px;
}

.cta-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
    color: #495057;
}

.cta-section p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.demos-link,
.cta-button {
    display: inline-block;
    padding: 8px 25px;
    margin: 20px 0px 20px 0px;
    background-color: #ca6e0b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.demos-link:hover,
.cta-button:hover {
    background-color: #2e97be;
    box-shadow: 0 4px 8px rgba(46, 151, 190, 0.2);
}

.demos-link:active, .cta-button:active {
    background-color: #ca6e0b;
    box-shadow: 0 4px 8px rgba(46, 151, 190, 0.2);
}

.project-steps {
    margin-top: 60px;
    margin-bottom: 40px;
}

.project-steps h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.steps-list {
    display: grid;
    gap: 30px;
    list-style: none;
    padding: 0;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.steps-list li {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.steps-list li h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2e97be;
    font-weight: 600;
}

.steps-list {
    counter-reset: step-counter;
}

.steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: -15px;
    left: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2e97be;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}