﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #111111;
    --text-secondary: #666666;
    --primary-color: #A6000A;
    --primary-rgb: 166, 0, 10;
    --accent-color: #800000;
    --border-color: #dddddd;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --transition-speed: 0.3s;
    --font-main: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* Language Specific Fonts */
html[lang="jp"] {
    --font-main: 'Noto Sans JP', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
}

html[lang="cn"] {
    --font-main: 'Noto Sans SC', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
}

[data-theme="dark"] {
    --bg-color: #000000;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --primary-color: #FF0000;
    /* Lighter red for dark mode readability */
    --primary-rgb: 255, 0, 0;
    --accent-color: #A6000A;
    --border-color: #333333;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}


html {
    scroll-behavior: smooth;
}

/* Scoped Snap Scroll for Index */
html.snap-container {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    font-weight: 500;
    /* Pretendard Medium for general description text */
    overflow-x: hidden;
    overflow-y: visible;
    /* Fix for snap scroll */
    transition: background-color var(--transition-speed), color var(--transition-speed);
}


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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

/* Full Page Sections - Scoped */
.snap-container body main>section,
.snap-container body footer {
    min-height: 100vh;
    height: auto;
    /* Allow growth for content */
    padding-top: 80px;
    padding-bottom: 80px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 0;
    /* Force snap to top of viewport, ignoring header offset */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
}

.snap-container .section-padding {
    padding: 0;
}

/* Footer specific override if needed */
footer {
    padding: 0;
    margin-top: 0;
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
}

/* Detail Page Styles - Premium Upgrade */
.detail-hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 5% 40px;
    color: white;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.detail-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.breadcrumb-nav {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.breadcrumb-nav a:hover,
.breadcrumb-nav span {
    color: white;
    font-weight: 600;
}

.breadcrumb-nav span::before {
    content: '>';
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* Sub Navigation */
.sub-nav-container {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    /* Below header */
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sub-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.sub-nav-link {
    padding: 20px 30px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sub-nav-link:hover,
.sub-nav-link.active {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.sub-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

/* Premium Content Grid */
.detail-content {
    padding: 80px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
    align-items: center;
}

.content-block.reverse {
    direction: rtl;
    /* Quick swap for visual variety */
}

.content-block.reverse .content-text {
    direction: ltr;
    /* Reset text direction */
}

.content-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s ease;
}

.content-image:hover {
    transform: perspective(1000px) rotateY(2deg);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s;
}

.content-image:hover img {
    transform: scale(1.05);
}

.content-text {
    padding: 20px;
}

.content-label {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.content-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.content-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 968px) {
    .detail-hero {
        height: 40vh;
    }

    .detail-title {
        font-size: 2.5rem;
    }

    .content-block,
    .content-block.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }

    .sub-nav-link {
        padding: 15px;
        font-size: 0.9rem;
    }
}


/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-speed);
    background: transparent;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: var(--glass-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Logo & Certs Layout */
.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.nav-certs img {
    height: 25px;
    width: auto;
    object-fit: contain;
    transition: filter var(--transition-speed);
}

@media (max-width: 1100px) {
    .nav-certs {
        display: none;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 4px;
    transition: filter var(--transition-speed);
}

/* Make images white when header is transparent (at top) */
header:not(.scrolled) .nav-certs img:not([src*="iso"]):not([src*="venture"]):not([src*="outstanding"]),
header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

/* Ensure filter is removed when scrolled */
header.scrolled .nav-certs img,
header.scrolled .logo img {
    filter: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: #ffffff;
    /* Default transparent header text is white */
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Readability on images */
}

/* Scrolled state returns to theme text color */
header.scrolled .nav-links a {
    color: var(--text-primary);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-secondary);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    display: block;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
    text-shadow: none;
    /* remove header shadow */
    transition: all 0.2s;
}

.dropdown a::after {
    display: none;
    /* remove underline anim from main links */
}

.dropdown a:hover {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--primary-color);
    padding-left: 25px;
    /* slight slide effect */
}

/* Ensure header text color in dropdown is readable regardless of theme */
header .dropdown a {
    color: #333;
}

[data-theme="dark"] header .dropdown a {
    color: #eee;
}

html {
    scroll-padding-top: 0;
    /* Offset removed for full-screen snap compatibility */
}


.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition-speed);
}

header.scrolled .lang-btn {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #333333 0%, #000000 100%);
    background-size: cover;
    background-position: center;
    transition: background-image 1.5s ease-in-out;
    overflow: hidden;
}

.hero-bg-media {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 ratio */
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.hero-bg-media.hero-crop-top {
    width: 117.65vw;
    /* 100 / 0.85 */
    height: 66.18vw;
    /* 56.25 / 0.85 */
    min-height: 117.65vh;
    /* 100 / 0.85 */
    min-width: 209.14vh;
    /* 177.77 / 0.85 */
    transform: translate(-45%, -57.5%);
    /* Centers and then shifts up by 15% of its height */
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 900;
    /* Pretendard Black */
}

.hero p {
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 40px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    /* Pretendard Medium */
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(166, 0, 10, 0.3);
}

/* Scroll Down Indicator */
/* Scroll Down Right */
.scroll-down-right {
    position: absolute;
    right: 50px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.8rem;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollLineAnim 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLineAnim {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Pagination */
.hero-pagination {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
    width: 8px;
}

.hero-dot::after {
    display: none;
}

/* Vertical Full Page Navigation */
#vertical-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vertical-dot {
    width: 12px;
    height: 12px;
    background: rgba(128, 128, 128, 0.3);
    /* Neutral visible base */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.vertical-dot:hover,
.vertical-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Ensure dots are visible on dark backgrounds */
[data-theme="dark"] .vertical-dot {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}




/* Note: Implementing accurate progress bar requires JS or precise CSS animation sync. Simpler active state for now. */

/* Text Fade Transition */
.hero-content {
    transition: opacity 0.5s ease-in-out, transform 0.8s ease-out;
    opacity: 1;
    transform: translateY(0);
}

.hero-content.fade-out {
    opacity: 0;
    transform: translateY(30px);
}

/* Section Components */
.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    /* Pretendard Black */
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
    /* Space for desc */
}

.section-subtitle {
    display: block;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    /* Pretendard SemiBold */
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 60px;
    position: relative;
}

/* Swiper Customization */
.swiper {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Process Step Component */
.process-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 140px;
}

.process-step:not(:last-child)::after {
    content: '\f061';
    /* FontAwesome right arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .process-step:not(:last-child)::after {
        content: '\f063';
        /* Down arrow for mobile */
        right: 50%;
        top: auto;
        bottom: -25px;
        transform: translateX(50%);
    }

    .process-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

.process-img-box {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-label {
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    font-size: 1rem;
}

/* Inner Tabs for Products */
.inner-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.inner-tab-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: var(--text-secondary);
}

.inner-tab-btn:hover,
.inner-tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 10px rgba(166, 0, 10, 0.2);
}

.inner-tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.inner-tab-content.active {
    display: block;
}

/* Luxury Underline */
.section-subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

/* Override previous simple underline */
.section-title::after {
    display: none;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Business Section */
#business {
    background-image: url('img/main/business1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 1.5s ease-in-out;
    position: relative;
    /* Ensure text is white via children or direct */
}

#business::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    /* Dark cinematic overlay */
    z-index: 0;
}

#business>.container {
    position: relative;
    z-index: 2;
}

/* Force White Text in Business Section */
#business .section-title,
#business .section-subtitle {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    background: none;
    -webkit-text-fill-color: #ffffff;
}

