/* =====================================================
   灰老大網頁設計 - 主樣式表
   GrayBoss Web Design - Main Stylesheet
   ===================================================== */

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors - Dark Professional Theme */
    --primary-color: #fbbf24;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #94a3b8;
    --text-color: #f8fafc;
    --text-light: #e2e8f0;
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --bg-card: #334155;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-secondary: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-text: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Noto Sans TC', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.cat-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
}

.cat-body {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.cat-head {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.cat-ear {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid white;
    position: absolute;
    top: -10px;
}

.cat-ear.left { left: 5px; transform: rotate(-15deg); }
.cat-ear.right { right: 5px; transform: rotate(15deg); }

.cat-eye {
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    animation: blink 3s infinite;
}

.cat-eye.left { left: 12px; }
.cat-eye.right { right: 12px; }

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.cat-tail {
    width: 40px;
    height: 40px;
    border: 8px solid white;
    border-radius: 50%;
    border-bottom-color: transparent;
    border-left-color: transparent;
    position: absolute;
    bottom: 10px;
    right: -20px;
    transform: rotate(45deg);
    animation: wag 1s infinite alternate;
}

@keyframes wag {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(35deg); }
}

.loading-text {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-primary);
}

.loading-text span {
    display: inline-block;
    animation: bounce 1.5s infinite;
}

.loading-text span:nth-child(1) { animation-delay: 0s; }
.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }
.loading-text span:nth-child(7) { animation-delay: 0.6s; }
.loading-text span:nth-child(8) { animation-delay: 0.7s; }

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-fast);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 20s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 28s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 50%;
    animation-delay: 1s;
    animation-duration: 22s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 30s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-100px) translateX(50px) rotate(90deg);
    }
    50% {
        transform: translateY(50px) translateX(-30px) rotate(180deg);
    }
    75% {
        transform: translateY(-50px) translateX(-50px) rotate(270deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 50%, #e6f3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    font-weight: 800;
    position: relative;
}

.gradient-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,248,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-visual {
    position: relative;
}

.cat-mascot {
    position: relative;
    animation: float-mascot 3s infinite alternate;
}

@keyframes float-mascot {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

.mascot-img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(99, 102, 241, 0.3);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.mascot-img:hover {
    transform: scale(1.05);
    border-color: rgba(99, 102, 241, 0.5);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    animation: orbit 10s infinite linear;
}

.float-item.code {
    top: 10%;
    left: 10%;
    color: var(--primary-color);
    animation-delay: 0s;
}

.float-item.design {
    top: 20%;
    right: 10%;
    animation-delay: 3s;
}

.float-item.heart {
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce-scroll 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

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

.scroll-indicator span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-color);
}

/* Pain Points Section */
.pain-points {
    padding: var(--section-padding);
    background: var(--bg-color);
    position: relative;
}

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

.pain-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    color: var(--text-color);
    cursor: pointer;
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.pain-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.pain-card:hover .pain-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.5);
}

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

.pain-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #f59e0b);
    border-radius: 50%;
    font-size: 2.2rem;
    color: white;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.pain-card h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.pain-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 50%;
}

.service-card.featured {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

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

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 15px;
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

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

.service-card.featured .service-features li::before {
    color: white;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--bg-light);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, rgba(251, 191, 36, 0.03) 50%, transparent 52%);
    pointer-events: none;
}

.features-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out;
}

.feature-item.left {
    flex-direction: row;
}

.feature-item.right {
    flex-direction: row-reverse;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.feature-content {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--text-color);
}

.feature-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #f59e0b);
    border-radius: 20px;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.feature-content h3 {
    margin-bottom: 10px;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1.1rem;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.5);
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/tech-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
}

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

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    color: var(--gray-color);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Portfolio Carousel Styles */
.portfolio-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card {
    min-width: 100%;
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.portfolio-card.active {
    transform: scale(1);
}

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

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(236, 72, 153, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    padding: 40px;
}

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

.image-overlay.coming-soon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(99, 102, 241, 0.8) 100%);
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    max-width: 600px;
}

