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

/* --- KEYFRAMES FOR ANIMATIONS --- */
@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9) skew(-12deg); }
    to { opacity: 1; transform: scale(1) skew(-12deg); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2), 0 0 10px rgba(212, 175, 55, 0.2), 0 4px 15px rgba(255,255,255,0.2); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 0 30px rgba(212, 175, 55, 0.5), 0 4px 15px rgba(255,255,255,0.2); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2), 0 0 10px rgba(212, 175, 55, 0.2), 0 4px 15px rgba(255,255,255,0.2); }
}

@keyframes slideGallerySeamless {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 3 - 6rem)); }
}

@keyframes slow-pan {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 0% 50%; }
    100% { background-position: 0% 0%; }
}

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


/* --- BASE STYLES --- */
body {
    font-family: 'Microsoft JhengHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #0a0a0a 50%, #1a1a1a 75%, #000000 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- HEADER & NAVIGATION --- */
header {
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
    background: linear-gradient(135deg, #D4AF37, #B8941F);
}

.company-logo-svg {
  height: 24px;
  width: auto;
  vertical-align: middle;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #D4AF37;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #D4AF37;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid #333;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-nav-content { padding: 20px; }
.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #333;
    transition: color 0.3s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: #D4AF37; }


/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(26,26,26,0.7), rgba(0,0,0,0.9));
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    padding-left: 50px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(26, 26, 26, 0.8) 0%, transparent 50%);
    z-index: 0;
    animation: slow-pan 60s linear infinite; /* Subtle background movement */
}

.hero-content {
    position: relative;
    z-index: 1;
    width: auto;
    text-align: left;
    max-width: 600px;
}

.hero .container { max-width: none; margin: 0; padding: 0; }
.hero-left { text-align: left; padding: 0; margin: 0; }

.speedl-logo {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #D4AF37;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-family: 'Arial Black', Arial, sans-serif;
    transform: skew(-12deg);
}

