/* 
   399 HOLDING LIMITED - Corporate Theme 
   Aesthetic: Luxury Tech / Deep Blue & Gold
*/

/* --- Variables & Reset --- */
:root {
    --bg-color: #050a14;
    --bg-secondary: #0a1226;
    --text-primary: #ffffff;
    --text-secondary: #a0a8c0;
    --accent-gold: #cfb586;
    --accent-gold-hover: #e0cda5;
    --accent-blue: #00c3ff;

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --section-padding: 100px 0;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.highlight {
    color: var(--accent-blue);
    background: linear-gradient(90deg, var(--accent-blue), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-gold), #b89b65);
    color: #000;
    border-radius: 2px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(207, 181, 134, 0.2);
    background: linear-gradient(135deg, var(--accent-gold-hover), #c9ad79);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.subtitle {
    display: block;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 1.5rem auto 0;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 10, 20, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo img {
    height: 40px;
}

/* Nav Actions (Links + Lang Switcher) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Language Switcher */
.lang-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 12px;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-toggle:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--accent-gold);
    font-weight: 700;
}

.divider {
    color: rgba(255, 255, 255, 0.2);
}

/* Bilingual Visibility Logic */
.lang-cn {
    display: none;
}

body.zh-hk .lang-en {
    display: none;
}

body.zh-hk .lang-cn {
    display: inline;
    /* Default to inline for standard text flow */
}

/* Block level overrides for specific elements */
body.zh-hk h1.lang-cn,
body.zh-hk h2.lang-cn,
body.zh-hk h3.lang-cn,
body.zh-hk p.lang-cn,
body.zh-hk .btn.lang-cn,
body.zh-hk .subtitle.lang-cn,
body.zh-hk li.lang-cn,
body.zh-hk .stat-label.lang-cn,
body.zh-hk .stat-number.lang-cn {
    display: block;
}

body.zh-hk li.lang-cn {
    display: list-item;
}

body.zh-hk .btn.lang-cn {
    display: inline-block;
}

body.zh-hk .nav-links .lang-cn,
body.zh-hk .mobile-menu .lang-cn {
    display: block;
}


/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero_background.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1);
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 10, 20, 0.4) 0%, rgba(5, 10, 20, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding-top: 60px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Section --- */
.about-section {
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--bg-secondary);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
}

/* --- Business Section --- */
.business-section {
    background-color: #080d1a;
    /* slightly lighter than main bg */
}

.business-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.business-row.reverse {
    flex-direction: row-reverse;
    margin-bottom: 0;
}

.business-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.business-image img {
    width: 100%;
    transition: transform 0.6s ease;
}

.business-image:hover img {
    transform: scale(1.05);
}

.business-content {
    flex: 1;
}

.business-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.business-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.8rem;
    top: 4px;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--accent-gold);
    padding: 60px 0;
    color: #050a14;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-item {
    margin-bottom: 40px;
}

.info-item h4 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p,
.info-item a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-item a:hover {
    color: var(--text-primary);
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
}

/* --- Footer --- */
footer {
    background: #02050a;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-right p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* --- Mobile Menu & Responsive --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 2000;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 2rem;
    margin: 20px 0;
    color: var(--text-primary);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .business-row,
    .business-row.reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Animations --- */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

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