/* Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(1, 160, 226, 0.9) 0%, rgba(30, 60, 114, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 120px 0 80px;
    position: relative;
    min-height: 300px;
    color: white;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 160, 226, 0.4) 0%, var(--success) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Product Filter */
.product-filter .btn-group {
    gap: 10px;
}

.product-filter .btn {
    border-radius: 25px !important;
    padding: 0.5rem 1.5rem;
}

/* Product Detail Card */
.product-detail-card {
    transition: all 0.3s ease;
}

.product-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.product-specs li {
    padding: 0.25rem 0;
    color: #6c757d;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--success);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--success);
}

.timeline-year {
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
}

/* Team Cards */
.team-card {
    overflow: hidden;
}

.team-card img {
    transition: transform 0.5s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(1, 160, 226, 0.9);
    padding: 15px;
    transition: bottom 0.3s ease;
    text-align: center;
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}

/* Certificate Cards */
.certificate-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    border-color: var(--success);
    transform: translateY(-5px);
}

.certificate-icon {
    width: 80px;
    height: 80px;
    background: rgba(1, 160, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Contact Info Cards */
.contact-info-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-info-card:hover {
    border-color: var(--success);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Branch icon */
.branch-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-icon i {
    margin-left: 2px;
}

/* Project Gallery Styles */
.projects-gallery .project-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    height: 350px;
}

.projects-gallery .project-gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.projects-gallery .project-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projects-gallery .project-gallery-item:hover img {
    transform: scale(1.1);
}

.projects-gallery .project-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    color: white;
    padding: 25px 20px 20px;
    transform: translateY(0);
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.projects-gallery .project-gallery-item:hover .project-gallery-overlay {
    background: linear-gradient(to top, rgba(1, 160, 226, 0.95) 0%, rgba(1, 160, 226, 0.8) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.projects-gallery .project-gallery-overlay h5 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.projects-gallery .project-gallery-overlay p {
    margin-bottom: 5px;
    line-height: 1.4;
}

.projects-gallery .project-gallery-overlay .btn {
    margin-top: 10px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.projects-gallery .project-gallery-overlay .btn:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Project Filter */
.project-filter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.project-filter .btn-group {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-filter .filter-btn {
    border-radius: 25px !important;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    border: 2px solid var(--success);
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.project-filter .filter-btn:hover,
.project-filter .filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Project Stats */
.project-stats {
    background: linear-gradient(135deg, var(--success) 0%, #1e3c72 100%);
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Project Item Animation */
.project-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-item.hiding {
    opacity: 0;
    transform: translateY(20px);
}

/* Modal Improvements */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-body {
    padding: 2rem;
}

.btn-close {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='m.25 6.375 6-6a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 2.207 1.958 8.083a.5.5 0 0 1-.708-.708z'/%3e%3c/svg%3e") no-repeat center;
    filter: none;
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .projects-gallery .project-gallery-item {
        height: 320px;
    }
    
    .projects-gallery .project-gallery-overlay {
        min-height: 140px;
        padding: 20px 15px 15px;
    }
    
    .projects-gallery .project-gallery-overlay h5 {
        font-size: 1rem;
    }
    
    .project-filter .btn-group {
        gap: 8px;
    }
    
    .project-filter .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .page-header {
        padding: 100px 0 60px;
        min-height: 250px;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
    }
}

/* Additional mobile fixes */
@media (max-width: 576px) {
    .projects-gallery .project-gallery-item {
        height: 300px;
    }
    
    .projects-gallery .project-gallery-overlay {
        min-height: 120px;
        padding: 15px 12px 12px;
    }
    
    .projects-gallery .project-gallery-overlay h5 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .projects-gallery .project-gallery-overlay p {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .project-filter .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 80px 0 50px;
        min-height: 200px;
    }
    
    .page-header h1 {
        font-size: 2rem !important;
    }
}

/* Form Styles */
.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 0.2rem rgba(1, 160, 226, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Project Gallery */
.project-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.project-gallery-item img {
    transition: transform 0.5s ease;
}

.project-gallery-item:hover img {
    transform: scale(1.1);
}

.project-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 160, 226, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-gallery-item:hover .project-gallery-overlay {
    opacity: 1;
}

/* Solution Detail */
.solution-detail-image {
    border-radius: 10px;
    overflow: hidden;
}

.solution-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.solution-features li:last-child {
    border-bottom: none;
}

/* Value Cards */
.value-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

/* Process Steps */
.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: -1;
}

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

.process-number {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(1, 160, 226, 0.1);
    color: var(--success);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(25, 135, 84, 0.25);
}

/* Responsive */
@media (max-width: 991.98px) {
    .page-header {
        padding: 80px 0 60px;
    }

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

    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -26px;
    }
}

@media (max-width: 767.98px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .product-filter .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .map-container {
        height: 300px;
    }
}