/* ============================================
   KIUFONG WEBSITE - Creative & Vibrant Style
   ============================================ */

:root {
    /* Vibrant Color Palette */
    --primary: #2D3436;
    --accent: #E17055;
    --accent-light: #FAB1A0;
    --secondary: #00B894;
    --tertiary: #6C5CE7;
    --quaternary: #FDCB6E;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #E17055 0%, #FDCB6E 100%);
    --gradient-2: linear-gradient(135deg, #6C5CE7 0%, #00B894 100%);
    --gradient-3: linear-gradient(135deg, #2D3436 0%, #636E72 100%);
    
    /* Background & Neutrals */
    --cream: #FAFAFA;
    --warm-white: #FFFFFF;
    --text-dark: #2D3436;
    --text-medium: #636E72;
    --text-light: #B2BEC3;
    
    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 50px rgba(0,0,0,0.15);
    --shadow-colorful: 0 8px 30px rgba(225, 112, 85, 0.3);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    width: 120px;
    height: 50px;
    background: url('../images/logo.png') no-repeat center;
    background-size: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-menu a.active {
    color: var(--accent);
}

.lang-toggle {
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-medium);
    background: none;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--accent);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION - Bold & Dynamic
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--warm-white);
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: var(--gradient-1);
    opacity: 0.08;
    transform: rotate(-15deg);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: var(--gradient-2);
    opacity: 0.05;
    transform: rotate(20deg);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 60px 40px;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary);
}

.hero h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(225, 112, 85, 0.4);
}

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

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

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

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-decoration {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 70%;
    z-index: 1;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    opacity: 0.15;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.hero-decoration::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: var(--gradient-1);
    opacity: 0.2;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section-label {
    display: inline-block;
    background: var(--gradient-2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
}

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

.section-header .section-desc {
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION - Creative Grid
   ============================================ */

.about {
    padding: 120px 0;
    background: var(--warm-white);
    position: relative;
}

.about::before {
    content: 'ABOUT';
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.03;
    letter-spacing: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-content h2 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: var(--cream);
    border-radius: 20px;
    transition: var(--transition);
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about-feature-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 15px;
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.about-visual {
    position: relative;
}

.about-image-frame {
    background: var(--gradient-2);
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.company-info-card {
    background: var(--primary);
    color: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
}

.company-info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--quaternary);
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-list .label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.info-list .value {
    font-weight: 600;
    color: white;
}

/* ============================================
   PRODUCTS SECTION - Colorful Cards
   ============================================ */

.products {
    padding: 120px 0;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--gradient-1);
    opacity: 0.05;
    transform: skewY(-3deg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--gradient-1);
    opacity: 0.1;
    border-radius: 50%;
    transition: var(--transition);
}

.product-card:hover .product-image::before {
    transform: scale(1.5);
}

.product-icon {
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-list {
    list-style: none;
    margin-bottom: 20px;
}

.product-list li {
    padding: 8px 0;
    color: var(--text-medium);
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
    position: relative;
    padding-left: 20px;
}

.product-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.product-tag {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.products-note {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.products-note p {
    color: var(--text-medium);
    margin: 5px 0;
}

.products-gallery-link {
    text-align: center;
    margin-top: 40px;
}

.btn-gallery {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-gallery:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-colorful);
}

/* ============================================
   EXPORT SECTION - Process Flow
   ============================================ */

.export {
    padding: 120px 0;
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.export::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: var(--gradient-1);
    opacity: 0.1;
    transform: rotate(-20deg);
}

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

.export-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 25px;
}

.export-content h2 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.export-content p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.export-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.export-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    transition: var(--transition);
}

.export-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(10px);
}

.check-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.export-process h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--quaternary);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    transition: var(--transition);
}

.step:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.02);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.step p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ============================================
   CONTACT SECTION - Modern Form
   ============================================ */

.contact {
    padding: 120px 0;
    background: var(--warm-white);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.contact-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.8;
}

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

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--cream);
}

.contact-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-list a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--cream);
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(225, 112, 85, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

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

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 15px;
    font-size: 0.95rem;
}

.footer h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--quaternary);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.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.5);
    font-size: 0.85rem;
    margin: 5px 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-decoration {
        display: none;
    }
    
    .about-grid,
    .export-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}
