/* ==========================================================================
   Design System & Base Custom Variables (Default: Dark Mode)
   ========================================================================== */
:root {
    /* Color Palette - Dark Mode (Default) */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-navbar: rgba(11, 15, 25, 0.75);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #0f172a;
    
    --primary: #4facfe;
    --primary-glow: rgba(79, 172, 254, 0.35);
    --secondary: #7f00ff;
    --secondary-glow: rgba(127, 0, 255, 0.35);
    --accent: #00f2fe;
    --accent-violet: #e100ff;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(17, 24, 39, 0.65);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    
    /* Layout & Spacing */
    --navbar-height: 80px;
    --container-max-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

/* ==========================================================================
   Light Mode Variables Override
   ========================================================================== */
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-navbar: rgba(248, 250, 252, 0.85);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    --primary: #0284c7;
    --primary-glow: rgba(2, 132, 199, 0.15);
    --secondary: #6d28d9;
    --secondary-glow: rgba(109, 40, 217, 0.15);
    
    --border-color: rgba(0, 0, 0, 0.06);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

/* ==========================================================================
   Helper Classes & Layout Utilities
   ========================================================================== */
.nav-container, .hero-container, .grid-container, .footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 40px 0;
}

/* ==========================================================================
   Navigation Bar (Glassmorphic)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-badge img {
    /* Made it twice as large (was 28px/32px, now 64px) */
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Neon glow/fluorescent white shadow effect instead of background */
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 2px rgba(255, 255, 255, 1));
    transition: var(--transition-smooth);
}

.logo-badge img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 4px rgba(255, 255, 255, 1));
}

.navbar.scrolled .logo-badge img {
    /* Scale down slightly on scroll but keep it highly visible */
    height: 48px;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.85;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.lang-toggle:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

.lang-toggle i {
    font-size: 0.95rem;
}

.erp-trial-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, #4c1d95 100%) !important;
    border: none !important;
    box-shadow: 0 4px 20px var(--secondary-glow) !important;
    transition: var(--transition-smooth);
}

.erp-trial-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 24px rgba(127, 0, 255, 0.5) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--navbar-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-glow-1, .hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background-color: var(--primary);
    top: -100px;
    right: -100px;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background-color: var(--secondary);
    bottom: -100px;
    left: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--primary);
    animation: pulseGlow 2s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 172, 254, 0.5);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.hero-img-wrap {
    animation: floatImage 6s ease-in-out infinite;
}

.hero-img {
    max-width: 100%;
    transform: scale(1.02);
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: bounceIndicator 2s infinite;
    opacity: 0.6;
}

/* ==========================================================================
   Service Sections (ERP & Youth Programming)
   ========================================================================== */
.service-section {
    padding: 100px 0;
}

.service-section.alternate-bg {
    background-color: var(--bg-secondary);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.reverse-layout {
    grid-template-columns: 1fr 1fr;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.erp-icon-glow {
    background-color: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(79, 172, 254, 0.3);
    box-shadow: 0 0 15px var(--primary-glow);
}

.edu-icon-glow {
    background-color: var(--secondary-glow);
    color: var(--secondary);
    border: 1px solid rgba(127, 0, 255, 0.3);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.service-subtitle {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
}

body.light-mode .service-subtitle {
    color: var(--primary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 8px;
    margin-bottom: 16px;
}

.service-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

.feature-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 2px;
}

.border-gradient {
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent)) border-box;
}

.border-gradient-violet {
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                linear-gradient(135deg, var(--secondary), var(--accent-violet)) border-box;
}

/* ==========================================================================
   Strengths Section
   ========================================================================== */
.strengths-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
    padding: 0 24px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.strength-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.strength-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px -10px var(--primary-glow);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.cyan-text { color: var(--primary); }
.violet-text { color: var(--secondary); }
.orange-text { color: #f97316; }

.strength-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.strength-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background-color: var(--primary-glow);
    filter: blur(140px);
    border-radius: 50%;
    z-index: -1;
    bottom: -150px;
    right: -100px;
}

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

.contact-header {
    max-width: 800px;
    margin-bottom: 60px;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card-item {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.contact-card-item:hover {
    border-color: var(--primary);
    transform: translateX(6px);
}

.contact-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.3rem;
}

.contact-item-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-item-text p {
    color: var(--text-muted);
    margin-top: 4px;
}

.contact-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-backdrop {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.main-logo-badge {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 20px;
    display: inline-flex;
}

.main-logo-badge img {
    /* Made it at least twice as large (was 50px, now 110px) */
    height: 110px;
    width: auto;
    object-fit: contain;
    /* White glow/fluorescent white shadow effect instead of background */
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 3px rgba(255, 255, 255, 1));
    animation: floatImage 4s ease-in-out infinite;
}

.logo-backdrop h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.logo-backdrop p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.badge-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    margin-top: 16px;
    font-weight: 500;
    color: var(--primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.footer-logo-brand .logo-badge {
    padding: 0 !important;
}

.footer-logo-brand .logo-badge img {
    /* Made it twice as large (was 24px, now 50px) */
    height: 50px;
}

.footer-logo-brand span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-main);
}

.footer-slogan {
    max-width: 500px;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.copyright-section {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   Custom Animations
   ========================================================================== */
@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 242, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

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

/* Scroll reveal animations class */
.reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up { transform: translateY(40px); }

.reveal-active {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Card staggered reveal delay support */
.strength-card {
    transition-delay: var(--card-delay, 0s);
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .grid-container {
        gap: 32px;
    }
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--bg-secondary);
        flex-direction: column;
        gap: 24px;
        padding: 0;
        overflow: hidden;
        border-bottom: 0px solid var(--border-color);
        transition: height 0.3s ease, border-width 0.3s ease;
    }
    
    .nav-menu.open {
        height: 320px;
        padding: 32px 0;
        border-bottom-width: 1px;
    }
    
    .theme-toggle {
        margin-top: 10px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        margin: 0 auto 32px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .grid-container {
        grid-template-columns: 1fr !important;
        gap: 48px;
    }
    
    .service-info {
        order: -1;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .strength-card {
        padding: 32px 24px;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 48px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* WeChat QR Code & Glowing styles */
.wechat-qr-container {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wechat-qr-img {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    border: 3px solid var(--border-color);
    padding: 6px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
    transition: var(--transition-smooth);
}

.wechat-qr-img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

.wechat-qr-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wechat-qr-label i {
    color: #07c160;
    font-size: 0.95rem;
}

/* Accent icons support */
.hardware-icon-glow {
    background-color: var(--secondary-glow);
    color: var(--secondary);
    border: 1px solid rgba(127, 0, 255, 0.3);
    box-shadow: 0 0 15px var(--secondary-glow);
}

/* Responsive Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
