:root {
    --primary-bg: #05050a;
    --secondary-bg: #0a0a14;
    --accent-cyan: #00f3ff;
    --accent-orange: #ff9d00;
    --text-main: #e0e0e0;
    --text-muted: #8888aa;
    --glass-bg: rgba(10, 10, 20, 0.7);
    --border-glow: 0 0 10px rgba(0, 243, 255, 0.5);
    
    --font-ancient: 'Cinzel', serif;
    --font-digital: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.digital-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

.temple-columns-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.png') no-repeat center center/cover;
    z-index: -2;
}

.temple-columns-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.7); /* Dark overlay to make text readable */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(5, 5, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    padding: 10px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 255px;
    height: 105px;
    background: url('AppsLogo/LifeLabo-Fix-Logo.png') no-repeat center center/contain;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan);
    display: none;
}

.logo-text h1 {
    font-family: var(--font-digital);
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: none;
}

.tagline {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent-orange);
    font-family: var(--font-ancient);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 15px;
    margin-left: 40px;
    align-items: center;
}

.lang-link {
    font-family: var(--font-digital);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 2px 5px;
    border: 1px solid transparent;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.lang-link:hover, .lang-link.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-digital);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    text-transform: uppercase;
    white-space: nowrap; /* Prevent line breaks */
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent-cyan);
    overflow: hidden;
    width: 0;
    transition: width 0.3s ease-out;
    white-space: nowrap;
    border-right: 2px solid var(--accent-cyan);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.1);
}

.app-image {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: #000;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-digital);
    font-size: 5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.hero-subtitle {
    font-family: var(--font-ancient);
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-bottom: 40px;
    letter-spacing: 5px;
    line-height: 1.8;
}

.hero-description-box {
    width: min(100%, 800px);
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-cyan);
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.hero-description-box::before,
.hero-description-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.hero-description-box::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.hero-description-box::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--accent-cyan);
    font-family: var(--font-digital);
    font-size: 0.8rem;
    letter-spacing: 3px;
    animation: hero-scroll-bounce 2s infinite;
}

@keyframes hero-scroll-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Services Section */
.services-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-title {
    font-family: var(--font-ancient);
    font-size: 3rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(to bottom, #ffbd2e, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-line {
    width: 100px;
    height: 3px;
    background: var(--accent-cyan);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.service-card {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 150px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.service-card.active {
    opacity: 1;
    transform: translateY(0);
}

.service-card.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
    background: rgba(5, 5, 10, 0.6); /* Add semi-transparent background */
    padding: 30px;
    border-radius: 5px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(5px);
}

.service-content h3 {
    font-family: var(--font-ancient);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-cyan);
    padding-left: 20px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.service-content p {
    font-size: 1rem;
    color: #eee; /* Brighter text color */
    line-height: 2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.service-image-container {
    flex: 1;
    position: relative;
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 10px;
    background: rgba(10, 10, 20, 0.5);
}

.service-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-top-color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
    transform: scaleX(1.1);
}

.service-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease;
    mix-blend-mode: luminosity;
}

.service-card:hover .service-image {
    opacity: 1;
    mix-blend-mode: normal;
    transform: scale(1.05);
}

.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(0, 243, 255, 0) 0%,
        rgba(0, 243, 255, 0.1) 50%,
        rgba(0, 243, 255, 0) 100%);
    background-size: 100% 200%;
    animation: scanline 3s linear infinite;
    pointer-events: none;
    z-index: 2;
}

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

/* Footer */
.footer {
    background: #000;
    padding: 50px 0;
    border-top: 1px solid var(--accent-cyan);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-digital);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

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

/* Responsive */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-cyan);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .header {
        padding: 14px 0;
    }

    .header-inner {
        padding: 0 16px;
        gap: 16px;
        position: relative;
    }

    .logo {
        width: 88px;
        height: 40px;
        background-position: left center;
        flex: 0 0 auto;
    }

    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 18px;
        right: 16px;
        z-index: 1101;
        flex: 0 0 auto;
        padding: 8px;
        border: 1px solid rgba(0, 243, 255, 0.35);
        border-radius: 8px;
        background: rgba(5, 5, 10, 0.7);
        box-shadow: 0 0 12px rgba(0, 243, 255, 0.15);
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        z-index: 1100;
        padding: 110px 24px 40px;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
    }

    .lang-switch {
        margin-left: 0;
        margin-top: 30px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-section {
        min-height: 100svh;
        height: auto;
        padding: 124px 16px 72px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 10.5vw, 2.35rem);
        letter-spacing: 2px;
        line-height: 1.08;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        white-space: normal;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4.8vw, 1.2rem);
        letter-spacing: 2px;
        margin-bottom: 24px;
        padding: 0 8px;
    }

    .hero-description-box {
        max-width: none;
        width: 100%;
        padding: 20px 18px;
    }

    .hero-description-box p {
        font-size: 0.95rem;
        line-height: 1.85;
    }

    .scroll-indicator {
        left: 50%;
        right: auto;
        width: auto;
        margin: 0;
        bottom: 24px;
    }

    .service-card, .service-card.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 100px;
    }

    .service-image-container {
        width: 100%;
    }
}

.pv-section {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.pv-language-toggle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pv-language-btn {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--accent-cyan);
    font-family: var(--font-digital);
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pv-language-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.pv-language-btn.active {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.35);
}

.pv-video-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.pv-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    background: #000;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .logo {
    gap: 15px;
}

[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 40px;
}

[dir="rtl"] .nav-link::before {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 2px solid var(--accent-cyan);
}

[dir="rtl"] .hero-description-box::before {
    left: auto;
    right: -5px;
    border-right: 2px solid var(--accent-orange);
    border-left: none;
}

[dir="rtl"] .hero-description-box::after {
    right: auto;
    left: -5px;
    border-left: 2px solid var(--accent-orange);
    border-right: none;
}

[dir="rtl"] .service-content h3 {
    border-left: none;
    border-right: 5px solid var(--accent-cyan);
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .lion-card {
    text-align: right;
}

[dir="rtl"] .lion-card::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 50px;
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 120px;
    transform: translateX(20px);
}

[dir="rtl"] .timeline-item.active {
    transform: translateX(0);
}

[dir="rtl"] .step-number {
    left: auto;
    right: 0;
    text-align: left;
}

[dir="rtl"] .timeline-marker {
    left: auto;
    right: 42px;
}

[dir="rtl"] .timeline-content::before {
    left: auto;
    right: -10px;
    border-left: none;
    border-right: 1px solid rgba(0, 243, 255, 0.2);
    transform: rotate(-45deg);
}

[dir="rtl"] .company-table th, [dir="rtl"] .company-table td {
    text-align: right;
}

[dir="rtl"] .company-table th {
    border-right: none;
    border-left: 1px solid rgba(0, 243, 255, 0.1);
}

[dir="rtl"] .submit-btn::before {
    left: auto;
    right: -100%;
}

[dir="rtl"] .submit-btn:hover::before {
    right: 0;
}

@media (max-width: 768px) {
    [dir="rtl"] .lang-switch {
        margin-right: 0;
    }
    
    [dir="rtl"] .timeline::before {
        right: 20px;
    }
    
    [dir="rtl"] .timeline-item {
        padding-right: 60px;
    }
    
    [dir="rtl"] .timeline-marker {
        right: 12px;
    }
    
    [dir="rtl"] .nav {
        right: auto;
        left: -100%;
    }
    
    [dir="rtl"] .nav.active {
        left: 0;
        right: auto;
    }
}
