:root {
    --bg: #020617;
    --bg-alt: #0b1120;
    --accent: #38bdf8;
    --accent-soft: #7dd3fc;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --card-bg: #020617;
    --border-soft: rgba(148, 163, 184, 0.3);
    --danger: #ef4444;
    --max-width: 1120px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
}

/* Floating Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: -60px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), #0ea5e9);
    color: #020617;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.6);
    transition: bottom 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 99;
}
.back-to-top.show {
    bottom: 20px;
    opacity: 1;
}
.back-to-top:hover {
    background: linear-gradient(135deg, #0ea5e9, var(--accent));
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.8);
}

/* Reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0b1120 0, #020617 55%, #020617 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}

/* Layout – slightly reduced global spacing */
header,
section {
    padding: 70px 20px;
}
@media (max-width: 768px) {
    header,
    section {
        padding: 50px 18px;
    }
}
.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Navigation */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: none;
    background: #ffffff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}
nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    color: #000000;
    position: relative;
}
.logo-text-main {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 18px;
    color: #000000;
}
.logo-text-sub {
    font-size: 12px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-mark {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.5);
    overflow: hidden;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: 14px;
}
.nav-links a {
    color: #000000;
    position: relative;
    padding: 4px 0;
    transition: color 0.18s ease;
}
.nav-links a:hover {
    color: #000000;
}

/* Hamburger button (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #000;
}

/* Mobile nav */
@media (max-width: 768px) {
    nav {
        padding: 10px 16px;
    }
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid rgba(148, 163, 184, 0.4);
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 16px 14px;
        gap: 10px;
        z-index: 60;
    }
    .nav-links a {
        padding: 6px 0;
    }
    .nav-links.show {
        display: flex;
    }
}

/* Hero */
header#home {
    padding-top: 90px;       /* slightly less than before */
    padding-bottom: 130px;   /* was 150px */
    background-image: url("https://www.aquarc.com/pictures/k2.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}
.hero-title {
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.05;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
    color: #000000;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.btn-primary {
    padding: 11px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000000;
    background: #ffd500;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}
.btn-secondary {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-muted);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.btn-secondary span.icon {
    font-size: 16px;
}
.hero-card {
    border-radius: 22px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.hero-glow {
    display: none;
}
.hero-right-text {
    margin-top: 12px;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
}

/* Section headings */
.section-header {
    text-align: left;
    margin-bottom: 28px; /* was 32px */
}
.section-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.section-title {
    font-size: 32px;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}
.section-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 520px;
}

/* Bonnie / About Aquarc – slightly reduced */
#bonnie {
    padding-top: 100px;    /* was 140px */
    padding-bottom: 110px; /* was 150px */
    background-image: url("https://www.aquarc.com/pictures/59.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.bonnie-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: center;
}
@media (max-width: 900px) {
    .bonnie-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
.bonnie-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.bonnie-stat-block {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    width: 100%;
    max-width: 260px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.8);
    margin-bottom: 12px;
}
.bonnie-stat-number {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.bonnie-stat-text {
    font-size: 13px;
    color: #e5e7eb;
}
.bonnie-stat-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.bonnie-stat-icons img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.bonnie-right {
    max-width: 600px;
}
.bonnie-text {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
}

/* About */
#about {
    padding: 80px 20px;
    background-image: url("https://www.aquarc.com/pictures/upup.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#about .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 36px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    #about .about-grid {
        grid-template-columns: 1fr;
    }
}
.about-card {
    border-radius: var(--radius-lg);
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}
.about-voice-title {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 12px;
}
.about-voice-text {
    color: #000000;
    font-size: 14px;
    line-height: 1.6;
}
.about-right-image {
    max-width: 100%;
    border-radius: 12px;
    display: block;
}
.about-signature {
    height: 60px;
    width: auto;
}
.about-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-social-icons img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    cursor: pointer;
}

/* SERVICES - Douyin Playbook / Your Blueprint */
#services {
    padding: 70px 20px;
    background-image: url("https://www.aquarc.com/pictures/sellinchina3.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.services-hero {
    max-width: 1000px;
    margin: 0 auto;
}
.services-title-wrapper {
    text-align: center;
    margin-bottom: 28px;
}
.services-title-main {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #000000;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.services-douyin-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.services-content-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: center;
}
@media (max-width: 800px) {
    .services-content-row {
        grid-template-columns: 1fr;
    }
}
.services-book-col {
    text-align: left;
}
.services-book-image {
    max-width: 325px;
    width: 100%;
    display: block;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.services-text-col {
    text-align: center;
}
.services-book-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
}
.services-book-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 18px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.services-playbook-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.services-playbook-btn span {
    font-size: 16px;
}
.services-playbook-btn:hover {
    background: #f5f5f5;
}

/* Our Services – slightly reduced */
#our-services {
    padding: 90px 20px;
    background-image: url("https://www.aquarc.com/pictures/k2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.services-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}
@media (max-width: 900px) {
    .services-grid-8 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .services-grid-8 {
        grid-template-columns: 1fr;
    }
}
.service-pill {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 10px;
    font-size: 13px;
    text-align: left;
    color: #000000;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

/* Programs */
#programs {
    padding: 70px 20px;
    background-image: url("https://www.aquarc.com/pictures/mid.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#programs .section-header {
    text-align: center;
    margin-bottom: 28px;
}
#programs .section-title {
    font-size: 32px;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    color: #ffffff;
}
#programs .services-grid-8 {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
#programs .service-pill {
    width: 280px;
    max-width: 100%;
    background: #0b1120;
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.7);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.85);
}