#business .section-subtitle::after {
    background: var(--primary-color);
}

#business .card-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Card Specific Backgrounds */
#card-machinery {
    background-image: url('img/main/business_equipment.webp');
}

#card-plant {
    background-image: url('img/main/business_plant.webp');
}

#card-general {
    background-image: url('img/main/business_general.webp');
}

.card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-speed), background-size 0.5s ease;
    position: relative;
    overflow: hidden;
    background-size: 110%;
    background-position: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Card Overlay */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg,
            rgba(0, 0, 0, 0.75) 35%,
            rgba(255, 255, 255, 0.1) 40%,
            rgba(0, 0, 0, 0) 50%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(0, 0, 0, 0.75) 65%);
    background-size: 300% 100%;
    background-position: 100% 0;
    z-index: 1;
    transition: background 0.3s;
    animation: cardShine 6s infinite linear;
    pointer-events: none;
}

.card:hover::before {
    background-color: rgba(0, 0, 0, 0.5);
    animation-duration: 2s;
    /* Faster shine on hover */
}

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

    100% {
        background-position: -100% 0;
    }
}

.card i,
.card h3,
.card p {
    position: relative;
    z-index: 2;
}

.card h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.card p {
    color: rgba(255, 255, 255, 0.9);
}

.card i {
    color: #ffffff !important;
    /* White icon for better contrast */
    text-shadow: 0 0 15px var(--primary-color);
    /* Glow effect */
}

