@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px;
    background: #f4f6f9;
    color: #333;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #ff9a9e, #fad0c4, #fbc2eb);
    background-size: cover;
    animation: gradientBackground 15s ease infinite;
    z-index: -1;
}

.about-section h1 {
    font-size: 3em;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1s forwards;
}

.about-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1.5s forwards;
    animation-delay: 0.5s;
    line-height: 1.6;
}

.categories {
    margin-bottom: 40px;
}

.services {
    text-align: left;
    margin: 40px auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.services h3 {
    font-size: 1.5em;
    margin: 10px 0;
}

.services p {
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-button {
    display: inline-block;
    background: linear-gradient(45deg, #007BFF, #00C6FF);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.contact-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.contact-button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

@media (min-width: 768px) {
    .services {
        flex-direction: row;
    width: 100%;
    height: 2px;
    background: #007BFF;
    transform: scaleX(0);
        margin: 0 20px;
    }
}

@media (max-width: 768px) {


    .about-section {
        padding: 40px 20px;
    }
    
    .about-section h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .about-section p {
        font-size: 1em;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .services-overview h2,
    .testimonials-section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
        text-align: center;
    }

    .services, .testimonials {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .service, .testimonial {
        width: 48%;
        margin-bottom: 20px;
    }

    .service h3 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    .service p, .testimonial p {
        font-size: 0.95em;
        line-height: 1.4;
    }

    .contact-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .learn-more {
        font-size: 0.95em;
    }

    .cookie-consent-popup, .cookie-popup-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .about-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .about-section h1 {
        font-size: 2em;
    }
    .about-section p,
    .services p,
    .testimonial p {
        font-size: 1em;
    }
    .services h2,
    .services h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .services {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .service {
        width: 48%;
    }
    
    .testimonials {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .testimonial {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .services-overview h2 {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    .services {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .service {
        width: 48%;
        font-size: 0.9em;
    }
    
    .testimonials-section h2 {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    .testimonials {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .testimonial {
        width: 48%;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .service, .testimonial {
        width: 100%;
        margin-bottom: 20px; 
    }

    .services, .testimonials {
        flex-direction: column;
        align-items: center;
    }

    .service p, .testimonial p {
        padding: 0 10px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.testimonials-section {
    padding: 60px 20px;
    background-color: #f4f6f9;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.testimonial {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
}

.testimonial p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
}

.testimonial h4 {
    font-size: 1em;
    color: #007BFF;
}

@media (min-width: 768px) {
    .testimonials {
        flex-direction: row;
        justify-content: center;
    }
}

.animated-title {
    font-size: 2.5em;
    font-family: 'Roboto', sans-serif;
    color: #007BFF;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.5s;
}

.services-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    background-color: #ffffff;
}

.services-overview h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #007BFF;
}

.service {
    max-width: 800px;
    text-align: left;
    padding: 20px;
    border-radius: 8px;
    background-color: #f4f6f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover, .testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.service h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
}

.service p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.learn-more {
    color: #007BFF;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    padding: 5px 0;
}

.learn-more:hover {
    color: #0056b3;
}

.more-text {
    display: none;
    transition: max-height 0.5s ease;
}

@media (min-width: 768px) {
    .services-overview {
        flex-direction: row;
        justify-content: space-around;
    }
    .service {
        width: 45%;
    }
}