/* --- VARIABLES --- */
:root {
    --primary: #002244; /* Deep Navy */
    --secondary: #003366; /* Standard Corporate Navy */
    --accent: #d4af37; /* Metallic Gold */
    --accent-hover: #c5a028;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Specific Banner Color from Request */
    --service-banner-bg: #0B3A66; 
}

/* --- RESET & BASIC SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); cursor: pointer; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}
    
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 10px;
    transition: width 0.3s ease;
}

section:hover h2::after {
    width: 100px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }

.text-center { text-align: center; }
.text-white h1, .text-white h2, .text-white p { color: var(--white); }

.hidden { display: none !important; }

/* Fade Animation for View Switching */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HEADER & NAV --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo i { color: var(--accent); }
.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--primary);
    position: relative;
}

.nav-links a:not(.cta-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-links a:not(.cta-btn):hover::after { width: 100%; }

.cta-btn {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
    border: 2px solid var(--primary);
}

.cta-btn:hover { 
    background-color: transparent;
    color: var(--primary) !important;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 34, 68, 0.85), rgba(0, 34, 68, 0.7)),
                url('https://z-cdn-media.chatglm.cn/files/93405d38-2bb2-41ee-9a19-4d855b1b96a9.png?auth_key=1869664745-dafc95d0889a48b280e1b69f8dc44662-0-173a4ffdd1e46eb2b0e391a79ae2019f');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

@keyframes drawLine {
    0% { stroke-dashoffset: 2000; opacity: 0; }
    20% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes floatNode {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #002244 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s ease-out forwards 0.5s;
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 { color: var(--white); margin-bottom: 25px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { color: #eee; font-size: 1.3rem; margin-bottom: 40px; font-weight: 300; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 15px 40px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    border: none;
    transition: var(--transition);
}

.hero-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

.hero-btn-linkedin {
    display: inline-block;
    background-color: #0077b5;
    color: #fff;
    padding: 15px 40px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
    border: none;
    transition: var(--transition);
}

.hero-btn-linkedin:hover {
    background-color: #005885;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.3);
}

/* --- STATS BAR --- */
.stats-bar {
    background: var(--white);
    padding: 60px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
    border-top: 4px solid var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.stat-item span {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- ABOUT SECTION & 2D SLIDER --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.credentials {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.badge {
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    border-left: 3px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* SLIDER STYLES */
.about-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--secondary);
    background: #ddd;
}

.slides-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 6s ease;
}

/* Subtle zoom effect on active slide */
.slide.active img {
    transform: scale(1.1);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 34, 68, 0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    font-size: 1.1rem;
}

.nav-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* --- SERVICES SECTION --- */
.bg-light { background-color: #fff; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    background: var(--white);
    border-bottom: 3px solid var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 51, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: var(--accent);
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; }

.service-card .read-more {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
    opacity: 0.8;
}

.service-card:hover .read-more { opacity: 1; }

/* --- SERVICE DETAIL HERO BANNER --- */
.service-hero-banner {
    background-color: var(--service-banner-bg);
    width: 100vw;
    min-height: 350px;
    height: auto;
    padding-top: 60px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
}

#service-view .service-hero-banner { margin: 0; }

.banner-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 25px;
    transition: var(--transition);
}

.banner-nav-btn:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.banner-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
}

.banner-heading-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-icon { font-size: 3rem; color: var(--accent); }

.banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--white);
    margin: 0;
    line-height: 1.1;
}

.banner-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 300;
}

/* --- SERVICE DETAIL PAGE CONTENT --- */
.service-detail-content {
    margin-top: 60px;
    margin-bottom: 60px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.detail-main h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary);
}

.detail-main ul {
    list-style: none;
    margin-bottom: 20px;
}

.detail-main ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.detail-main ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 2px;
}

.detail-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid #eee;
}

.detail-sidebar h3 {
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.contact-btn {
    display: block;
    width: 100%;
    background: var(--accent);
    color: var(--primary);
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 20px;
    transition: var(--transition);
}

.contact-btn:hover { background: var(--accent-hover); }

/* --- CLIENTS --- */
.clients-section {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
    
.clients-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
    
.clients-section h2 { color: var(--white); }
.clients-section p { color: #ccc; max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }

/* --- FOOTER --- */
footer {
    background: #111;
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 5px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    display: inline-block;
}

.contact-info li {
    margin-bottom: 15px;
    color: #aaa;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-info i { color: var(--accent); margin-top: 5px; width: 20px; text-align: center;}
.contact-info strong { color: var(--white); display: block; margin-bottom: 3px; }

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

/* --- LINKEDIN CARD --- */
.linkedin-profile-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.linkedin-profile-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.partner-img-wrapper {
    flex-shrink: 0;
    position: relative;
}

.partner-img-wrapper img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.partner-img-wrapper::after {
    content: '\f0e1';
    font-family: 'Font Awesome 6 Brands';
    font-weight: 900;
    position: absolute;
    bottom: 0;
    right: 0;
    background: #0077b5;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid #111;
}

.partner-info h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.partner-info p {
    color: #bbb;
    font-size: 0.85rem;
    margin: 0 0 12px 0;
}

.linkedin-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0077b5;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.linkedin-connect-btn:hover {
    background-color: #005885;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

/* --- ANIMATION CLASSES --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
    
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-slider-container { height: 350px; box-shadow: 10px 10px 0 var(--secondary); }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; margin-top: 40px; }
    
    .banner-title { font-size: 2.5rem; }
    .banner-heading-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.4s ease-in-out;
        gap: 20px;
    }

    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .mobile-toggle { display: block; }
    .hero { text-align: center; justify-content: center; padding: 0 20px;}
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-btn, .hero-btn-linkedin { width: 100%; }
    .stats-bar { margin-top: 0; }
    
    .service-hero-banner { text-align: left; }
    .banner-title { font-size: 2.2rem; }
    
    .linkedin-profile-card {
        flex-direction: column;
        text-align: center;
    }
}
