/* Design 2025 - Avant-Garde / Tech / Black / Beige / Orange */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;700&family=Inter:wght@300;400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Color Palette */
    --black: #0a0a0a;
    --black-soft: #141414;
    --beige: #f4f1ea;
    --beige-dark: #e6e2d8;
    --accent: #ff4d00; /* Vibrant Orange */
    --accent-hover: #e04400;
    --white: #ffffff;
    --text-on-dark: #f4f1ea;
    --text-on-light: #111111;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Noto Serif TC', serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing & Layout */
    --container-width: 1400px;
    --section-spacing: 120px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--black);
    color: var(--beige);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility Classes */
.bg-black { background-color: var(--black); color: var(--text-on-dark); }
.bg-beige { background-color: var(--beige); color: var(--text-on-light); }
.text-accent { color: var(--accent); }
.font-mono { font-family: var(--font-mono); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--beige);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--black);
}

/* Navigation - Avant-Garde Style */
nav, .navbar {
    background: transparent !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: none !important;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    max-width: 100%;
}

.logo {
    font-family: var(--font-mono) !important;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -1px;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    filter: invert(1);
    height: 30px !important;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-links a .en {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.nav-links a .zh {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover .en, 
.nav-links a:hover .zh,
.nav-links a.active .en,
.nav-links a.active .zh {
    color: var(--accent) !important;
}

.nav-cta {
    background: transparent !important;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    padding: 8px 20px;
    border-radius: 0 !important;
    transition: all 0.3s ease;
}

.nav-cta .en {
    color: var(--accent) !important;
}

.nav-cta:hover {
    background: var(--accent) !important;
    color: var(--white) !important;
}

.nav-cta:hover .en, 
.nav-cta:hover .zh {
    color: var(--white) !important;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--white);
    color: var(--black);
}

body.day-mode .theme-toggle {
    border-color: rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Button */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin-left: auto;
    margin-right: -10px;
}

.mobile-menu span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--white) !important;
    transition: all 0.3s ease;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
    width: 100%;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.mobile-nav .en {
    font-size: 1.5rem;
    color: var(--white);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.mobile-nav .zh {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-sans);
}

/* Hero Section - Avant-Garde */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    padding-left: 20px;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 24px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 77, 0, 0.3);
    background: rgba(255, 77, 0, 0.1);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    margin-bottom: 32px;
    color: var(--white);
    letter-spacing: -2px;
}

.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    display: block;
    margin-top: 10px;
}

.hero-desc {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin-bottom: 48px;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
}

/* Hero Visual - Cyberpunk Frame */
.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(1.2) brightness(0.8);
    transition: all 0.5s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.hero-image-container:hover img {
    filter: grayscale(0%) contrast(1.1) brightness(1);
    transform: scale(1.02);
}

.hero-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    z-index: 1;
    opacity: 0.5;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

