/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow on mobile */
html {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #333;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --nav-height: 80px;

    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 80px; /* Below navbar */
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 999;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    transition: width 0.1s ease-out;
}

body {
    font-family: var(--font-jp);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background:
        url('../images/backgrounds/hero-pattern.svg'),
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        linear-gradient(135deg,
            #faf7ff 0%,
            #f3f0ff 25%,
            #e9e5ff 50%,
            #d6d3f0 75%,
            #c4c1e0 100%);
    background-size: 200px 200px, cover, cover, cover, cover;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation - iOS Liquid Glass Effect */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #1a1a1a;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    backdrop-filter: blur(60px) saturate(200%) brightness(1.1);
    -webkit-backdrop-filter: blur(60px) saturate(200%) brightness(1.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4),
                0 1px 0 rgba(255, 255, 255, 0.1) inset,
                0 -1px 0 rgba(0, 0, 0, 0.2) inset;
}

.navbar.scrolled::before {
    opacity: 1;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.08) 70%,
        rgba(255, 255, 255, 0.15) 100%);
    animation: liquidFlow 8s ease-in-out infinite;
}

@keyframes liquidFlow {
    0%, 100% {
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 30%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.08) 70%,
            rgba(255, 255, 255, 0.15) 100%);
    }
    25% {
        background: linear-gradient(225deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 30%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(255, 255, 255, 0.06) 70%,
            rgba(255, 255, 255, 0.12) 100%);
    }
    50% {
        background: linear-gradient(315deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 30%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.05) 70%,
            rgba(255, 255, 255, 0.1) 100%);
    }
    75% {
        background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.13) 0%,
            rgba(255, 255, 255, 0.07) 30%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.07) 70%,
            rgba(255, 255, 255, 0.13) 100%);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

/* Logo switching animation */
.brand-link {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-light,
.logo-dark {
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-light {
    opacity: 1;
}

.logo-dark {
    opacity: 0;
    position: absolute;
}

.navbar.scrolled .logo-light {
    opacity: 0;
}

.navbar.scrolled .logo-dark {
    opacity: 1;
}

.brand-link {
    text-decoration: none;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.brand-link:hover {
    color: #fff;
}

/* Logo image hover effect */
.brand-link img {
    transition: transform 0.3s ease;
}

.brand-link:hover img {
    transform: scale(1.1);
}

.brand-logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.brand-logo svg {
    transition: var(--transition);
}

.brand-link:hover .brand-logo svg {
    transform: rotate(5deg) scale(1.05);
}

/* brand-text no longer shown when using combined logo image; keep fallback style darker */
.brand-text { display:none; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nav-link:hover {
    color: #000;
}

/* Navigation text colors when scrolled */
.navbar.scrolled .nav-link {
    color: #e6e6e6;
}

.navbar.scrolled .nav-link:hover {
    color: #fff;
}

/* Active navigation link */
.nav-link.active {
    color: #007AFF;
}

.navbar.scrolled .nav-link.active {
    color: #83dcf1;
}

.nav-link.active .nav-text-ja {
    color: inherit;
}

.nav-link.active .nav-text-en {
    color: inherit;
    opacity: 1;
}

/* Bilingual Navigation Text */
.nav-text-ja {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
}

.nav-text-en {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    opacity: .8;
    transition: var(--transition);
}

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

/* Active navigation link underline */
.nav-link.active::after {
    width: 100%;
    background: #83dcf1;
    opacity: 1;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

/* Mobile language switcher (left of hamburger) */
.lang-switcher-mobile {
    display: none;
    gap: 0.5rem;
    margin-right: 1rem;
}

/* Mobile Menu Logo - hidden on desktop */
.nav-menu-logo {
    display: none;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.2);
    color: #666;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.875rem;
}

.navbar.scrolled .lang-btn {
    border: 1px solid rgba(255,255,255,0.35);
    color: #e6e6e6;
}

.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.lang-btn:hover:not(.active) {
    background: rgba(0,0,0,0.05);
    color: #333;
    border-color: rgba(0,0,0,0.3);
}

.navbar.scrolled .lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.55);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    gap: 0;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #7e9cbe;
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Close text - hidden by default */
.nav-toggle-text {
    font-size: 0.7rem;
    color: #7e9cbe;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Active state - transform to X */
.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Show Close text when active */
.nav-toggle.active .nav-toggle-text {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Fallback, then iOS safe-area aware values */
    padding-top: var(--nav-height);
    padding-top: calc(var(--nav-height) + constant(safe-area-inset-top));
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%23FF6B35' stroke-width='0.5' stroke-opacity='0.08'%3E%3Cpath d='M0 40L40 0L80 40L40 80z'/%3E%3Cpath d='M20 20L60 20L60 60L20 60z'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    animation: backgroundMove 25s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.05) 0%, transparent 30%);
    animation: gradientShift 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-60px) translateY(-60px); }
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Featured Image Section */
.featured-image {
    padding: 0;
    background: #f5f7fa;
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

.featured-image .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 180%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(0);
    will-change: transform;
}

/* Hero Brand Wrapper - contains avatar and logo side by side */
.hero-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.hero-brand-mark {
    animation: brandFloat 6s ease-in-out infinite;
    display: flex;
    justify-content: flex-start;
}

.hero-brand-mark img {
    box-shadow:
        0 0 30px rgba(196, 193, 224, 0.8),
        0 0 60px rgba(196, 193, 224, 0.6),
        0 0 90px rgba(196, 193, 224, 0.4),
        0 0 120px rgba(196, 193, 224, 0.2);
    transition: all 0.3s ease;
    animation: avatarGlow 2s ease-in-out infinite alternate;
    position: relative;
}

.hero-brand-mark img:hover {
    box-shadow:
        0 0 25px rgba(196, 193, 224, 0.8),
        0 0 50px rgba(196, 193, 224, 0.6),
        0 0 75px rgba(196, 193, 224, 0.4),
        0 0 100px rgba(196, 193, 224, 0.2);
    transform: scale(1.05);
}

.avatar-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    position: relative;
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
}

/* Glowing ring effect - outer glow */
.avatar-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--primary-color) 0%,
        #4ecdc4 25%,
        #667eea 50%,
        #f093fb 75%,
        var(--primary-color) 100%);
    background-size: 300% 300%;
    animation: gradientRotate 4s ease infinite;
    opacity: 0.6;
    filter: blur(15px);
    z-index: -1;
    pointer-events: none;
}

/* Glowing ring effect - inner ring */
.avatar-button::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--primary-color),
        #4ecdc4,
        #667eea);
    background-size: 200% 200%;
    animation: gradientRotate 3s ease infinite;
    z-index: -1;
    pointer-events: none;
}



