/* === PREMIUM SERVICES - PURE SAUDI NATIONAL COLORS === */
/* ONLY Saudi Green (#006C35) and White (#FFFFFF) - NO OTHER COLORS */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
}

/* ======================== ROOT VARIABLES - PURE SAUDI COLORS ======================== */
:root {
    /* Saudi Green Shades */
    --saudi-green: #006C35;
    --saudi-green-light: #00894a;
    --saudi-green-dark: #005528;
    --saudi-green-pale: #e8f5ed;
    
    /* White & Light Backgrounds */
    --saudi-white: #ffffff;
    --saudi-off-white: #f8faf8;
    --saudi-light: #f5f7f5;
    --saudi-light-medium: #eef2ee;
    
    /* Text Colors */
    --text-primary: rgba(0, 0, 0, 0.85);
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.5);
}

/* Main Container - White Background */
.nexus-services-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--saudi-white) 0%, var(--saudi-off-white) 25%, var(--saudi-light) 75%, var(--saudi-white) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Background System */
.nexus-background-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.nexus-gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Saudi Green Gradient Orbs */
.nexus-gradient-orbs::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 108, 53, 0.1), transparent 70%);
    border-radius: 50%;
    animation: nexus-float-primary 20s ease-in-out infinite;
    filter: blur(60px);
}

.nexus-gradient-orbs::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 137, 74, 0.08), transparent 70%);
    border-radius: 50%;
    animation: nexus-float-secondary 25s ease-in-out infinite reverse;
    filter: blur(70px);
}

@keyframes nexus-float-primary {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(40px, -40px) rotate(90deg); }
    50% { transform: translate(-30px, -70px) rotate(180deg); }
    75% { transform: translate(-50px, -30px) rotate(270deg); }
}

@keyframes nexus-float-secondary {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.15); }
    66% { transform: translate(-40px, -50px) scale(0.9); }
}

.nexus-particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Saudi Green Particles */
.nexus-particle {
    position: absolute;
    background: var(--saudi-green);
    border-radius: 50%;
    animation: nexus-particle-drift 30s linear infinite;
}

.nexus-particle.small {
    width: 2px;
    height: 2px;
    opacity: 0.3;
}

.nexus-particle.medium {
    width: 4px;
    height: 4px;
    opacity: 0.4;
}

.nexus-particle.large {
    width: 6px;
    height: 6px;
    opacity: 0.2;
}

@keyframes nexus-particle-drift {
    0% { 
        transform: translateY(100vh) translateX(-50px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.nexus-grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 108, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 108, 53, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* Main Content */
.nexus-main-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.nexus-hero-section {
    text-align: center;
    padding: 80px 0 40px;
    position: relative;
}

/* Hero Badge - Saudi Green */
.nexus-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 108, 53, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 108, 53, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    opacity: 0;
    animation: nexus-fade-up 1s ease-out 0.2s forwards;
    box-shadow: 0 8px 32px rgba(0, 108, 53, 0.1);
}

.nexus-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    animation: nexus-fade-up 1s ease-out 0.4s forwards;
}

/* Saudi Green Gradient Text */
.nexus-gradient-text {
    background: linear-gradient(135deg, var(--saudi-green), var(--saudi-green-light), var(--saudi-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 108, 53, 0.2));
}

.nexus-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
    opacity: 0;
    animation: nexus-fade-up 1s ease-out 0.6s forwards;
}

@keyframes nexus-fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Showcase */
.nexus-services-showcase {
    padding: 20px 0 80px;
}

.nexus-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Service Card - White Background with Saudi Green Accents */
.nexus-service-card {
    background: linear-gradient(145deg, var(--saudi-white), var(--saudi-off-white));
    border: 2px solid rgba(0, 108, 53, 0.1);
    border-radius: 28px;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* Rotating gradient border - Saudi Green */
.nexus-service-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: conic-gradient(from 0deg, var(--saudi-green), var(--saudi-green-light), var(--saudi-green), transparent, transparent, var(--saudi-green));
    border-radius: 30px;
    opacity: 0;
    z-index: -1;
    animation: nexus-rotate 4s linear infinite;
}

@keyframes nexus-rotate {
    100% { transform: rotate(360deg); }
}

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