/* Marquee - Tech Style */
.marquee-strip {
    background-color: var(--black-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--beige);
    padding: 20px 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Services - Dark Mode */
.services-wrapper {
    background-color: var(--black);
    padding: var(--section-spacing) 0;
}

.section-title {
    color: var(--white);
}

.service-item-modern {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item-modern:hover {
    border-left-color: var(--accent);
    background: linear-gradient(90deg, rgba(255, 77, 0, 0.05) 0%, transparent 100%);
}

.service-item-modern h3 {
    color: var(--white);
    font-size: 1.5rem;
}

.service-item-modern p {
    color: rgba(255, 255, 255, 0.5);
}

.arrow-link {
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.arrow-link:hover {
    color: var(--accent);
}

/* Split Section */
.split-content {
    background: var(--black-soft);
}

/* Testimonials */
.testimonials-modern {
    background-color: var(--black);
    position: relative;
}

.testimonials-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.testimonial-text-large {
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 300;
}

.quote-mark {
    color: var(--accent);
    opacity: 0.5;
}

.author-details h4 {
    color: var(--white);
}

/* FAQ */
.faq-modern-wrapper {
    background-color: var(--black-soft);
    color: var(--white);
}

.faq-q-modern {
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 1.1rem;
}

.faq-a-modern {
    color: rgba(255, 255, 255, 0.6);
}

.faq-item-modern {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Footer - Bilingual & 4-Col */
.footer-modern {
    background-color: var(--black);
    color: rgba(255, 255, 255, 0.7);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: invert(1);
}

.footer-logo-text h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--white);
    font-family: var(--font-mono);
}

.footer-logo-text span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-desc {
    line-height: 1.8;
}

.footer-desc .zh {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.footer-title {
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.footer-title .zh {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.footer-links a .en {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.footer-links a .zh {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.footer-links a:hover .en,
.footer-links a:hover .zh {
    color: var(--accent);
}

.contact-group {
    margin-bottom: 16px;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contact-info {
    line-height: 1.6;
}

.contact-info .zh {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        padding-left: 0;
        text-align: center;
    }
    
    .hero-desc {
        margin: 0 auto 40px;
        padding-left: 0;
        border-left: none;
        border-bottom: 2px solid var(--accent);
        padding-bottom: 20px;
    }
    
    .hero-visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-content div[style*="display: flex"] {
        justify-content: center;
    }
    
    .section-head {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }
    
    .split-section {
        grid-template-columns: 1fr;
    }

    .split-content {
        padding: 60px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   DAY MODE (Light Theme)
   ========================================= */
body.day-mode {
    --black: #f4f0e2; /* Cream Background */
    --black-soft: #e8e4d8; /* Slightly darker cream */
    --beige: #1a1a1a; /* Dark Text */
    --white: #0a0a0a; /* Dark Headings */
    --text-on-dark: #1a1a1a;
    --text-on-light: #f4f0e2;
}

body.day-mode .logo img {
    filter: none !important;
}

body.day-mode nav.scrolled {
    background: rgba(244, 240, 226, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.day-mode .nav-links a {
    color: rgba(0, 0, 0, 0.7) !important;
}

body.day-mode .nav-links a .zh {
    color: rgba(0, 0, 0, 0.5);
}

body.day-mode .hero-desc {
    color: rgba(0, 0, 0, 0.7);
}

body.day-mode .hero-image-container {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.day-mode .hero-image-container img {
    filter: grayscale(100%) contrast(1.1) brightness(1.1);
}

body.day-mode .marquee-strip {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--beige);
}

body.day-mode .service-item-modern {
    border-left-color: rgba(0, 0, 0, 0.1);
}

body.day-mode .service-item-modern p {
    color: rgba(0, 0, 0, 0.6);
}

body.day-mode .faq-a-modern {
    color: rgba(0, 0, 0, 0.6);
}

body.day-mode .faq-item-modern {
    border-color: rgba(0, 0, 0, 0.1);
}

body.day-mode .footer-modern {
    border-top-color: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.7);
}

body.day-mode .footer-logo-img {
    filter: none;
}

body.day-mode .footer-logo-text span,
body.day-mode .footer-desc .zh,
body.day-mode .footer-title .zh,
body.day-mode .contact-info .zh,
body.day-mode .footer-bottom {
    color: rgba(0, 0, 0, 0.5);
}

body.day-mode .footer-links a .en {
    color: rgba(0, 0, 0, 0.8);
}

body.day-mode .footer-links a .zh {
    color: rgba(0, 0, 0, 0.5);
}

body.day-mode .mobile-menu span {
    background-color: var(--beige) !important;
}

body.day-mode .mobile-nav {
    background: #f4f0e2;
}

body.day-mode .mobile-nav .en {
    color: var(--white); /* which is dark in day mode */
}

body.day-mode .mobile-nav .zh {
    color: rgba(0, 0, 0, 0.5);
}

/* =========================================
   DAY MODE - GLOBAL OVERRIDES
   ========================================= */

/* Text Colors */
body.day-mode p,
body.day-mode li,
body.day-mode span,
body.day-mode .section-intro,
body.day-mode .feature-description,
body.day-mode .service-description,
body.day-mode .stat-label,
body.day-mode .section-subtitle,
body.day-mode .portfolio-desc,
body.day-mode .feature-list li,
body.day-mode .service-benefits li,
body.day-mode .feature-item span:last-child,
body.day-mode .cta-section p,
body.day-mode .highlight-box p,
body.day-mode .plan-features li,
body.day-mode .demo-section, 
body.day-mode .demo-info small {
    color: rgba(0, 0, 0, 0.7) !important;
}

body.day-mode .feature-title,
body.day-mode .service-title,
body.day-mode .stat-number,
body.day-mode .portfolio-title,
body.day-mode h1, 
body.day-mode h2, 
body.day-mode h3, 
body.day-mode h4, 
body.day-mode h5, 
body.day-mode h6,
body.day-mode strong,
body.day-mode b,
body.day-mode .demo-info strong {
    color: var(--white) !important; /* var(--white) is dark in day mode */
}

/* Links */
body.day-mode a:not(.btn) {
    color: inherit;
}

body.day-mode .portfolio-link {
    color: rgba(0, 0, 0, 0.6);
}

body.day-mode .portfolio-link:hover {
    color: var(--accent);
}

/* Cards & Backgrounds */
body.day-mode .feature-card,
body.day-mode .service-card,
body.day-mode .stat-item,
body.day-mode .demo-section,
body.day-mode .demo-btn,
body.day-mode .plan-card,
body.day-mode .stat-card {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.day-mode .feature-card:hover,
body.day-mode .service-card:hover,
body.day-mode .plan-card:hover,
body.day-mode .demo-btn:hover {
    border-color: var(--accent) !important;
    background: rgba(255, 77, 0, 0.05) !important;
}

/* Specific Component Fixes */
body.day-mode .demo-btn {
    color: var(--white) !important; /* Dark text */
}

body.day-mode .plan-features li {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.day-mode .cta-section {
    background: linear-gradient(135deg, var(--black-soft) 0%, rgba(255, 77, 0, 0.1) 100%);
    border-color: var(--accent);
}

body.day-mode .highlight-box {
    background: rgba(255, 77, 0, 0.05);
}

body.day-mode .portfolio-media {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.1);
}

body.day-mode .read-more-trigger {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(255, 77, 0, 0.05);
}

body.day-mode .read-more-trigger:hover {
    background: var(--accent);
    color: #fff !important; /* Always white on hover button */
}

/* Buttons */
body.day-mode .btn-outline-light {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--beige); /* Dark */
}

body.day-mode .btn-outline-light:hover {
    background-color: var(--beige); /* Dark */
    color: var(--black); /* Light */
}

/* Tables (AI Service, Google Ads, Adult Ads) */
body.day-mode table,
body.day-mode table td,
body.day-mode .pricing-table td {
    color: rgba(0, 0, 0, 0.7) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

body.day-mode table th,
body.day-mode .pricing-table th {
    color: var(--white) !important; /* Dark */
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.day-mode table tr:hover td {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* Forms (Contact Page) */
body.day-mode .form_wrapper {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.day-mode .form_wrapper h2 {
    color: var(--white);
}

body.day-mode .form_wrapper p {
    color: rgba(0, 0, 0, 0.6);
}

body.day-mode .checkbox_option label {
    color: rgba(0, 0, 0, 0.7);
}

body.day-mode input[type="text"], 
body.day-mode input[type="email"], 
body.day-mode input[type="tel"],
body.day-mode select {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--white); /* Dark */
}

body.day-mode .input_field span {
    border-right-color: rgba(0, 0, 0, 0.1);
    color: var(--accent);
}

/* Telegram Service Plan Footer & Misc */
body.day-mode .plan-card div[style*="color: rgba(255,255,255,0.5)"] {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Adult Ads Info Box */
body.day-mode .info-box p {
    color: rgba(0, 0, 0, 0.8);
}