@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes avatarGlow {
    0% {
        box-shadow:
            0 0 30px rgba(196, 193, 224, 0.8),
            0 0 60px rgba(196, 193, 224, 0.6),
            0 0 90px rgba(196, 193, 224, 0.4),
            0 0 120px rgba(196, 193, 224, 0.2);
    }
    100% {
        box-shadow:
            0 0 50px rgba(196, 193, 224, 1),
            0 0 100px rgba(196, 193, 224, 0.8),
            0 0 150px rgba(196, 193, 224, 0.6),
            0 0 200px rgba(196, 193, 224, 0.3);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}



/* Avatar Video Container */
.avatar-video-container {
    position: relative;
    display: block;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    animation: logoFloat 5s ease-in-out infinite;
}

.hero-logo {
    height: 95px;
    width: auto;
    object-fit: contain;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.avatar-video-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: #000;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0) rotate(-5deg);
    transform-origin: 0 center;
    opacity: 0;
    margin-bottom: 2rem;
    margin-top: 1rem;
    width: 320px;
    height: 320px;
    filter: blur(10px);
}

.avatar-video-wrapper.show {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.avatar-video-wrapper.hidden {
    display: none;
}

.avatar-video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 20px;
    object-fit: contain;
    background: #000;
}

.avatar-button.hidden {
    transform: scale(0) rotate(180deg);
    opacity: 0;
    filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.avatar-button:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

/* Mobile responsive for avatar video */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-contact-websites {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    /* ========================================
       About Highlight Section - 移动端样式
       只改布局，保持桌面端的配色
       ======================================== */

    /* About Highlight 容器 */
    .about-highlight {
        padding: 3rem 0 !important;
    }

    /* Grid 改为 Flex 垂直布局 */
    .about-highlight-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
        max-width: 100% !important;
    }

    /* 文本区域 */
    .about-highlight-text {
        width: 100% !important;
        max-width: 100% !important;
    }

    .about-highlight-text h2 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        white-space: normal !important;
        /* 保持桌面端的颜色 */
    }

    .about-highlight-text p {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        white-space: normal !important;
        max-width: 100% !important;
        /* 保持桌面端的颜色 */
    }

    /* 列表 */
    .about-highlight-list {
        list-style: none !important;
        margin: 1.5rem 0 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .about-highlight-list li {
        padding: 1.2rem 1rem !important;
        border-radius: 16px !important;
        display: block !important;
        width: 100% !important;
        /* 保持桌面端的背景色和边框 */
    }

    .highlight-label {
        display: block !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.4rem !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        white-space: normal !important;
        /* 保持桌面端的颜色 */
    }

    .highlight-desc {
        display: block !important;
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        /* 保持桌面端的颜色 */
    }

    /* Meta 区域（数据卡片） */
    .about-highlight-meta {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .highlight-card {
        padding: 1.25rem 1rem !important;
        border-radius: 16px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        /* 保持桌面端的背景色和边框 */
    }

    .highlight-number {
        font-size: 1.6rem !important;
        font-weight: 700 !important;
        display: block !important;
        margin-bottom: 0.5rem !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        /* 保持桌面端的颜色 */
    }

    .highlight-caption {
        font-size: 0.75rem !important;
        display: block !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        /* 保持桌面端的颜色 */
    }

    /* Availability Card（对应可能な相談） */
    .availability-card {
        grid-column: 1 / -1 !important;
        padding: 1.5rem !important;
        border-radius: 16px !important;
        /* 保持桌面端的背景色和边框 */
    }

    .availability-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        /* 保持桌面端的颜色 */
    }

    .availability-card p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        /* 保持桌面端的颜色 */
    }

    .availability-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .availability-tags span {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
        border-radius: 8px !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        white-space: nowrap !important;
        /* 保持桌面端的背景色 */
    }

    /* Engagement Grid */
    .engagement-grid,
    .cta-band-content {
        grid-template-columns: 1fr;
    }

    .project-card-body,
    .project-card-media {
        padding: 1.75rem;
    }

    /* CTA Band - まずは課題の棚卸しからご一緒に */
    .cta-band {
        padding: 3rem 0;
    }

    .cta-band-content {
        padding: 2.5rem 1.5rem;
        gap: 2rem;
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

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

    .cta-band-text h2 {
        font-size: 1.75rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .cta-band-text p {
        font-size: 1rem;
        line-height: 1.8;
        word-wrap: break-word;
        overflow-wrap: break-word;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .cta-band-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        gap: 1rem;
    }

    .cta-band-actions .btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 1.125rem 2rem;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 12px;
    }

    .cta-band-actions .btn-primary {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }

    .cta-band-actions .btn-secondary {
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
    }

    .footer-legal-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatar-video-wrapper {
        width: 300px;
        height: 300px;
        margin-bottom: 1rem;
    }

    .avatar-button::after {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }

    /* Engagement Section - 進め方と体制 */
    .engagement {
        padding: 3rem 0;
    }

    .engagement-grid {
        gap: 2.5rem;
    }

    .process-column h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .process-intro {
        font-size: 0.9rem;
        line-height: 1.7;
        margin: 0.75rem 0 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .process-list {
        gap: 1rem;
    }

    .process-step {
        grid-template-columns: 44px 1fr;
        gap: 0.875rem;
        padding: 1rem 0.875rem;
    }

    .step-index {
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .step-content {
        min-width: 0;
        width: 100%;
        flex: 1;
    }

    .step-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        white-space: normal;
        width: 100%;
        display: block;
    }

    .step-content p {
        font-size: 0.85rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Packages Section - よくあるご相談プラン */
    .packages-column h3 {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .package-cards {
        gap: 1.25rem;
    }

    .package-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .package-card h4 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .package-lead {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.875rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .package-list {
        font-size: 0.8rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .package-list li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.5;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .package-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .package-price {
        font-size: 1.4rem;
    }

    .package-note {
        font-size: 0.75rem;
    }
}

.hero-brand-mark svg {
    filter: drop-shadow(0 10px 30px rgba(255, 107, 53, 0.3));
    transition: var(--transition);
}

.hero-brand-mark:hover svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 15px 40px rgba(255, 107, 53, 0.4));
}

@keyframes brandFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #f8f9fa;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.title-sub {
    display: block;
    font-size: 1.25rem;
    color: #ff7a47;
    font-weight: 400;
}

.hero-description {
    margin-bottom: 2.5rem;
    max-width: 720px;
    text-align: left;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Hero Intro Box - 第一段带徽章 */
.hero-intro-box {
    padding: 0;
    margin-bottom: 2rem;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.intro-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.hero-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #1a1a1a;
    margin: 0;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Details Box - 第二段带图标和标签 */
.hero-details-box {
    padding: 0;
    margin-bottom: 2rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.details-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.hero-details {
    font-size: 1.35rem;
    line-height: 1.9;
    color: #333;
    margin: 0;
    flex: 1;
}

.location-tag {
    display: inline;
    color: #333;
    font-size: 1.05rem;
    font-weight: 700;
}

.service-tag {
    display: inline;
    color: #333;
    font-size: 1.05rem;
    font-weight: 700;
}

.emphasis-box {
    display: inline;
    color: var(--primary-color);
    font-weight: 700;
}

/* Hero CTA Box - 第三段带引号图标 */
.hero-cta-box {
    padding: 0;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.quote-icon {
    color: #999;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.hero-cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
    flex: 1;
}

.cta-highlight {
    color: #333;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* AI Assistant Tips */
.hero-ai-tip {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 0.75rem 1.25rem;
    background: rgba(102, 126, 234, 0.4);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    }
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b, #ff7a47);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* Assemble Icon Button */
.assemble-icon-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0.6;
}

.assemble-icon-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.assemble-icon-btn:active {
    transform: scale(0.95);
}

/* Icon dots representing characters */
.icon-dots {
    position: relative;
    width: 24px;
    height: 24px;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.4s ease;
    opacity: 0.8;
}

/* Scattered state (default) */
.dot-1 { top: 2px; left: 8px; }
.dot-2 { top: 6px; left: 16px; }
.dot-3 { top: 12px; left: 4px; }
.dot-4 { top: 18px; left: 12px; }
.dot-5 { top: 8px; left: 2px; }
.dot-6 { top: 16px; left: 18px; }
.dot-7 { top: 4px; left: 20px; }
.dot-8 { top: 20px; left: 6px; }
.dot-9 { top: 14px; left: 14px; }

/* Assembled state (visual feedback when clicked) */
.assemble-icon-btn.assembled .dot-1 { top: 6px; left: 4px; }
.assemble-icon-btn.assembled .dot-2 { top: 6px; left: 8px; }
.assemble-icon-btn.assembled .dot-3 { top: 6px; left: 12px; }
.assemble-icon-btn.assembled .dot-4 { top: 6px; left: 16px; }
.assemble-icon-btn.assembled .dot-5 { top: 14px; left: 2px; }
.assemble-icon-btn.assembled .dot-6 { top: 14px; left: 6px; }
.assemble-icon-btn.assembled .dot-7 { top: 14px; left: 10px; }
.assemble-icon-btn.assembled .dot-8 { top: 14px; left: 14px; }
.assemble-icon-btn.assembled .dot-9 { top: 14px; left: 18px; }

/* Assembled state visual feedback */
.assemble-icon-btn.assembled {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
}

/* Hover animation */
.assemble-icon-btn:hover .dot {
    background: #ff6b35;
    transform: scale(1.2);
    opacity: 1;
}

/* Click animation */
.assemble-icon-btn:active .dot {
    transform: scale(0.8);
}

/* Subtle pulse animation */
.assemble-icon-btn {
    animation: iconPulse 4s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
    }
}

/* Dots random movement when not assembled */
.dot {
    animation: dotFloat 3s ease-in-out infinite;
}

.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: -0.3s; }
.dot-3 { animation-delay: -0.6s; }
.dot-4 { animation-delay: -0.9s; }
.dot-5 { animation-delay: -1.2s; }
.dot-6 { animation-delay: -1.5s; }
.dot-7 { animation-delay: -1.8s; }
.dot-8 { animation-delay: -2.1s; }
.dot-9 { animation-delay: -2.4s; }

@keyframes dotFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(1px, -1px) scale(1.1);
    }
    50% {
        transform: translate(-1px, 1px) scale(0.9);
    }
    75% {
        transform: translate(1px, 1px) scale(1.05);
    }
}

/* Stop floating when assembled */
.assemble-icon-btn.assembled .dot {
    animation: none;
}

/* 3D Floating Elements */
/* Hero tags */
.hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0}
.hero-tags .tag{font-size:.85rem;padding:6px 10px;border-radius:999px;background:var(--bg-light);border:1px solid var(--border-color);color:var(--text-light)}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 600px;
}

/* Services Video Introduction */
.services-video-intro {
    margin: 3rem 0;
    text-align: center;
    position: relative;
}

.services-video-intro video {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 107, 53, 0.1);
    transition: all 0.4s ease;
    background: var(--bg-secondary);
}

