/* Services Index Page Styles */

/* Services Hero */
.services-hero {
    background: linear-gradient(135deg, #1a2340 0%, #2d3856 100%);
    padding: 120px 1.5rem 80px;
    text-align: center;
    color: white;
    --hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.services-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.services-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.services-hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* Hero Animations */
.services-hero.hero-ready .services-hero-content h1,
.services-hero.hero-ready .services-hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
}

.services-hero.hero-animate .services-hero-content h1 {
    animation: heroTitleReveal 0.85s var(--hero-ease) forwards;
}

.services-hero.hero-animate .services-hero-subtitle {
    animation: heroSubtitleReveal 0.85s var(--hero-ease) 0.2s forwards;
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroSubtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    100% {
        opacity: 0.95;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Services Overview Grid */
.services-overview {
    padding: 100px 1.5rem;
    background: #f8fafc;
    --overview-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.services-overview-container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a2340;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #5b8cc9;
    font-weight: 500;
}

/* Overview Section Animations */
.services-overview.overview-ready .section-header h2,
.services-overview.overview-ready .section-header p {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(6px);
}

.services-overview.overview-animate .section-header h2 {
    animation: overviewHeaderReveal 0.75s var(--overview-ease) forwards;
}

.services-overview.overview-animate .section-header p {
    animation: overviewHeaderReveal 0.75s var(--overview-ease) 0.15s forwards;
}

@keyframes overviewHeaderReveal {
    0% {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

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

.service-overview-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Service Card Animations */
.services-overview.overview-ready .service-overview-card {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(6px);
}

.services-overview.overview-animate .service-overview-card {
    animation: cardReveal 0.9s var(--overview-ease) forwards;
    animation-delay: var(--card-delay, 0ms);
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
        filter: blur(6px);
    }
    65% {
        transform: translateY(-8px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.service-overview-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5b8cc9 0%, #ffd700 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-overview-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-overview-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a2340;
    font-weight: 700;
}

.service-overview-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5a6b7d;
    margin-bottom: 20px;
}

.service-overview-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-overview-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #1a2340;
}

.service-overview-benefits i {
    color: #ffd700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.service-overview-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-badge {
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #5b8cc9;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2340;
}

.service-overview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 15px;
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2340;
}

.service-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #5b8cc9;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.service-detail-btn:hover {
    background: #1a2340;
    transform: translateX(5px);
    text-decoration: none;
    color: white;
}

/* Why Choose Us */
.services-why-choose {
    padding: 100px 1.5rem;
    background: white;
    --why-choose-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.why-choose-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.why-choose-container h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a2340;
    font-weight: 700;
}

/* Why Choose Us Animations */
.services-why-choose.why-choose-ready .why-choose-container h2 {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(6px);
}

.services-why-choose.why-choose-ready .why-choose-item {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
}

.services-why-choose.why-choose-animate .why-choose-container h2 {
    animation: whyChooseHeaderReveal 0.8s var(--why-choose-ease) forwards;
}

.services-why-choose.why-choose-animate .why-choose-item {
    animation: whyChooseItemReveal 0.85s var(--why-choose-ease) forwards;
    animation-delay: var(--item-delay, 0ms);
}

@keyframes whyChooseHeaderReveal {
    0% {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes whyChooseItemReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.why-choose-item {
    padding: 30px 20px;
}

.why-choose-item i {
    font-size: 3rem;
    color: #5b8cc9;
    margin-bottom: 20px;
}

.why-choose-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a2340;
    font-weight: 700;
}

.why-choose-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6b7d;
}

/* Responsive */
@media (max-width: 968px) {
    .services-hero {
        padding: 80px 1.5rem 60px;
    }
    
    .services-hero-content h1 {
        font-size: 2rem;
    }
    
    .services-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-overview {
        padding: 60px 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-overview-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .service-detail-btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-why-choose {
        padding: 60px 1.5rem;
    }

    .why-choose-container h2 {
        font-size: 2rem;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .services-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .services-hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .service-overview-card {
        padding: 30px 20px;
    }

    .service-overview-icon {
        width: 70px;
        height: 70px;
    }

    .service-overview-icon i {
        font-size: 2rem;
    }

    .service-overview-card h3 {
        font-size: 1.5rem;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .services-hero.hero-ready .services-hero-content h1,
    .services-hero.hero-ready .services-hero-subtitle,
    .services-hero.hero-animate .services-hero-content h1,
    .services-hero.hero-animate .services-hero-subtitle,
    .services-overview.overview-ready .section-header h2,
    .services-overview.overview-ready .section-header p,
    .services-overview.overview-ready .service-overview-card,
    .services-overview.overview-animate .section-header h2,
    .services-overview.overview-animate .section-header p,
    .services-overview.overview-animate .service-overview-card,
    .services-why-choose.why-choose-ready .why-choose-container h2,
    .services-why-choose.why-choose-ready .why-choose-item,
    .services-why-choose.why-choose-animate .why-choose-container h2,
    .services-why-choose.why-choose-animate .why-choose-item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

