/* ============================================
   CONSULTING PAGE ANIMATIONS & STYLES
   ============================================ */

/* Animated Hero Section */
.consulting-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-primary) 50%, var(--steel-blue) 100%);
    padding: 6rem 2rem;
    color: var(--white);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(168, 183, 199, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 124, 147, 0.08) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
}

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

.hero-content-animated {
    position: relative;
    z-index: 2;
}

.hero-content-animated h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content-animated p {
    font-size: 1.5rem;
    color: var(--silver-gray);
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Fade In Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.3s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.6s;
}

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

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--white);
    font-family: var(--font-serif);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--steel-light);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Consulting Features Cards */
.consulting-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(23, 38, 69, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(23, 38, 69, 0.2);
    border-color: var(--steel-light);
}

.feature-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.feature-card h3 {
    color: var(--navy-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Feature Data Box */
.feature-data-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--grey-50);
    border-radius: 8px;
    border-left: 4px solid var(--teal-primary);
}

.data-item {
    text-align: center;
}

.data-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--navy-deep);
    font-family: var(--font-serif);
}

.data-label {
    display: block;
    font-size: 0.75rem;
    color: var(--steel-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Service Tabs */
.service-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--steel-light);
    border-radius: 8px;
    color: var(--navy-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 183, 199, 0.3), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    border-color: var(--teal-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.tab-btn.active {
    background: var(--navy-deep);
    color: var(--white);
    border-color: var(--navy-deep);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInScale 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Service Detail Card */
.service-detail-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(23, 38, 69, 0.12);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-header h3 {
    font-size: 2rem;
    color: var(--navy-deep);
    font-family: var(--font-serif);
}

.service-badge {
    background: linear-gradient(135deg, var(--teal-primary), var(--cyan-accent));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Service Metrics */
.service-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-box {
    background: linear-gradient(135deg, var(--grey-50) 0%, var(--white) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid var(--silver-gray);
    transition: all 0.3s ease;
}

.metric-box:hover {
    border-color: var(--teal-primary);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.15);
}

.metric-icon {
    font-size: 2.5rem;
}

.metric-content {
    flex: 1;
}

.metric-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--navy-deep);
    font-family: var(--font-serif);
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--steel-blue);
    text-transform: uppercase;
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

/* Service Description */
.service-description {
    font-size: 1.1rem;
    color: var(--navy-primary);
    margin: 2rem 0;
    line-height: 1.8;
}

/* Service List */
.service-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.list-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--grey-50);
    border-radius: 10px;
    border-left: 4px solid var(--teal-primary);
    transition: all 0.3s ease;
}

.list-item:hover {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(23, 38, 69, 0.1);
    transform: translateX(5px);
}

.check-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--teal-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.list-content strong {
    display: block;
    color: var(--navy-deep);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.list-content p {
    color: var(--steel-blue);
    margin: 0;
    line-height: 1.6;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--steel-light), var(--teal-primary));
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--navy-deep);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--steel-light);
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(23, 38, 69, 0.1);
    border: 2px solid var(--silver-gray);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--teal-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(23, 38, 69, 0.15);
}

.timeline-content h3 {
    color: var(--navy-deep);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--navy-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-data {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.data-badge {
    background: var(--grey-50);
    color: var(--navy-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--steel-light);
}

/* Industry Expertise Grid */
.industry-expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(23, 38, 69, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.expertise-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(23, 38, 69, 0.15);
    border-color: var(--teal-primary);
}

.expertise-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.expertise-card h3 {
    color: var(--navy-deep);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.expertise-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.stat-mini {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: var(--grey-50);
    border-radius: 8px;
    border: 1px solid var(--steel-light);
}

.stat-mini .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--teal-primary);
    font-family: var(--font-serif);
}

.stat-mini .stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--steel-blue);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.expertise-card p {
    color: var(--navy-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }
.animate-on-scroll.delay-7 { transition-delay: 0.7s; }

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .consulting-hero {
        padding: 4rem 2rem;
        min-height: auto;
    }

    .hero-content-animated h1 {
        font-size: 2.5rem;
    }

    .hero-content-animated p {
        font-size: 1.2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .consulting-features {
        grid-template-columns: 1fr;
    }

    .service-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .service-metrics {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        padding-left: 80px;
    }

    .timeline-marker {
        position: absolute;
        left: 0;
    }

    .industry-expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .service-detail-card {
        padding: 1.5rem;
    }

    .service-header h3 {
        font-size: 1.5rem;
    }

    .metric-box {
        flex-direction: column;
        text-align: center;
    }

    .feature-data-box {
        grid-template-columns: 1fr;
    }
}
