/* Services Page - Professional & Unique Styling */

/* Services Hero Section */
.services-hero {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(45, 74, 124, 0.9) 100%),
                url('https://images.unsplash.com/photo-1572021335469-31706a17aaef?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 70px;
    position: relative;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><polygon fill="%23d4af37" points="50,0 100,50 50,100 0,50"/></svg>'); */
    background-size: 80px 80px;
}

.services-hero-content {
    position: relative;
    z-index: 2;
}

.services-hero-title {
    font-family: var(--heading-font);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.services-hero-subtitle {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: #f4e4a6;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Services Introduction */
.services-intro {
    padding: 5rem 0;
    background: #f8fafc;
    text-align: center;
}

.services-intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.services-intro .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a365d;
    position: relative;
    display: inline-block;
}

.services-intro .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #10b981);
    border-radius: 2px;
}

.services-intro-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 0;
}

/* Services Main Grid */
.services-main {
    padding: 5rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #10b981, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #d4af37;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f4e4a6, #d4af37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1a365d;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #d4af37, #10b981);
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #10b981);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-title {
    font-size: 1.4rem;
    color: #1a365d;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.service-card:hover .service-title::after {
    width: 80px;
}

.service-description {
    color: #4a5568;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 0;
}

/* Special service card variations */
.service-card:nth-child(3n+1) .service-icon {
    background: linear-gradient(135deg, #f4e4a6, #d4af37);
}

.service-card:nth-child(3n+2) .service-icon {
    background: linear-gradient(135deg, #a7f3d0, #10b981);
}

.service-card:nth-child(3n+3) .service-icon {
    background: linear-gradient(135deg, #bfdbfe, #3b82f6);
}

/* Services CTA Section */
.services-cta {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><circle cx="20" cy="20" r="8" fill="%23d4af37"/><circle cx="80" cy="40" r="6" fill="%2310b981"/><circle cx="40" cy="80" r="10" fill="%233b82f6"/></svg>');
}

.services-cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.services-cta .cta-title {
    font-family: var(--heading-font);
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.services-cta .cta-text {
    font-family: var(--body-font);
    font-size: 1.2rem;
    color: #f4e4a6;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.services-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.services-cta .btn-primary {
    background: #d4af37;
    color: #1a365d;
    border: 2px solid #d4af37;
}

.services-cta .btn-primary:hover {
    background: transparent;
    color: #d4af37;
    transform: translateY(-2px);
}

.services-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.services-cta .btn-secondary:hover {
    background: white;
    color: #1a365d;
    transform: translateY(-2px);
}

/* Service Category Colors */
.service-card[class*="education"] {
    border-left: 4px solid #d4af37;
}

.service-card[class*="advocacy"] {
    border-left: 4px solid #10b981;
}

.service-card[class*="community"] {
    border-left: 4px solid #3b82f6;
}

.service-card[class*="mental"] {
    border-left: 4px solid #8b5cf6;
}

.service-card[class*="youth"] {
    border-left: 4px solid #f59e0b;
}

.service-card[class*="financial"] {
    border-left: 4px solid #ef4444;
}

.service-card[class*="environment"] {
    border-left: 4px solid #10b981;
}

.service-card[class*="crisis"] {
    border-left: 4px solid #dc2626;
}

.service-card[class*="cultural"] {
    border-left: 4px solid #7c3aed;
}

.service-card[class*="networking"] {
    border-left: 4px solid #06b6d4;
}

.service-card[class*="technology"] {
    border-left: 4px solid #6366f1;
}

.service-card[class*="immigration"] {
    border-left: 4px solid #0891b2;
}

.service-card[class*="employment"] {
    border-left: 4px solid #059669;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services-hero-title {
        font-size: 2.5rem;
    }
    
    .services-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .services-cta .cta-title {
        font-size: 2rem;
    }
    
    .services-cta .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-cta .btn {
        margin: 0;
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 6rem 0 3rem;
    }
    
    .services-hero-title {
        font-size: 2rem;
    }
    
    .services-intro .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Animation for service cards on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for grid items */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }
.service-card:nth-child(10) { animation-delay: 1.0s; }
.service-card:nth-child(11) { animation-delay: 1.1s; }
.service-card:nth-child(12) { animation-delay: 1.2s; }
.service-card:nth-child(13) { animation-delay: 1.3s; }

