/* Engineer Page Styles */

.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/images/business-meeting-two.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

/* Engineer Profile Section */
.engineer-profile {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

/* Carousel */
.engineer-carousel {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}

.engineer-carousel-inner {
    display: flex;
    gap: 30px;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.engineer-card {
    flex: 0 0 calc(100% - 120px);
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 50px;
    align-items: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    opacity: 0.4;
    transform: scale(0.92);
    filter: blur(1px);
    position: relative;
    overflow: hidden;
}

.engineer-emoji {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 3rem;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.engineer-card.active .engineer-emoji {
    transform: scale(1.15) rotate(5deg);
}

.engineer-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    filter: blur(0);
}

.engineer-photo-area {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.engineer-photo {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.engineer-comment {
    position: relative;
    background: white;
    color: #333;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
    display: inline-block;
    border: 2px solid #333;
}

.engineer-comment::before {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #333;
}

.engineer-comment::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid white;
}

.engineer-card.active .engineer-photo {
    transform: scale(1.02);
}

.engineer-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.engineer-emoji-mobile {
    display: none;
    margin-left: 8px;
    font-size: 1.3rem;
}

.engineer-name-reading {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.engineer-role {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0077b6 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.engineer-info {
    padding-top: 5px;
}

.engineer-info-section {
    margin-bottom: 28px;
}

.engineer-info-section:last-child {
    margin-bottom: 0;
}

.engineer-info-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.engineer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.engineer-info-list li {
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.engineer-info-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.carousel-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary-color);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 119, 182, 0.3);
}

.carousel-dots {
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background-color: rgba(0, 119, 182, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-counter {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Career Compact (inside card) */
.engineer-career-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    padding-left: 20px;
}

.engineer-career-compact::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(0, 119, 182, 0.2));
    border-radius: 1px;
}

.career-compact-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    position: relative;
}

.career-compact-item::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 12px;
    width: 10px;
    height: 10px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.career-compact-item:first-child::before {
    background: var(--primary-color);
}

.career-compact-company {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    min-width: 140px;
}

.career-compact-role {
    font-size: 0.85rem;
    color: #666;
}

/* Credentials Section */
.engineer-credentials {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.credentials-content {
    max-width: 900px;
    margin: 0 auto;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.credentials-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.credentials-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.credentials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credentials-list li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.credentials-list li:last-child {
    border-bottom: none;
}

.credential-year {
    display: inline-block;
    background-color: #e8f4f8;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 8px;
}

/* Career Section */
.engineer-career {
    padding: 80px 0;
    background-color: #fff;
}

.career-content {
    max-width: 900px;
    margin: 0 auto;
}

.career-timeline {
    margin-top: 40px;
    position: relative;
    padding-left: 30px;
}

.career-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.career-item {
    position: relative;
    padding-bottom: 40px;
}

.career-item:last-child {
    padding-bottom: 0;
}

.career-item::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 4px;
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.career-period {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.career-company {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.career-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .engineer-carousel {
        padding: 0 40px;
    }

    .engineer-card {
        flex: 0 0 calc(100% - 80px);
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 30px;
    }

    .engineer-emoji {
        display: none;
    }

    .engineer-emoji-mobile {
        display: inline;
    }

    .engineer-info {
        text-align: left;
    }

    .engineer-photo {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .credentials-grid {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .engineer-profile,
    .engineer-credentials,
    .engineer-career {
        padding: 60px 0;
    }

    .engineer-carousel {
        padding: 0 20px;
    }

    .engineer-card {
        flex: 0 0 calc(100% - 40px);
        padding: 24px;
    }

    .engineer-comment {
        font-size: 0.75rem;
        padding: 8px 14px;
    }

    .engineer-emoji-mobile {
        font-size: 1.1rem;
    }

    .engineer-photo {
        width: 140px;
        height: 140px;
    }

    .credentials-card {
        padding: 24px;
    }

    .carousel-nav {
        gap: 12px;
        margin-top: 30px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}
