/* Reset and Base Styles */
:root {
    --primary-red: #8B0000; /* Deep Red */
    --primary-gold: #C5A059; /* Muted Gold */
    --bright-gold: #FFD700; /* Bright Gold for highlights */
    --ink-black: #1A1A1A;
    --paper-white: #F4F1E8; /* Xuan paper color */
    --text-dark: #2c2c2c;
    --text-light: #f4f1e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    background-color: var(--paper-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
}

.main-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 8rem;
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(197, 160, 89, 0.6);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-red);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--ink-black);
    color: var(--text-light);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100vw;  /* Force width to viewport width */
    height: 100vh; /* Force height to viewport height */
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Crucial for mobile portrait mode */
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--paper-white) !important;
    color: var(--text-dark);
    padding: 30px;
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    width: 90%; 
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
    animation: slideUp 0.3s;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 5px;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-red);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}

@keyframes slideUp {
    from {transform: translateY(50px); opacity: 0;} 
    to {transform: translateY(0); opacity: 1;}
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
}

.sub-title-primary {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
}

.sub-title-secondary {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-slogan {
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-market-cap {
    margin-top: 30px;
    font-size: 1.5rem;
    color: var(--bright-gold);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
}

.mc-number {
    transition: opacity 0.3s ease-in-out;
    display: inline-block;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-red), #a00000);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
    border: 1px solid var(--primary-red);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--bright-gold);
    color: var(--bright-gold);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.btn-secondary:hover {
    background: var(--bright-gold);
    color: #8B0000; /* Dark Red for contrast on gold */
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    text-shadow: none;
}

/* Sections General */
.section {
    padding: 80px 0;
}

/* Narrative Section */
.narrative-section {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjRjRGMUU4Ii8+Cjwvc3ZnPg=='); /* Fallback */
    background-color: var(--paper-white);
}

.narrative-text {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.narrative-text .highlight-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-top: 1rem;
}

/* Info Section */
.info-section {
    background-color: #e8e4d9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--primary-red);
    color: var(--primary-gold);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--primary-gold);
    text-align: center;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.info-card p {
    font-size: 1.5rem;
    font-weight: 700;
}

.info-card .small-text {
    font-size: 1rem;
    font-weight: 400;
}

.full-width {
    grid-column: 1 / -1;
}

/* Traffic Section */
.traffic-section {
    background-color: var(--paper-white);
}

.feature-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.feature-item .icon-seal {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Ma Shan Zheng', 'STXingkai', '华文行楷', 'Xingkai SC', 'LiSu', '隶书', 'KaiTi', '楷体', cursive; /* Calligraphy font */
    font-size: 3.5rem;
    color: var(--primary-red);
    background-color: transparent;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.1);
}

.feature-item:hover .icon-seal {
    background-color: var(--primary-red);
    color: var(--primary-gold);
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.4);
}

.feature-item h3 {
    font-size: 1.5rem;
}

.quote-box {
    border-top: 2px solid var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
    padding: 40px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    font-family: 'Ma Shan Zheng', cursive;
}

/* Community Section */
.community-section {
    background-color: var(--ink-black);
    color: var(--text-light);
}

.community-section .section-title {
    color: var(--primary-gold);
}

.community-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.comm-item {
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    width: 250px;
}

.comm-item h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.big-statement {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* Meme Power Section */
.meme-power-section {
    background: linear-gradient(to bottom, var(--paper-white), #e6ded1);
}

.power-keywords {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.power-keywords .divider {
    color: var(--primary-red);
    margin: 0 10px;
}

.power-statement {
    font-size: 2rem;
}

.power-statement .huge-text {
    font-size: 3.5rem;
    color: var(--primary-red);
    font-family: 'Ma Shan Zheng', cursive;
    margin-top: 10px;
}

/* Flap Section */
.flap-section {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.flap-section .section-title {
    color: var(--primary-gold);
}

.flap-content h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.flap-tags {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

/* Footer */
footer {
    background-color: #111;
    color: #666;
    padding: 40px 0;
}

.footer-note {
    color: var(--primary-gold);
    margin-top: 10px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-gold);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    color: var(--bright-gold);
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 5rem;
    }

    .sub-title-primary {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 280px;
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--paper-white);
    padding: 30px;
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    width: 90%; 
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
    animation: slideUp 0.3s;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 5px;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-red);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}

@keyframes slideUp {
    from {transform: translateY(50px); opacity: 0;} 
    to {transform: translateY(0); opacity: 1;}
}
