/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #068CD6; /* Enterprise Blue */
    --primary-dark: #0570ab; /* Darker Blue */
    --text-main: #1d1d1f;
    --text-light: #6e6e73;
    --bg-body: #ffffff;
    --bg-alt: #f5f5f7;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* --- NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    transition: var(--transition);
    /* IMPROVEMENT 1: Gradient background ensures logo visibility on light images */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 5%;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--white);
    transition: color 0.3s;
    z-index: 1002;
}

.logo img { 
    height: 40px; 
    width: auto;
    /* IMPROVEMENT 1: Drop shadow makes logo stand out against any background */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: var(--transition);
}

header.scrolled .logo img {
    /* Remove shadow when header becomes white */
    filter: none;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Stronger shadow for readability */
}

header.scrolled .nav-links a { 
    color: var(--text-main); 
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

/* Mobile Menu Button */
.menu-toggle { display: none; color: white; font-size: 1.5rem; cursor: pointer; z-index: 1003; transition: color 0.3s; } 
header.scrolled .menu-toggle,
.menu-toggle.active { color: var(--text-main); }

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* --- HERO SECTION (REDESIGNED) --- */
#hero {
    position: relative;
    height: 30vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active { opacity: 1; }

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Slightly darker overlay to ensure text pops */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    text-align: center;
}

/* IMPROVEMENT 2: REDESIGNED LOGO & TEXT SIZES */
.hero-logo-img {
    display: block;
    width: auto;
    max-width: 300px; 
    height: auto;
    margin-bottom: 30px; 
    opacity: 0;
    transform: translateY(30px);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero-sub {
    color: white;
    font-size: 2rem; 
    font-weight: 700;  /* Bold */
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(30px);
}

/* ANIMATIONS */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.slide.active .hero-logo-img { 
    animation: fadeUp 0.8s forwards 0.3s; 
}
.slide.active .hero-sub { 
    animation: fadeUp 0.8s forwards 0.5s; 
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 20;
}
.dot {
    width: 10px; height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.dot.active {
    background-color: white;
    transform: scale(1.3);
    border-color: white;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-logo-img { max-width: 90px; } /* Even smaller on mobile */
    .hero-sub { font-size: 2rem; }      /* Readable size on mobile */
}



/* --- STATS --- */
#stats { padding: 60px 5%; background: var(--white); border-bottom: 1px solid #f0f0f0; }
.stats-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.stat-item { text-align: center; flex: 1; min-width: 250px; }
.stat-number { display: block; font-size: 3rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; letter-spacing: -1px; }
.stat-title { display: block; font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; color: var(--text-main); }
.stat-desc { color: var(--text-light); font-size: 0.9rem; }

/* --- SECTIONS COMMON --- */
.section-container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 15px; font-weight: 700; }
.section-header .line { width: 50px; height: 3px; background: var(--primary); margin: 0 auto; border-radius: 2px; }

/* About */
#about { padding: 100px 5%; background-color: var(--bg-alt); }
.about-content { display: flex; align-items: center; gap: 60px; }
.about-text { flex: 1; font-size: 1.05rem; color: #444; line-height: 1.9; text-align: justify; }
.about-image { flex: 1; height: 400px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.about-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.about-image:hover img { transform: scale(1.05); }

/* Industries */
#industries { padding: 100px 5%; background: var(--white); }
.industry-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 320px; gap: 24px; }
.industry-card { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-card); }
.grid-wide { grid-column: span 8; }
.grid-narrow { grid-column: span 4; }
.grid-equal { grid-column: span 4; }

.industry-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.industry-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
    color: white; transition: var(--transition);
}
.ind-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; transform: translateY(10px); transition: transform 0.4s; }
.ind-desc { font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.9); max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s ease; }

.industry-card:hover .industry-bg { transform: scale(1.08); }
.industry-card:hover .ind-title { transform: translateY(0); }
.industry-card:hover .ind-desc { max-height: 200px; opacity: 1; margin-top: 10px; }
.industry-card:hover .industry-overlay { background: linear-gradient(to top, rgba(6,140,214,0.9) 0%, rgba(0,0,0,0.3) 100%); }

