/* Services Section Styles */
.nim-services-section {
    padding: 100px 0 0 0;
    background: linear-gradient(135deg, #fafcfc 0%, #f1f8f4 100%);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
}

.nim-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(97, 206, 112, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45, 85, 70, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.nim-services-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.nim-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D5546;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.nim-section-title::after {
    display: none !important;
}


.nim-section-subtitle {
    font-size: 1.2rem;
    color: #54595F;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid */
.nim-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Cards */
.nim-service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(45, 85, 70, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    cursor: pointer;
    animation: slideInUp 0.8s ease-out;
    animation-fill-mode: both;
    transform-origin: center bottom;
}

.nim-service-card:nth-child(1) { animation-delay: 0.1s; }
.nim-service-card:nth-child(2) { animation-delay: 0.2s; }
.nim-service-card:nth-child(3) { animation-delay: 0.3s; }
.nim-service-card:nth-child(4) { animation-delay: 0.4s; }
.nim-service-card:nth-child(5) { animation-delay: 0.5s; }
.nim-service-card:nth-child(6) { animation-delay: 0.6s; }

.nim-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(97, 206, 112, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.nim-service-card:hover::before {
    opacity: 1;
}

.nim-service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 32px 64px rgba(45, 85, 70, 0.12),
        0 16px 32px rgba(45, 85, 70, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(97, 206, 112, 0.2);
}

/* Highlight Card */
.nim-card-highlight {
    background: linear-gradient(135deg, #2D5546 0%, #3a6b56 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.nim-card-highlight::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 0%, rgba(97, 206, 112, 0.1) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

.nim-card-highlight .nim-service-title,
.nim-card-highlight .nim-service-description {
    color: white;
    position: relative;
    z-index: 2;
}

.nim-card-highlight .nim-icon-bg {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.nim-card-highlight:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 25px 50px rgba(45, 85, 70, 0.2),
        0 10px 20px rgba(45, 85, 70, 0.15);
}

/* Service Icon */
.nim-service-icon {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.nim-icon-bg {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(97, 206, 112, 0.1) 0%, rgba(97, 206, 112, 0.2) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2D5546;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(97, 206, 112, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(97, 206, 112, 0.1);
}

.nim-icon-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(97, 206, 112, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translate(-50%, -50%);
}

.nim-service-card:hover .nim-icon-bg::before {
    width: 80px;
    height: 80px;
}

.nim-service-card:hover .nim-icon-bg {
    transform: scale(1.08) rotate(2deg);
    border-color: rgba(97, 206, 112, 0.3);
    background: linear-gradient(135deg, rgba(97, 206, 112, 0.15) 0%, rgba(97, 206, 112, 0.25) 100%);
    box-shadow: 0 8px 24px rgba(97, 206, 112, 0.2);
}

.nim-icon-bg svg {
    width: 24px;
    height: 24px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
    position: relative;
}

.nim-service-card:hover .nim-icon-bg svg {
    transform: scale(1.1) rotate(-2deg);
}

/* Service Content */
.nim-service-content {
    position: relative;
    z-index: 2;
}

.nim-service-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2D5546;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.nim-service-description {
    font-size: 0.95rem;
    color: #54595F;
    line-height: 1.7;
    margin-bottom: 20px;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.nim-service-card:hover .nim-service-description {
    opacity: 1;
}

/* Service Badge */
.nim-service-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #61CE70 0%, #7dd683 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(97, 206, 112, 0.25);
}

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

.nim-service-card:hover .nim-service-badge {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(97, 206, 112, 0.35);
}

.nim-service-card:hover .nim-service-badge::before {
    left: 100%;
}

.nim-card-highlight .nim-service-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* CTA Section */
.nim-services-cta {
    background: linear-gradient(135deg, #2D5546 0%, #3a6b56 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.nim-services-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(97, 206, 112, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.nim-cta-content {
    position: relative;
    z-index: 2;
}

.nim-cta-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.nim-cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.nim-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons - Only for Services Section */
.nim-services-section .nim-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.nim-services-section .nim-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.nim-services-section .nim-btn:hover svg {
    transform: scale(1.1);
}

.nim-services-section .nim-btn-primary {
    background: linear-gradient(135deg, #61CE70 0%, #7dd683 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(97, 206, 112, 0.3);
}

.nim-services-section .nim-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(97, 206, 112, 0.4);
}

.nim-services-section .nim-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nim-services-section .nim-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.1;
        transform: scale(1.2);
    }
}

/* Exclusive Off-Market Section */
.nim-exclusive-section {
    margin-top: 60px;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(45, 85, 70, 0.05) 0%, rgba(97, 206, 112, 0.03) 100%);
    border-radius: 24px;
    padding: 48px 40px 10px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(97, 206, 112, 0.1);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.nim-exclusive-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(97, 206, 112, 0.1) 0%, rgba(45, 85, 70, 0.1) 50%, rgba(97, 206, 112, 0.1) 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nim-exclusive-section:hover::before {
    opacity: 1;
}

.nim-exclusive-content {
    position: relative;
    z-index: 2;
}

.nim-exclusive-icon {
    margin: 0 auto 24px;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #2D5546 0%, #3a6b56 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 24px rgba(45, 85, 70, 0.2);
    position: relative;
    overflow: hidden;
}

.nim-exclusive-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(97, 206, 112, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translate(-50%, -50%);
}

.nim-exclusive-section:hover .nim-exclusive-icon::before {
    width: 100px;
    height: 100px;
}

.nim-exclusive-section:hover .nim-exclusive-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(45, 85, 70, 0.3);
}

.nim-exclusive-icon svg {
    width: 32px;
    height: 32px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
    position: relative;
}

.nim-exclusive-section:hover .nim-exclusive-icon svg {
    transform: scale(1.1) rotate(-5deg);
}

.nim-exclusive-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2D5546;
    margin-bottom: 20px;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.nim-exclusive-content p {
    font-size: 1.05rem;
    color: #54595F;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nim-exclusive-section:hover .nim-exclusive-content p {
    opacity: 1;
}

.nim-exclusive-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nim-exclusive-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2D5546 0%, #3a6b56 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(45, 85, 70, 0.2);
}

.nim-exclusive-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(97, 206, 112, 0.3) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.nim-exclusive-section:hover .nim-exclusive-badge {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 85, 70, 0.3);
}

.nim-exclusive-section:hover .nim-exclusive-badge::before {
    left: 100%;
}

.nim-exclusive-badge:nth-child(1) {
    animation-delay: 0.9s;
}

.nim-exclusive-badge:nth-child(2) {
    animation-delay: 1.0s;
}

.nim-exclusive-badge:nth-child(3) {
    animation-delay: 1.1s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nim-services-section {
        padding: 60px 0 0 0;
        border-radius: 0 0 20px 20px;
    }
    
    .nim-section-title {
        font-size: 2rem;
    }
    
    .nim-section-subtitle {
        font-size: 1.1rem;
    }
    
    .nim-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .nim-service-card {
        padding: 24px 20px;
    }
    
    .nim-services-cta {
        padding: 32px 24px;
    }
    
    .nim-cta-content h3 {
        font-size: 1.5rem;
    }
    
    .nim-cta-content p {
        font-size: 1rem;
    }
    
    .nim-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nim-services-section .nim-btn {
        justify-content: center;
    }
    
    /* Exclusive Section Mobile */
    .nim-exclusive-section {
        margin-top: 40px;
        margin-bottom: 0;
        padding: 32px 24px 10px 24px;
    }
    
    .nim-exclusive-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .nim-exclusive-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .nim-exclusive-content h3 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .nim-exclusive-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .nim-exclusive-badges {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .nim-exclusive-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nim-services-header {
        margin-bottom: 40px;
    }
    
    .nim-section-title {
        font-size: 1.8rem;
    }
    
    .nim-service-card {
        padding: 20px 16px;
    }
    
    .nim-icon-bg {
        width: 56px;
        height: 56px;
    }
    
    .nim-icon-bg svg {
        width: 24px;
        height: 24px;
    }
    
    .nim-service-title {
        font-size: 1.3rem;
    }
}