.services-video-intro video:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.25);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Enhanced Services Grid Layout */
.services-overview {
    position: relative;
    overflow: hidden;
}

.services-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Featured Visual (Home) */
.featured-visual {
    padding: 3rem 0;
    background: var(--bg-light);
    position: relative;
}

.featured-visual .featured-visual-wrap {
    overflow: hidden;
    height: auto;
    min-height: 500px;
    width: 100%;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    padding-bottom: 50%;
    position: relative;
}

/* Ken Burns effect for featured visuals */
@keyframes kbZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

/* Testimonials source */
.testimonial-card .source{ margin-top:.5rem; color: var(--text-light); font-size: .85rem; }

@media (max-width: 768px) {
    .featured-visual .featured-visual-wrap {
        background-attachment: scroll !important;  /* 移动端禁用视差效果 */
        min-height: 300px !important;
        padding-bottom: 0 !important;
        height: auto !important;
    }

    .featured-visual .featured-visual-wrap img {
        height: auto !important;
        width: 100%;
        display: block;
    }

    /* Testimonials Section - お客様の声 */
    .testimonials {
        background-attachment: scroll !important;
        padding: 3rem 0;
        overflow-x: hidden;
    }

    .testimonials .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow: hidden;
    }

    .testimonials .section-header {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .testimonials .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .testimonials .section-header p {
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .testimonials-slider {
        margin: 0;
        padding: 0;
        overflow: hidden;
        width: 100%;
    }

    .testimonials-track {
        min-height: 200px;
        position: relative;
        width: 100%;
    }

    .testimonial-card {
        padding: 1.25rem 1rem !important;
        border-radius: 10px !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        inset: auto !important;
    }

    .testimonials .quote {
        font-size: 0.95rem;
        line-height: 1.7;
        padding-left: 10px;
        border-left-width: 3px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }

    .testimonial-card .tags {
        margin-top: 0.75rem;
        gap: 0.4rem;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .tag-pill {
        font-size: 0.7rem;
        padding: 0.125rem 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .testimonials .source {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.75rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .testimonials .source img {
        width: 52px;
        max-height: 28px;
        flex-shrink: 0;
    }

    .testimonials .source span {
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        flex: 1;
        min-width: 0;
    }

    .testimonials-nav {
        margin-top: 1.25rem;
        gap: 10px;
    }

    .testimonials-nav .dot {
        width: 8px;
        height: 8px;
    }
}


/* Testimonials */
.testimonials {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    /* Parallax background similar to hero */
    background:
        url('../images/backgrounds/hero-pattern.svg'),
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        linear-gradient(135deg,
            #faf7ff 0%,
            #f3f0ff 25%,
            #e9e5ff 50%,
            #d6d3f0 75%,
            #c4c1e0 100%);
    background-size: 200px 200px, cover, cover, cover, cover;
    background-attachment: fixed;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%23DC3545' stroke-width='0.4' stroke-opacity='0.06'%3E%3Cpath d='M0 50L25 25L50 50L75 25L100 50L75 75L50 50L25 75z'/%3E%3Cpath d='M10 10L90 10L90 90L10 90z'/%3E%3Cpath d='M30 30L70 30L70 70L30 70z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    animation: backgroundMove 30s linear infinite reverse;
    z-index: 0;
}

.testimonials::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(220, 53, 69, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(138, 43, 226, 0.05) 0%, transparent 35%);
    animation: gradientShift 18s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}
.testimonials .section-header{ text-align:center; margin-bottom:2rem; position: relative; z-index: 2; }
.testimonials .container { position: relative; z-index: 2; }
.testimonials .quote{ font-size:1.125rem; color:var(--text-color); line-height:1.8; }
.testimonials .meta{ color:var(--text-light); font-size:0.9rem; margin-top:0.5rem; }
.testimonials-slider{ position:relative; overflow:hidden; width:100%; }
.testimonials-track{ position:relative; width:100%; min-height:160px; }
.testimonial-card{ position:absolute; inset:0; background: var(--bg-light); border:1px solid var(--border-color); border-radius:12px; padding:28px; box-shadow: var(--shadow); opacity:0; transform: translateY(16px) scale(.98); filter: blur(2px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.6,.2,1), filter .6s ease; }
.testimonial-card.active{ opacity:1; transform: translateY(0) scale(1); filter: blur(0); }
/* accent per card */
.testimonial-card .quote{ border-left:4px solid var(--accent, var(--primary-color)); padding-left:12px; }
.testimonial-card .tags{ margin-top:.5rem; display:flex; flex-wrap:wrap; gap:6px; }
.testimonials .source{ display:flex; align-items:center; gap:0.75rem; margin-top:0.9rem; font-weight:600; color:var(--secondary-color); }
.testimonials .source img{ width:68px; max-height:36px; object-fit:contain; filter:saturate(0.1) brightness(1.2); opacity:1; }
.testimonials .source span{ font-size:0.95rem; color:var(--text-color); }

.tag-pill{ font-size:.8rem; padding:.15rem .5rem; border-radius:999px; background:color-mix(in srgb, var(--accent, var(--primary-color)) 14%, #fff); color:color-mix(in srgb, var(--accent, var(--primary-color)) 70%, #333); border:1px solid color-mix(in srgb, var(--accent, var(--primary-color)) 46%, #ddd); }

.testimonials-nav{ display:flex; gap:12px; justify-content:center; margin-top:16px; }
.testimonials-nav .dot{ width:10px; height:10px; border-radius:50%; background:#ddd; cursor:pointer; transition:background .3s, transform .3s; }
.testimonials-nav .dot.active{ background: var(--primary-color); transform: scale(1.2); }

/* Modern geometric design elements */
.visual-element {
    position: relative;
    width: 550px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main central element */
.visual-element::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a, #ffb347);
    border-radius: 50%;
    /* Removed morphing animation for better performance */
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
}



/* Interactive floating elements */
.floating-shape {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    /* Removed morphing animation for better performance */
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

/* Text shape specific styles */
.text-shape {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    /* Removed textMorphing animation for better performance */
    font-family: 'Arial Black', sans-serif;
}

.interactive-shape {
    user-select: none;
    transform-origin: center;
}

.interactive-shape:hover {
    opacity: 0.9;
    transform: scale(1.2);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.interactive-shape.dragging {
    z-index: 20;
    opacity: 1;
    transform: scale(1.3);
    animation: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.interactive-shape.escaping {
    z-index: 15;
    opacity: 0.9;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: none;
}

.interactive-shape.autonomous-moving {
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.interactive-shape.assembling {
    z-index: 25;
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    animation: assembleGlow 1s ease-out;
}

.interactive-shape.scattering {
    z-index: 20;
    transform: scale(0.9) rotate(180deg);
    opacity: 0.8;
    animation: scatterSpin 1.2s ease-out;
}

@keyframes assembleGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0.3);
    }
    100% {
        box-shadow: 0 0 0 30px rgba(102, 126, 234, 0);
    }
}

@keyframes scatterSpin {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(0.8) rotate(180deg);
    }
    100% {
        transform: scale(0.9) rotate(360deg);
    }
}

/* Character-specific styles with different colors and morphing */
#char-R {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 25px 15px 20px 30px;
    animation-delay: 0s;
}

#char-A {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    border-radius: 30px 20px 25px 15px;
    animation-delay: -1s;
}

#char-K {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    border-radius: 15px 30px 20px 25px;
    animation-delay: -2s;
}

#char-U {
    background: linear-gradient(135deg, #F093FB, #F5576C);
    border-radius: 20px 25px 30px 15px;
    animation-delay: -3s;
}

#char-M {
    background: linear-gradient(135deg, #4FACFE, #00F2FE);
    border-radius: 25px 20px 15px 30px;
    animation-delay: -4s;
}

#char-A2 {
    background: linear-gradient(135deg, #43E97B, #38F9D7);
    border-radius: 30px 15px 25px 20px;
    animation-delay: -5s;
}

#char-R2 {
    background: linear-gradient(135deg, #FA709A, #FEE140);
    border-radius: 15px 25px 30px 20px;
    animation-delay: -6s;
}

#char-I {
    background: linear-gradient(135deg, #A8EDEA, #FED6E3);
    border-radius: 20px 30px 15px 25px;
    animation-delay: -7s;
}

#char-O {
    background: linear-gradient(135deg, #FF8A80, #EA80FC);
    border-radius: 25px 15px 30px 20px;
    animation-delay: -8s;
}

#char-raku {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    border-radius: 30px 25px 20px 15px;
    animation-delay: -1.5s;
    font-size: 1.8rem;
}

#char-ma {
    background: linear-gradient(135deg, #F093FB, #F5576C);
    border-radius: 15px 20px 25px 30px;
    animation-delay: -2.5s;
    font-size: 1.8rem;
}

#char-ri {
    background: linear-gradient(135deg, #4FACFE, #00F2FE);
    border-radius: 20px 15px 30px 25px;
    animation-delay: -3.5s;
    font-size: 1.8rem;
}

#char-o2 {
    background: linear-gradient(135deg, #43E97B, #38F9D7);
    border-radius: 25px 30px 15px 20px;
    animation-delay: -4.5s;
    font-size: 1.8rem;
}

/* Position characters in a scattered layout */
#char-R { top: 10%; left: 5%; }
#char-A { top: 25%; left: 15%; }
#char-K { top: 45%; left: 8%; }
#char-U { top: 65%; left: 20%; }
#char-M { top: 80%; left: 12%; }

#char-A2 { top: 15%; left: 40%; }
#char-R2 { top: 35%; left: 45%; }
#char-I { top: 55%; left: 42%; }
#char-O { top: 75%; left: 48%; }

#char-raku { top: 20%; right: 15%; }
#char-ma { top: 40%; right: 8%; }
#char-ri { top: 60%; right: 18%; }
#char-o2 { top: 80%; right: 12%; }

/* Keyword bubbles - smaller, more subtle */
.keyword-shape {
    width: 130px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: keywordFloat 6s ease-in-out infinite;
    opacity: 0.8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

.keyword-shape:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@keyframes keywordFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Position keyword bubbles - spread to outer edges */
#keyword-multilingual {
    top: 5%;
    right: 18%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    animation-delay: -1s;
}

#keyword-uiux {
    top: 30%;
    right: 3%;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3), rgba(68, 160, 141, 0.3));
    animation-delay: -2s;
}

