/*

TemplateMo 596 Electric Xtra

https://templatemo.com/tm-596-electric-xtra

*/

@charset "utf-8";

/* CSS Document */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 94, 0, 0.1);
}

nav.scrolled {
    padding: 15px 50px;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 5px 30px rgba(255, 94, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(45deg, #FF5E00, #00B2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 94, 0, 0.5);
}

@keyframes glow {
    0%, 100% { 
        filter: brightness(1);
        text-shadow: 0 0 30px rgba(255, 94, 0, 0.5);
    }
    50% { 
        filter: brightness(1.5);
        text-shadow: 0 0 40px rgba(255, 94, 0, 0.8);
    }
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

/* FIXED NAVIGATION STYLES - WORKING WITH BILINGUAL SPANS */
.nav-links a {
    text-decoration: none;
    color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a.active {
    opacity: 1;
    color: #FF5E00;
}

/* Remove problematic border hover effect */
.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: none; /* Disable this effect */
}

.nav-links a:hover::before,
.nav-links a.active::before {
    border-color: #FF5E00;
    box-shadow: inset 0 0 10px rgba(255, 94, 0, 0.5);
}

/* Fixed underline animation for bilingual spans */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF5E00, #00B2FF);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.8);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

/* Style for bilingual text spans */
.nav-links a span {
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.nav-links a:hover span,
.nav-links a.active span {
    color: #FF5E00;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 94, 0, 0.5);
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 94, 0, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 94, 0, 0.3);
    border-color: rgba(255, 94, 0, 0.8);
    transform: scale(1.05);
}

/* FIXED: Language display rules */
.lang-ja { 
    display: block; 
}
.lang-en { 
    display: none; 
}

/* FIXED: Proper body class targeting */
body.japanese .lang-ja { 
    display: block; 
}
body.japanese .lang-en { 
    display: none; 
}

body.english .lang-ja { 
    display: none; 
}
body.english .lang-en { 
    display: block; 
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #FF5E00;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Content area */
.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    flex-direction: column;
}

.main-text {
    font-size: clamp(3rem, 15vw, 8rem);
    color: rgba(255, 255, 255, 0.2);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    letter-spacing: clamp(2px, 2vw, 5px);
    user-select: none;
    margin-top: clamp(100px, 30vh, 250px);
    font-weight: 900;
    padding: 0 20px;
    word-wrap: break-word;
    line-height: 1.1;
    font-family: 'Orbitron', sans-serif;
}

/* Footer */
footer {
    width: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 94, 0, 0.2);
    padding: 6px 20px;
    text-align: center;
    border-radius: 10px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer social icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.social-icons a {
    font-size: 1.8rem;
    color: #ffffff;
    transition: 0.3s;
}

.social-icons a.facebook:hover {
    color: #1877f2;
}

.social-icons a.youtube:hover {
    color: #ff0000;
}

.social-icons a.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-text {
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 50px;
        transition: left 0.3s ease;
        gap: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        padding: 12px 20px;
        font-size: 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-text {
        font-size: 4rem;
        margin-top: 200px;
    }

    body > *:not(nav) {
        margin-top: 90px;
    }

    /* Mobile language switcher positioning - CENTER */
    .language-switcher {
        position: absolute;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .main-text {
        font-size: 2.5rem;
        margin-top: 120px;
    }

    .nav-links a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .language-switcher {
        top: 10px;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 0.65rem;
    }
}

/* Additional responsive text sizing for main text */
@media (max-width: 1024px) {
    .main-text {
        font-size: 6rem;
        margin-top: 250px;
    }
}