/* Product Page Card - Simple Style (Separated) */
.product-simple-card {
    /* Reset Transform & Transition to remove effects */
    transform: none !important;
    transition: none !important;
    /* Reset Shadow to Simple */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    /* Ensure clean background from variable */
    background: var(--bg-secondary) !important;
    /* Remove card shine animation related props just in case */
    animation: none !important;
    background-size: cover !important;
    /* Reset from 110% */
}

.product-simple-card:hover {
    transform: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    background-color: var(--bg-secondary) !important;
}

.product-simple-card::before {
    /* Remove Mask/Effect Overlay */
    display: none !important;
    content: none !important;
    animation: none !important;
}

/* Reset Text Colors for Readability without Dark Overlay */
.product-simple-card h3 {
    /* Ensure text color follows inline style or primary color, avoiding the white override from .card */
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

.product-simple-card p {
    color: var(--text-secondary) !important;
    text-shadow: none !important;
}

.product-simple-card i {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

/* Business Ticker Animation */
.business-ticker-wrapper {
    margin-top: 50px;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(2px);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.business-ticker {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
}

.business-ticker:hover {
    animation-play-state: paused;
}

.business-ticker span {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    padding-right: 0;
    /* Handled by &nbsp; but added logic if needed */
    text-transform: uppercase;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }

    /* Based on 4 repetitions roughly */
}

/* Footer */
/* Footer */
footer {
    background: #111111;
    /* Darker footer background as per premium style */
    color: #a0a0a0;
    width: 100%;
    /* Height and flex centering handled by global rule if snap-container */
}

footer .container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 60px;
}


.footer-links-grid a {
    color: #a0a0a0;
    transition: color 0.3s;
}

.footer-links-grid a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-content {
    /* Legacy override if needed */
    display: none;
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .lang-switch {
        display: none;
        /* Can be moved to mobile menu */
    }

    #business .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section Grid */
#contact {
    justify-content: center;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

#contact .grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    /* Reduced gap */
    align-items: center;
    /* Center vertically */
    height: 100%;
    max-height: 70vh;
    /* Limit inner content height */
}

/* Contact Specific Compact Styles */
#contact .contact-info {
    padding: 30px !important;
    /* Reduced padding */
}

#contact .contact-info h3 {
    margin-bottom: 15px !important;
    font-size: 1.3rem !important;
}

#contact .contact-info li {
    margin-bottom: 8px !important;
    font-size: 0.95rem;
}

#contact .map-container {
    height: 350px !important;
    /* Reduced height */
}