#keyword-3d {
    bottom: 35%;
    left: 3%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(247, 147, 30, 0.3));
    animation-delay: -3s;
}

#keyword-maintenance {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.3), rgba(245, 87, 108, 0.3));
    animation-delay: -4s;
}

/* Professional Services */
.services-overview {
    padding: 6rem 0;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%),
        url('../images/backgrounds/bk01.png');
    background-size: auto, cover;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, fixed;
    background-position: center, center;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.services-overview h2 {
    color: white;
}

.services-overview .services-header p {
    color: #e9ecef;
}

.services-overview .service-card h3 {
    color: #f8f9fa;
}

.services-overview .service-card p {
    color: #e9ecef;
}



.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f2f2f2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

.services-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.services-overview .service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff8c5a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.service-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-icon {
    transform: translateZ(20px) rotateY(10deg);
}

.service-card:hover .service-title {
    transform: translateZ(15px);
}

.service-card:hover .service-description {
    transform: translateZ(10px);
}

.service-card:hover .service-features {
    transform: translateZ(8px);
}

.service-card:hover .service-tools {
    transform: translateZ(5px);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* SVG Icon Animations */
.service-icon svg {
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

/* Image Icon Styles */
.service-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

/* UI Design Icon Animation */
.ui-design-card .service-icon svg {
    animation: uiPulse 3s ease-in-out infinite;
}

@keyframes uiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); filter: brightness(1.1); }
}

