/* UpWave Research - Modern Tech Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a4d8f;
    --secondary-color: #1e88e5;
    --accent-color: #00bcd4;
    --dark-bg: #0d1117;
    --surface-dark: #0f1624;
    --light-bg: #ffffff;
    --text-dark: #161b22;
    --text-light: #c9d1d9;
    --muted-light: #b0bec5;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #0a4d8f 0%, #1e88e5 100%);
    --gradient-wave: linear-gradient(135deg, #667eea 0%, #00bcd4 100%);
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 22, 36, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-wave);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Dropdown menu for Products (English nav) */
.nav-links li {
    position: relative;
}
.nav-links .dropdown,
.nav-links .submenu {
    list-style: none;
}
.nav-links .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(13, 17, 23, 0.98);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1001;
}
.nav-links li.has-dropdown:hover > .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.nav-links .dropdown > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-links .dropdown > li > a:hover {
    background: rgba(102, 126, 234, 0.15);
    color: var(--accent-color);
}
.nav-links .dropdown li.has-submenu {
    position: relative;
}
.nav-links .dropdown li.has-submenu > a::after {
    content: '›';
    font-size: 0.9rem;
    opacity: 0.7;
}
.nav-links .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: rgba(13, 17, 23, 0.98);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: all 0.2s ease;
    z-index: 1001;
}
.nav-links .dropdown li.has-submenu:hover > .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.nav-links .submenu a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-links .submenu a:hover {
    background: rgba(0, 188, 212, 0.15);
    color: var(--accent-color);
}

.lang-switch {
    background: var(--gradient-2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.lang-switch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 188, 212, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,50 Q300,10 600,50 T1200,50 L1200,120 L0,120 Z' fill='rgba(102,126,234,0.1)'/%3E%3C/svg%3E") repeat-x;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { background-position: 0 0; }
    100% { background-position: 1200px 0; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-gradient-text {
    background: var(--gradient-wave);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 136, 229, 0.4);
}

/* Content Sections */
.content-section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--dark-bg);
    color: var(--text-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #42a5f5 0%, #00bcd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--muted-light);
    margin-bottom: 3rem;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--surface-dark);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.25);
    color: var(--text-light);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.no-hover:hover {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(102, 126, 234, 0.25) !important;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-wave);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

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

.card p {
    color: var(--muted-light);
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-2);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-content {
    background: var(--surface-dark);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    width: calc(50% - 40px);
    position: relative;
    color: var(--text-light);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--surface-dark);
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.2);
}

#post-content,
#oculus-content {
    line-height: 1.5;
}

#post-content p,
#oculus-content p {
    margin: 0 0 1.1rem;
}

#post-content ul,
#post-content ol,
#oculus-content ul,
#oculus-content ol {
    padding-left: 1.6rem;
    margin: 0 0 1.1rem;
}

#post-content li,
#oculus-content li {
    margin-bottom: 0.4rem;
}

#post-content img,
#oculus-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}

#post-content img:hover,
#oculus-content img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.legal-section {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--surface-dark);
    color: var(--text-light);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    /* Mobile Dropdown Fixes */
    .nav-links .dropdown {
        position: static;
        width: 100%;
        min-width: unset;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Show dropdown when active class is present (toggled by JS) */
    .nav-links li.mobile-active > .dropdown {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .nav-links .submenu {
        position: static;
        width: 100%;
        min-width: unset;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        margin-top: 0.5rem;
        border: none;
        padding-left: 1.5rem;
    }

    /* Show submenu when active class is present (toggled by JS) */
    .nav-links li.mobile-active > .submenu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Disable hover effects on mobile to prevent conflicts */
    .nav-links li.has-dropdown:hover > .dropdown,
    .nav-links li.has-dropdown:focus-within > .dropdown,
    .nav-links .dropdown li.has-submenu:hover > .submenu,
    .nav-links .dropdown li.has-submenu:focus-within > .submenu {
        display: none;
    }

    /* Ensure active takes precedence */
    .nav-links li.has-dropdown.mobile-active > .dropdown,
    .nav-links li.has-submenu.mobile-active > .submenu {
        display: block !important;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Product Page Specific */
.product-header {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Oculus Page Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.tag-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: default;
    animation: float 6s ease-in-out infinite;
}

.tag-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.2);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.tag-card:nth-child(2n) {
    animation-delay: 1s;
}
.tag-card:nth-child(3n) {
    animation-delay: 2s;
}
.tag-card:nth-child(4n) {
    animation-delay: 3s;
}