/* Top glow bar - Saudi Green */
.nexus-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--saudi-green), var(--saudi-green-light), transparent);
    opacity: 0;
    box-shadow: 0 0 30px var(--saudi-green);
    transition: opacity 0.5s ease;
}

.nexus-service-card:hover::after {
    opacity: 1;
}

.nexus-service-card:hover {
    transform: translateY(-20px) scale(1.03);
    border-color: rgba(0, 108, 53, 0.3);
    box-shadow: 0 40px 120px rgba(0, 108, 53, 0.25);
}

/* Icon - Saudi Green */
.nexus-service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--saudi-green), var(--saudi-green-light));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 2.5rem;
    color: white;
    position: relative;
    transition: all 0.6s ease;
    box-shadow: 0 10px 40px rgba(0, 108, 53, 0.3);
}

.nexus-service-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--saudi-green), var(--saudi-green-light), var(--saudi-green));
    border-radius: 28px;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.6s ease;
}

.nexus-service-card:hover .nexus-service-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 20px 60px rgba(0, 108, 53, 0.5);
}

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

/* Title */
.nexus-service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.nexus-service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--saudi-green), var(--saudi-green-light), transparent);
    transition: width 0.6s ease;
    border-radius: 10px;
}

.nexus-service-card:hover .nexus-service-title::after {
    width: 80px;
}

/* Description */
.nexus-service-description {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* Features */
.nexus-service-features {
    list-style: none;
    margin-bottom: 32px;
    padding: 0;
}

.nexus-service-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: rgba(0, 108, 53, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 108, 53, 0.08);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nexus-service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--saudi-green), var(--saudi-green-light));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nexus-service-features li:hover {
    background: rgba(0, 108, 53, 0.08);
    border-color: rgba(0, 108, 53, 0.2);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 108, 53, 0.1);
}

.nexus-service-features li:hover::before {
    opacity: 1;
}

.nexus-service-features i {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--saudi-green), var(--saudi-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 0 20px rgba(0, 108, 53, 0.3);
    transition: all 0.4s ease;
}

.nexus-service-features li:hover i {
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 0 30px rgba(0, 108, 53, 0.5);
}

/* CTA Button - Saudi Green */
.nexus-service-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: rgba(0, 108, 53, 0.08);
    border: 2px solid rgba(0, 108, 53, 0.3);
    border-radius: 50px;
    color: var(--saudi-green);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 108, 53, 0.15);
}

.nexus-service-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--saudi-green), var(--saudi-green-light));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.nexus-service-card:hover .nexus-service-cta {
    color: white;
    border-color: var(--saudi-green);
    box-shadow: 0 8px 40px rgba(0, 108, 53, 0.4);
    transform: translateY(-3px);
}

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

.nexus-service-cta i {
    transition: transform 0.4s ease;
}

.nexus-service-card:hover .nexus-service-cta i {
    transform: translateX(5px);
}

/* Scroll Animations */
.nexus-animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.nexus-animate-on-scroll.nexus-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .nexus-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nexus-main-content {
        padding: 0 20px;
    }
    
    .nexus-hero-section {
        padding: 80px 0 60px;
    }
    
    .nexus-hero-title {
        font-size: 2.5rem;
    }
    
    .nexus-services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nexus-service-card {
        padding: 40px 28px;
    }
    
    .nexus-service-icon {
        width: 85px;
        height: 85px;
        font-size: 2rem;
    }
    
    .nexus-service-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nexus-hero-title {
        font-size: 2rem;
    }
    
    .nexus-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nexus-service-card {
        padding: 35px 24px;
    }
    
    .nexus-service-icon {
        width: 75px;
        height: 75px;
        font-size: 1.75rem;
    }
    
    .nexus-service-features li {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
}

/* ======================== ACCESSIBILITY ======================== */
@media (prefers-reduced-motion: reduce) {
    .nexus-service-card,
    .nexus-service-card *,
    .nexus-service-card::before,
    .nexus-service-card::after,
    .nexus-gradient-orbs::before,
    .nexus-gradient-orbs::after,
    .nexus-particle {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus Styles */
.nexus-service-card:focus-visible,
.nexus-service-cta:focus-visible {
    outline: 3px solid var(--saudi-green);
    outline-offset: 3px;
}

/* Print Styles */
@media print {
    .nexus-services-container {
        background: white !important;
    }
    
    .nexus-background-system {
        display: none !important;
    }
    
    .nexus-service-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}