/* Footer Layout 70/30 Split with Detailed Links */
.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-pagination-left {
    flex: 0 0 calc(75% - 60px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-page-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-page-num {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-page-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.footer-page-link:hover {
    color: var(--primary-color);
}

.footer-sub-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.footer-sub-links li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.footer-sub-links li a:hover {
    color: #fff;
}

.footer-company-right {
    flex: 0 0 25%;
    text-align: right;
    color: #a0a0a0;
    font-size: 0.9rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
}

.footer-company-right h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-company-right p {
    margin-bottom: 10px;
    line-height: 1.8;
}

@media (max-width: 1200px) {
    .footer-pagination-left {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .footer-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .footer-pagination-left,
    .footer-company-right {
        flex: 1 1 100%;
        text-align: left;
    }

    .footer-company-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 40px;
    }
}


/* Additional Responsive for new grids */
@media (max-width: 768px) {
    #contact .grid-2-col {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
    }
}


/* Intro Section Specifics */
/* Intro Section Specifics */
#intro {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: black;
}

#intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Slightly lighter for video */
    z-index: 0;
}

#intro>.container {
    position: relative;
    z-index: 1;
}

#intro .section-title {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#intro .section-subtitle {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#intro .section-title::after,
#intro .section-subtitle::after {
    background: #ffffff;
}

#intro .intro-link {
    transition: all 0.3s;
    opacity: 0.9;
}

#intro .intro-link:hover {
    opacity: 1;
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Product & Project Section Specifics (Full Screen Image Style) */
#product,
#project {
    position: relative;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    /* Enforce full viewport height fit */
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Center vertical content */
    justify-content: center;
}

#product .content-block,
#project .content-block {
    display: block;
    /* Remove grid */
    text-align: center;
    margin-bottom: 0;
}

#product::before,
#project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

#product>.container,
#project>.container {
    position: relative;
    z-index: 1;
}

#product .section-title,
#project .section-title {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#product .section-subtitle,
#project .section-subtitle {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#product .section-subtitle::after,
#project .section-subtitle::after {
    background: #ffffff;
}

#product .content-title,
#project .content-title,
#product h3,
#project h3 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#product .content-desc,
#project .content-desc,
#product p,
#project p,
#product li,
#project li {
    color: rgba(255, 255, 255, 0.9);
}

#product .btn-primary,
#project .btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    #vertical-nav {
        display: none;
    }
}

/* Background Video Container (Used in Intro) */
.product-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.product-bg-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

/* Ensure #intro has correct stacking context for video visibility */
#intro {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Product Slider Styles */
#product {
    padding-top: 40px !important;
    /* Force reduce generic padding */
    padding-bottom: 40px !important;
    justify-content: center;
    /* Ensure centering */
}

/* Compact Section Titles for Product Section */
#product .section-title {
    margin-bottom: 5px;
    font-size: 2.5rem;
}

#product .section-subtitle {
    margin-bottom: 20px;
}

#product .section-subtitle::after {
    margin-top: 10px;
}

.product-slider-wrapper {
    position: relative;
    padding: 10px 0;
    width: 100%;
    margin-top: 10px;
    /* Flex grow if possible */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    /* Important for flex child scroll */
}

.product-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 15px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: stretch;
    height: 100%;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 260px;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.product-card-img {
    height: 140px;
    /* Reduced to fit */
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.1);
}

.product-card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.product-card-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.3;
    /* Limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.product-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-btn {
    align-self: flex-start;
    padding: 5px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    border: none;
    font-weight: 600;
}

.product-btn:hover {
    background: #c00000;
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.slider-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.slider-nav.prev {
    left: -10px;
}

.slider-nav.next {
    right: -10px;
}

@media (max-width: 768px) {
    .slider-nav {
        display: none;
    }

    .product-slider {
        padding-left: 5%;
        padding-right: 5%;
    }

    #product .section-title {
        font-size: 2rem;
    }
}

/* Anime Overlay Styles */
#anime-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    /* Base white */
    z-index: 9999;
    display: flex;
    /* Flex centering */
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#anime-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind text */
    background: #000;
    /* Default black start */
}

