/* Services CSS - Advanced UX Design for Services Page */

/* Modern Hero Section */
.services-hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0054A1 0%, #1e40af 50%, #0369a1 100%);
}

.services-hero-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 84, 161, 0.8) 0%,
        rgba(30, 64, 175, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

/* Animated Background Elements */
.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 60px 60px;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-shapes div {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -3%;
    animation: float 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-text-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    font-weight: 500;
    animation: slideUp 1s ease-out 0.3s both;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-title-main {
    display: block;
    animation: slideUp 1s ease-out 0.5s both;
}

.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 1s ease-out 0.7s both;
}

.hero-title-sub {
    display: block;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.9;
    animation: slideUp 1s ease-out 0.9s both;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideUp 1s ease-out 1.1s both;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s ease-out 1.3s both;
}

/* Modern Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    font-size: 1rem;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-outline-modern {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
    animation: slideUp 1s ease-out 1.5s both;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
    100% { top: 8px; opacity: 1; }
}

.scroll-indicator span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Service Sections Modern Design */
.services-content {
    background: #f8fafc;
    padding: 100px 0;
}

.service-section-modern {
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-section-modern.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card-modern {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.05),
        0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0054A1, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.08),
        0 12px 35px rgba(0, 0, 0, 0.12);
}

.service-number {
    position: absolute;
    top: -20px;
    right: 40px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0054A1, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 84, 161, 0.3);
}

.service-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.service-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card-modern:hover .service-image-modern {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 84, 161, 0.8),
        rgba(59, 130, 246, 0.6)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-modern:hover .image-overlay {
    opacity: 1;
}

.service-icon-modern {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transform: scale(0);
    transition: transform 0.4s ease 0.1s;
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1);
}

.service-icon-modern .iconify {
    font-size: 2.5rem;
    color: white;
}

.service-content-modern {
    padding-left: 0;
}

.service-category {
    display: inline-block;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #0054A1;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 84, 161, 0.1);
}

.service-title-modern {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-description-modern {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 30px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #374151;
}

.service-features .iconify {
    color: #10b981;
    font-size: 1.2rem;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0054A1;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.service-cta:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
    transform: translateX(5px);
}

.service-cta .iconify {
    transition: transform 0.3s ease;
}

.service-cta:hover .iconify {
    transform: translateX(3px);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .service-card-modern {
        padding: 40px;
    }
    
    .service-image-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .services-hero-modern {
        min-height: 90vh;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-modern {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .service-card-modern {
        padding: 30px 20px;
        margin-bottom: 60px;
    }
    
    .service-number {
        top: -15px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .service-image-container {
        height: 280px;
        margin-bottom: 30px;
    }
    
    .service-content-modern {
        text-align: center;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-badge {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card-modern {
        padding: 20px 15px;
    }
    
    .service-features {
        text-align: left;
    }
}

/* Legacy styles for backwards compatibility */
.services-hero {
    background: linear-gradient(135deg, #0054A1 0%, #1e40af 100%);
    color: white;
    padding: 120px 0 80px;
    margin-bottom: 60px;
}

.services-content {
    padding: 40px 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0054A1, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon .iconify {
    font-size: 2.5rem;
    color: white;
}

.service-title {
    color: #0054A1;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.service-description {
    color: #374151;
    line-height: 1.6;
    text-align: center;
}

/* New Service Sections */
.service-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-section:last-child {
    border-bottom: none;
}

.service-section:nth-of-type(even) {
    background: #f9fafb;
}

.section-heading {
    color: #0054A1;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: clamp(1.75rem, 2vw, 2.25rem);
}

.section-description {
    color: #374151;
    line-height: 1.7;
    font-size: 1.05rem;
}

.section-image {
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.6s ease;
}

.service-section.is-visible .section-image {
    transform: scale(1.02);
}

/* Responsive Navbar CTA Buttons */
@media (max-width: 991.98px) {
    .navbar-cta-buttons {
        order: -1;
        margin-bottom: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .download-brochure-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    
    .service-section {
        padding: 40px 0;
    }
}

@media (max-width: 575.98px) {
    .download-brochure-btn {
        max-width: 100%;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
}

/* Brochure Modal Responsive */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .brochure-icon .iconify {
        font-size: 3rem !important;
    }
}
