/* === CSS Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    background: #f4f6fb;
    color: #1a1a2e;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* === Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Utility === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}
.btn-primary {
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}
.btn-outline {
    background: transparent;
    border: 2px solid #e94560;
    color: #e94560;
}
.btn-outline:hover { background: #e94560; color: #fff; }

/* === Sections === */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* === Cards === */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
    backdrop-filter: blur(10px);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* === Grids === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 25px; }

/* === Scroll Animation === */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.scroll-animate { opacity: 0; transform: translateY(40px); transition: all 0.6s ease; }
.scroll-animate.animate { opacity: 1; transform: translateY(0); }

/* === Header & Nav === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #e94560;
}
.logo svg { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 25px; }
.nav a {
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s;
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav a:hover { color: #e94560; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
    color: #1a1a2e;
}
.theme-toggle:hover { background: rgba(233, 69, 96, 0.1); }
.search-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    color: #1a1a2e;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1a1a2e;
}

/* === Hero Banner === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 20%, rgba(15, 52, 96, 0.15) 0%, transparent 50%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero h1 span {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary {
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    font-size: 1.1rem;
    padding: 15px 40px;
}
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; color: #fff; }
.hero-stat .num {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat .label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); margin-top: 5px; }

/* === Breadcrumb === */
.breadcrumb {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
}
.breadcrumb ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { color: #666; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: #ccc; }
.breadcrumb a { color: #e94560; }
.breadcrumb a:hover { text-decoration: underline; }

/* === About === */
.about { background: #fff; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text p { font-size: 1.05rem; margin-bottom: 15px; color: #444; }
.about-image { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); }
.about-image svg { width: 100%; height: auto; display: block; }

/* === Team === */
.team { background: #f4f6fb; }
.team-card { text-align: center; padding: 30px 20px; }
.team-card svg { margin: 0 auto 15px; border-radius: 50%; }
.team-card h4 { font-size: 1.2rem; margin-bottom: 5px; }
.team-card p { color: #888; font-size: 0.9rem; }

/* === Products === */
.products { background: #fff; }
.product-card { padding: 25px; }
.product-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.product-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.product-card p { color: #666; font-size: 0.95rem; }

/* === Services === */
.services { background: #f4f6fb; }
.service-card { padding: 30px; text-align: center; }
.service-card .icon { font-size: 2.8rem; margin-bottom: 15px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* === Cases === */
.cases { background: #fff; }
.case-card { padding: 0; overflow: hidden; border-radius: 20px; }
.case-card .case-body { padding: 20px; }
.case-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.case-card p { color: #888; font-size: 0.9rem; }

/* === Testimonials === */
.testimonials { background: #f4f6fb; }
.testimonial-card { padding: 30px; position: relative; }
.testimonial-card .quote { font-size: 2rem; color: #e94560; margin-bottom: 10px; }
.testimonial-card p { font-style: italic; color: #555; margin-bottom: 15px; }
.testimonial-card .author { font-weight: 600; color: #1a1a2e; }

/* === FAQ === */
.faq { background: #fff; }
.faq-item { border-bottom: 1px solid #eee; padding: 18px 0; cursor: pointer; }
.faq-question { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1.05rem; }
.faq-question .arrow { transition: transform 0.3s; font-size: 1.2rem; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding-top: 0;
    color: #555;
    font-size: 0.95rem;
}
.faq-item.open .faq-answer { max-height: 500px; padding-top: 15px; }

/* === HowTo === */
.howto { background: #f4f6fb; }
.howto-steps { max-width: 700px; margin: 0 auto; }
.howto-step { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.howto-step .step-num {
    background: #e94560;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.howto-step h4 { font-size: 1.1rem; margin-bottom: 5px; }
.howto-step p { color: #666; font-size: 0.95rem; }

/* === Contact === */
.contact { background: #fff; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-detail p { margin-bottom: 10px; font-size: 1rem; }
.contact-detail strong { color: #e94560; }
.contact-qr { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.contact-qr svg {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* === Footer === */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 30px;
}
.footer a { color: rgba(255, 255, 255, 0.7); }
.footer a:hover { color: #e94560; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 { color: #fff; margin-bottom: 15px; font-size: 1.1rem; }
.footer p { font-size: 0.9rem; line-height: 1.8; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === Back to Top === */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e94560;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-3px); }

/* === Search Overlay === */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.search-overlay.open { display: flex; }
.search-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
    background: transparent;
    color: inherit;
}
.search-box input:focus { border-color: #e94560; }
.search-box .close-btn {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    margin-bottom: 15px;
}

/* === News / Articles === */
.news { background: #f4f6fb; }
.article-card { padding: 0; overflow: hidden; border-radius: 20px; }
.article-card .article-body { padding: 20px; }
.article-card .date { font-size: 0.8rem; color: #999; margin-bottom: 8px; }
.article-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.article-card p { color: #666; font-size: 0.9rem; margin-bottom: 15px; }
.article-card .read-more {
    color: #e94560;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-block;
    border: none;
    background: none;
    padding: 0;
}

/* === Partners / Friendly Links === */
.friendly-links { background: #fff; padding: 40px 0; }
.friendly-links .links { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }
.friendly-links a {
    color: #888;
    font-size: 0.9rem;
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    transition: all 0.3s;
}
.friendly-links a:hover { border-color: #e94560; color: #e94560; }

/* === Sitemap === */
.sitemap { background: #f4f6fb; padding: 40px 0; }
.sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sitemap-grid a {
    display: block;
    padding: 5px 0;
    color: #666;
    font-size: 0.9rem;
}
.sitemap-grid a:hover { color: #e94560; }

/* === Carousel === */
.carousel { overflow: hidden; position: relative; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* === Glow Text === */
.glow-text { text-shadow: 0 0 20px rgba(233, 69, 96, 0.3); }

/* === Dark Mode Overrides === */
body.dark { background: #0f0f1a; color: #e0e0e0; }
.dark .section-subtitle { color: #aaa; }
.dark .card { background: #1a1a2e; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
.dark .header { background: rgba(15, 15, 26, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.dark .nav a { color: #ccc; }
.dark .nav a:hover { color: #e94560; }
.dark .theme-toggle { color: #e0e0e0; }
.dark .search-btn { color: #e0e0e0; }
.dark .menu-toggle { color: #e0e0e0; }
.dark .breadcrumb { background: rgba(15, 15, 26, 0.5); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.dark .breadcrumb li { color: #aaa; }
.dark .about { background: #0f0f1a; }
.dark .about-text p { color: #bbb; }
.dark .team { background: #0f0f1a; }
.dark .team-card p { color: #aaa; }
.dark .products { background: #0f0f1a; }
.dark .product-card p { color: #aaa; }
.dark .services { background: #0f0f1a; }
.dark .cases { background: #0f0f1a; }
.dark .case-card p { color: #aaa; }
.dark .testimonials { background: #0f0f1a; }
.dark .testimonial-card p { color: #bbb; }
.dark .testimonial-card .author { color: #e0e0e0; }
.dark .faq { background: #0f0f1a; }
.dark .faq-item { border-bottom: 1px solid #222; }
.dark .faq-answer { color: #aaa; }
.dark .howto { background: #0f0f1a; }
.dark .howto-step p { color: #aaa; }
.dark .contact { background: #0f0f1a; }
.dark .news { background: #0f0f1a; }
.dark .article-card p { color: #aaa; }
.dark .friendly-links { background: #0f0f1a; }
.dark .friendly-links a { border-color: #333; color: #aaa; }
.dark .sitemap { background: #0f0f1a; }
.dark .sitemap-grid a { color: #aaa; }
.dark .search-box { background: #1a1a2e; }
.dark .search-box input { border-color: #333; }
.dark .carousel-btn { background: rgba(30, 30, 50, 0.8); color: #fff; }

/* === Responsive === */
@media (max-width: 992px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    .dark .nav { background: rgba(15, 15, 26, 0.98); }
    .nav.open { display: flex; }
    .menu-toggle { display: block; }
    .about-content { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .sitemap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .section { padding: 50px 0; }
    .section-title { font-size: 1.7rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .sitemap-grid { grid-template-columns: 1fr; }
}