/* =========================================================
   PREMIUM SERVICES PAGE - NAVY BLUE & WHITE THEME
   3×3 Grid Layout with Navy Blue & White
   MINIMAL BLUE ACCENTS
========================================================= */

:root {
    /* ===================== NAVY BLUE COLORS ===================== */
    --navy-dark: #0f1b3d;      /* Dark navy - backgrounds */
    --navy-medium: #1a284f;    /* Medium navy */
    --navy-light: #2a3c6e;     /* Light navy */
    --navy-bg: #0f172a;        /* Navy background */
    
    /* ===================== WHITE COLORS ===================== */
    --white: #ffffff;
    --white-bg: #f8fafc;
    --white-light: #f1f5f9;
    --white-medium: #e2e8f0;
    
    /* ===================== MINIMAL BLUE ACCENTS ===================== */
    --blue-accent: #3c78ff;    /* Only for accents - icons, buttons */
    --blue-accent-dark: #2a60e8;
    --blue-accent-light: #6fa2ff;
    
    /* ===================== TEXT COLORS ===================== */
    --text-dark: #0b1430;
    --text-medium: #475569;
    --text-light: #64748b;
    --text-white: #ffffff;
    
    /* ===================== SHADOWS ===================== */
    --shadow-sm: 0 2px 8px rgba(11, 20, 48, 0.08);
    --shadow: 0 8px 24px rgba(11, 20, 48, 0.12);
    --shadow-md: 0 12px 32px rgba(11, 20, 48, 0.16);
    --shadow-lg: 0 16px 48px rgba(11, 20, 48, 0.2);
    --shadow-xl: 0 24px 64px rgba(11, 20, 48, 0.24);
    
    /* ===================== BORDER RADIUS ===================== */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    animation: fadeIn 0.6s ease-out;
}

.section-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-medium);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    padding: 8px 20px;
    background: var(--white-light);
    border-radius: 30px;
    border: 1px solid var(--white-medium);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--navy-dark);
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* INDUSTRIES SECTION */
.industries-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.industry-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 2px solid var(--white-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.industry-card:hover {
    transform: translateY(-8px);
    border-color: var(--navy-light);
    box-shadow: var(--shadow-xl);
}

.industry-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.industry-icon {
    width: 56px;
    height: 56px;
    background: var(--white-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-medium);
    transition: all 0.4s ease;
    border: 2px solid var(--white-medium);
}

.industry-card:hover .industry-icon {
    transform: scale(1.1);
    background: var(--navy-dark);
    color: var(--white);
    border-color: var(--navy-dark);
}

.industry-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.industry-card-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.industry-card-body p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.industry-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 6px 12px;
    background: var(--white-light);
    color: var(--navy-medium) !important;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--white-medium);
}

.industry-card:hover .feature-tag {
    background: var(--navy-dark);
    color: var(--white) !important;
    border-color: var(--navy-dark);
    transform: translateY(-2px);
}

/* DETAILED SERVICES - 3×3 Grid */
.detailed-services {
    padding: 100px 0;
    background: var(--white-bg);
    position: relative;
}

.services-master-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 2px solid var(--white-light);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--navy-light);
    box-shadow: var(--shadow-xl);
}

.service-card-header {
    padding: 28px 28px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--white-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-medium);
    transition: all 0.4s ease;
    border: 2px solid var(--white-medium);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--navy-dark);
    color: var(--white);
    border-color: var(--navy-dark);
}

.service-card-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-dark);
    flex: 1;
}

.service-card-body {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-description {
    font-size: 0.9375rem;
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.6;
    flex: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--white-light);
    border-radius: var(--radius);
    border: 1px solid var(--white-medium);
    transition: all 0.3s ease;
}

.feature:hover {
    background: var(--white-medium);
    transform: translateX(4px);
    border-color: var(--navy-light);
}

.feature svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--navy-medium);
}

.feature span {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    font-weight: 500;
}

.service-card-footer {
    padding: 24px 28px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--white-light);
    gap: 12px;
}

.service-duration {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy-medium);
    padding: 6px 14px;
    background: var(--white-light);
    border-radius: 20px;
    border: 1px solid var(--white-medium);
    white-space: nowrap;
}

/* MINIMAL BLUE - Only for CTA buttons */
.service-cta {
    padding: 10px 24px;
    background: var(--blue-accent); /* MINIMAL BLUE */
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.service-cta:hover {
    background: var(--blue-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 96, 232, 0.2);
}

/* SERVICE MODAL */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 20, 48, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.service-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid var(--navy-light);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--white-light);
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: var(--navy-dark);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-dark);
    flex: 1;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-medium);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: var(--white-light);
    color: var(--navy-dark);
    transform: rotate(90deg);
}

.modal-body {
    margin-bottom: 24px;
}

.modal-body p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--white-light);
    border-radius: var(--radius);
    border: 1px solid var(--white-medium);
}

.modal-feature svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--navy-medium);
    margin-top: 2px;
}

.modal-feature span {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--white-light);
}

.modal-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy-medium);
}

/* MINIMAL BLUE - Only for modal action button */
.modal-action {
    padding: 10px 28px;
    background: var(--blue-accent); /* MINIMAL BLUE */
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-action:hover {
    background: var(--blue-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 96, 232, 0.2);
}

/* WORKFLOW SECTION */
.workflow-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.workflow-steps {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.workflow-line {
    position: absolute;
    left: 50%;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--navy-light), transparent);
    transform: translateX(-50%);
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.workflow-step:nth-child(2) { animation-delay: 0.1s; }
.workflow-step:nth-child(3) { animation-delay: 0.2s; }
.workflow-step:nth-child(4) { animation-delay: 0.3s; }

.workflow-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--navy-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    position: relative;
    z-index: 2;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.step-content {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px;
    border: 2px solid var(--white-light);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: translateY(-4px);
    border-color: var(--navy-light);
    box-shadow: var(--shadow-xl);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 16px;
}

.step-content > p {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 28px;
    line-height: 1.6;
}

.step-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail {
    padding: 20px;
    background: var(--white-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--white-medium);
    transition: all 0.2s ease;
}

.detail:hover {
    background: var(--white-medium);
    border-color: var(--navy-light);
    transform: translateY(-2px);
}

.detail h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--navy-medium);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail p {
    font-size: 0.8125rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* PREMIUM CTA */
.premium-cta {
    padding: 140px 0;
    background: var(--navy-dark);
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

.cta-content h2 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta-btn {
    padding: 16px 36px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

/* MINIMAL BLUE - Primary button */
.cta-btn.primary {
    background: var(--blue-accent); /* MINIMAL BLUE */
    color: var(--white);
    border: 2px solid var(--blue-accent);
}

.cta-btn.primary:hover {
    background: var(--blue-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(42, 96, 232, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-master-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .industries-grid,
    .services-master-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workflow-step {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .workflow-step:nth-child(even) {
        flex-direction: column;
    }
    
    .workflow-line {
        display: none;
    }
    
    .step-number {
        align-self: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .industries-grid,
    .services-master-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .step-details {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .industries-section,
    .detailed-services,
    .workflow-section {
        padding: 80px 0;
    }
    
    .premium-cta {
        padding: 100px 0;
    }
    
    .service-card,
    .industry-card,
    .step-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .industry-card,
    .step-content {
        padding: 20px;
    }
    
    .service-card-header,
    .industry-card-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .modal-content {
        padding: 24px 20px;
    }
}

/* SCROLL ANIMATION */
.industry-card,
.service-card,
.workflow-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.industry-card.visible,
.service-card.visible,
.workflow-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* PERFORMANCE OPTIMIZATION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}