.anime-text-wrapper {
    position: relative;
    z-index: 5;
    /* Above BG */
    display: flex;
    flex-direction: column;
    gap: 0px;
    user-select: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.anime-row {
    display: block;
    position: relative;
    line-height: 0.85;
    white-space: nowrap;
}

.row-bigger .anime-letter {
    font-size: clamp(4rem, 18vw, 12rem);
}

.row-medium .anime-letter {
    font-size: clamp(2rem, 10vw, 6rem);
}

.anime-letter {
    display: inline-block;
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 1);
    letter-spacing: 0.05em;
    position: relative;
    font-family: 'Segoe UI', 'Arial Black', sans-serif;
}

/* Variant: Solid White Text */
.anime-style-solid .anime-letter {
    color: #ffffff;
    -webkit-text-stroke: 0;
    opacity: 0;
    /* Start hidden for some animations */
}

/* Variant: Outlined (Default) */
.anime-style-outline .anime-letter {
    color: transparent;
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 1);
}

/* Variant: Luxury Gold/Serif */
.anime-style-luxury .anime-letter {
    color: #e5c100;
    /* Gold fallback */
    background: linear-gradient(to bottom, #cfc09f 22%, #634f2c 24%, #cfc09f 26%, #cfc09f 27%, #ffecb3 40%, #3a2c0f 78%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    opacity: 0;
    font-family: 'Playfair Display', 'Times New Roman', serif;
    /* Elegant serif */
}

/* Variant: Cinematic Blur */
.anime-style-blur .anime-letter {
    color: #ffffff;
    filter: blur(20px);
    opacity: 0;
    -webkit-text-stroke: 0;
}

/* Variant: Masked Reveal */
.anime-style-masked {
    overflow: hidden;
}

.anime-style-masked .anime-row {
    overflow: hidden;
    /* Masking effect */
}

.anime-style-masked .anime-letter {
    color: #ffffff;
    transform: translateY(100%);
    display: inline-block;
    -webkit-text-stroke: 0;
}

.anime-shine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    mix-blend-mode: overlay;
    opacity: 0;
}

.anime-shine-gradient {
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0) 60%,
            transparent 100%);
    transform: translateX(-100%);
}

/* =========================================
   Project Section Redesign
   ========================================= */

#project {
    padding: 0 !important;
    display: block;
    /* Reset from flex column if needed, but wrapper handles it */
    background: #111;
    /* Fallback background */
    overflow: hidden;
}

.project-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    align-items: center;
    position: relative;
    z-index: 5;
}

