/* ========================================
   PROFESSIONAL SERVICES HERO SECTION - ADVANCED
   ======================================== */

.services-hero-pro {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    overflow: hidden;
}

/* Hero Background */
.hero-background-pro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Background Image Layer */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/pool-4.jpg') center center / cover no-repeat;
    background-attachment: fixed;
    animation: backgroundZoom 20s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes backgroundZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Animated Particles */
.hero-animated-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-animated-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.8), rgba(0, 153, 255, 0.4));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    animation: float-particle 15s infinite ease-in-out;
}

.hero-animated-particles .particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.hero-animated-particles .particle:nth-child(2) {
    left: 25%;
    top: 60%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.hero-animated-particles .particle:nth-child(3) {
    right: 15%;
    top: 30%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.hero-animated-particles .particle:nth-child(4) {
    right: 30%;
    top: 70%;
    animation-delay: 6s;
    animation-duration: 14s;
}

.hero-animated-particles .particle:nth-child(5) {
    left: 50%;
    top: 40%;
    animation-delay: 8s;
    animation-duration: 16s;
}

.hero-animated-particles .particle:nth-child(6) {
    right: 20%;
    top: 50%;
    animation-delay: 3s;
    animation-duration: 13s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -30px) scale(1.3);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.8);
        opacity: 0.7;
    }
    75% {
        transform: translate(20px, -40px) scale(1.1);
        opacity: 0.9;
    }
}

/* Grid Pattern Overlay */
.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 3;
    opacity: 0.6;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Gradient Overlay */
.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 102, 204, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 31, 63, 0.92) 0%, rgba(0, 61, 122, 0.88) 50%, rgba(0, 102, 204, 0.85) 100%);
    z-index: 4;
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.96; }
}

/* Floating Service Icons */
.hero-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 40px;
    color: rgba(0, 212, 255, 0.15);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    animation: iconFloat 20s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.floating-icon:nth-child(2) {
    top: 65%;
    left: 15%;
    animation-delay: 5s;
    animation-duration: 22s;
}

.floating-icon:nth-child(3) {
    top: 30%;
    right: 12%;
    animation-delay: 8s;
    animation-duration: 20s;
}

.floating-icon:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 25s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, 15px) rotate(-5deg);
    }
    75% {
        transform: translate(15px, -30px) rotate(3deg);
    }
}

/* Hero Content Centered */
.hero-content-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Hero Text Content */
.hero-text-content {
    color: white;
}

.hero-breadcrumb-pro {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-breadcrumb-pro a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-breadcrumb-pro a:hover {
    color: white;
    transform: translateX(-3px);
}

.hero-breadcrumb-pro .current {
    color: white;
    font-weight: 600;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
}

.hero-badge:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.hero-badge i {
    font-size: 16px;
    color: #ffd700;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-title-pro {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.gradient-text-pro {
    background: linear-gradient(135deg, #ffffff 0%, #e0f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-description-pro {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

/* Hero Features List */
.hero-features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 35px;
}

.feature-item-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: white;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.feature-item-hero:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.feature-item-hero i {
    font-size: 18px;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item-hero:hover i {
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 215, 0, 0.25);
}

.feature-item-hero i {
    color: #00ff99;
    font-size: 18px;
    flex-shrink: 0;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: white;
    color: #0066cc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.1);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.btn-hero-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0, 102, 204, 0.35);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-hero-secondary::after {
    content: '';
    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.5s;
}

.btn-hero-secondary:hover::after {
    left: 100%;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Stats Card */
.hero-stats-card {
    position: relative;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.stats-card-inner {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 
        0 25px 70px rgba(0, 82, 163, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stats-card-inner:hover {
    transform: scale(1.03);
    box-shadow: 
        0 35px 90px rgba(0, 102, 204, 0.35),
        0 0 0 1px rgba(0, 102, 204, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stats-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 102, 204, 0.1);
}

.stats-card-header i {
    font-size: 24px;
    color: #0066cc;
}

.stats-card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.stat-item-pro {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-item-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0066cc, #0052a3);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item-pro:hover::before {
    transform: scaleY(1);
}

.stat-item-pro:hover {
    transform: translateX(8px) translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 102, 204, 0.2),
        0 5px 15px rgba(0, 82, 163, 0.1);
    background: linear-gradient(135deg, #e6f2ff 0%, #d6ebff 100%);
}

.stat-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item-pro:hover .stat-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 12px 28px rgba(0, 102, 204, 0.4);
}

.stat-content {
    flex: 1;
}

.stat-number-pro {
    font-size: 32px;
    font-weight: 800;
    color: #0066cc;
    line-height: 1;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item-pro:hover .stat-number-pro {
    transform: scale(1.08);
    letter-spacing: 1px;
}

.stat-label-pro {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trust Badges */
.trust-badges-hero {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 102, 204, 0.1);
}

.trust-badge-small {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #0066cc;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
}

.trust-badge-small i {
    font-size: 16px;
}

/* Service Categories Quick Links */
.hero-service-categories {
    display: flex;
    gap: 16px;
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-service-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #0052a3, #0066cc);
    background-size: 200% 100%;
    animation: slideGradient 3s linear infinite;
}

@keyframes slideGradient {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 35px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 102, 204, 0.1);
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 102, 204, 0.05));
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover::before {
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: #0066cc;
    box-shadow: 
        0 15px 40px rgba(0, 102, 204, 0.25),
        0 5px 15px rgba(0, 82, 163, 0.1);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e6f2ff 0%, #cce5ff 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #0066cc;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow Effect Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 102, 204, 0.6);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content-grid {
        grid-template-columns: 1fr 350px;
        gap: 40px;
    }

    .hero-title-pro {
        font-size: 46px;
    }

    .stats-card-inner {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .services-hero-pro {
        min-height: 50vh;
        padding: 80px 0 60px;
    }

    .hero-content-centered {
        max-width: 100%;
    }

    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title-pro {
        font-size: 36px;
    }

    .hero-description-pro {
        font-size: 15px;
    }

    .hero-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-service-categories {
        padding: 20px;
        gap: 15px;
    }

    .category-card {
        min-width: calc(50% - 10px);
        flex: 1;
    }
}

@media (max-width: 480px) {
    .services-hero-pro {
        padding: 70px 0 50px;
    }

    .hero-title-pro {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
        margin-bottom: 20px;
    }

    .hero-description-pro {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-service-categories {
        padding: 20px;
        margin-top: 35px;
        gap: 12px;
    }
    
    .category-card {
        padding: 20px 25px;
        font-size: 14px;
    }
    
    .category-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .stats-card-inner {
        padding: 20px;
    }

    .stats-card-header h3 {
        font-size: 20px;
    }

    .stat-item-pro {
        padding: 15px;
    }

    .stat-number-pro {
        font-size: 24px;
    }

    .category-card {
        min-width: 100%;
    }

    .trust-badges-hero {
        flex-direction: column;
    }

    .trust-badge-small {
        justify-content: center;
    }
}
