/* Variables */
:root {
    --primary-color: #00b5ad;
    --primary-dark: #008c85;
    --primary-light: #33c3bd;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --light-gray: #f8f9fa;
    --border-radius: 6px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Fix for header buttons in services page */
.main-header .header-buttons .btn-primary {
    background-color: #00b5ad !important;
    border-color: #00b5ad !important;
    color: white !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    line-height: 1.5 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
}

.main-header .header-buttons:hover {
    background-color: #009d96 !important;
    border-color: #009d96 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), url('../img/services/photo-1573164574472-797cdf4a583a.avif');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-bottom: 60px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="%23f1f1f1" /></svg>');
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.services-section .row + .row {
    margin-top: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.service-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: right;
    position: relative;
    overflow: hidden;
}

/* Service Button */
.service-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 181, 173, 0.2);
    position: relative;
    overflow: hidden;
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
}

.service-btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
    position: relative;
    top: 1px;
}

.service-btn:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 181, 173, 0.25);
    text-decoration: none;
}

.service-btn:hover i {
    transform: translateX(-4px);
}

.service-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    z-index: 1;
}

.service-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-btn * {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px auto;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 28px;
    color: white;
}

.service-card h3 {
    color: var(--secondary-color);
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-card p {
    color: #666;
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    flex-grow: 1;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
}

.process-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 36px;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
}

.process-step {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.process-step h4 {
    color: var(--secondary-color);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.process-step p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 16px;
    margin: 60px 0;
    color: #222;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: var(--primary-light);
    opacity: 0.18;
    border-radius: 50%;
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -70px;
    width: 220px;
    height: 220px;
    background: var(--primary-dark);
    opacity: 0.13;
    border-radius: 50%;
    z-index: 0;
}

.cta-section h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: #444;
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 42px;
    }

    .service-card {
        padding: 30px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .service-btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .process-section h2 {
        font-size: 32px;
    }

    /* Ensure columns have spacing and full width on tablet */
    .services-section .row > [class*="col-"] {
        width: 100%;
        margin-bottom: 20px;
    }
    .services-section .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    .process-section .row > [class*="col-"] {
        width: 100%;
        margin-bottom: 20px;
    }
    .process-section .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-step {
        margin-bottom: 30px;
    }

    .cta-section {
        padding: 60px 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .service-card {
        padding: 25px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 30px;
    }

    /* Ensure columns have spacing and full width on mobile */
    .services-section .row > [class*="col-"] {
        width: 100%;
        margin-bottom: 20px;
    }
    .services-section .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    /* Add spacing between process steps on mobile */
    .process-section .row > [class*="col-"] {
        width: 100%;
        margin-bottom: 20px;
    }
    .process-section .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    /* Make service button look neater on mobile */
    .service-btn {
        display: inline-block;
        width: auto !important;
        margin: 12px 0 0 0;
        align-self: flex-start;
        direction: rtl;
    }

    .cta-section {
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .btn-primary {
        padding: 14px 30px;
        font-size: 16px;
    }
}

.cta-section > * {
    position: relative;
    z-index: 1;
}
