/* CSS for Scheme A (Dark Theme) */

:root {
    --bg-main: #0b0f19;
    --bg-surface: #151b2b;
    --primary: #8b5cf6;
    --primary-hover: #a855f7;
    --secondary: #f59e0b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(21, 27, 43, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom cursor */
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    transition: opacity 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s;
    will-change: width, height, transform;
}

body.cursor-hover .cursor-outline {
    width: 80px;
    height: 80px;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.8);
    backdrop-filter: blur(4px);
}

body.cursor-hover .cursor-dot {
    opacity: 0;
}

/* Cinematic Loader */
.loader {
    position: fixed;
    inset: 0;
    background: #030712;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader.hide {
    animation: wipeUp 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes wipeUp {
    0% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

.loader-inner {
    text-align: center;
}

.loader-logo-container {
    margin-bottom: 16px;
}

.loader-logo {
    height: 80px;
    object-fit: contain;
    animation: logoPulse 2s ease-in-out infinite alternate;
    /* A subtle initial glow, enhanced in keyframes */
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

@keyframes logoPulse {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(139, 92, 246, 1)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); }
}

.loader-text {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0.1) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 2s linear infinite, expandText 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

@keyframes expandText {
    0% { letter-spacing: 0.05em; opacity: 0; filter: blur(8px); }
    100% { letter-spacing: 0.2em; opacity: 1; filter: blur(0); }
}

.loader-progress {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    display: inline-block;
    min-width: 250px;
}

.loader-bar-bg {
    width: 300px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loader-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
    transition: width 0.1s linear;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-padding {
    padding: 180px 0;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
}

.text-center {
    text-align: center;
}
.text-center .section-desc {
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 48px;
    background: rgba(11, 15, 25, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 16px;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    transition: transform 0.1s ease-out; /* For smooth JS parallax */
    will-change: transform;
    transform: scale(1.1); /* Provide padding for massive parallax */
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('../assets/hero_starry_bg.png') center/cover no-repeat;
    animation: bgPanZoom 15s ease-in-out infinite alternate;
}

@keyframes bgPanZoom {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(-3%, -2%); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-main) 100%);
}

#stars-container {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.4);
    opacity: 0;
    animation: twinkle linear infinite;
    will-change: transform;
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #1e1b4b;
    bottom: -100px;
    left: -200px;
    animation: float 25s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    opacity: 0.2;
    top: 40%;
    left: 40%;
    animation: float 15s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.badge {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
    position: relative;
    padding-left: 48px;
    display: inline-block;
}

.badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 32px;
    height: 1px;
    background: var(--primary);
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 64px;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-unit {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Vision Section */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.vision-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, border-color 0.3s ease;
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
}

.vision-card:hover {
    /* The hover effect is now mainly handled by JS for 3D tilt */
    border-color: var(--primary);
}

.vision-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.vision-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.vision-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Core Modules Section */
.module-feature {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-top: 80px;
}

.module-feature.reverse {
    flex-direction: row-reverse;
}

.module-text {
    flex: 1;
}

.module-text .tag {
    color: var(--primary-hover);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.module-text h3 {
    font-size: 32px;
    margin-bottom: 24px;
}

.module-text p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-primary);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%238b5cf6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat center center;
}

.module-visual {
    flex: 1;
    height: 400px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.module-visual::before {
    content: '';
    position: absolute;
    inset: -10%;
    animation: bgFloat 20s ease-in-out infinite alternate;
    z-index: -1;
}

.visual-1::before { background: url('../assets/module_competition.png') center/cover no-repeat; }
.visual-2::before { background: url('../assets/module_industry.png') center/cover no-repeat; }
.visual-3::before { background: url('../assets/module_office.png') center/cover no-repeat; }
.visual-4::before { background: url('../assets/module_community.png') center/cover no-repeat; }

@keyframes bgFloat {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.1) translateY(-4%); }
}

.glass-panel {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract UI elements for visual appeal */
.abstract-ui {
    width: 60%;
    height: 60%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ui-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.ui-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.5;
    margin-top: 24px;
}

.ui-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    height: 100%;
}

.ui-grid span {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ui-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100%;
    padding-top: 40px;
}

.ui-chart .bar {
    flex: 1;
    background: linear-gradient(to top, rgba(139, 92, 246, 0.2), var(--primary));
    border-radius: 4px 4px 0 0;
}

/* Gallery Banner */
.gallery-banner {
    margin: 120px 48px;
    padding: 100px 0;
    border-radius: 32px;
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.gallery-banner::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: url('../assets/virtual_gallery.png') center/cover no-repeat;
    animation: bgPanZoom 25s ease-in-out infinite alternate-reverse;
    z-index: -2;
}

.gallery-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 15, 25, 0.9), rgba(21, 27, 43, 0.6));
    z-index: -1;
    border-radius: 32px;
}

.gallery-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    box-shadow: inset 0 0 100px rgba(139, 92, 246, 0.3);
    pointer-events: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background: var(--bg-surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand .logo-mark {
    margin-bottom: 16px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    color: var(--text-secondary);
    font-size: 14px;
}

.back-to-home a {
    color: var(--primary);
    text-decoration: none;
}
.back-to-home a:hover {
    text-decoration: underline;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none !important; }
    .vision-grid { grid-template-columns: repeat(2, 1fr); }
    .module-feature, .module-feature.reverse { flex-direction: column; gap: 40px; }
    .module-visual { width: 100%; height: 300px; }
}

@media (max-width: 768px) {
    .navbar { padding: 16px 20px; }
    .navbar.scrolled { padding: 12px 20px; }
    .logo span { font-size: 1rem; }
    .nav-links, .nav-actions { display: none; } /* Hide nav on mobile for demo purposes */
    
    .hero { 
        height: auto; 
        min-height: 100vh; 
        padding-top: 140px; 
        padding-bottom: 80px; 
        align-items: flex-start; 
    }
    .hero-title { font-size: 40px; margin-bottom: 20px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 32px; }
    .hero-ctas { flex-direction: column; gap: 16px; width: 100%; }
    .btn-large { width: 100%; text-align: center; }
    
    .stats-row { flex-direction: column; gap: 32px; margin-top: 60px; }
    
    .section-padding { padding: 100px 0; }
    .section-title { font-size: 32px; }
    .section-desc { font-size: 16px; }
    
    .vision-grid { grid-template-columns: 1fr; gap: 24px; }
    
    .module-text h3 { font-size: 28px; }
    .module-visual { height: 250px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .container { padding: 0 24px; }
    .gallery-banner { margin: 60px 24px; padding: 40px 24px; }
}
