/* AnySmart Website - Services Page CSS */
/* Modern Material Design Style */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Root Variables */
:root {
    --primary-blue: #03a9f4;
    --light-gray: #e9e9e9;
    --dark-gray: #666666;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* Services Section */
.services-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.services-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Service Row */
.service-row {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
}

.service-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-blue);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.service-row:hover::before {
    transform: scaleY(1);
}

.service-row:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 16px var(--shadow-hover);
}

/* Service Icon */
.service-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0288d1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(3, 169, 244, 0.3);
    transition: all 0.3s ease;
    align-self: center;
}

.service-row:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(3, 169, 244, 0.4);
}

.service-icon .material-icons {
    font-size: 36px;
    color: var(--white);
}

/* Service Content */
.service-content {
    flex-grow: 1;
    overflow: hidden;
}

.service-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-row:hover .service-title {
    color: var(--primary-blue);
}

.service-description {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--dark-gray);
    line-height: 1.7;
    margin: 0;
    transition: all 0.4s ease;
}

.description-short {
    display: inline;
}

.description-full {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease 0.1s,
                margin-top 0.4s ease;
}

.service-row.expanded .description-full {
    display: block;
    max-height: 500px;
    opacity: 1;
    margin-top: 0.75rem;
}

/* Service Link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    width: fit-content;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.05s ease,
                transform 0.05s ease,
                background 0.3s ease;
}

.service-row.expanded .service-link {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.4s ease 0.2s,
                transform 0.4s ease 0.2s,
                background 0.3s ease;
}

.service-link:hover {
    background: #0288d1;
    transform: translateY(0) translateX(4px);
}

.service-link .material-icons {
    font-size: 20px;
}

/* Service Toggle */
.service-toggle {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    align-self: center;
}

.service-row:hover .service-toggle {
    background: var(--primary-blue);
}

.service-toggle .material-icons {
    font-size: 24px;
    color: var(--dark-gray);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-row:hover .service-toggle .material-icons {
    color: var(--white);
}

.service-row.expanded .service-toggle .material-icons {
    transform: rotate(180deg);
    color: var(--white);
}

.service-row.expanded .service-toggle {
    background: var(--primary-blue);
    margin-left: auto;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .services-section {
        padding: 3rem 1.5rem;
    }

    .service-row {
        padding: 1.75rem 2rem;
        gap: 1.5rem;
    }

    .service-icon {
        width: 64px;
        height: 64px;
    }

    .service-icon .material-icons {
        font-size: 32px;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .service-action {
        width: 44px;
        height: 44px;
    }

    .service-action .material-icons {
        font-size: 22px;
    }
}

@media screen and (max-width: 640px) {
    .services-section {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .services-container {
        gap: 1rem;
    }

    .service-row {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        column-gap: 1rem;
        row-gap: 0.25rem;
        padding: 1.25rem 1rem;
        align-items: start;
    }

    .service-icon {
        grid-column: 1;
        grid-row: 1;
        width: 48px;
        height: 48px;
        margin-top: -3rem;
    }

    .service-icon .material-icons {
        font-size: 24px;
    }

    .service-content {
        grid-column: 2;
        grid-row: 1;
    }

    .service-title {
        font-size: 1.15rem;
        margin-bottom: 0.35rem;
    }

    .service-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .service-toggle {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 40px;
        height: 40px;
        justify-self: center;
        margin-top: -2rem;
    }

    .service-toggle .material-icons {
        font-size: 20px;
    }

    .service-link {
        padding: 0.6rem 1.15rem;
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }

    .service-link .material-icons {
        font-size: 16px;
    }

    .service-row:hover {
        transform: translateY(-2px);
    }
}
