/*
 * =======================================
 * SERVICES.CSS
 * Styles specific to the services page.
 * All base styles (nav, footer, etc.)
 * are inherited from base.css.
 * =======================================
 */

main {
    padding: 120px 20px 40px;
    position: relative; /* Ensure main content is above canvas */
    z-index: 1;
}

/* --- SECTION STYLES --- */
.content-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    text-align: center;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #00d65b;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: #c0c0d0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background-color: #101d35;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid rgba(0, 214, 91, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 214, 91, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.service-icon svg {
    width: 50px;
    height: 50px;
    /* fill: #00d65b; */ /* Fill is set inline, stroke is set inline, this is a fallback */
}

.service-card h3 {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 16px;
    color: #b0b0c0;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1; /* Allows paragraph to take up space */
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-card {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #e0e0e0;
    margin-top: auto; /* Pushes button to the bottom */
}

.btn-card:hover {
    background-color: #00d65b;
    border-color: #00d65b;
    color: #101d35;
}

.cta-section {
    background-color: #101d35;
    border-radius: 20px;
    padding: 60px 40px;
    margin-top: 80px;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #00d65b;
    color: #0d1b2a;
    border: 2px solid #00d65b;
}

.btn-primary:hover {
    background-color: #00b84e;
    border-color: #00b84e;
}

/* --- END SECTION STYLES --- */


/* --- RESPONSIVE STYLES (for services content) --- */
@media (max-width: 768px) {
    .section-title { font-size: 36px; }
    .section-subtitle { font-size: 16px; }
}

@media (max-width: 576px) {
    main { padding-top: 100px; }
    .cta-buttons .btn { width: 100%; }

    .cta-section .section-title {
        font-size: 38px;
        line-height: 1.25;
    }

    /* --- Mobile adjustments for service cards --- */
    .service-card {
        padding: 30px;
        text-align: center; /* Center align text */
    }
    .service-icon {
        width: 60px;
        height: 60px;
        margin-left: auto; /* Center icon */
        margin-right: auto; /* Center icon */
        margin-bottom: 20px;
    }
    .service-icon svg {
        width: 35px;
        height: 35px;
    }
    .service-card h3 {
        font-size: 22px;
    }
    .service-card p {
        font-size: 15px;
    }
}