/*
* Services Section Styles with Extensive Micro-interactions
*/

:root {
    --primary-color: #004b6b;
    --secondary-color: #366072;
    --accent-color: #51b146;
    --light-color: #eeeff1;
    --highlight-color: #e4203270;
}

.services-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #00844663 0%, rgba(122, 170, 116, 0.3) 50%, #00359e96 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.dark-theme .services-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d30 50%, #1e1e1e 100%);
}

/* Animated Background */
.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hex-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    opacity: 0.08;
    animation: patternShift 30s ease-in-out infinite;
}

@keyframes patternShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(20px) translateY(-10px); }
    50% { transform: translateX(-10px) translateY(15px); }
    75% { transform: translateX(15px) translateY(-5px); }
}

.hex-svg {
    width: 100%;
    height: 100%;
}

/* Floating Tech Elements */
.floating-tech {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.tech-element {
    position: absolute;
    width: 50px;
    height: 50px;
    color: var(--accent-color);
    opacity: 0.2;
}

.tech-element svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px currentColor);
}

.tech-1 {
    top: 20%;
    left: 15%;
    animation: techFloat 12s ease-in-out infinite;
}

.tech-2 {
    top: 60%;
    right: 20%;
    animation: techFloat 15s ease-in-out infinite 3s;
}

.tech-3 {
    bottom: 25%;
    left: 25%;
    animation: techFloat 18s ease-in-out infinite 6s;
}

@keyframes techFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.2; 
    }
    25% { 
        transform: translateY(-30px) rotate(90deg) scale(1.2); 
        opacity: 0.4; 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg) scale(0.8); 
        opacity: 0.3; 
    }
    75% { 
        transform: translateY(-40px) rotate(270deg) scale(1.1); 
        opacity: 0.5; 
    }
}

/* Gradient Orbs */
.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbMove 20s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    top: 50%;
    right: 15%;
    animation-delay: 7s;
}

.orb-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    bottom: 20%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes orbMove {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    25% { transform: translate(100px, -50px) scale(1.2); opacity: 0.2; }
    50% { transform: translate(-50px, 100px) scale(0.8); opacity: 0.15; }
    75% { transform: translate(80px, 30px) scale(1.1); opacity: 0.25; }
}

