/* Services Section Styles */
.services-section {
    background-color: #f8fafc;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.services-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Service Item Styles */
.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 20px;
}

.service-item:hover {
    transform: translateY(-10px);
}

/* Service Circle Styles */
.service-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    border: 4px solid #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.15);
}

.service-circle::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px dashed #1e3a5f;
    border-radius: 50%;
    top: -14px;
    left: -14px;
    opacity: 0.3;
}

.service-circle.secondary {
    border-color: #2c5282;
}

.service-circle.secondary::before {
    border-color: #2c5282;
}

.service-item:hover .service-circle {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(30, 58, 95, 0.25);
}

/* Service Icon Styles */
.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Service Title Styles */
.service-title {
    font-size: 24px;
    font-weight: bold;
    color: #1e3a5f;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

/* Service Description Styles */
.service-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    max-width: 200px;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

/* Service Link (invisible overlay) */
.service-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    text-decoration: none;
}

/* Connection Lines - Subtle dashed lines */
.connection-line {
    /* position: absolute; */
    height: 0;
    z-index: 1;
    border-top: 1px dashed #1e3a5f;
    opacity: 0.5;
}

.connection-line::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    border-top: 1px dashed #2c5282;
    top: 2px;
    opacity: 0.3;
    animation: dashFlow 5s ease-in-out infinite;
}

@keyframes dashFlow {
    0%, 100% {
        opacity: 0.3;
        border-color: #1e3a5f;
    }
    50% {
        opacity: 0.7;
        border-color: #2c5282;
    }
}

/* Line positioning - connecting circles precisely */
.line-1 {
    width: 60px;
    top: 40%;
    left: 18%;
    transform: translateY(-50%) rotate(-8deg);
}

.line-2 {
    width: 60px;
    top: 60%;
    left: 34%;
    transform: translateY(-50%) rotate(8deg);
}

.line-3 {
    width: 60px;
    top: 40%;
    left: 50%;
    transform: translateY(-50%) rotate(-8deg);
}

.line-4 {
    width: 60px;
    top: 60%;
    left: 66%;
    transform: translateY(-50%) rotate(8deg);
}

/* Secondary service items positioning */
.service-secondary {
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-container {
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .connection-line {
        display: none;
    }
    
    .service-secondary {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .service-circle {
        width: 100px;
        height: 100px;
    }
    
    .service-circle::before {
        width: 120px;
        height: 120px;
        top: -14px;
        left: -14px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .service-circle {
        width: 80px;
        height: 80px;
    }
    
    .service-circle::before {
        width: 100px;
        height: 100px;
        top: -14px;
        left: -14px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 12px;
        max-width: 150px;
    }
}

/* Hover effects for better interactivity */
.service-item:hover .service-title {
    color: #2c5282;
}

.service-item:hover .service-description {
    color: #475569;
}

/* Animation for service items on load */
.service-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(3) { animation-delay: 0.2s; }
.service-item:nth-child(5) { animation-delay: 0.3s; }
.service-item:nth-child(7) { animation-delay: 0.4s; }
.service-item:nth-child(9) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
