/* ===============================
   SERVICES SECTION STYLES
   =============================== */

.services-section {
    position: relative;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        rgba(248, 250, 252, 0.8) 50%, 
        rgba(243, 244, 246, 0.6) 100%
    );
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(13, 27, 42, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(217, 159, 89, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 150, 199, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.services-header {
    position: relative;
    z-index: 2;
}

/* Blackish gradient text for headings */
.gradient-text {
    background: linear-gradient(135deg, 
        #1121f1 0%,   /* Primary Blue */
        #1121f1 25%,  /* Primary Blue */
        #d19f59 50%,  /* Orange */
        #d19f59 75%,  /* Orange */
        #1121f1 100%  /* Primary Blue */
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Featured Services - Landscape Cards */
.featured-services {
    position: relative;
    z-index: 2;
}

.service-landscape-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(230, 229, 228, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.service-landscape-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-landscape-card:hover::before {
    transform: scaleX(1);
}

.service-landscape-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Service content styling */
.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.service-image-wrapper {
    position: relative;
    overflow: hidden;
}

.service-image-wrapper img {
    transition: all 0.5s ease;
}

.service-landscape-card:hover .service-image-wrapper img {
    transform: scale(1.05);
}

/* Service link styling */
.service-content a {
    position: relative;
    overflow: hidden;
}

.service-content a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-orange));
    transition: width 0.3s ease;
}

.service-content a:hover::before {
    width: 100%;
}

/* See All Services CTA */
.services-section .bg-gradient-to-r {
    /* background: linear-gradient(135deg, 
        #f8fafc 0%,        
        #e1dccb 25%,       
        #e1dccb 50%,       
        #efb4621a 100%   
    ); */
    border: 2px solid rgba(95, 95, 95, 0.2);
    box-shadow: 
        0 10px 25px rgba(209, 159, 89, 0.1),
        inset 0 1px 0 rgba(192, 192, 192, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.services-section .bg-gradient-to-r::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(209, 159, 89, 0.1) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
}

.services-section .bg-gradient-to-r:hover {
    /* background: linear-gradient(135deg, 
        #eef5ff 0%,           
        #eef5ff 25%,          
        #ffe187 50%,          
        rgba(225, 174, 103, 0.15) 100%  
    ); */
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(209, 159, 89, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(209, 159, 89, 0.3);
}

.services-section .bg-gradient-to-r:hover::before {
    left: 100%;
}

/* Final CTA section */
.services-cta {
    position: relative;
    z-index: 2;
}

/* CTA Button Gradient */
.services-section .bg-gradient-to-r a.bg-gradient-to-r {
    background: linear-gradient(135deg, 
        #1e3a8a 0%,           /* Navy blue (blue-900) */
        #1e40af 25%,          /* Deep blue (blue-800) */
        #d19f59 75%,          /* Golden orange (website color) */
        #b8860b 100%          /* Darker gold */
    );
    border: none;
    box-shadow: 
        0 8px 25px rgba(30, 58, 138, 0.3),
        0 4px 15px rgba(209, 159, 89, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.services-section .bg-gradient-to-r a.bg-gradient-to-r::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
    transition: left 0.5s ease;
}

.services-section .bg-gradient-to-r a.bg-gradient-to-r:hover {
    background: linear-gradient(135deg, 
        #1e3a8a 0%,           /* Navy blue (blue-900) */
        #1d4ed8 25%,          /* Brighter blue (blue-700) */
        #d19f59 75%,          /* Golden orange (website color) */
        #ca8a04 100%          /* Brighter gold */
    );
    box-shadow: 
        0 15px 35px rgba(30, 58, 138, 0.4),
        0 8px 25px rgba(209, 159, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
}

.services-section .bg-gradient-to-r a.bg-gradient-to-r:hover::before {
    left: 100%;
}

.services-section .bg-gradient-to-r a.bg-gradient-to-r:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.services-cta .bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
}

/* Enhanced CTA Container Styling */
.services-section .text-center.mb-12 {
    padding: 2rem 0;
}

.services-section .bg-gradient-to-r {
    border-radius: 24px;
    padding: 3rem 2rem;
    margin: 0 auto;
    max-width: 800px;
    position: relative;
}

/* Icon styling in button */
.services-section .bg-gradient-to-r a.bg-gradient-to-r i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.services-section .bg-gradient-to-r a.bg-gradient-to-r:hover i {
    opacity: 1;
    transform: translateX(2px);
}

/* Responsive adjustments for CTA */
@media (max-width: 768px) {
    .services-section .bg-gradient-to-r {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .services-section .bg-gradient-to-r h3 {
        font-size: 1.75rem;
    }
    
    .services-section .bg-gradient-to-r p {
        font-size: 1rem;
    }
}

/* CTA Text Styles */
.services-section .bg-gradient-to-r h3 {
    color: #1e3a8a;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(30, 58, 138, 0.1);
    margin-bottom: 1rem;
}

.services-section .bg-gradient-to-r p {
    color: #4e4e4e; 
    font-weight: 500;
    line-height: 1.6;
}

/* Golden accent line */
.services-section .bg-gradient-to-r h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #d19f59, #b8860b);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Simplified animations - NO GSAP DEPENDENCY */
.service-landscape-card {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease-out forwards;
}

/* Ensure CTA section is always visible */
.services-cta,
.services-section > div > div:last-child {
    opacity: 1 !important;
    transform: none !important;
}

.service-landscape-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-landscape-card:nth-child(2) {
    animation-delay: 0.3s;
}

.service-landscape-card:nth-child(3) {
    animation-delay: 0.5s;
}

.service-landscape-card:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intersection Observer fallback */
@media (prefers-reduced-motion: reduce) {
    .service-landscape-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Text color utilities using specified palette */
.text-dark {
    color: var(--dark-color) !important;
}

.text-orange {
    color: var(--highlight-orange) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-landscape-card .grid {
        grid-template-columns: 1fr;
    }
    
    .service-content {
        order: 2 !important;
    }
    
    .service-image-wrapper {
        order: 1 !important;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .service-content {
        padding: 24px !important;
    }
    
    .gradient-text {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .services-cta .bg-gradient-to-r {
        padding: 32px 24px;
    }
    
    .services-cta h3 {
        font-size: 1.8rem !important;
    }
    
    .services-cta .flex-col {
        gap: 16px;
    }
    
    .services-cta a {
        width: 100%;
        justify-content: center;
    }
    
    .service-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .service-content h3 {
        font-size: 1.5rem !important;
    }
    
    .service-content p {
        font-size: 1rem !important;
    }
    
    .services-cta .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .services-cta .text-xl {
        font-size: 1rem !important;
    }
}
