/* ===================================
   Kaleido Works - Main Stylesheet
   =================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --dark-blue: #1A2332;
    --dark-gray: #2C3E50;
    --light-gray: #ECF0F1;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-dark: linear-gradient(135deg, #1A2332 0%, #2C3E50 100%);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-blue);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== Section Padding ===== */
.section-padding {
    padding: var(--section-padding);
}

/* ===== Background Utilities ===== */
.bg-light {
    background-color: var(--light-gray);
}

.bg-dark {
    background-color: var(--dark-blue);
}

.bg-gradient {
    background: var(--gradient-primary);
}

/* ===== Text Utilities ===== */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-light {
    color: rgba(255, 255, 255, 0.8);
}

.large-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ===== Section Headers ===== */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 400;
}

.section-title.text-white + .section-subtitle {
    color: var(--light-gray);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn i {
    margin-right: 8px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(26, 35, 50, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
}

.nav-logo .logo-img {
    height: 82.5px;
    width: auto;
    transition: var(--transition-fast);
}

.nav-logo .logo-img:hover {
    transform: scale(1.05);
}

.logo-kaleid {
    color: var(--white);
    margin-right: 5px;
}

.logo-works {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

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

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-blue);
    min-width: 250px;
    padding: 15px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 10px 20px;
}

.dropdown-menu a {
    color: var(--white);
    display: block;
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-btn i.fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-switcher.active .lang-btn i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    overflow: hidden;
}

.language-switcher.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    list-style: none;
}

.lang-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-gray);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.lang-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.lang-menu a.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.btn-whatsapp:hover {
    background: #1fbd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-dark);
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1f 0%, #1a1a3e 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-background-geometric.png');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    animation: subtle-pulse 8s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.kaleidoscope-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
    animation: kaleidoscope-rotate 30s linear infinite;
}

@keyframes kaleidoscope-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    animation: float 20s infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 10%;
    left: 5%;
    animation-duration: 25s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    top: 60%;
    right: 10%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    bottom: 10%;
    left: 40%;
    animation-duration: 18s;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    top: 30%;
    right: 25%;
    animation-duration: 22s;
    animation-delay: -7s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    top: 50%;
    left: 15%;
    animation-duration: 28s;
    animation-delay: -12s;
}

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

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.hero-scroll {
    position: relative;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* ===== Animation Classes ===== */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.animate-fade-in.delay-1 {
    animation-delay: 0.3s;
}

.animate-fade-in.delay-2 {
    animation-delay: 0.6s;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all var(--transition-slow);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.4s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.6s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.8s;
}

/* ===== Kaleidoscope Section ===== */
.kaleidoscope-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.formula-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 220px;
    transition: all var(--transition-normal);
}

.formula-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.formula-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.formula-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.formula-card p {
    font-size: 1rem;
    color: var(--dark-gray);
}

