/* About Hero Section */
.about-hero {
    position: relative;
    background: url('assets/images/service/agp_WL.jpg') center center/cover;
    background-blend-mode: multiply;
    height: 80vh;
    min-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    padding-top: 80px;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 15px;
}

.about-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.about-hero .breadcrumb {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    margin: 0;
}

.about-hero .breadcrumb-item, .about-hero .breadcrumb-item a {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.about-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.about-hero .section-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* margin-bottom: 25px; */
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.hero-shape svg {
    width: 100%;
    height: auto;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 991px) {
    .about-hero {
        height: 70vh;
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .about-hero {
        height: 60vh;
        min-height: 450px;
    }
    
    .about-hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Company Overview */
.company-image {
    position: relative;
    padding: 10px;
    margin-top: 30px;
}

.iso-certificate {
    background-color: var(--primary-light);
    padding: 20px;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.iso-certificate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Mission & Vision */
.mission-vision {
    position: relative;
}

.mission-card {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    height: 100%;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-color: rgba(0, 86, 179, 0.05);
    border-radius: 0 0 0 100%;
    z-index: 0;
}

.card-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 1.8rem;
    border-radius: 20px;
    margin-bottom: 25px;
    position: relative;
    transition: var(--transition);
}

.mission-card:hover .card-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

.mission-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.mission-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.mission-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

/* Quality Policy */
.policy-content {
    background-color: #fff;
    border-left: 5px solid var(--primary-color);
}

.policy-list {
    list-style: none;
    padding-left: 0;
}

.policy-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.policy-list li:before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

.policy-signature {
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

/* History Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--primary-color);
    left: 50%;
    top: 15px;
    margin-left: -12px;
    z-index: 1;
    box-shadow: 0 0 0 5px var(--primary-light);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.2);
}

.timeline-content {
    position: relative;
    width: 45%;
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

@media screen and (max-width: 767px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
    }
    
    .timeline-dot {
        left: 31px;
        margin-left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 80px;
    }
}

/* Our Approach */
.approach-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.approach-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 2rem;
    border-radius: 24px;
    margin: 0 auto 25px;
    position: relative;
    transition: var(--transition);
}

.approach-card:hover .approach-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotateY(360deg);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
}

.approach-card:hover .step-number {
    background-color: var(--primary-dark);
}

.approach-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Team Cards Horizontal */
.team-card-horizontal {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.team-card-horizontal:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.team-card-horizontal .team-image {
    min-width: 110px;
    width: 110px;
    margin-right: 20px;
}

.team-card-horizontal .team-image img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
    transition: var(--transition);
}

.team-card-horizontal:hover .team-image img {
    border-color: var(--primary-color);
}

.team-card-horizontal .team-info {
    flex-grow: 1;
}

.team-card-horizontal .team-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-card-horizontal .position {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.team-card-horizontal p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Adding these CSS variables to the root for consistency */
:root {
    --card-radius: 16px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition-fast: all 0.3s ease;
    --hover-transform: translateY(-10px);
}

/* Card hover animation */
.card-hover-effect {
    transition: var(--transition-fast);
    position: relative;
    top: 0;
}

.card-hover-effect:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Add some depth to cards with before/after pseudo-elements */
.card-hover-3d {
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-hover-3d:hover {
    transform: rotateY(5deg) translateY(-10px);
}

.card-hover-3d::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    transform: translateZ(20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.card-hover-3d:hover::before {
    opacity: 1;
}

/* Glow effect on hover */
.card-hover-glow {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-hover-glow:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1), 
                0 0 20px rgba(0, 86, 179, 0.2);
}

.card-hover-glow:hover::after {
    opacity: 1;
}

/* Expertise Section Modern UI */
.expertise-section {
    padding: 100px 0;
}

.expertise-grid {
    display: grid;
    gap: 30px;
}

.expertise-category {
    background-color: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-fast);
}

.expertise-category:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    padding: 25px;
    cursor: pointer;
    background-color: #fff;
    transition: var(--transition-fast);
    position: relative;
}

.category-header:hover {
    background-color: var(--primary-light);
}

.category-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: var(--transition-fast);
}

.category-header:hover .category-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotate(15deg);
}

.category-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    flex-grow: 1;
}

.toggle-icon {
    width: 30px;
    height: 30px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.category-header[aria-expanded="true"] .toggle-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotate(45deg);
}

.category-content {
    padding: 25px 25px 25px;
    background-color: #fff;
}

.expertise-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.expertise-item {
    display: flex;
    align-items: center;
    background-color: var(--primary-light);
    padding: 15px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}

.expertise-item:hover {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.expertise-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 15px;
    transition: var(--transition-fast);
}

.expertise-item:hover .expertise-icon {
    background-color: var(--primary-color);
    color: #fff;
}

.expertise-info h5 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.expertise-info p {
    font-size: 0.8rem;
    margin-bottom: 0;
    opacity: 0.7;
}

/* Responsive adjustments for expertise section */
@media (max-width: 767px) {
    .expertise-section {
        padding: 60px 0;
    }
    
    .expertise-items {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        padding: 20px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.2rem;
        margin-right: 15px;
    }
}

/* Mega Menu Styles - Centered */
.mega-menu {
    width: 900px;
    max-width: 90vw;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.nav-item.dropdown {
    position: static;
}

.navbar .container {
    position: relative;
}

.dropdown-header.text-primary {
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.mega-menu .dropdown-item {
    color: var(--dark-color);
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    transition: all 0.2s ease;
    text-align: left;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(5px);
    border-radius: var(--border-radius-md);
}

@media (max-width: 991px) {
    .mega-menu {
        width: 100%;
        max-width: 100%;
        transform: none;
        left: 0;
    }
    
    .mega-menu .row > div {
        margin-bottom: 15px;
    }
}

@media (max-width: 991px) {
    .navbar .dropdown-menu.mega-menu {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: static;
        width: 100%;
        border: none;
        box-shadow: none;
        padding-bottom: 15px;
    }
    
    .navbar-collapse {
        max-height: 75vh;
        overflow-y: auto;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .mega-menu .row {
        margin-right: 0;
        margin-left: 0;
    }
    
    .mega-menu .col-md-6 {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