.ui-design-card:hover .service-icon svg {
    animation: uiSpin 1s ease-in-out infinite;
}

@keyframes uiSpin {
    0% { transform: scale(1.1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(360deg); }
}

/* 3D Production Icon Animation */
.3d-production-card .service-icon svg {
    animation: shieldGlow 4s ease-in-out infinite;
}

@keyframes shieldGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
        transform: scale(1);
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 107, 53, 0.5));
        transform: scale(1.02);
    }
}

.3d-production-card:hover .service-icon svg {
    animation: shieldBounce 0.6s ease-in-out infinite;
}

@keyframes shieldBounce {
    0%, 100% { transform: scale(1.1) translateY(0); }
    50% { transform: scale(1.15) translateY(-3px); }
}

/* Video Production Icon Animation */
.video-production-card .service-icon svg {
    animation: videoPlay 2.5s ease-in-out infinite;
}

@keyframes videoPlay {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.02) translateX(1px); }
    50% { transform: scale(1.05); }
    75% { transform: scale(1.02) translateX(-1px); }
}

.video-production-card:hover .service-icon svg {
    animation: videoZoom 0.8s ease-in-out infinite alternate;
}

@keyframes videoZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.2) rotate(2deg); }
}

/* Special effects for SVG elements */
.service-icon svg path,
.service-icon svg rect,
.service-icon svg circle,
.service-icon svg polygon {
    transition: all 0.3s ease;
}

/* Hover effects for individual SVG elements */
.ui-design-card:hover .service-icon svg rect {
    stroke-width: 3;
}

.3d-production-card:hover .service-icon svg path {
    stroke-width: 3;
}

.video-production-card:hover .service-icon svg polygon {
    transform-origin: center;
    animation: playButtonPulse 0.5s ease-in-out infinite alternate;
}

@keyframes playButtonPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: #b6e6f0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tool-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.services-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 107, 53, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.cta-ai-tip {
    margin: 1rem auto 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.25rem;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    animation: subtlePulse 3s ease-in-out infinite;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.cta-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-overview .cta-text {
    color: #e9ecef;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.services-overview .btn-secondary {
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.3);
}

