/* Enhanced Services Section - Modern Design */

#services {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

/* Background Elements */
.services-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.services-floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 186, 255, 0.1), rgba(0, 230, 255, 0.05));
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 12%;
    animation-delay: -5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 8%;
    animation-delay: -10s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 15%;
    animation-delay: -15s;
}

@keyframes floatShape {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg) scale(1.1); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-40px) rotate(180deg) scale(0.9); 
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-20px) rotate(270deg) scale(1.1); 
        opacity: 0.6;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
}

/* Section Header */
.services-header {
    margin-bottom: 4rem;
    /* Animasi masuk — ditangani AOS (data-aos di HTML) */
}

.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 186, 255, 0.1);
    border: 1px solid rgba(0, 186, 255, 0.2);
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0066cc;
    backdrop-filter: blur(10px);
}

.services-badge i {
    color: #00baff;
    font-size: 1rem;
}

.services-main-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #0066cc;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0066cc 0%, #00baff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.services-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid */
.services-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Cards */
.services-card {
    flex: 0 1 calc(33.333% - 2rem);
    min-width: 350px;
    max-width: 400px;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    /* Animasi masuk — ditangani AOS (data-aos di HTML) */
}

.services-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 186, 255, 0.03) 0%, 
        transparent 50%, 
        rgba(0, 230, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.services-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 186, 255, 0.15);
    border-color: rgba(0, 186, 255, 0.3);
}

.services-card:hover .services-card-background {
    opacity: 1;
}

.services-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Service Icon */
.services-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-icon-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00baff, #0066cc);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 186, 255, 0.3);
    transition: all 0.3s ease;
}

.services-icon-wrapper i {
    position: relative;
    z-index: 3;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.services-icon-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(0, 186, 255, 0.4), rgba(0, 230, 255, 0.2));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
    z-index: 1;
}

.services-card:hover .services-icon-background {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 186, 255, 0.4);
}

.services-card:hover .services-icon-wrapper i {
    transform: scale(1.1);
}

.services-card:hover .services-icon-glow {
    opacity: 1;
}

/* Service Info */
.services-info {
    text-align: center;
    flex: 1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.services-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0066cc 0%, #00baff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Service Features */
.services-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.services-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    background: rgba(0, 186, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 186, 255, 0.1);
    transition: all 0.3s ease;
}

.services-feature-item:hover {
    background: rgba(0, 186, 255, 0.1);
    border-color: rgba(0, 186, 255, 0.2);
    transform: translateX(5px);
}

.services-feature-item i {
    color: #00baff;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.services-feature-item span {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* Service Action */
.services-action {
    margin-top: auto;
}

.services-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #00baff, #0066cc);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 186, 255, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.services-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.services-btn:hover::before {
    left: 100%;
}

.services-btn:hover {
    background: linear-gradient(135deg, #0066cc, #00baff);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 186, 255, 0.4);
    color: white;
    text-decoration: none;
}

.services-btn i {
    transition: transform 0.3s ease;
}

.services-btn:hover i {
    transform: translateX(3px);
}

/* Call to Action */
.services-cta {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-top: 4rem;
    /* Animasi masuk — ditangani AOS (data-aos di HTML) */
}

.services-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.services-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0066cc 0%, #00baff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-cta-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.services-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #00baff, #0066cc);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 186, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.services-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.services-cta-button:hover::before {
    left: 100%;
}

.services-cta-button:hover {
    background: linear-gradient(135deg, #0066cc, #00baff);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 186, 255, 0.4);
    color: white;
    text-decoration: none;
}

.services-cta-button i {
    transition: transform 0.3s ease;
}

.services-cta-button:hover i {
    transform: translateX(5px);
}

/* Animasi — ditangani AOS (data-aos di HTML) */

/* Responsive Design */
@media (max-width: 1200px) {
    .services-main-title {
        font-size: 2.8rem;
    }
    
    .services-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    #services {
        padding: 80px 0;
    }
    
    .services-header {
        margin-bottom: 3rem;
    }
    
    .services-main-title {
        font-size: 2.4rem;
    }
    
    .services-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .services-card {
        padding: 1.5rem;
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    #services {
        padding: 60px 0;
    }
    
    .services-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.5rem;
    }
    
    .services-main-title {
        font-size: 2rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
    
    .services-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-card {
        margin: 0 1rem;
        min-height: 360px;
    }
    
    .services-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .services-icon-wrapper i {
        font-size: 1.8rem;
    }
    
    .services-title {
        font-size: 1.3rem;
    }
    
    .services-description {
        font-size: 0.95rem;
    }
    
    .services-cta-title {
        font-size: 1.6rem;
    }
    
    .services-cta-subtitle {
        font-size: 1rem;
    }
    
    .services-cta {
        padding: 2rem 1.5rem;
        margin: 3rem 1rem 0;
    }
}

@media (max-width: 576px) {
    .services-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
    }
    
    .services-main-title {
        font-size: 1.6rem;
    }
    
    .services-card {
        padding: 1.2rem;
        margin: 0 0.5rem;
    }
    
    .services-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .services-icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .services-title {
        font-size: 1.2rem;
    }
    
    .services-feature-item {
        padding: 0.4rem;
    }
    
    .services-feature-item span {
        font-size: 0.85rem;
    }
    
    .services-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .services-cta-title {
        font-size: 1.4rem;
    }
    
    .services-cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .services-header,
    .services-card,
    .services-cta {
        animation: none !important;
    }
    
    .services-card,
    .services-btn,
    .services-cta-button,
    .services-icon-background,
    .services-icon-wrapper i {
        transition: none !important;
    }
    
    .services-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Focus States */
.services-btn:focus,
.services-cta-button:focus {
    outline: 3px solid #00baff;
    outline-offset: 3px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .services-card,
    .services-cta {
        background: white;
        border: 2px solid #00baff;
    }
    
    .services-main-title,
    .services-title,
    .services-cta-title {
        background: #00baff;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        color: #00baff;
    }
}

