/* Reset & BaseStyles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #05050f; /* Deep dark background */
    color: #e2e8f0;
    overflow-x: hidden;
    line-height: 1.6;
}
h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

/* Background Blobs for Glassmorphism effect */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}
.blob-purple {
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: rgba(168, 85, 247, 0.4);
    animation: float 10s ease-in-out infinite;
}
.blob-blue {
    bottom: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: rgba(59, 130, 246, 0.3);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px 40px;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
}
.badge {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    margin-left: 8px;
    vertical-align: middle;
}
.nav-cta {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s;
}
.nav-cta:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    text-align: center;
}
.hero-content {
    max-width: 900px;
    z-index: 1;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #f8fafc;
}
.hero-sub {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 40px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #7e22ce 100%);
    color: white;
    border: none;
    position: relative;
    z-index: 1;
}
.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, #3b82f6, #a855f7, #3b82f6);
    z-index: -1;
    border-radius: 14px;
    background-size: 200% auto;
    opacity: 0;
    transition: 0.5s;
}
.btn-primary:hover.glow-effect::before {
    opacity: 1;
    animation: pulseGlow 2s linear infinite;
}
@keyframes pulseGlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}
.btn-secondary {
    background: rgba(30, 41, 59, 0.5);
    color: white;
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.5);
}
.hero-note {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 10px;
}

/* Glass Card Global */
.glass-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Features */
.features {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.icon-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}
.icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.icon-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #f1f5f9;
}
.feature-card p {
    color: #94a3b8;
    font-size: 1rem;
}

/* Install Steps */
.install {
    padding: 80px 20px 120px;
    max-width: 1000px;
    margin: 0 auto;
}
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.step-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px 40px;
}
.step-num {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit';
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    flex-shrink: 0;
}
.step-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
}
.step-card p {
    color: #94a3b8;
    margin: 0;
}

/* Footer */
.footer {
    padding: 20px;
    text-align: center;
}
.glass-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(15, 23, 42, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px 20px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations JS classes */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Slider Marquee */
.slider {
    width: 100%;
    margin: auto;
    position: relative;
    overflow: hidden;
}
.slider::before, .slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.slider::before {
    left: 0;
    background: linear-gradient(to right, #05050f 0%, rgba(5,5,15,0) 100%);
}
.slider::after {
    right: 0;
    background: linear-gradient(to left, #05050f 0%, rgba(5,5,15,0) 100%);
}
.slide-track {
    display: flex;
    width: calc(420px * 10); /* based on 400px width + 20px gap per image, 10 images */
    gap: 20px;
    animation: scroll 30s linear infinite;
}
.slide-track:hover {
    animation-play-state: paused;
}
.slide {
    width: 400px;
}
.slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}
.slide img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-420px * 5)); } /* move by half the track */
}

/* Language Toggles */
body.en .lang-vi { display: none !important; }
body.vi .lang-en { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .step-card { flex-direction: column; text-align: left; align-items: flex-start; gap: 10px; }
    .step-num { font-size: 2.5rem; }
}