.project-text-side {
    flex: 0 0 30%;
    padding: 0 3% 0 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.project-text-side .section-title.text-left {
    text-align: left;
    margin-bottom: 10px;
    background: none;
    -webkit-text-fill-color: initial;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.project-text-side .section-subtitle.text-left {
    text-align: left;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.project-text-side .section-subtitle.text-left::after {
    margin: 15px 0 0 0;
}

.project-desc-content h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.project-list-styled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-list-styled li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.0rem;
    font-weight: 500;
    color: #eee;
    opacity: 0.9;
    transform: translateX(0);
    transition: transform 0.3s;
}

.project-list-styled li:hover {
    transform: translateX(10px);
    color: #fff;
    opacity: 1;
}

.project-list-styled li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Right Side - Card Grid */
.project-card-side {
    flex: 0 0 70%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
    perspective: 1500px;
    /* For 3D fly-in effect */
}

.project-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: removed for single row */
    gap: clamp(20px, 3vw, 40px);
    width: 100%;
    max-width: 1600px;
    /* Increased max-width for bigger cards */
    height: auto;
    margin: 0 auto;
    /* Center horizontal */
}

.project-card-item {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Enhanced shadow */
    opacity: 0;
    transform: translateX(50vw) scale(0.8);
    /* Adjusted start position */
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.5s ease-in-out;
}

.project-card-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.project-card-item:hover img {
    transform: scale(1.1);
}

.project-card-item:hover::after {
    opacity: 0.3;
}

/* Animation triggered by class */
.project-card-grid.active .project-card-item {
    animation: flyInOneByOne 1.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: calc(var(--i) * 0.2s);
    /* Increased delay for distinct one-by-one feel */
}

@keyframes flyInOneByOne {
    0% {
        opacity: 0;
        transform: translateX(50vw) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .project-text-side {
        padding: 0 40px;
    }

    /* Keep 3 columns but adjust gap */
    .project-card-grid {
        gap: 15px;
    }
}

@media (max-width: 968px) {
    .project-wrapper {
        flex-direction: column;
        padding-top: 80px;
        height: auto;
        /* allow growth */
    }

    .project-text-side {
        flex: none;
        width: 100%;
        padding: 40px;
        align-items: center;
        text-align: center;
    }

    .project-text-side .section-title.text-left,
    .project-text-side .section-subtitle.text-left {
        text-align: center;
    }

    .project-text-side .section-subtitle.text-left::after {
        margin: 15px auto 0;
    }

    .project-list-styled {
        display: inline-block;
        text-align: left;
    }

    .project-card-side {
        flex: none;
        width: 100%;
        height: auto;
        padding: 20px 40px 60px;
    }

    .project-card-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Keep 3 on tablet if possible */
    }
}

@media (max-width: 600px) {
    .project-card-grid {
        grid-template-columns: repeat(1, 1fr);
        /* Stack on mobile */
        max-width: 320px;
        gap: 30px;
    }
}

/* Anime Overlay Additional Styles */
.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

#anime-logo-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 30;
    width: clamp(300px, 40vw, 600px);
    height: auto;
}

#anime-logo-container img {
    width: 100%;
    height: auto;
    display: block;
    /* Original is likely black/colored perfect for white bg */
}



/* =========================================
   Mobile Optimization Overrides (Consolidated)
   ========================================= */

@media (max-width: 768px) {

    /* Global Container Fixes */
    html {
        height: 100vh;
        width: 100%;
        overflow-y: scroll;
        /* Force explicit scroll container */
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        /* Explicit snap */
        scroll-behavior: smooth;
    }

    body {
        height: 100%;
        width: 100%;
    }

    .container {
        padding: 0 20px;
        width: 100%;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        scroll-snap-align: start;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 5vw, 3rem);
        /* Responsive font size */
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .hero-content {
        padding-top: 60px;
        /* Offset for fixed header */
        width: 100%;
    }

    /* Intro Section Mobile */
    #intro {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        scroll-snap-align: start;
    }

    #intro .intro-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #intro .intro-link {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Product Section Mobile */
    #product {
        height: auto;
        min-height: 100vh;
        /* Ensure it's a valid snap target */
        padding-top: 100px !important;
        padding-bottom: 80px !important;
        display: block;
        /* Stack content */
        scroll-snap-align: start;
        /* Force snap */
    }

    .product-slider-wrapper {
        margin-top: 30px;
        width: 100vw;
        margin-left: -20px;
        /* Counteract container padding */
        padding: 0 20px;
    }

    .product-slider {
        padding-bottom: 20px;
        /* Space for scrollbar if any */
    }

    .product-card {
        min-width: 240px;
        /* Slightly smaller cards */
    }

    /* Business Section Mobile */
    .card-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 20px;
    }

    /* Project Section Mobile */
    #project {
        height: auto;
        min-height: 100vh;
        /* Maintain full screen snap feel */
        padding: 80px 0 !important;
        scroll-snap-align: start;
    }

    .project-wrapper {
        flex-direction: column;
    }

    .project-text-side {
        padding: 0 20px 40px;
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .project-text-side .section-title.text-left,
    .project-text-side .section-subtitle.text-left {
        text-align: center;
    }

    .project-text-side .section-subtitle.text-left::after {
        margin: 15px auto 0;
    }

    .project-card-side {
        height: auto;
        padding: 0 20px;
        perspective: none;
        /* Disable 3D on mobile for performance/layout */
    }

    .project-card-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card-item {
        transform: none !important;
        /* Disable fly-in on mobile to prevent overflow */
        opacity: 1 !important;
        animation: none !important;
    }

    /* Contact Section Mobile */
    #contact.contact-full {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding-bottom: 0 !important;
        scroll-snap-align: start;
    }

    .contact-info-side {
        width: 100%;
        padding: 80px 20px 40px;
        min-width: 0;
    }

    .contact-map-side {
        height: 400px;
        width: 100%;
    }

    /* Footer Mobile */
    .footer-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 40px 0;
    }

    .footer-pagination-left {
        grid-template-columns: 1fr;
        /* Single column stack */
        gap: 30px;
    }

    .footer-company-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 30px;
        text-align: center;
    }

    /* Navigation Mobile adjustment */
    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        z-index: 1001;
    }

    .nav-links {
        /* Mobile menu drawer style */
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        /* Override display:none */
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: #ffffff !important;
        display: block;
        padding: 5px 0;
    }

    /* Hide dropdowns in mobile initially or style them */
    .dropdown {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        display: none;
        /* Toggle with JS if needed, or just show flat */
        text-align: center;
        transform: none;
        padding: 10px 0;
    }

    .nav-item.active .dropdown {
        display: block;
    }
}