.overlay-content h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.overlay-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.portfolio-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.portfolio-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.coming-soon-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.coming-soon-features div {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: visible;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
    animation: shimmer 2s infinite;
    border-radius: inherit;
    overflow: hidden;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
    z-index: 100;
    white-space: nowrap;
}

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

.pricing-header {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-header h3 {
    margin-bottom: 20px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 1.25rem;
    color: var(--gray-color);
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: var(--gray-color);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #10b981;
    font-size: 1.25rem;
}

/* Process Section */
.process {
    padding: var(--section-padding);
    background: var(--bg-color);
    position: relative;
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

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

.process-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

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

.process-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    position: absolute;
    left: 50%;
    z-index: 1;
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
    transition: all 0.6s ease 0.3s;
}

.process-number.animate {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.process-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 45%;
    color: var(--text-color);
    transition: all var(--transition-normal);
}

.process-item:nth-child(even) .process-content {
    margin-left: auto;
}

.process-content h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
}

.process-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

.process-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.process-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}


/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    space-y: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 15px;
    color: white;
    font-size: 1.25rem;
}

.info-content h4 {
    margin-bottom: 5px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.line-qrcode {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-top: 30px;
}

.line-qrcode img {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 10px;
}

.line-qrcode p {
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all var(--transition-normal);
}

.form-group select option {
    background: #1e293b;
    color: white;
    padding: 10px;
}

.form-group select option:hover {
    background: var(--primary-color);
    color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: all var(--transition-normal);
}

.form-group textarea + label {
    top: 20px;
    transform: translateY(0);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.875rem;
    background: var(--bg-card);
    color: var(--primary-color);
    padding: 0 5px;
    color: var(--primary-color);
}

.form-group select {
    cursor: pointer;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    space-y: 20px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

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

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

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

.footer h4 {
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.footer ul {
    list-style: none;
}

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

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

.footer ul a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Cat Assistant */
.cat-assistant {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
}

.cat-bubble {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
    animation-delay: 3s;
}

.cat-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.cat-bubble p {
    margin: 0;
    color: var(--dark-color);
}

.cat-avatar {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    animation: bounce 2s infinite;
}

.cat-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-item,
    .process-item:nth-child(even) {
        flex-direction: column;
    }
    
    .process-number {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 20px;
    }
    
    .process-content {
        width: 100%;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 40px 20px;
        transition: left var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .portfolio-carousel {
        margin: 0 10px;
    }
    
    .portfolio-main-image {
        height: 350px;
    }
    
    .carousel-nav {
        gap: 20px;
        margin-top: 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .overlay-content h3 {
        font-size: 2rem;
    }
    
    .overlay-content p {
        font-size: 1rem;
    }
    
    .portfolio-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    .feature-item,
    .feature-item.left,
    .feature-item.right {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.875rem;
    }
    
    .pain-grid {
        grid-template-columns: 1fr;
    }
    
    .process-content {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* New Portfolio Grid Design */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-showcase-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.showcase-image {
    position: relative;
    height: 600px;
    overflow: hidden;
}

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

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

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 32, 44, 0.95) 0%, 
        rgba(45, 55, 72, 0.95) 50%,
        rgba(74, 85, 104, 0.95) 100%);
    backdrop-filter: blur(5px);
}

.showcase-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 400px;
    transform: translateY(30px);
    transition: transform 0.5s ease 0.1s;
}

.portfolio-showcase-card:hover .showcase-content {
    transform: translateY(0);
}

.showcase-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
    background: linear-gradient(45deg, #fff, #f7fafc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.showcase-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.showcase-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.showcase-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.showcase-features span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.showcase-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(45deg, #ffd700, #f6ad55);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-top: 5px;
}

.showcase-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.showcase-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.showcase-btn i {
    font-size: 1.2rem;
}

/* Portfolio Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .showcase-image {
        height: 500px;
    }
    
    .showcase-content {
        padding: 30px 20px;
    }
    
    .showcase-content h3 {
        font-size: 1.8rem;
    }
    
    .showcase-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}