.hero-left .tagline {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.hero-left .subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: #cccccc;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    animation: glow 1.5s infinite ease-in-out;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}


/* --- GENERAL SECTION STYLES --- */
.section {
    padding: 80px 0;
    background-color: #000000;
    overflow: hidden; /* Prevent scrollbars from animations */
}

.section:nth-child(even) {
    background-color: #0a0a0a;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    font-weight: bold;
}


/* --- STATS SECTION --- */
.stats { background: #0a0a0a; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid #333;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #D4AF37;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: #cccccc;
}

.stat-desc.highlight {
    color: #ff6b6b;
    font-weight: bold;
}


/* --- SOLUTION SECTION --- */
.solution-main { background: #000000; padding: 100px 0; }
.main-demo { max-width: 1000px; margin: 0 auto; text-align: center; }
.demo-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 3rem;
}

.demo-left, .demo-right { flex: 1; }
.demo-left h3, .demo-right h3 {
    background: #D4AF37;
    color: #000000;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 12px;
    height: 200px;
    align-items: center;
    border: 1px solid #333;
}

.file-icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-weight: bold; font-size: 0.7rem;
    margin: 0 auto; position: relative; color: white;
}
.file-icon::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 12px; height: 12px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.file-icon.pdf { background: #8B1538; }
.file-icon.excel { background: #0F5F3C; }
.file-icon.png { background: #1F4E79; }
.file-icon.txt { background: #4A2C7A; }

.arrow {
    font-size: 3rem;
    color: #D4AF37;
    font-weight: bold;
    align-self: center;
    margin-top: 80px;
}

.game-preview {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 0;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-image: url('../images/game-preview.png');
    background-size: cover;
    background-position: center;
    border: 1px solid #333;
    overflow: hidden;
}
.game-preview::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    z-index: 1;
}
.game-preview:hover {
    transform: scale(1.02);
    border-color: #D4AF37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}
.game-screen { display: none; }
.play-button {
    background: rgba(212, 175, 55, 0.9);
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    margin: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
.play-button:hover {
    background: #D4AF37;
    transform: translateY(-2px);
}
.main-tagline {
    text-align: center;
    font-size: 2rem;
    margin-top: 2rem;
    color: #D4AF37;
    font-weight: bold;
}


/* --- STEPS SECTION --- */
.step-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.step-nav-btn {
    background: #1a1a1a;
    border: 2px solid #333;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 140px;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 500;
}
.step-nav-btn:hover { border-color: #D4AF37; }
.step-nav-btn.active {
    background: #D4AF37;
    color: #000000;
    border-color: #D4AF37;
}
.step-number {
    width: 30px; height: 30px;
    background: #333; color: #ffffff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 14px;
}
.step-nav-btn.active .step-number { background: #000000; color: #D4AF37; }
.step-detail-container {
    max-width: 1000px; margin: 0 auto;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid #333;
}
.step-detail { display: none; }
.step-detail.active {
    display: block;
    animation: stepFadeIn 0.5s ease-out;
}
.step-detail-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}
.step-detail-left, .step-detail-right { flex: 1; min-width: 300px; }
.step-demo-image {
    background: #333;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    width: 100%;
}
.step-demo-image img { max-width: 100%; height: auto; border-radius: 8px; }
.step-detail-right h3 { font-size: 1.8rem; margin-bottom: 2rem; color: #ffffff; }
.feature-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item {
    display: flex; gap: 1rem; padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
}
.feature-number {
    background: #D4AF37; color: #000000;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 14px;
    flex-shrink: 0;
}
.feature-item h4 { color: #ffffff; margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-item p { color: #cccccc; font-size: 0.95rem; line-height: 1.4; }


/* --- COMPARISON SECTION --- */
.comparison {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}
.comparison::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    z-index: 0;
}
.comparison .container { position: relative; z-index: 1; }
.comparison-subtitle { text-align: center; font-size: 1.5rem; color: #D4AF37; margin-bottom: 1rem; font-weight: 600; }
.comparison-context { text-align: center; font-size: 1.2rem; color: #cccccc; margin-bottom: 3rem; }
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.comparison-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.comparison-item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #D4AF37, #B8941F);
}
.comparison-item:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}
.comparison-item h3 { font-size: 1.3rem; color: #ffffff; margin-bottom: 1rem; font-weight: 600; }
.comparison-stat { font-size: 2.5rem; font-weight: bold; color: #D4AF37; margin-bottom: 1rem; text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
.comparison-detail { font-size: 1.1rem; color: #cccccc; font-weight: 500; }


/* --- GAME SHOWCASE SECTION --- */
.game-showcase {
    background: #000000;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}
.game-showcase::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    z-index: 0;
}
.game-showcase .container { position: relative; z-index: 1; }
.showcase-header { text-align: center; margin-bottom: 4rem; }
.showcase-hint {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}
.showcase-hint:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}
.showcase-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}
.showcase-title span:first-child { display: block; }
.showcase-title span:last-child {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.game-gallery-container {
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
    width: 66.6vw;
    margin-left: auto;
    margin-right: auto;
    perspective: 1500px; /* For 3D tilt effect */
}
.game-gallery-container::before, .game-gallery-container::after {
    content: ''; position: absolute; top: 0; bottom: 0;
    width: 80px; z-index: 10; pointer-events: none;
}
.game-gallery-container::before { left: 0; background: linear-gradient(90deg, #000000 0%, transparent 100%); }
.game-gallery-container::after { right: 0; background: linear-gradient(-90deg, #000000 0%, transparent 100%); }
.game-gallery {
    display: flex;
    gap: 2rem;
    animation: slideGallerySeamless 15s linear infinite;
    width: fit-content;
}
.game-gallery:hover { animation-play-state: paused; }
.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    width: 350px;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #1a1a1a;
    border: 1px solid #333;
    flex-shrink: 0;
    transform-style: preserve-3d; /* For 3D tilt */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.game-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
}
.game-card:hover::before { opacity: 0.5; }
.game-card:hover {
    border-color: #D4AF37;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
    /* transform is now handled by JS for tilt effect */
}
.game-image {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}
.game-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.game-card:hover .game-image img { transform: scale(1.1); }
.game-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 3;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
.game-card:hover .game-overlay { transform: translateY(0); opacity: 1; }
.game-overlay h3 { color: #ffffff; font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; }
.game-overlay p { color: #cccccc; font-size: 0.95rem; line-height: 1.4; }


/* --- TEAM SECTION --- */
.team { background: #0a0a0a; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.team-member {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid #333;
}
.team-member:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
}
.member-photo {
    width: 160px; height: 160px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-size: cover;
    background-position: center;
    border: 3px solid #D4AF37;
    background-color: #333;
}
.member-photo.wang { background-image: url('../images/wang-photo.png'); }
.member-photo.guo { background-image: url('../images/kuo-photo.png'); }
.member-photo.weng { background-image: url('../images/weng-photo.png'); }
.member-name { font-size: 1.3rem; font-weight: bold; margin-bottom: 0.5rem; color: #D4AF37; }
.member-title { color: #cccccc; margin-bottom: 1rem; font-weight: 600; }
.member-description { color: #ffffff; font-size: 0.9rem; line-height: 1.5; }


/* --- CONTACT & FOOTER --- */
.contact {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: white;
    text-align: center;
}
.contact .section-title { color: white; }
.contact-info {
    background: rgba(212, 175, 55, 0.1);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    margin: 2rem auto;
    backdrop-filter: blur(10px);
    border: 1px solid #D4AF37;
}
.contact-item { margin: 1rem 0; font-size: 1.1rem; }
.contact-item a { color: #D4AF37; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
}
footer .footer-nav { margin-bottom: 1rem; }
footer .footer-nav a { color: #cccccc; text-decoration: none; margin: 0 10px; transition: color 0.3s; }
footer .footer-nav a:hover { color: #D4AF37; }
footer .copyright { font-size: 0.9rem; color: #888; }


/* --- LANGUAGE SELECTOR --- */
.language-selector { position: relative; display: inline-block; }
.lang-trigger {
    background: rgba(26,26,26,0.95);
    border: 1px solid #D4AF37;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    min-width: 45px;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
    color: #D4AF37;
    font-weight: 500;
}
.lang-trigger:hover {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}
.lang-dropdown {
    position: absolute; top: 100%; right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
    margin-top: 4px;
    min-width: 120px;
}
.lang-option {
    padding: 8px 12px; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; transition: background 0.2s; color: #ffffff;
}
.lang-option:hover { background: #2a2a2a; }
.lang-option.active { background: rgba(212, 175, 55, 0.2); color: #D4AF37; font-weight: 600; }


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .game-gallery-container { width: 75vw; }
    .game-gallery-container::before, .game-gallery-container::after { width: 60px; }
}

@media (max-width: 968px) {
    .step-detail-content { flex-direction: column; gap: 2rem; }
    .step-detail-container { padding: 2rem; }
    .comparison-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none !important; }
    .hamburger { display: flex !important; }
    nav { padding: 0.5rem 0; }
    .logo { width: 32px; height: 32px; font-size: 1rem; }
    .mobile-nav .language-selector { margin-top: 10px; padding-top: 10px; border-top: 1px solid #333; }
    .mobile-nav .lang-trigger { width: 100%; text-align: left; min-width: auto; }
    .speedl-logo { font-size: 3rem; }
    .hero-left .tagline { font-size: 1.5rem; }
    .hero-left .subtitle { font-size: 1.2rem; }
    .demo-content { flex-direction: column; gap: 2rem; align-items: center; justify-content: center; }
    .demo-left, .demo-right { width: 100%; max-width: 350px; }
    .arrow { transform: rotate(90deg); margin-top: 0; align-self: center; }
    .main-tagline { font-size: 1.5rem; }
    .section-title { font-size: 2rem; }
    .cta-buttons { flex-direction: column; align-items: flex-start; }
    .btn { width: 100%; max-width: 300px; }
    .step-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .step-nav-btn { min-width: auto; padding: 0.8rem 1rem; font-size: 0.9rem; }
    .step-detail-right h3 { font-size: 1.5rem; }
    .feature-item { padding: 0.8rem; }
    .hero { padding-left: 20px; padding-right: 20px; text-align: center; }
    .hero-content { max-width: 100%; }
    .game-showcase { padding: 80px 0; }
    .showcase-title { font-size: 2.5rem; }
    .game-gallery-container { width: 90vw; }
    .game-gallery-container::before, .game-gallery-container::after { width: 30px; }
    .game-card { width: 280px; }
    @keyframes slideGallerySeamless {
        100% { transform: translateX(calc(-280px * 3 - 4.5rem)); }
    }
    .game-overlay { padding: 1.5rem; }
}


/* --- ANIMATION & REFINEMENT CLASSES --- */
/* Scroll Animation System */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none !important;
}
.animate-on-scroll.slide-in-left { transform: translateX(-40px); }
.animate-on-scroll.slide-in-right { transform: translateX(40px); }
.animate-on-scroll.fade-in-up { transform: translateY(40px); }

/* Hero Section Sequence Animation */
.hero-content .speedl-logo,
.hero-content .tagline,
.hero-content .subtitle,
.hero-content .cta-buttons {
    opacity: 0;
    animation-fill-mode: forwards;
}
.hero-content .speedl-logo { animation: scaleIn 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.hero-content .tagline { animation: fadeInUp 0.8s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.hero-content .subtitle { animation: fadeInUp 0.8s 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.hero-content .cta-buttons { animation: fadeInUp 0.8s 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }


/* --- ABOUT US PAGE STYLES --- */
.about-hero {
    padding: 120px 0 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(26, 26, 26, 0.9)), radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 40%);
    border-bottom: 1px solid #333;
}
.about-title { font-size: 3.5rem; color: #ffffff; font-weight: 700; margin-bottom: 1rem; }
.about-subtitle { font-size: 1.5rem; color: #D4AF37; max-width: 700px; margin: 0 auto; opacity: 0.9; }
.story-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 2rem auto 0;
}
.story-image { flex-basis: 40%; text-align: center; }
.story-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #444;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}
.story-content { flex-basis: 60%; }
.story-content h3 { font-size: 2rem; margin-bottom: 1.5rem; color: #D4AF37; }
.story-content p { font-size: 1.1rem; line-height: 1.8; color: #cccccc; margin-bottom: 1.5rem; }
.story-content p:last-child { margin-bottom: 0; }
.cta-center { text-align: center; margin-top: 3rem; }
.text-link {
    color: #D4AF37;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
}
.text-link:hover { color: #ffffff; }

/* Responsive for About Page */
@media (max-width: 968px) {
    .story-container { flex-direction: column; gap: 2.5rem; }
    .story-image { flex-basis: 100%; max-width: 500px; }
    .story-content { flex-basis: 100%; text-align: center; }
}
@media (max-width: 768px) {
    .about-title { font-size: 2.5rem; }
    .about-subtitle { font-size: 1.2rem; }
    .story-content h3 { font-size: 1.5rem; }
    .story-content p { font-size: 1rem; }
}