/* =========================================
   Organization Chart CSS
   ========================================= */

.org-chart-container {
    width: 100%;
    overflow-x: auto;
    /* Allows scrolling on mobile */
    padding: 40px 0;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
}

.tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
    /* Gap between nodes */
    transition: all 0.5s;
}

/* Connecting Lines (The magic part) */
.tree li::before,
.tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid var(--border-color);
    width: 50%;
    height: 20px;
}

.tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid var(--border-color);
}

/* Remove connectors from the single root node */
.tree li:only-child::after,
.tree li:only-child::before {
    display: none;
}

.tree li:only-child {
    padding-top: 0;
}

/* Remove left connector from first child */
.tree li:first-child::before {
    border: 0 none;
}

/* Remove right connector from last child, keep vertical */
.tree li:last-child::after {
    border-top: none;
}

/* Add vertical line down for nodes with children */
.tree li::after {
    border-radius: 5px 0 0 0;
}

.tree li:first-child::after {
    border-radius: 5px 0 0 0;
}

.tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid var(--border-color);
    width: 0;
    height: 20px;
}

/* Node Styling */
.tree .node {
    display: inline-block;
    padding: 15px 20px;
    text-decoration: none;
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
    min-width: 120px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

/* Root Node Specifics */
.tree .root-node {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tree .root-node .node-title {
    color: white;
    font-size: 1.1rem;
}

/* Hover Effects */
.tree .node:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Node Internal Typography */
.node-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.root-node .node-title {
    margin-bottom: 0;
}

/* The Label (Rank) Badge */
.node-rank {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(166, 0, 10, 0.1);
    /* Low opacity primary */
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid rgba(166, 0, 10, 0.2);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .node-rank {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border-color: rgba(255, 0, 0, 0.3);
}

[data-theme="dark"] .tree .node {
    background: #1a1a1a;
}

[data-theme="dark"] .node-title {
    color: #ffffff;
}

/* Responsive Handling */
/* Responsive Handling */
@media (max-width: 768px) {
    .org-chart-container {
        padding: 20px;
        overflow-x: hidden;
        text-align: left;
    }

    .tree {
        min-width: 0;
        padding: 0;
    }

    .tree ul {
        display: flex;
        flex-direction: column;
        padding-top: 0;
        padding-left: 0;
        justify-content: flex-start;
    }

    .tree li {
        float: none;
        width: 100%;
        padding: 10px 0;
        text-align: left;
    }

    /* Disable Desktop Connectors */
    .tree li::before,
    .tree li::after,
    .tree ul ul::before {
        display: none !important;
    }

    /* Node Styling for Mobile */
    .tree .node {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        text-align: left;
    }

    /* Vertical Tree Layout (Indented List) */
    .tree ul ul {
        border-left: 2px solid var(--border-color);
        margin-left: 20px;
        padding-left: 20px;
    }

    /* Horizontal Connector for list items */
    .tree ul ul li {
        position: relative;
    }

    .tree ul ul li::before {
        content: '';
        display: block !important;
        position: absolute;
        top: 37px;
        /* Center with node */
        left: -20px;
        /* Connect to parent border */
        width: 20px;
        height: 2px;
        background: var(--border-color);
    }

    /* Root Node Special Styling */
    .tree>ul>li {
        padding-top: 0;
    }

    .tree>ul>li>.node {
        display: inline-flex;
        width: auto;
        justify-content: center;
        margin-bottom: 20px;
    }

    /* Center Root */
    .tree>ul {
        align-items: center;
    }

    /* Reset children alignment */
    .tree>ul>li {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .tree>ul>li>ul {
        width: 100%;
        align-items: stretch;
    }
}


/* Anime Certification Grid Styles */
.anime-cert-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
    width: 100%;
}

.anime-cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    text-align: center;
}

/* Common Square Images */
.anime-cert-item img {
    width: 50px !important;
    height: 50px !important;
    padding: 3px;
    object-fit: contain;
    margin-bottom: 5px;
}

/* Patent Rectangle Exception */
.anime-cert-item.patent-item img {
    width: auto !important;
    height: 50px !important;
    aspect-ratio: auto;
    max-width: none;
}

.anime-cert-item span {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    white-space: nowrap;
    letter-spacing: -0.3px;
    backdrop-filter: blur(2px);
}

.anime-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 10000;
}

#anime-skip-btn,
#anime-switch-btn {
    position: static;
    /* Reset fixed positioning */
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

#anime-skip-btn:hover,
#anime-switch-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .anime-cert-grid {
        gap: 5px;
        margin-top: 15px;
    }

    .anime-cert-item img {
        width: 35px !important;
        height: 35px !important;
    }

    .anime-cert-item.patent-item img {
        height: 35px !important;
    }

    .anime-cert-item span {
        font-size: 0.5rem;
        transform: scale(0.9);
    }
}

