/* Enhanced Service Pages Styling */

/* Hero Section Enhancements */
.service-hero {
    position: relative;
    overflow: hidden;
    padding: 12rem 0 6rem !important;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(128, 128, 128, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 4rem !important;
    font-weight: 200 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1.5rem !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(128, 128, 128, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

.service-subtitle {
    font-size: 1.3rem !important;
    font-weight: 300 !important;
    line-height: 1.8 !important;
    color: rgba(200, 200, 200, 0.9) !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    text-align: center;
}

/* Feature Cards Enhancement */
.feature-card {
    position: relative;
    background: rgba(0, 0, 0, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 3rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    background: rgba(0, 0, 0, 1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    color: rgba(128, 128, 128, 0.5) !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    justify-content: center !important;
    transition: all 0.4s ease !important;
}

.feature-card:hover .feature-icon {
    color: rgba(160, 160, 160, 0.8) !important;
    transform: scale(1.1) translateY(-4px);
}

.feature-title {
    font-size: 1.4rem !important;
    font-weight: 300 !important;
    margin-bottom: 1rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    transition: color 0.3s ease !important;
    text-align: center;
}

.feature-card:hover .feature-title {
    color: rgba(255, 255, 255, 1) !important;
}

.feature-description {
    color: rgba(200, 200, 200, 0.7) !important;
    line-height: 1.7 !important;
    font-size: 0.95rem !important;
    font-weight: 300 !important;
    text-align: center;
}

/* Numbered Steps Enhancement */
.steps-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2.5rem !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
}

.step-card {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.25rem;
    width: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(128, 128, 128, 0.2), transparent);
    transform: translateY(-50%);
}

.step-card:last-child::after {
    display: none;
}

.step-card:hover {
    background: rgba(0, 0, 0, 1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

.step-number {
    font-size: 4rem !important;
    font-weight: 100 !important;
    color: rgba(128, 128, 128, 0.2) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1 !important;
    transition: all 0.4s ease;
}

.step-card:hover .step-number {
    color: rgba(128, 128, 128, 0.35) !important;
    transform: scale(1.05);
}

.step-title {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    margin-bottom: 0.75rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: center;
}

.step-description {
    font-size: 0.9rem !important;
    color: rgba(200, 200, 200, 0.7) !important;
    line-height: 1.6 !important;
    text-align: center;
}

/* Use Case Tags Enhancement */
.use-case-card {
    background: rgba(0, 0, 0, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 2.5rem !important;
    transition: all 0.3s ease !important;
    text-align: center;
}

.use-case-card:hover {
    background: rgba(0, 0, 0, 1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.use-case-title {
    font-size: 1.3rem !important;
    font-weight: 300 !important;
    margin-bottom: 1.5rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-align: center;
}

.use-case-card > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    display: inline-block;
    font-size: 0.8rem !important;
    font-weight: 300 !important;
    color: rgba(200, 200, 200, 0.7) !important;
    padding: 0.5rem 1rem !important;
    border: 1px solid rgba(128, 128, 128, 0.2) !important;
    border-radius: 20px !important;
    margin: 0.25rem !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.02em !important;
}

.tag:hover {
    background: rgba(128, 128, 128, 0.1) !important;
    border-color: rgba(128, 128, 128, 0.35) !important;
    color: rgba(220, 220, 220, 0.9) !important;
    transform: translateY(-2px);
}

/* CTA Section Enhancement */
.service-cta {
    position: relative;
    padding: 8rem 0 !important;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(128, 128, 128, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.5rem !important;
    font-weight: 200 !important;
    margin-bottom: 1rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    letter-spacing: -0.01em !important;
    text-align: center;
}

.cta-description {
    font-size: 1.1rem !important;
    color: rgba(200, 200, 200, 0.7) !important;
    margin-bottom: 3rem !important;
    font-weight: 300 !important;
    text-align: center;
}

.cta-button-primary {
    padding: 1.25rem 3rem !important;
    background: rgba(0, 0, 0, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1rem !important;
    font-weight: 300 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.cta-button-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button-primary:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button-primary:hover {
    background: rgba(0, 0, 0, 1) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cta-button-secondary {
    padding: 1.25rem 3rem !important;
    background: rgba(0, 0, 0, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    color: rgba(200, 200, 200, 0.8) !important;
    font-size: 1rem !important;
    font-weight: 300 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    transition: all 0.3s ease !important;
}

.cta-button-secondary:hover {
    background: rgba(0, 0, 0, 1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: rgba(220, 220, 220, 0.95) !important;
    transform: translateY(-2px);
}

/* Section Headers Enhancement */
.section-header-enhanced {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-header-enhanced h3 {
    font-size: 2.5rem !important;
    font-weight: 200 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.01em !important;
    text-align: center;
}

.section-header-enhanced p {
    font-size: 1.1rem !important;
    color: rgba(200, 200, 200, 0.7) !important;
    font-weight: 300 !important;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid Layouts */
.features-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

.features-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }

    .step-card::after {
        display: none;
    }

    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .service-title {
        font-size: 2.5rem !important;
    }

    .service-subtitle {
        font-size: 1.1rem !important;
    }

    .steps-grid,
    .features-grid-3,
    .features-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }

    .feature-card {
        padding: 2rem !important;
        background: rgba(0, 0, 0, 1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin: 0 0.5rem !important;
    }

    .use-case-card {
        padding: 2rem !important;
        background: rgba(0, 0, 0, 1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin: 0 0.5rem !important;
    }

    .step-card {
        padding: 1.5rem !important;
        background: rgba(0, 0, 0, 1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin: 0 0.5rem !important;
    }

    .cta-title {
        font-size: 1.8rem !important;
    }

    .section-header-enhanced h3 {
        font-size: 1.8rem !important;
    }
}

/* Overview Section Enhancement */
.overview-section {
    position: relative;
    padding: 8rem 0 6rem !important;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.overview-content h3 {
    font-size: 2.2rem !important;
    font-weight: 300 !important;
    margin-bottom: 1.5rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    letter-spacing: -0.01em !important;
}

.overview-content p {
    color: rgba(200, 200, 200, 0.75) !important;
    line-height: 1.8 !important;
    font-size: 1.05rem !important;
    font-weight: 300 !important;
    margin-bottom: 1.25rem !important;
}

.overview-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, 0.15);
    transition: all 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.overview-image:hover {
    transform: scale(1.02);
    border-color: rgba(128, 128, 128, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.overview-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.overview-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Ensure minimum height for pages with minimal content */
#blog-page,
#tooling-page,
#team-page {
    min-height: calc(100vh - 200px);
    padding-bottom: 6rem !important;
}
