/* ========================================
   SERVICES PAGE CSS - LinkCodeAI
   ======================================== */

/* === VARIABLES === */
:root {
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f5f7fa;
    --gray-medium: #6b7280;
    --orange-primary: #ff6b35;
    --orange-hover: #ff5722;
    --green-accent: #10b981;
    --blue-hover: #3b82f6;
    --navy-dark: #0a1929;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.services-hero-section {
    position: relative;
    min-height: 500px;
    height: 70vh;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.services-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    z-index: 1;
}

.services-hero-section .container {
    position: relative;
    z-index: 2;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.breadcrumbs li {
    color: var(--gray-medium);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: var(--gray-medium);
}

.breadcrumbs a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color var(--transition-normal);
    position: relative;
}

.breadcrumbs a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--orange-primary);
    transition: width var(--transition-normal);
}

.breadcrumbs a:hover {
    color: var(--orange-primary);
}

.breadcrumbs a:hover::after {
    width: 100%;
}

/* Hero Content */
.services-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero-headline {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.services-intro {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.services-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

.services-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.8s ease 0.4s backwards;
    position: relative;
    overflow: hidden;
}

.services-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.services-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.services-cta-button:hover {
    background: linear-gradient(135deg, var(--blue-hover), #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.services-cta-button svg {
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 1;
}

.services-cta-button:hover svg {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MAIN SERVICES SECTION
   ======================================== */
.main-services-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-accent), var(--orange-primary));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--gray-medium);
    margin-bottom: 60px;
}

.services-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Card */
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Service Icon */
.service-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--green-accent), #059669);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-slow);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Service Content */
.service-content {
    text-align: center;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
}

.service-description {
    font-size: 16px;
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--gray-medium);
    line-height: 1.6;
    transition: all var(--transition-normal);
}

.service-features li:hover {
    transform: translateX(5px);
    color: var(--black);
}

.check-icon {
    flex-shrink: 0;
    color: var(--green-accent);
    margin-top: 2px;
}

/* Service Button */
.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.service-btn:hover::before {
    width: 200px;
    height: 200px;
}

.service-btn:hover {
    background: linear-gradient(135deg, var(--blue-hover), #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.service-btn svg {
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 1;
}

.service-btn:hover svg {
    transform: translateX(5px);
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-choose-section {
    padding: 80px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.benefit-card:hover::before {
    left: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--orange-primary);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    border-radius: 50%;
    color: var(--white);
    margin-bottom: 20px;
    transition: all var(--transition-slow);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.benefit-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
}

.benefit-description {
    font-size: 16px;
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--green-accent), var(--orange-primary));
    transform: translateX(-50%);
}

.process-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.process-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.process-item:nth-child(even) .process-content {
    text-align: right;
}

.process-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--green-accent), var(--orange-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    z-index: 2;
    transition: all var(--transition-normal);
}

.process-item:hover .process-number {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.process-content {
    width: 45%;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all var(--transition-slow);
}

.process-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.process-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.process-description {
    font-size: 16px;
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.services-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, #1e3a5f 100%);
    color: var(--white);
    text-align: center;
}

.services-cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.services-cta-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.services-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.services-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.services-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.services-cta-btn:hover {
    background: linear-gradient(135deg, var(--orange-hover), #e64a19);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.6);
}

.services-cta-btn svg {
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 1;
}

.services-cta-btn:hover svg {
    transform: translateX(5px);
}

/* ========================================
   FADE-IN ANIMATION
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Large tablets and small desktops */
@media (min-width: 768px) {
    .services-wrapper {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
    
    .service-icon-wrapper {
        flex-shrink: 0;
    }
    
    .service-content {
        text-align: left;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .services-hero-headline {
        font-size: 38px;
    }
    
    .process-item {
        flex-direction: column !important;
        align-items: center;
    }
    
    .process-content {
        width: 80%;
        text-align: center !important;
    }
    
    .process-number {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 20px;
    }
    
    .process-timeline::before {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .services-hero-section {
        min-height: 450px;
        height: 60vh;
    }
    
    .services-hero-headline {
        font-size: 32px;
    }
    
    .services-intro p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .main-services-section,
    .why-choose-section,
    .process-section {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .services-wrapper,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .services-cta-section {
        padding: 60px 0;
    }
    
    .services-cta-title {
        font-size: 28px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.services-cta-button:focus-visible,
.services-cta-btn:focus-visible,
.service-btn:focus-visible {
    outline: 3px solid var(--green-accent);
    outline-offset: 3px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card,
    .benefit-card {
        border: 2px solid var(--black);
    }
}