.formula-operator {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.kaleidoscope-explanation {
    max-width: 800px;
    margin: 60px auto 0;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.game-icon {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

.print-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.design-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pm-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.service-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 500;
}

.service-description {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    margin-bottom: 25px;
}

.service-features li {
    padding: 8px 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ===== Process Timeline ===== */
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    z-index: 2;
}

.timeline-icon {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-weight: 800;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--dark-gray);
    line-height: 1.7;
}

/* ===== Why Section ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.why-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

.why-card h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* ===== Portfolio Section ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.portfolio-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.portfolio-industry {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.portfolio-industry i {
    color: var(--primary-color);
    margin-right: 5px;
}

.portfolio-details {
    border-top: 1px solid var(--light-gray);
    padding-top: 15px;
}

.portfolio-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.portfolio-details strong {
    color: var(--primary-color);
}

.portfolio-cta {
    margin-top: 60px;
}

/* ===== Portfolio Preview Masonry ===== */
.portfolio-preview {
    background: var(--light-gray);
}

/* Portfolio Showcase Grid - New Clean Design */
.portfolio-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.showcase-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.showcase-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.showcase-card:hover .showcase-image img {
    transform: scale(1.08);
}

.showcase-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.showcase-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.showcase-tag.design {
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

.showcase-tag.production {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.showcase-tag.event {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.showcase-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 12px;
    line-height: 1.4;
}

.showcase-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Portfolio Showcase */
@media (max-width: 1024px) {
    .portfolio-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .showcase-image {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .portfolio-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .showcase-image {
        height: 220px;
    }
    
    .showcase-content {
        padding: 20px;
    }
    
    .showcase-content h3 {
        font-size: 1.2rem;
    }
}
}

@media (max-width: 768px) {
    .portfolio-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .masonry-item.large,
    .masonry-item.medium,
    .masonry-item.small {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cta-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.info-item i {
    font-size: 1.2rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.footer-logo .footer-logo-img {
    height: 49.5px;
    width: auto;
    margin-bottom: 15px;
    opacity: 0.95;
    transition: var(--transition-fast);
}

.footer-logo .footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.contact-list i {
    color: var(--primary-color);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }
    
    .process-timeline::before {
        left: 50px;
    }
    
    .timeline-number {
        left: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav-logo .logo-img {
        height: 66px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark-blue);
        flex-direction: column;
        padding: 40px 20px;
        transition: left var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 10px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-subtitle .divider {
        display: block;
        margin: 10px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-large {
        padding: 14px 30px;
        font-size: 1rem;
        width: 100%;
    }
    
    .kaleidoscope-formula {
        flex-direction: column;
    }
    
    .formula-operator {
        transform: rotate(90deg);
    }
    
    .services-grid,
    .why-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .timeline-number {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-icon {
        display: none;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo .footer-logo-img {
        height: 41.25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .formula-card,
    .service-card {
        padding: 30px 20px;
    }
}

/* ===== Game Demo Section ===== */
.game-demo-section {
    background: #f8f9fa;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.game-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.game-thumbnail {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-thumbnail img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.game-screenshot {
    /* 專門針對遊戲截圖的樣式 */
    display: block;
    margin: 0 auto;
}

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

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 53, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-overlay i {
    font-size: 4rem;
    color: var(--white);
    animation: pulse 1.5s ease-in-out infinite;
}

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

.game-info {
    padding: 25px;
    text-align: center;
}

.game-info h3 {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.game-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-game-demo {
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
}

/* Game Showcase Modern - 3 Up 3 Down Layout */
.game-showcase-modern {
    max-width: 1200px;
    margin: 50px auto 0;
}

.game-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.game-row-top {
    /* Top row styling */
}

.game-row-bottom {
    /* Bottom row styling */
}

.game-card-modern {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.game-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.25);
}

.game-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--font-heading);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.game-thumbnail-modern {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-thumbnail-modern img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.game-card-modern:hover .game-thumbnail-modern img {
    transform: scale(1.05);
}

.game-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 107, 53, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card-modern:hover .game-play-overlay {
    opacity: 1;
}

.play-btn-large {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-btn-large:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.play-btn-large i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-left: 5px;
}

.game-info-modern {
    padding: 25px 20px;
    text-align: center;
}

.game-info-modern h3 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.game-category {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.game-category i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* USP Simple Row */
.game-usp-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 40px auto 50px;
    font-size: 1.1rem;
    color: var(--dark-blue);
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.usp-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.usp-separator {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Game Grid 3x2 Layout */
.game-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Game Contact Simple */
.game-contact-simple {
    text-align: center;
    margin: 60px 0 0;
    padding: 40px 20px;
}

.contact-text {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.game-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.game-modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

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

.game-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.game-modal-header h3 {
    margin: 0;
    color: var(--dark-blue);
    font-size: 1.5rem;
}

.game-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.game-modal-close:hover {
    color: var(--primary-color);
}

.game-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.game-modal-body iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.game-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid #eee;
    gap: 15px;
}

/* Responsive - Game Demo */
@media (max-width: 1024px) {
    .game-grid {
        gap: 30px;
    }
    
    .game-thumbnail {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .game-grid,
    .game-grid-3x2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-row {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .game-thumbnail-modern {
        height: 250px;
    }
    
    .game-badge {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .play-btn-large {
        width: 70px;
        height: 70px;
    }
    
    .play-btn-large i {
        font-size: 1.8rem;
    }
    
    .game-usp-simple {
        flex-direction: column;
        gap: 15px;
        margin: 30px auto 40px;
        font-size: 1rem;
    }
    
    .usp-separator {
        display: none;
    }
    
    .contact-text {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }
    
    .contact-buttons .btn {
        width: 100%;
    }
    
    .game-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .game-modal-body iframe {
        height: 500px;
    }
    
    .game-modal-header,
    .game-modal-footer {
        padding: 15px 20px;
    }
    
    .game-modal-footer {
        flex-direction: column;
    }
    
    .game-modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .game-thumbnail-modern {
        height: 220px;
    }
    
    .game-info-modern h3 {
        font-size: 1.2rem;
    }
    
    .game-info-modern {
        padding: 20px 15px;
    }
    
    .game-usp-simple {
        font-size: 0.95rem;
    }
    
    .usp-item i {
        font-size: 1.2rem;
    }
    
    .contact-text {
        font-size: 1rem;
    }
    
    .game-contact-simple {
        padding: 30px 15px;
        margin-top: 40px;
    }
    
    .game-modal-body iframe {
        height: 400px;
    }
}