/* Program badges */
.program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.program-header > div {
    flex: 1 1 auto;
}
.badge-core-offer {
    flex: 0 0 auto;
    background: #4b5563; /* grey background */
    color: #facc15;      /* yellow text */
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Case Studies section (image background) – slightly reduced */
#portfolio {
    padding: 130px 20px;
    background-image: url("https://www.aquarc.com/pictures/k1.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.case-studies-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}
.case-study-item {
    max-width: 360px;
    text-align: center;
}
.case-study-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
.case-study-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 6px;
}
.case-study-subtitle {
    font-size: 13px;
    color: #000000;
    margin-bottom: 4px;
}

/* Contact – slightly reduced */
#contact {
    padding: 70px 20px 64px;
    background-image: url("https://www.aquarc.com/pictures/k2.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.contact-card {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-soft);
    color: #000000;
}
form {
    display: grid;
    gap: 10px;
    font-size: 13px;
}
label {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    color: #000000;
}
input,
textarea,
select {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #ffffff;
    color: #000000;
    font: inherit;
    resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.9);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
.form-note {
    font-size: 11px;
    color: #000000;
    margin-top: 4px;
}
.contact-details {
    font-size: 13px;
    color: #000000;
    display: grid;
    gap: 10px;
}
.contact-details strong {
    color: #000000;
}
.detail-item {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.8);
    color: #000000;
}

/* Social Media Icons (generic) */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
}
.social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}
.social-link::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
    opacity: 0;
}
.social-icon-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.95);
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.6);
}
.social-link.wechat:hover {
    background: linear-gradient(135deg, #07c160, #00d4aa);
}
.social-link.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #005885);
}

/* Accessibility helper */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

/* Footer */
footer {
    padding: 16px 20px 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.98);
    font-size: 11px;
    color: var(--text-muted);
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-inner a {
    color: var(--text-muted);
}

/* Popup overlay for contact form result and WeChat QR */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.popup-overlay.show {
    display: flex;
}
.popup-box {
    max-width: 320px;
    width: 90%;
    background: #0f172a;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    color: #e5e7eb;
    font-size: 14px;
}
.popup-box h3 {
    margin-bottom: 8px;
    font-size: 16px;
}
.popup-box p {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.popup-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    cursor: pointer;
}
.popup-close-btn:hover {
    border-color: rgba(56, 189, 248, 0.9);
    color: #e0f2fe;
}

/* WeChat QR popup specific styling */
.wechat-popup-box {
    max-width: 320px;
    text-align: center;
}
.wechat-popup-box p {
    margin-bottom: 16px;
}
.wechat-qr-image {
    width: 200px;
    max-width: 80%;
    height: auto;
    margin: 0 auto 14px auto;
    display: block;
}

/* Extra small‑screen tweaks */
@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 26px;
    }

    nav {
        padding: 8px 12px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .btn-primary span {
        display: none; /* optional: hide arrow on very small screens */
    }

    .contact-card {
        padding: 14px 14px 12px;
    }

    .detail-item {
        font-size: 12px;
    }
}