/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
    .opaque-container {
        padding: 1rem;
        min-height: 350px;
        margin: 5.5rem 1.5rem 1.5rem 1.5rem;
        border-radius: 31px;
    }

    .containers {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }

    .container-icon {
        font-size: 2.5rem;
    }

    .container {
        padding: 1rem;
        width: 100%;
    }
}

/* Tablet Breakpoint */
@media (min-width: 481px) and (max-width: 768px) {
    .opaque-container {
        padding: 2rem 1rem;
        min-height: 500px;
        margin: 6rem 2rem 2rem 2rem;
        border-radius: 47px;
    }

    .bg-content h1 {
        margin-top: 7rem !important;
        font-size: 2.5rem;
    }

    .containers {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 1rem 0rem;
        max-width: 100%;
        padding: 0;
    }

    .container-icon {
        font-size: 2.5rem;
    }

    .container {
        padding: 1.5rem;
        min-height: auto;
        width: 100%;
    }
}

/* Desktop Breakpoint */
@media (min-width: 769px) {
    .opaque-container {
        margin: 5.5rem 2rem 0;
        padding: 2rem;
        border-radius: 47px;
        max-width: 1200px;
    }

    .containers {
        gap: 1rem;
    }

    .container-icon {
        font-size: 3rem;
    }
}

body {
    background: linear-gradient(#112846EE, #112846EE), url("/images/web-pictures/services-page.jpg");
    background-size: cover;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.bg-content {
    margin-top: 1rem;
}

p {
    color: rgb(46, 46, 46);
    margin-bottom: 1rem;
}

.opaque-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 15;
    min-height: 550px;
    box-sizing: border-box;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.2s ease-out forwards;
}

.containers {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 300px;
    background: rgba(59, 78, 102, 1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: scaleIn 0.2s ease-out forwards;
}

.container:nth-child(1) { animation-delay: 0s; }
.container:nth-child(2) { animation-delay: 0.1s; }
.container:nth-child(3) { animation-delay: 0.2s; }

.container-icon {
    background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(6, 165, 221) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 2rem auto 1.5rem;
    flex-shrink: 0;
}

.container-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0 1rem 1rem;
    flex-shrink: 0;
}

.container-description {
    color: white;
    line-height: 1.6;
    margin: 0 1.5rem 0;
    flex-grow: 1;
}

.services-title {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, #2196F3);
    border-radius: 2px;
}

.services-intro {
    text-align: center;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.cta-btn {
    display: inline-block;
    margin: 2rem 0 0.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #112846;
    background: linear-gradient(90deg, #ffffff 0%, rgba(6, 165, 221, 1) 100%);
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 18px rgba(33,150,243,0.15);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    letter-spacing: 0.5px;
}

.cta-btn:hover, .cta-btn:focus {
    color: #ffffff;
    background: linear-gradient(90deg, #112846 0%, rgba(6, 165, 221, 1) 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 32px rgba(33,150,243,0.25);
    outline: none;
}

/* Responsive CTA button sizing */
/* Mobile responsive sizing for CTA button */
@media (max-width: 575px) {
    .cta-btn {
        padding: 0.7rem 1.8rem; /* Smaller padding for mobile */
        font-size: 1rem; /* Smaller font for mobile */
    }
}

/* Tablet responsive sizing for CTA button */
@media (min-width: 576px) and (max-width: 991px) {
    .cta-btn {
        padding: 0.8rem 2rem; /* Slightly smaller padding for tablet */
        font-size: 1.1rem; /* Slightly smaller font for tablet */
    }
}