/*
Theme Name: TAIW.AI
Theme URI: https://taiw.ai
Author: TAIW.AI Team
Author URI: https://taiw.ai
Description: A clean, minimalist WordPress theme for Taiwan's AI industry promotion with #0066FF blue accent color
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taiwai
Tags: business, technology, minimal, clean, modern
*/

:root {
    --primary-blue: #0066FF;
    --dark-text: #1a1a1a;
    --mid-text: #4a4a4a;
    --light-text: #757575;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-light: #e5e5e5;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.7;
    font-weight: 400;
}

::selection {
    background: var(--primary-blue);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    letter-spacing: -0.5px;
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--mid-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-contact {
    background: var(--primary-blue);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #0052cc;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 10rem 5% 6rem;
    background: var(--bg-white);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: var(--dark-text);
    letter-spacing: -1.5px;
    max-width: 900px;
}

.hero h1 .highlight {
    color: var(--primary-blue);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--mid-text);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-text);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Stats Section */
.stats {
    padding: 5rem 5%;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4rem;
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--mid-text);
    font-weight: 500;
}

/* Section Base */
.section {
    padding: 8rem 5%;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.section-label {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.15rem;
    color: var(--mid-text);
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 2.5rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.08);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.feature-card p {
    color: var(--mid-text);
    line-height: 1.7;
}

/* Ecosystem */
.ecosystem-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ecosystem-item {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ecosystem-item:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ecosystem-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.ecosystem-item p {
    color: var(--mid-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 8rem 5%;
    background: var(--bg-light);
    text-align: center;
}

.cta-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 3rem;
    background: var(--primary-blue);
    border-radius: 16px;
    color: white;
}

.cta-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-box .btn-primary {
    background: white;
    color: var(--primary-blue);
}

.cta-box .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 5rem 5% 2rem;
    background: var(--dark-text);
    color: white;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 8rem 5% 4rem;
        min-height: auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .features-grid,
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 3rem 2rem;
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

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

.modal-content {
    background: white;
    margin: 2rem;
    padding: 0;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

.modal-header {
    background: var(--primary-blue);
    color: white;
    padding: 2rem 2.5rem;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header p {
    opacity: 0.95;
    font-size: 1.05rem;
}

.modal-body {
    padding: 2.5rem;
}

.modal-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--mid-text);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section ul {
    list-style: none;
    margin-left: 0;
}

.modal-section li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.modal-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-section strong {
    color: var(--dark-text);
    font-weight: 600;
}

.modal-section a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.modal-section a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.modal-footer {
    background: var(--bg-light);
    padding: 2rem 2.5rem;
    text-align: center;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid var(--border-light);
}

.modal-footer p {
    font-size: 1.1rem;
    color: var(--mid-text);
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-modal::before,
.close-modal::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: white;
}

.close-modal::before {
    transform: rotate(45deg);
}

.close-modal::after {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

