/**
 * Services Page Specific Styles
 */

/* Hero Section */
.services-hero {
    padding: 180px 0 100px;
    background-color: var(--hero-bg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    transition: var(--theme-transition);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto 30px;
    transition: var(--theme-transition);
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 183, 255, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--theme-transition);
}

[data-theme="dark"] .hero-badge {
    background: rgba(0, 183, 255, 0.15);
}

/* Services Overview Section */
.section-intro {
    text-align: center;
    margin-bottom: 50px;
}

.services-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.service-category {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--bg-tertiary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.service-category i {
    font-size: 1rem;
    color: var(--primary-color);
}

.service-category:hover,
.service-category.active {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 183, 255, 0.2);
}

.service-category:hover i,
.service-category.active i {
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-item {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .service-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 183, 255, 0.15);
}

.service-icon-wrapper {
    padding: 30px 30px 0;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.service-icon.blue {
    background: linear-gradient(135deg, #00B7FF 0%, #0085FF 100%);
    box-shadow: 0 10px 20px rgba(0, 183, 255, 0.2);
}

.service-icon.purple {
    background: linear-gradient(135deg, #8C43FF 0%, #7B3AE0 100%);
    box-shadow: 0 10px 20px rgba(140, 67, 255, 0.2);
}

.service-icon.green {
    background: linear-gradient(135deg, #1FD89E 0%, #15B57F 100%);
    box-shadow: 0 10px 20px rgba(31, 216, 158, 0.2);
}

.service-icon.orange {
    background: linear-gradient(135deg, #FF8C43 0%, #FF6B24 100%);
    box-shadow: 0 10px 20px rgba(255, 140, 67, 0.2);
}

.service-content {
    padding: 0 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    transition: var(--theme-transition);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.service-tags span {
    background-color: var(--light-blue);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    transition: var(--theme-transition);
}

.service-item:hover .service-tags span {
    transform: translateY(-2px);
}

.service-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-primary);
    transition: var(--theme-transition);
}

.service-features {
    margin-bottom: 25px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: var(--theme-transition);
    position: relative;
    padding-right: 25px;
}

.service-features li i {
    color: var(--green);
    position: absolute;
    right: 0;
    font-size: 0.9rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

.service-link:hover::after {
    width: 100%;
}

/* Service Process Section - Enhanced Mobile Responsiveness */
.service-process {
    background-color: var(--bg-secondary);
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

/* Horizontal connecting line (only visible on desktop) */
.process-steps::before {
    content: '';
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    opacity: 0.3;
    display: none;
}

/* Basic process step styling */
.process-step {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 20px;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(0, 183, 255, 0.2);
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.process-step:hover .step-number::before {
    transform: scale(1.2);
    opacity: 0.7;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-blue);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .step-icon {
    background-color: rgba(0, 183, 255, 0.1);
}

.process-step:hover .step-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 183, 255, 0.2);
    background: var(--gradient-primary);
    color: var(--white);
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    transition: var(--theme-transition);
}

.process-step p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: var(--theme-transition);
}

/* Desktop Layout */
@media (min-width: 992px) {
    .process-steps {
        flex-wrap: nowrap;
    }
    
    .process-steps::before {
        display: block;
    }
}

/* Tablet and mobile layout enhancements */
@media (max-width: 991px) {
    .service-process {
        padding: 60px 0;
    }
    
    .process-steps {
        flex-direction: column;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        gap: 0;
    }
    
    /* Vertical connecting line between steps */
    .process-steps::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: 50%;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
        display: block;
        transform: translateX(0);
        left: auto;
        opacity: 0.2;
    }
    
    .process-step {
        width: 100%;
        padding: 25px 20px;
        margin-bottom: 0;
        flex-direction: row;
        text-align: right;
        align-items: flex-start;
        gap: 15px;
    }
    
    .process-step:last-child {
        margin-bottom: 0;
    }
    
    .step-content {
        flex: 1;
    }
    
    .step-visual {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: 15px;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .process-step h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .process-step p {
        font-size: 0.9rem;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.4rem;
    }
    
    .services-hero {
        padding: 150px 0 80px;
    }
}

/* Small screens/phones */
@media (max-width: 576px) {
    .service-process {
        padding: 50px 0 40px;
    }
    
    .service-category {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .process-steps {
        margin-top: 40px;
        max-width: 100%;
    }
    
    .process-steps::before {
        right: 35px;
    }
    
    .process-step {
        padding: 15px 10px 25px;
    }
    
    .step-visual {
        min-width: 70px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .process-step h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .process-step p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
}

/* Animation classes for process steps */
.step-mobile-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-step {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.app-icon {
    position: relative !important;
    width: 64px;  /* or whatever size your icon is */
    height: 64px;
    border-radius: 16px !important;  /* adjust as needed for your corner radius */
    background: linear-gradient(135deg, #FF8C43 0%, #FF6B24 100%) !important;  /* your orange background */
    overflow: hidden !important;  /* crucial to clip the highlight */ 
  }
  
  .app-icon::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: radial-gradient(
      circle at 20% 20%,  /* moved closer to corner */
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0) 60%
    ) !important;
    border-radius: inherit !important;  /* inherit the same border radius */
    z-index: 2 !important; /* ensure it's above other elements */
  }
  
  /* If you're applying this to .service-icon, adjust this class */
  .service-icon::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0) 60%
    ) !important;
    z-index: -1 !important;
    border-radius: inherit !important;
  }
  .service-icon.navy {
    background: linear-gradient(135deg, #0e0d0d 0%, #292727 100%);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}