/* Service Pages Styles - WWTEC 2024 */

/* Hero Section */
.service-hero {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/service-pattern.svg');
    background-size: cover;
    opacity: 0.05;
}

.service-hero-content {
    position: relative;
    z-index: 2;
}

.service-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.service-hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.service-hero-image {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.service-hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

/* Features Section */
.service-features {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

.service-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/features-pattern.svg');
    background-size: cover;
    opacity: 0.05;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Process Section */
.service-process {
    padding: 100px 0;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    position: relative;
}

.service-process h2,
.service-features h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #3498db, transparent);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
}

.process-step.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.process-step:nth-child(odd) {
    flex-direction: row-reverse;
}

.process-content,
.step-content {
    flex: 1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.process-step:hover .process-content,
.process-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Step Content Styles */
.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.step-content p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.step-icon,
.process-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.process-number {
    width: 60px;
    height: 60px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Benefits Section */
.service-benefits {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.benefit-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Technologies Section */
.service-technologies {
    padding: 100px 0;
    background: #ffffff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
}

.tech-item {
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.tech-name {
    font-size: 0.9rem;
    color: #6c757d;
}

/* CTA Section */
.service-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/cta-pattern.svg') center/cover;
    opacity: 0.05;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Unified CTA Button Styles - Based on Personnel Tahsis Design */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

.cta-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.cta-button-primary:hover {
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
    color: white;
}

.cta-button-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button-secondary:hover {
    background: white;
    color: #3498db;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Legacy button support - for existing buttons that use different classes */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.cta-btn:hover::before {
    transform: translateX(100%);
}

.cta-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.cta-btn-primary:hover {
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
    color: white;
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn-secondary:hover {
    background: white;
    color: #3498db;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .service-hero {
        padding: 60px 0;
    }

    .service-hero-title {
        font-size: 2.5rem;
    }

    .process-timeline::before {
        left: 30px;
    }

    .process-step {
        flex-direction: row !important;
    }

    .process-number {
        margin: 0 1rem;
    }

    .process-content {
        margin-left: 60px;
    }
}

@media (max-width: 767.98px) {
    .service-hero-title {
        font-size: 2rem;
    }

    .service-hero-description {
        font-size: 1.1rem;
    }

    .feature-card,
    .benefit-card {
        padding: 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .service-features,
    .service-process {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }

    .feature-card,
    .process-content {
        background: rgba(255, 255, 255, 0.95);
    }

    .feature-title,
    .process-title {
        color: #2c3e50;
    }

    .feature-description,
    .process-description {
        color: #6c757d;
    }
}

/* Enhanced Animations */
@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

@keyframes blink {
    0%, 50% { border-color: #3498db; }
    51%, 100% { border-color: transparent; }
}

/* Enhanced hover states */
.feature-card.hover-active {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card .feature-icon.icon-bounce {
    animation: iconBounce 1s ease-in-out;
}

.modern-button.button-hover {
    animation: buttonPulse 1.5s infinite;
}

.modern-button.button-click {
    transform: scale(0.95);
}

/* In-view animation */
.feature-card.in-view {
    animation-play-state: running;
}

/* Typing animation */
.service-hero-title.typing {
    border-right: 2px solid #3498db;
    animation: blink 1s infinite;
}

/* Override legacy button styles for CTA consistency */
.button.cta-button,
.button.cta-btn,
a.button.cta-button,
a.button.cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
}

.button.cta-button::before,
.button.cta-btn::before,
a.button.cta-button::before,
a.button.cta-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transform: translateX(-100%) !important;
    transition: 0.6s !important;
}

.button.cta-button:hover::before,
.button.cta-btn:hover::before,
a.button.cta-button:hover::before,
a.button.cta-btn:hover::before {
    transform: translateX(100%) !important;
}

.button.cta-button:hover,
.button.cta-btn:hover,
a.button.cta-button:hover,
a.button.cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2) !important;
    color: white !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

/* Override Bootstrap button styles for CTA consistency */
.btn.cta-button,
.btn.cta-btn,
a.btn.cta-button,
a.btn.cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
}

.btn.cta-button::before,
.btn.cta-btn::before,
a.btn.cta-button::before,
a.btn.cta-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transform: translateX(-100%) !important;
    transition: 0.6s !important;
}

.btn.cta-button:hover::before,
.btn.cta-btn:hover::before,
a.btn.cta-button:hover::before,
a.btn.cta-btn:hover::before {
    transform: translateX(100%) !important;
}

.btn.cta-button:hover,
.btn.cta-btn:hover,
a.btn.cta-button:hover,
a.btn.cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2) !important;
    color: white !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}