.services-overview .btn-secondary:hover {
    color: white;
    border-color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Disable 3D effects on mobile for performance */
@media (max-width: 768px) {
    .skills-3d-decorations {
        display: none;
    }

    .service-card:hover,
    .work-card:hover,
    .consultation-item:hover,
    .skill-category-detailed:hover {
        transform: translateY(-5px) !important;
        transform-style: flat !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    .services-header h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 200px;
    }

    /* Mobile: Auto-show hover effect when card is in viewport */
    .service-card.in-viewport {
        transform: translateY(-8px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    .service-card.in-viewport::before {
        transform: scaleX(1);
    }

    .service-card.in-viewport .service-icon {
        transform: translateZ(20px) rotateY(10deg);
    }

    .service-card.in-viewport .service-title {
        transform: translateZ(15px);
    }

    .service-card.in-viewport .service-description {
        transform: translateZ(10px);
    }

    .service-card.in-viewport .service-features {
        transform: translateZ(8px);
    }

    .service-card.in-viewport .service-tools {
        transform: translateZ(5px);
    }

    .service-card.in-viewport .service-icon svg,
    .service-card.in-viewport .service-icon img {
        transform: scale(1.1);
    }

    /* Mobile: Auto-show hover effect for skill cards when in viewport */
    .skill-category.in-viewport {
        transform: translateY(-12px) scale(1.03);
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 107, 53, 0.1);
        border-color: var(--primary-color);
    }

    .skill-category.in-viewport::before {
        transform: translateX(0);
    }

    .skill-category.in-viewport .skill-icon {
        transform: translateY(-4px) scale(1.1);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .floating-3d-shape,
    .skill-3d-element,
    .cube-3d,
    .pyramid-3d,
    .sphere-3d,
    .octahedron-3d {
        animation: none !important;
    }

    .service-card:hover,
    .work-card:hover,
    .consultation-item:hover,
    .skill-category-detailed:hover {
        transform: translateY(-5px) !important;
    }
}

/* Skills Preview */
.skills-preview {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.skills-preview-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skills-preview-video.visible {
    opacity: 1;
}

.skills-preview h2 {
    color: #f8f9fa;
}

.skills-preview .skill-category h3 {
    color: #ececec;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.skills-preview .skill-category p {
    color: #e9ecef;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}



.skills-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #f2f2f2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transform: translateY(0) scale(1);
}

.skills-preview .skill-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skills-preview .skill-name {
    color: #f2f2f2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.skills-preview .skill-percentage {
    color: #e9ecef;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.skill-levels {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.skill-levels li {
    color: #d1d5db;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.skill-levels li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff8c5a, #4ecdc4);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-category:hover::before {
    transform: translateX(0);
}

.skill-category:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
}

.skill-category:active {
    transform: translateY(-6px) scale(1.01);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-light);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.skill-item:hover {
    transform: translateX(4px);
    border-bottom-color: var(--primary-color);
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-name {
    font-weight: 500;
    color: var(--text-color);
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-progress {
    width: 80px;
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff8c5a);
    border-radius: 3px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: scaleX(1);
    transform-origin: left;
}

.skill-item:hover .skill-progress-fill {
    background: linear-gradient(90deg, var(--primary-color), #ff8c5a, #4ecdc4);
    transform: scaleX(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.skill-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.skill-percentage {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    min-width: 30px;
    transition: all 0.3s ease;
    transform: scale(1);
}

.skill-item:hover .skill-percentage {
    color: var(--primary-color);
    transform: scale(1.1);
    font-weight: 700;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Skill Icons */
.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
}

.skill-category:hover .skill-icon {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.skill-category:active .skill-icon {
    transform: translateY(-2px) scale(1.05);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Design Tool Icon */
.design-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.design-icon svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.skill-category:hover .design-icon svg {
    animation: designIconFloat 2s ease-in-out infinite;
}

@keyframes designIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* 3D Animation Icon */
.three-d-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
}

.three-d-scene {
    width: 50px;
    height: 50px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 8s linear infinite;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 107, 53, 0.6);
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(255, 107, 53, 0.2);
}

.front { transform: rotateY(0deg) translateZ(25px); }
.back { transform: rotateY(180deg) translateZ(25px); }
.right { transform: rotateY(90deg) translateZ(25px); }
.left { transform: rotateY(-90deg) translateZ(25px); }
.top { transform: rotateX(90deg) translateZ(25px); }
.bottom { transform: rotateX(-90deg) translateZ(25px); }

@keyframes rotate3d {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Media Icon */
.media-icon {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.audio-visualizer {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 40px;
}

.bar {
    width: 6px;
    background: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    border-radius: 3px 3px 0 0;
    animation: bounce 1.5s ease-in-out infinite;
}

.bar:nth-child(1) { height: 15px; animation-delay: 0s; }
.bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.bar:nth-child(3) { height: 40px; animation-delay: 0.2s; }
.bar:nth-child(4) { height: 25px; animation-delay: 0.3s; }
.bar:nth-child(5) { height: 20px; animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.3); }
}

/* Development Icon */
.dev-icon {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.code-editor {
    width: 55px;
    height: 40px;
    background: rgba(40, 44, 52, 0.9);
    border-radius: 6px;
    padding: 6px;
    animation: codeFloat 3s ease-in-out infinite;
}

.editor-header {
    display: flex;
    gap: 3px;
    margin-bottom: 6px;
}

.editor-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.editor-dot:nth-child(1) { background: #ff5f56; }
.editor-dot:nth-child(2) { background: #ffbd2e; }
.editor-dot:nth-child(3) { background: #27ca3f; }

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.code-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    animation: typingEffect 2s ease-in-out infinite;
}

.code-line.short { width: 60%; }
.code-line.medium { width: 80%; }

.code-line:nth-child(1) { animation-delay: 0s; }
.code-line:nth-child(2) { animation-delay: 0.5s; }
.code-line:nth-child(3) { animation-delay: 1s; }
.code-line:nth-child(4) { animation-delay: 1.5s; }

@keyframes codeFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
}

@keyframes typingEffect {
    0%, 100% { opacity: 1; width: 100%; }
    50% { opacity: 0.6; width: 90%; }
}

/* Legacy skill tags for compatibility */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: 3.5rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

.footer-contact-websites {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: flex-start;
}

.footer-about h3,
.footer-contact h3,
.footer-partners h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-about .location {
    color: #ccc;
    margin-bottom: 1rem;
}

.footer-about .services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

.footer-about .services-list p {
    margin: 0.5rem 0;
    color: #e0e0e0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.line-link .line-icon {
    background: #00C300;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.line-link:hover .line-icon {
    background: #00B300;
    transform: scale(1.05);
}

.line-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-partners .partner-logos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.partner-link {
    display: block;
    transition: var(--transition);
}

.partner-logo {
    width: 160px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 12px;
    transition: var(--transition);
}

.partner-link:hover .partner-logo {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: rotate(90deg) scale(1.05);
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(180deg) scale(0.95);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: rotate(270deg) scale(1.1);
    }
}

@keyframes textMorphing {
    0%, 100% {
        border-radius: 20px;
        transform: rotate(0deg) scale(1);
    }
    20% {
        border-radius: 30px 15px 25px 20px;
        transform: rotate(2deg) scale(1.02);
    }
    40% {
        border-radius: 15px 30px 20px 25px;
        transform: rotate(-1deg) scale(0.98);
    }
    60% {
        border-radius: 25px 20px 30px 15px;
        transform: rotate(1deg) scale(1.01);
    }
    80% {
        border-radius: 20px 25px 15px 30px;
        transform: rotate(-2deg) scale(0.99);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* About Snapshot */
.about-highlight {
    padding: 6rem 0;
}

.about-highlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: stretch;
}

.about-highlight-text h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-highlight-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 620px;
}

.about-highlight-list {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

.about-highlight-list li {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 40px rgba(25, 32, 72, 0.08);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    backdrop-filter: blur(12px);
}

.highlight-label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
    font-family: var(--font-en);
    letter-spacing: 0.03em;
}

.highlight-desc {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.98rem;
}

.about-highlight-meta {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 18px 38px rgba(34, 39, 63, 0.12);
    backdrop-filter: blur(12px);
}

.highlight-number {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--font-en);
}

.highlight-caption {
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.availability-card {
    background: rgba(28, 33, 54, 0.92);
    color: #f5f6fb;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 46px rgba(18, 21, 45, 0.18);
}

.availability-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.availability-card p {
    line-height: 1.7;
    color: rgba(245, 246, 251, 0.8);
    margin-bottom: 1.25rem;
}

.availability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.availability-tags span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

/* Featured Projects */
.featured-projects {
    padding: 6rem 0;
}

.featured-projects .section-header {
    margin-bottom: 4rem;
}

.featured-projects .section-header h2 {
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.featured-projects .section-header p {
    line-height: 1.9;
    margin-top: 0.5rem;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(40, 44, 70, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 70px rgba(24, 28, 60, 0.18);
}

.project-card-media {
    position: relative;
    padding: 2.5rem 2.5rem 0;
}

.project-card-media img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* Project Card Carousel */
.project-card-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
}

/* Carousel Navigation Buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

.project-card-body {
    padding: 0 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-tag {
    font-weight: 600;
    color: var(--secondary-color);
}

.project-title {
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--secondary-color);
}

.project-description {
    color: var(--text-light);
    line-height: 1.7;
}

.project-metrics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.project-metrics li::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.project-cta {
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.project-link::after {
    content: "→";
    font-family: var(--font-en);
    transition: transform 0.3s ease;
}

.project-link:hover::after {
    transform: translateX(4px);
}

.project-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Engagement (Process & Packages) */
.engagement {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(26, 32, 56, 0.92), rgba(22, 24, 44, 0.96));
    color: #f4f6fb;
}

.engagement h2,
.engagement h3,
.engagement h4,
.engagement p,
.engagement li {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.engagement-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.process-intro {
    color: rgba(244, 246, 251, 0.75);
    margin: 1rem 0 2rem;
    line-height: 1.8;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
}

.process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.5rem;
    padding: 1.4rem 1.6rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.step-index {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.step-content {
    min-width: 0;
    width: 100%;
    flex: 1;
}

.step-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal;
    width: 100%;
    display: block;
}

.step-content p {
    color: rgba(244, 246, 251, 0.76);
    line-height: 1.7;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.packages-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.package-cards {
    display: grid;
    gap: 1.5rem;
}

.package-card {
    background: rgba(13, 17, 34, 0.7);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(10, 14, 32, 0.2);
    display: grid;
    gap: 1rem;
}

.package-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.package-lead {
    color: rgba(244, 246, 251, 0.75);
    line-height: 1.6;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.package-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.package-list li {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.package-list li::before {
    content: "✓";
    margin-right: 0.5rem;
    color: #4ecdc4;
}

.package-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.package-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fdf4ea;
}

.package-note {
    font-size: 0.9rem;
    color: rgba(244, 246, 251, 0.6);
}

.package-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(244, 246, 251, 0.55);
}

/* Insights */
.insights {
    padding: 6rem 0;
}

.insights .section-header {
    margin-bottom: 3rem;
}

.insights .section-header h2 {
    margin-bottom: 1rem;
}

.insights .section-header p {
    line-height: 1.8;
}

.insight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 44px rgba(38, 44, 78, 0.12);
    display: grid;
    gap: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Scroll animation - only apply when in-view */
.insight-card.scroll-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.insight-card.in-view {
    animation: slideInUp 0.6s ease forwards;
}

.insight-card.in-view:nth-child(1) {
    animation-delay: 0.1s;
}

.insight-card.in-view:nth-child(2) {
    animation-delay: 0.2s;
}

.insight-card.in-view:nth-child(3) {
    animation-delay: 0.3s;
}

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

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 56px rgba(38, 44, 78, 0.2);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.7);
}

/* New Badge for Latest Article */
.insight-new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5);
    }
}

.insight-date {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.insight-card h3 {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--secondary-color);
}

.insight-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.insight-link {
    justify-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.insight-link::after {
    content: "↗";
    transition: transform 0.3s ease;
}

.insight-link:hover::after {
    transform: translate(2px, -2px);
}

/* Final CTA */
.cta-band {
    padding: 5rem 0;
}

.cta-band-content {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(78, 205, 196, 0.85));
    padding: 3.5rem;
    color: #fff7f0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    box-shadow: 0 30px 60px rgba(255, 107, 53, 0.25);
}

.cta-band-text h2 {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.cta-band-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.cta-band-ai-tip {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    animation: subtlePulse 3s ease-in-out infinite;
}

.cta-band-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

.cta-band .btn-secondary {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.cta-band .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer enhancements */
.footer-sitemap {
    color: #f8f9fa;
}

.footer-sitemap h3 {
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.footer-links a {
    color: rgba(248, 249, 250, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.legal-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    text-decoration: none;
}

.legal-link[aria-disabled="true"]{ cursor:not-allowed; pointer-events:none; opacity:0.7; }
.legal-link:hover {
    color: #ffffff;
}


/* Responsive Design */

/* Tablet (iPad) breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-container{ height: 76px; }
  .brand-link img{ height: 52px !important; }
  .nav-menu{ gap: 1rem; }
  .nav-text-ja { font-size: 0.85rem; }
  .nav-text-en { font-size: 0.7rem; }
  .title-main{ font-size: 2.4rem; }
  .title-sub{ font-size: 1.15rem; }
  .hero-container{ grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
  .hero-visual{ height: 420px; }
/* Very small devices (iPhone SE/12/13 mini width ≤ 390px) */
@media (max-width: 390px) {
  :root { --nav-height: 84px; }
  .brand-link img{ height: 56px !important; }
}

  .services-header h2{ font-size: 2.2rem; }
  .services-grid{ grid-template-columns: 1fr 1fr; }
}

    /* Mobile adjustments: slightly smaller logo on narrow screens */
    .brand-link img{ height: 92px !important; }

@media (max-width: 768px) {
    /* Global mobile fixes */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: #1f2227;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
        gap: 1.5rem;
        overflow-y: auto;
    }
    .nav-menu a{ color:#e6e6e6; }
    .nav-menu a:hover{ color:#fff; }
    .nav-menu a.active{ color:#83dcf1; }

    /* Mobile Menu Logo - show on mobile */
    .nav-menu-logo {
        display: flex;
        flex-direction: column;
        margin-top: auto;
        padding: 2rem 1rem;
        justify-content: center;
        align-items: center;
        opacity: 0.6;
        gap: 1rem;
    }

    .nav-menu-logo img {
        max-width: 120px;
        height: auto;
        filter: brightness(0.8);
    }

    .nav-menu-copyright {
        color: #999;
        font-size: 0.75rem;
        text-align: center;
        margin: 0;
    }

    /* Mobile bilingual nav adjustments */
    .nav-link {
        padding: 0.5rem 1rem;
    }

    .nav-text-ja {
        font-size: 1rem;
    }

    .nav-text-en {
        font-size: 0.8rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Show mobile language switcher, hide desktop one */
    .lang-switcher {
        display: none;
    }

    .lang-switcher-mobile {
        display: flex;
    }

    /* Hero Section - Mobile */
    /* 移动端：从上往下排列，不居中 */
    .hero {
        justify-content: flex-start; /* 改为从上开始 */
        align-items: flex-start; /* 改为从左开始 */
        min-height: auto; /* 移除最小高度限制 */
        padding-bottom: 2rem; /* 添加底部间距 */
    }

    .hero-container {
        display: flex !important; /* 改为flex布局，让order生效 */
        flex-direction: column;
        text-align: center;
        gap: 0; /* 移除gap，用margin控制间距 */
        align-items: center;
        width: 100%;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-width: 0;
        order: 1; /* 文字在上 */
    }

    .hero-visual {
        display: none !important; /* 移动端完全隐藏 */
    }

    .hero-visual .visual-element {
        width: 300px;
        height: 300px;
        margin: 0 auto;
        position: relative;
        top: 0;
    }

    .hero-ai-tip {
        margin-bottom: 0 !important;
    }

    /* 移动端：字母圆圈恢复原始大小 */
    .text-shape {
        width: 60px !important;
        height: 60px !important;
        font-size: 2rem !important;
    }

    .hero-actions, .hero-tags { width: 100%; justify-content: center; }
    .hero-title, .hero-description { text-align: center; }

    .title-main {
        font-size: 2rem;
    }

    /* Mobile hero description styles */
    .hero-description {
        max-width: 100%;
        padding: 0;
    }

    .hero-intro-box,
    .hero-details-box,
    .hero-cta-box {
        padding: 1.2rem 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .hero-intro-box {
        padding: 1rem;
    }

    .intro-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
        margin-bottom: 0.8rem;
    }

    .intro-badge svg {
        width: 14px;
        height: 14px;
    }

    .hero-intro {
        font-size: 1.35rem;
        line-height: 1.9;
    }

    .hero-intro br {
        display: none;
    }

    .highlight-text {
        font-size: 1.35rem;
        padding: 2px 6px;
        white-space: nowrap;
    }

    .hero-details-box {
        flex-direction: row;
        gap: 0.8rem;
        padding: 1rem;
    }

    .details-icon {
        font-size: 1.6rem;
        margin-top: 0.1rem;
    }

    .hero-details {
        font-size: 1.2rem;
        line-height: 1.9;
    }

    .hero-details br {
        display: none;
    }

    .location-tag {
        font-size: 1rem;
        padding: 0.3rem 0.65rem;
        margin-bottom: 0.6rem;
        display: inline-block;
    }

    .service-tag {
        font-size: 1.15rem;
        padding: 0.35rem 0.75rem;
        display: inline-block;
        margin: 3px;
        white-space: nowrap;
    }

    .emphasis-box {
        font-size: 1.1rem;
        padding: 0.65rem 0.85rem;
        border-width: 1.5px;
        line-height: 1.7;
        margin-top: 0.6rem;
    }

    .hero-cta-box {
        padding: 1rem;
    }

    .quote-icon {
        width: 24px;
        height: 24px;
        margin-top: 0.1rem;
    }

    .hero-cta-text {
        font-size: 1.2rem;
        line-height: 1.9;
    }

    .hero-cta-text br {
        display: none;
    }

    .cta-highlight {
        font-size: 1.15rem;
        padding: 0.2rem 0.6rem;
        display: inline-block;
        white-space: nowrap;
    }

    /* Center flex-based elements on mobile */
    .hero-brand-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-brand-mark { justify-content: center; }
    .hero-tags { justify-content: center; }

    .hero-actions {
        justify-content: center;
    }

    /* Featured Image - Mobile */
    .featured-image {
        min-height: 300px;
    }

    .featured-image .container {
        height: 300px;
    }

    /* Services video mobile adjustments */
    .services-video-intro {
        margin: 2rem 0;
        padding: 0 1rem;
    }

    .services-video-intro video {
        max-width: 100%;
        border-radius: 16px;
        border-width: 2px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
    }

    .footer-contact-websites {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-about {
        text-align: left;
    }

    .footer-about h3,
    .footer-contact h3,
    .footer-sitemap h3,
    .footer-partners h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-about .location {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .footer-about .services-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }

    .footer-about .services-list p {
        margin: 0.2rem 0;
        font-size: 0.8rem;
    }

    .footer-contact {
        text-align: left;
        gap: 0.6rem;
    }

    .footer-contact .contact-link {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .footer-contact .line-link .line-icon {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .footer-sitemap .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .footer-sitemap .footer-links li {
        flex: 0 0 auto;
    }

    .footer-sitemap .footer-links a {
        font-size: 0.85rem;
    }

    .footer-partners {
        text-align: left;
    }

    .footer-partners .partner-logos {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .footer-partners .partner-logo {
        height: 32px !important;
        width: auto;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .legal-link {
        font-size: 0.75rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .footer-partners .partner-logos {
        align-items: flex-end;
    }

    .partner-logo {
        width: 140px;
        height: 35px;
    }

    /* ========================================
       Engagement Section - 移动端完整样式
       ======================================== */

    /* 全局强制横排 */
    html, body, * {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    /* Engagement 容器 */
    .engagement {
        padding: 3rem 0 !important;
        background: linear-gradient(135deg, #1a1d2e 0%, #0f1117 100%) !important;
    }

    .engagement-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
        padding: 0 1rem !important;
        max-width: 100% !important;
    }

    /* Process Column */
    .process-column {
        width: 100% !important;
        max-width: 100% !important;
    }

    .process-column h2 {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: #f4f6fb !important;
        margin-bottom: 1rem !important;
        line-height: 1.3 !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .process-intro {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
        color: rgba(244, 246, 251, 0.76) !important;
        margin-bottom: 1.5rem !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    /* Process List */
    .process-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Process Step - 关键！使用 Grid 布局 */
    .process-step {
        display: grid !important;
        grid-template-columns: 50px 1fr !important;
        gap: 1rem !important;
        padding: 1.2rem !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 16px !important;
        backdrop-filter: blur(8px) !important;
        align-items: start !important;
    }

    /* Step Index */
    .step-index {
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 14px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: #f4f6fb !important;
        flex-shrink: 0 !important;
    }

    /* Step Content */
    .step-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .step-content h3 {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #f4f6fb !important;
        margin: 0 0 0.5rem 0 !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        display: block !important;
        width: 100% !important;
    }

    .step-content p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        color: rgba(244, 246, 251, 0.7) !important;
        margin: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    /* Packages Column */
    .packages-column {
        width: 100% !important;
        max-width: 100% !important;
    }

    .packages-column h3 {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        color: #f4f6fb !important;
        margin-bottom: 1.25rem !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    /* Package Cards */
    .package-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }

    .package-card {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 16px !important;
        padding: 1.5rem !important;
        backdrop-filter: blur(8px) !important;
    }

    .package-card h4 {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #f4f6fb !important;
        margin-bottom: 0.75rem !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .package-lead {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        color: rgba(244, 246, 251, 0.7) !important;
        margin-bottom: 1rem !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .package-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 0 1.25rem 0 !important;
    }

    .package-list li {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        color: rgba(244, 246, 251, 0.76) !important;
        padding-left: 1.25rem !important;
        position: relative !important;
        margin-bottom: 0.5rem !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }

    .package-list li::before {
        content: "✓" !important;
        position: absolute !important;
        left: 0 !important;
        color: #4ade80 !important;
        font-weight: 700 !important;
    }

    .package-price {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: #f4f6fb !important;
        margin-bottom: 0.75rem !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #e55a2b, #ff7a47);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.5);
    transform: translateY(-5px) scale(1.05);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    animation: bounceUp 2s ease-in-out infinite;
}

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.back-to-top:hover svg {
    animation: bounceUpFast 0.6s ease-in-out infinite;
}

@keyframes bounceUpFast {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

    .package-duration {
        font-size: 0.8rem !important;
        color: rgba(244, 246, 251, 0.6) !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }
}


