/* ========================================
   Services Page - Modern Professional Design
   ======================================== */

/* Root Variables */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --dark-blue: #1e3a8a;
    --light-blue: #dbeafe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --overlay-dark: rgba(17, 24, 39, 0.75);
    --overlay-blue: rgba(37, 99, 235, 0.85);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    overflow-x: hidden;
}

/* Page Header */
.services-page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.services-page-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header-content {
    animation: fadeInUp 0.8s ease-out;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--light-blue);
    margin-bottom: 30px;
    font-weight: 400;
}

.header-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-breadcrumb a:hover {
    color: var(--accent-blue);
}

.header-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.header-breadcrumb .current {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Service Section */
.service-section {
    position: relative;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    background: var(--gray-50);
}

.service-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-section-alt {
    background: var(--white);
}

.service-background {
    display: none;
    /* Hide the full background */
}

.service-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.service-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    border: 2px solid var(--gray-200);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.service-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

/* Background image inside content box */
.service-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

/* Individual background images for each section */
#amc-facility .service-content::before {
    background-image: url('../images/services/amc-facility.jpg');
}

#enterprise-solutions .service-content::before {
    background-image: url('../images/services/enterprise-solutions.jpg');
}

#network-projects .service-content::before {
    background-image: url('../images/services/network-projects.jpg');
}

#server-storage .service-content::before {
    background-image: url('../images/services/server-storage.jpg');
}

#security-solutions .service-content::before {
    background-image: url('../images/services/security-solutions.jpg');
}

#audio-video .service-content::before {
    background-image: url('../images/services/audio-video.jpg');
}

#antivirus-solutions .service-content::before {
    background-image: url('../images/services/antivirus-solutions.jpg');
}

#test-repair .service-content::before {
    background-image: url('../images/services/test-repair.jpg');
}

/* Content wrapper to ensure text is above background */
.service-content>* {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 40px auto 30px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.4s ease;
}

.service-section:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.service-icon i {
    font-size: 3rem;
    color: var(--white);
}

.service-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.service-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.service-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--gray-700);
    padding: 0 40px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--white);
    transform: translateX(5px);
    border-color: var(--primary-blue);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.1);
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    color: var(--gray-800);
}

.service-btn {
    display: inline-block;
    padding: 16px 48px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #ffffff !important;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--dark-blue);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.service-btn:hover::before {
    width: 300px;
    height: 300px;
}

.service-btn:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

/* Call to Action Section */
.services-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.services-cta .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--light-blue);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: var(--light-blue);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-title {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-subtitle {
        font-size: 1.125rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .service-description,
    .service-features {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .services-page-header {
        padding: 100px 0 60px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .service-section {
        padding: 40px 0;
    }

    .service-content {
        border-radius: 15px;
    }

    .service-content::before {
        height: 300px;
    }

    .service-title {
        font-size: 1.75rem;
    }

    .service-subtitle {
        font-size: 1rem;
    }

    .service-description {
        font-size: 1rem;
        padding: 0 20px;
    }

    .service-features {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        margin: 30px auto 20px;
    }

    .service-icon i {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-content::before {
        height: 250px;
    }

    .service-btn {
        padding: 14px 36px;
        font-size: 1rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .service-description,
    .service-features {
        padding: 0 15px;
    }
}

/* Print Styles */
@media print {

    .scroll-to-top,
    .services-cta {
        display: none;
    }

    .service-section {
        page-break-inside: avoid;
    }
}