/* =========================================
   God At Home - Services Page Styles
   ========================================= */

/* Services Page Header */
.page-header {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, rgba(26, 11, 46, 0.8) 100%);
    padding-top: 150px; /* Ensure content is below the fixed navbar */
    padding-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
}

/* Services Container */
.service-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    perspective: 1000px;
    padding: 20px 0;
}

/* 3D Service Card Setup */
.service-3d-card {
    position: relative;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03); /* Slightly transparent */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Default Hover Glow / Inner Effect */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--color-accent-glow) 0%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 0;
    mix-blend-mode: screen;
}

/* Card Content Layering (to appear above glow) */
.service-content, .service-icon-wrapper {
    position: relative;
    z-index: 2;
    transform: translateZ(40px); /* Push out of the card in 3D */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover Interactions */
.service-3d-card:hover {
    box-shadow: 0 15px 40px rgba(255, 153, 51, 0.15), 0 0 20px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 153, 51, 0.3);
}

/* The card is already tilted by main.js, so we amplify inner elements */
.service-3d-card:hover .service-content {
    transform: translateZ(60px);
}

.service-3d-card:hover .service-icon-wrapper {
    transform: translateZ(80px);
}

.service-3d-card:hover .card-glow {
    opacity: 0.15;
}

/* Service Icons */
.service-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.15), rgba(255, 215, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: inset 0 0 15px rgba(255, 153, 51, 0.2);
}

.service-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Content Styling */
.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-primary-start);
}

.service-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Service Features List */
.service-features {
    text-align: left;
    margin: 0 auto 30px auto;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    display: inline-block;
    width: 100%;
    max-width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li {
    margin-bottom: 10px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.service-features li:last-child {
    margin-bottom: 0;
}

/* CTA Button specifically for the service card */
.service-cta {
    width: 100%;
    max-width: 250px;
    padding: 14px 20px;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-cards-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .service-3d-card {
        padding: 30px 20px;
    }
    
    .service-content h3 {
        font-size: 1.5rem;
    }
}