/* Luxury Text Animation Loop */
@keyframes luxuryShimmerLoop {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 0% center;
    }
}

.luxury-text-anim {
    /* Platinum to Gold Gradient */
    background: linear-gradient(90deg,
            #ffffff 0%,
            #e0e0e0 20%,
            #d4af37 40%,
            #fff8db 50%,
            #d4af37 60%,
            #e0e0e0 80%,
            #ffffff 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
    animation: luxuryShimmerLoop 4s linear infinite;
    display: inline-block;
    text-shadow: none !important;
    text-align: center;
}

/* Specific Override for Business Section */
#business .luxury-text-anim {
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}

/* =========================================
   Vertical Timeline Styles
   ========================================= */
#history-target {
    position: relative;
    padding-left: 30px;
    margin-left: 15px;
}

#history-target::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(var(--primary-rgb), 0.3) 100%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding: 15px 0 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.timeline-item::before {
    display: none !important;
    content: none !important;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 18px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 3px var(--primary-color), 0 4px 10px rgba(var(--primary-rgb), 0.3);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px var(--primary-color), 0 6px 20px rgba(var(--primary-rgb), 0.5);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.timeline-text {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    #history-target {
        padding-left: 25px;
        margin-left: 10px;
    }

    .timeline-dot {
        left: -32px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 15px 20px;
    }

    .timeline-date {
        font-size: 1rem;
    }

    .timeline-text {
        font-size: 0.95rem;
    }
}