/* Services */
#services { padding: 100px 5%; background: var(--bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.service-card { 
    background: var(--white); 
    padding: 50px 30px; 
    border-radius: 16px; 
    box-shadow: var(--shadow-card); 
    transition: var(--transition); 
    text-align: center; 
    border: 1px solid transparent;
}
.service-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
    border-color: rgba(6,140,214,0.1);
}

.service-icon { 
    display: inline-block;
    font-size: 3.5rem; 
    color: var(--primary); 
    margin-bottom: 25px; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.service-card h3 { font-size: 1.25rem; margin-bottom: 15px; color: var(--text-main); }
.service-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }

/* Partners */
#partners { padding: 80px 5%; background: var(--white); }
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; align-items: center; }
.partner-logo { 
    font-size: 2.5rem; 
    color: #d1d1d1; 
    text-align: center; 
    transition: var(--transition); 
    display: flex; 
    justify-content: center; 
    cursor: default;
}
.partner-logo:hover { color: var(--primary); transform: scale(1.1); }

/* Testimonials */
#testimonials { padding: 100px 5%; background: var(--bg-alt); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--white); padding: 40px; border-radius: 16px; position: relative; box-shadow: var(--shadow-card); }
.quote-icon { font-size: 2rem; color: #f0f0f0; position: absolute; top: 30px; left: 30px; }
.review-text { font-style: italic; color: #555; margin-bottom: 25px; margin-top: 20px; position: relative; z-index: 1; font-size: 1.05rem; }
.reviewer { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.reviewer span { display: block; font-weight: 400; color: var(--text-light); font-size: 0.85rem; margin-top: 4px; }

/* Contact */
#contact { padding: 100px 5%; background: var(--white); }
.contact-wrapper { display: flex; gap: 60px; }
.contact-info { flex: 1; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.info-item i { font-size: 1.2rem; color: var(--primary); margin-right: 15px; margin-top: 4px; width: 20px; }
.info-item h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--text-main); }
.contact-form { flex: 1; background: var(--bg-alt); padding: 40px; border-radius: 16px; }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 15px; border: 1px solid #e1e1e1; background: var(--white); border-radius: 8px; font-size: 1rem; transition: var(--transition); color: var(--text-main); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6,140,214, 0.1); }
textarea.form-control { resize: vertical; height: 120px; font-family: inherit; }
.btn-submit { background: var(--primary); color: white; padding: 16px 30px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; width: 100%; transition: var(--transition); letter-spacing: 0.5px; }
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(6,140,214,0.3); }

footer { background: #111; color: #888; padding: 50px 5%; text-align: center; font-size: 0.85rem; border-top: 1px solid #222; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-wide, .grid-narrow, .grid-equal { grid-column: span 1; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: 75%;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
        transform: translateX(100%);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1001;
    }
    .nav-links.active { 
        right: 0;
        transform: translateX(0);
    }
    
    .nav-links a { 
        color: #1d1d1f !important; 
        font-size: 1.3rem;
        display: block;
        margin-bottom: 25px;
        text-shadow: none;
    }
    
    .nav-links a::after { display: none; }
    
    .menu-toggle { display: block; z-index: 1002; position: relative; }

    .hero-sub { font-size: 2rem; }
    
    .about-content { flex-direction: column; }
    .about-image { width: 100%; height: 250px; }
    
    .industry-grid { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .contact-wrapper { flex-direction: column; }
    
    #hero { height: 80vh; }
}


/* Modal Overlay (Background) */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    z-index: 9999; /* On top of everything */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Nice "Apple-like" blur effect */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Modal Content (The White Box) */
.modal-content {
    background: white;
    width: 90%;
    max-width: 1000px; /* Max width on desktop */
    height: 80vh;     /* 80% of screen height */
    border-radius: 12px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* Close Button (X) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #068CD6; /* Your Primary Blue */
}

/* The Iframe itself */
.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Active State for Animation */
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}