body {
    background-color: #f4f7fa;
    color: #333;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* Contact Header Enhanced */
.contact-header {
    background: linear-gradient(135deg, #001f3f 0%, #004a99 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(45deg, rgba(0, 86, 179, 0.1) 0%, transparent 100%);
    background-size: 30px 30px, 100% 100%;
    z-index: 1;
}

.contact-header .container {
    position: relative;
    z-index: 2;
}

.contact-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.contact-header p {
    font-size: 1.4rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

.header-decoration {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.header-decoration span {
    width: 50px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.header-decoration span:nth-child(2) {
    width: 80px;
    background: #3699ff;
}

/* Company Info Cards */
.company-info-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0056b3, #00a0e9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.info-card:hover::after {
    transform: scaleX(1);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #0056b3;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    background: #0056b3;
    color: white;
    transform: rotateY(180deg);
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.info-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.info-label {
    display: inline-block;
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Animations */
.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.animate-right {
    animation: fadeInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(30px);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

@keyframes fadeInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .company-info-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .info-card {
        padding: 24px 18px;
    }
    
    .info-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        margin-bottom: 18px;
    }
    
    .info-card h3 {
        font-size: 1.05rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .contact-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 420px) {
    .company-info-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Section Title with tech underline */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    color: #0056b3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(0, 86, 179, 0.08);
    padding: 4px 16px;
    border-radius: 4px;
    text-transform: uppercase;
}

.section-title {
    font-size: 32px;
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #00a0e9);
    border-radius: 2px;
}

/* Custom Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 825px; /* Reduced by 25% (1100 * 0.75) */
    margin: 0 auto;
}

.contact-item {
    height: 100%;
    min-width: 0;
}

/* Vertical Card Layout */
.contact-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px; /* Reduced padding (40 * 0.75) */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #00a0e9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.contact-card:hover::before {
    opacity: 1;
}

.contact-avatar {
    width: 75px; /* Reduced by 25% */
    height: 75px; /* Reduced by 25% */
    border-radius: 50%;
    background: linear-gradient(135deg, #e1f0ff 0%, #f0f7ff 100%);
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem; /* Reduced by 25% (2.5 * 0.75) */
    margin-bottom: 20px; /* Reduced by 25% */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
    border: 3px solid white;
}

.contact-name {
    font-size: 1.125rem; /* Reduced by 25% (1.5 * 0.75) */
    font-weight: 700;
    margin-bottom: 6px; /* Reduced by 25% */
    color: #1a1a1a;
}

.contact-position {
    color: #0056b3;
    font-size: 0.75rem; /* Reduced by 25% (1 * 0.75) */
    margin-bottom: 20px; /* Reduced by 25% */
    font-weight: 600;
    background: rgba(0, 86, 179, 0.05);
    padding: 3px 11px; /* Reduced by 25% */
    border-radius: 20px;
}

.contact-info-list {
    width: 100%;
    margin-bottom: 22px; /* Reduced by 25% */
    text-align: left;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 11px; /* Reduced by 25% */
    color: #555;
    font-size: 0.8rem; /* Reduced by ~25% (1.05 * 0.75) */
    transition: color 0.3s ease;
}

.contact-info-item:hover {
    color: #0056b3;
}

.contact-info-item i {
    width: 24px; /* Reduced by 25% */
    height: 24px; /* Reduced by 25% */
    background: #f0f7ff;
    border-radius: 6px; /* Reduced by 25% */
    color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 11px; /* Reduced by 25% */
    font-size: 0.675rem; /* Reduced by 25% (0.9 * 0.75) */
}

.qr-code-container {
    margin-top: auto;
    padding-top: 18px; /* Reduced by 25% */
    border-top: 1px solid #f0f0f0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: zoom-in;
}

.qr-code-img {
    width: 98px; /* Reduced by 25% (130 * 0.75) */
    height: 98px; /* Reduced by 25% */
    object-fit: contain;
    border: 1px solid #eee;
    padding: 6px; /* Reduced by 25% */
    border-radius: 9px; /* Reduced by 25% */
    margin-bottom: 9px; /* Reduced by 25% */
    transition: all 0.3s ease;
    background: white;
}

.qr-code-container:hover .qr-code-img {
    transform: scale(1.08);
    border-color: #0056b3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.qr-code-label {
    font-size: 0.675rem; /* Reduced by 25% (0.9 * 0.75) */
    color: #888;
    font-weight: 500;
}

.qr-code-label i {
    margin-right: 4px; /* Reduced by 25% */
    color: #0056b3;
}

/* Lightbox/Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

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