/* Section Header */
.section-header {
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

.header-badge {
    display: inline-block;
    position: relative;
    padding: 12px 30px;
    background: rgba(81, 177, 70, 0.1);
    border: 2px solid rgba(81, 177, 70, 0.3);
    border-radius: 50px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-badge:hover {
    border-color: var(--accent-color);
    background: rgba(81, 177, 70, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(81, 177, 70, 0.2);
}

.badge-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 1rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.header-badge:hover .badge-icon {
    transform: rotate(360deg) scale(1.2);
}

.badge-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.header-badge:hover .badge-shine {
    left: 100%;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #004b6b, #51b146);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.section-subtitle-services {
    font-size: 1.2rem;
    color: #004b6b;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: lineGlow 2s ease-in-out infinite alternate;
}

.decoration-circle-services {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-color);
    animation: circleGlow 2s ease-in-out infinite alternate;
}

@keyframes lineGlow {
    0% { opacity: 0.5; transform: scaleX(0.8); }
    100% { opacity: 1; transform: scaleX(1.2); }
}

@keyframes circleGlow {
    0% { box-shadow: 0 0 10px var(--accent-color); }
    100% { box-shadow: 0 0 30px var(--accent-color); }
}

.dark-theme .section-title {
    background: linear-gradient(135deg, #eeeff1, #51b146);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-theme .section-subtitle-services {
    color: rgba(238, 239, 241, 0.9);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

/* Service Cards */
.service-card {
    position: relative;
    /* height: 400px; */
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ededed;
    border-radius: 25px;
    padding: 40px 30px;
    box-sizing: border-box;
    border: 1px solid rgb(81 177 70 / 59%);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.service-card:hover .card-inner {
    transform: translateY(-1px) rotateX(1deg);
    box-shadow: 
        0 30px 60px rgba(0, 75, 107, 0.15),
        0 0 0 2px rgba(81, 177, 70, 0.3);
}

/* Card Background Effects */
.card-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.02), rgba(0, 75, 107, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-bg-gradient {
    opacity: 1;
}

.card-mesh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2351b146' fill-opacity='0.03'%3E%3Cpath d='M20 20c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm0-20c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-mesh-overlay {
    opacity: 1;
}

.hover-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(81, 177, 70, 0.1), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    pointer-events: none;
}

.service-card:hover .hover-glow {
    width: 200%;
    height: 200%;
}

/* Service Icon */
.service-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    z-index: 5;
}

.icon-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.icon-bg-layer-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 20px;
    opacity: 0.1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.icon-bg-layer-2 {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    opacity: 0.05;
    transform: scale(1);
    transition: all 0.3s ease 0.1s;
}

.service-card:hover .icon-bg-layer-1 {
    opacity: 0.2;
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .icon-bg-layer-2 {
    opacity: 0.1;
    transform: scale(1.15) rotate(-5deg);
}

.icon-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--secondary-color);
    border: 2px solid rgba(81, 177, 70, 0.2);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-container i {
    font-size: 2.0rem;
    color: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .icon-container {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(81, 177, 70, 0.2);
}

.service-card:hover .icon-container i {
    color: var(--primary-color);
    transform: scale(1.2) rotateY(180deg);
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card:hover .icon-pulse {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.3;
}

.icon-border-effect {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--accent-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .icon-border-effect {
    opacity: 0.6;
    animation: borderRotate 2s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(10deg); }
}

/* Service Content */
.service-content {
    text-align: center;
    position: relative;
    z-index: 4;
    margin-bottom: 30px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.title-underline {
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: translateX(-50%);
    transition: width 0.4s ease 0.2s;
}

.service-card:hover .title-underline {
    width: 80%;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-description {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Service Footer */
.service-footer {
    position: relative;
    z-index: 100;
    text-align: center;
}

.learn-more-btn {
    background: transparent;
    border: 2px solid rgba(81, 177, 70, 0.3);
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 8px;


    position: relative;
    z-index: 100;
    text-align: center;
}

.learn-more-btn:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(81, 177, 70, 0.3);
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn-icon {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.learn-more-btn:hover .btn-icon {
    transform: translateX(5px) rotate(45deg);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.learn-more-btn:active .btn-ripple {
    width: 200%;
    height: 200%;
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0;
    transition: all 0.3s ease;
}

.corner-decoration.top-left {
    top: 15px;
    left: 15px;
    border-top: 3px solid var(--accent-color);
    border-left: 3px solid var(--accent-color);
    border-top-left-radius: 8px;
}

.corner-decoration.bottom-right {
    bottom: 15px;
    right: 15px;
    border-bottom: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
    border-bottom-right-radius: 8px;
}

.service-card:hover .corner-decoration {
    opacity: 1;
    transform: scale(1.2);
}

.service-card:hover .corner-decoration.top-left {
    transform: scale(1.2) translate(-3px, -3px);
}

.service-card:hover .corner-decoration.bottom-right {
    transform: scale(1.2) translate(3px, 3px);
}

/* Dark Theme */
.dark-theme .card-inner {
    background: rgba(45, 45, 48, 0.9);
    border-color: rgba(81, 177, 70, 0.2);
}

.dark-theme .service-title {
    color: #eeeff1;
}

.dark-theme .service-card:hover .service-title {
    color: var(--accent-color);
}

.dark-theme .service-description {
    color: rgba(238, 239, 241, 0.8);
}

.dark-theme .service-card:hover .service-description {
    color: #eeeff1;
}

.dark-theme .icon-container {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(81, 177, 70, 0.3);
}

.dark-theme .service-card:hover .icon-container {
    background: rgba(45, 45, 48, 1);
}

/* Services CTA */
.services-cta {
    position: relative;
    z-index: 10;
}

.cta-container {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpolygon points='50,0 60,40 100,50 60,60 50,100 40,60 0,50 40,40'/%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
    animation: ctaPatternMove 25s linear infinite;
}

@keyframes ctaPatternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(100px) translateY(100px); }
}

.cta-content {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.cta-title {
    font-size: 2.0rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    position: relative;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-btn.more {
    background: transparent;
    border: 2px solid rgba(81, 177, 70, 0.3);
    color: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}




.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-btn.primary:hover {
    background: #459a3e;
    border-color: #459a3e;
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-btn .btn-icon {
    transition: transform 0.3s ease;
}

.cta-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-bg-effect {
    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.6s ease;
}

.cta-btn:hover .btn-bg-effect {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 992px) {
    .services-section {
        padding: 45px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .service-card {
        height: 380px;
    }
    
    .card-inner {
        padding: 35px 25px;
    }
    
    .section-title {
        font-size: 2.0rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-container {
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        height: 360px;
    }
    
    .card-inner {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }
    
    .icon-container i {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .tech-element {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .services-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle-services {
        font-size: 1.1rem;
    }
    
    .service-card {
        height: 340px;
    }
    
    .card-inner {
        padding: 25px 15px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .icon-container i {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .cta-container {
        padding: 40px 20px;
        border-radius: 20px;
    }
}