/* Services Section - Matching Style */
#services {
    background: linear-gradient(180deg, #0f2847 0%, #1a4373 25%, #2a5a99 50%, #4A90E2 100%);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.services-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.3) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.services-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(74, 144, 226, 0.15) 0%, transparent 50%);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(74, 144, 226, 0.3));
    top: 20%;
    right: -150px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float1 20s infinite ease-in-out;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(46, 92, 138, 0.3));
    bottom: 20%;
    left: -100px;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: float2 25s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 30px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) rotate(270deg) scale(1.05);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-40px, 30px) rotate(120deg) scale(1.15);
    }
    66% {
        transform: translate(30px, -40px) rotate(240deg) scale(0.85);
    }
}

.bg-particles span {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.bg-particles span:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.bg-particles span:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 35%;
    left: 40%;
    animation-delay: 3s;
}

.bg-particles span:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 55%;
    left: 60%;
    animation-delay: 6s;
}

.bg-particles span:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 25%;
    right: 30%;
    animation-delay: 9s;
}

.bg-particles span:nth-child(5) {
    width: 4px;
    height: 4px;
    top: 65%;
    right: 45%;
    animation-delay: 12s;
}

.bg-particles span:nth-child(6) {
    width: 3px;
    height: 3px;
    top: 45%;
    right: 20%;
    animation-delay: 15s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0);
        opacity: 0;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.section-header h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 35px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Stagger animation delays */
.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 Icon */
.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    margin-bottom: 25px;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Service Title & Description */
.service-card h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.service-card > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding: 8px 0;
}

.service-features svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Service CTA Button */
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.service-cta:hover {
    background: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
}

.service-cta svg {
    transition: transform 0.3s ease;
}

.service-cta:hover svg {
    transform: translateX(3px);
}

/* Featured Service Card - App Store Launch */
.featured-service {
    grid-column: span 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(74, 144, 226, 0.15) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Pricing Tiers */
.pricing-tiers {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.pricing-tier {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.pricing-tier:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.pricing-tier.highlighted {
    border: 2px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tier-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}

.tier-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.tier-badge.recommended {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.tier-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
    gap: 3px;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.3);
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    padding: 6px 0;
}

.tier-features svg {
    flex-shrink: 0;
}

/* Coming Soon Note */
.coming-soon-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
}

.coming-soon-note svg {
    color: #FFD700;
    flex-shrink: 0;
}

/* Featured CTA */
.featured-cta {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 700;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.featured-cta:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.6);
}

/* Soft Blue CTA (matches provided color style) */
.cta-soft-blue {
    background: linear-gradient(135deg, #9BB2CE, #7697BD);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(118, 151, 189, 0.45);
}

.cta-soft-blue:hover {
    background: linear-gradient(135deg, #86A4C4, #628AB1);
    box-shadow: 0 8px 28px rgba(118, 151, 189, 0.6);
}

/* Expandable Pricing */
.pricing-expandable {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
}

.pricing-expandable + .pricing-expandable {
    margin-top: 12px;
}

.pricing-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0 6px 0;
}

.pricing-expandable summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.pricing-expandable .summary-title {
    font-size: 1rem;
}

.pricing-expandable .summary-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.pricing-expandable .summary-caret {
    transition: transform 0.2s ease;
}

.pricing-expandable[open] .summary-caret {
    transform: rotate(180deg);
}

.pricing-expandable[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-expandable .pricing-tiers {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.pricing-expandable[open] .pricing-tiers {
    max-height: 1200px;
    padding: 16px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    #services {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .services-grid {
        gap: 25px;
    }

    .service-card {
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    #services {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .tier-price .amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.9rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .featured-badge {
        top: 15px;
        right: 15px;
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}
