/**
 * Swiper Custom Styles
 * JL Freelancing Digital Hub
 */

/* ============================================
   SWIPER CONTAINER
   ============================================ */

.swiper {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s, transform 0.3s;
}

/* ============================================
   CUSTOM NAVIGATION ARROWS
   ============================================ */

.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(7, 26, 53, 0.1);
    color: var(--navy);
    transition: all 0.3s var(--ease-out);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--blue);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 87, 217, 0.2);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: 700;
}

/* Hide on mobile */
@media (max-width: 767px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* ============================================
   CUSTOM PAGINATION
   ============================================ */

.swiper-pagination {
    bottom: -40px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--text-light);
    opacity: 1;
    transition: all 0.3s var(--ease-out);
}

.swiper-pagination-bullet-active {
    background: var(--orange);
    width: 30px;
    border-radius: 5px;
}

/* Dynamic bullets */
.swiper-pagination-bullet-active-main {
    background: var(--orange);
}

.swiper-pagination-bullet-active-prev,
.swiper-pagination-bullet-active-next {
    background: var(--blue);
    opacity: 0.7;
}

/* ============================================
   PORTFOLIO CAROUSEL (Immersive)
   ============================================ */

.swiper-portfolio {
    padding: 60px 0;
}

.swiper-portfolio .swiper-slide {
    transition: all 0.5s var(--ease-out);
}

.swiper-portfolio .swiper-slide-active {
    z-index: 2;
}

/* ============================================
   TECHNOLOGIES MARQUEE
   ============================================ */

.swiper-technologies {
    padding: 20px 0;
}

.swiper-technologies .swiper-slide {
    width: auto !important;
}

.swiper-technologies .tech-item {
    padding: 15px 30px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    transition: all 0.3s var(--ease-out);
}

.swiper-technologies .tech-item:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

/* ============================================
   EXPERTISE CARDS IN CAROUSEL
   ============================================ */

.expertise-carousel-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 16px rgba(7, 26, 53, 0.08);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.expertise-carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--orange);
    transition: height 0.4s var(--ease-out);
}

.expertise-carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(7, 26, 53, 0.15);
}

.expertise-carousel-card:hover::before {
    height: 100%;
}

.expertise-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--orange);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -0.5rem;
}

.expertise-icon {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.expertise-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.expertise-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   SERVICE CARDS IN CAROUSEL
   ============================================ */

.service-carousel-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all 0.4s var(--ease-out);
    border: 1px solid transparent;
}

.service-carousel-card:hover {
    background: var(--white);
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 87, 217, 0.12);
}

.service-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 1rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--text-gray);
    font-size: 0.938rem;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 0.75rem;
}

/* ============================================
   PORTFOLIO CARDS IN CAROUSEL
   ============================================ */

.portfolio-carousel-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 32px rgba(7, 26, 53, 0.12);
    transition: all 0.5s var(--ease-out);
}

.portfolio-carousel-card:hover {
    box-shadow: 0 16px 48px rgba(7, 26, 53, 0.2);
}

.portfolio-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.portfolio-carousel-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(7, 26, 53, 0.9), transparent);
}

.portfolio-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* ============================================
   TEAM CARDS IN CAROUSEL
   ============================================ */

.team-carousel-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 16px rgba(7, 26, 53, 0.08);
    transition: all 0.4s var(--ease-out);
}

.team-carousel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(7, 26, 53, 0.15);
}

.team-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.team-carousel-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-expertise {
    color: var(--text-gray);
    font-size: 0.938rem;
}

/* ============================================
   TESTIMONIAL CARDS IN CAROUSEL
   ============================================ */

.testimonial-carousel-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(7, 26, 53, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 700;
    color: var(--navy);
}

.testimonial-title {
    color: var(--text-gray);
    font-size: 0.938rem;
}

/* ============================================
   BLOG CARDS IN CAROUSEL
   ============================================ */

.blog-carousel-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(7, 26, 53, 0.08);
    transition: all 0.4s var(--ease-out);
    height: 100%;
}

.blog-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(7, 26, 53, 0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.blog-carousel-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 87, 217, 0.1);
    color: var(--blue);
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-meta {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.blog-excerpt {
    color: var(--text-gray);
    font-size: 0.938rem;
    line-height: 1.6;
}

/* ============================================
   RTL SUPPORT
   ============================================ */

[dir="rtl"] .swiper-button-next {
    right: auto;
    left: 10px;
}

[dir="rtl"] .swiper-button-prev {
    left: auto;
    right: 10px;
}

[dir="rtl"] .swiper-button-next::after {
    content: 'prev';
}

[dir="rtl"] .swiper-button-prev::after {
    content: 'next';
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .expertise-carousel-card,
    .service-carousel-card {
        padding: 1.5rem;
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    .team-photo {
        height: 250px;
    }
    
    .testimonial-carousel-card {
        padding: 1.5rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .swiper-technologies .tech-item {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}
