/* Modern CSS Reset & Variables */
:root {
    --primary: #0ea5e9;
    /* Sky blue */
    --primary-dark: #0284c7;
    --secondary: #6366f1;
    /* Indigo */
    --accent: #06b6d4;
    /* Cyan */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --section-bg: #1e293b;
    /* Slate 800 */
    --card-bg: rgba(30, 41, 59, 0.6);
    --text-light: #f8fafc;
    --text-dim: #cbd5e1;
    --text-gray: #94a3b8;
    --gradient-main: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --glass: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-main);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    border-radius: 6px;
    transform: rotate(45deg);
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

nav a:hover,
nav a.active {
    color: var(--text-light);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    /* Slightly reduced to push content up */
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
    margin-bottom: 4rem;
    /* Space for overlap */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-bg.png') no-repeat center center/cover;
    z-index: -2;
    filter: brightness(0.8);
    animation: kenBurns 20s infinite alternate;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.95));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 span {
    display: block;
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 3rem;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
}

/* Product Categories (Quick Access) */
.quick-access-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    /* Overlap Hero */
    margin-bottom: 4rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.cat-btn:hover {
    background: var(--gradient-main);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
}

/* Features/Core Values Section */
.features {
    padding-bottom: 6rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    background: var(--gradient-main);
    color: white;
    transform: rotate(-5deg) scale(1.1);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.card p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    gap: 12px;
}

/* Footer */
footer {
    background: #020617;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.contact-list li {
    margin-bottom: 1.2rem;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.5;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 960px) {
    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quick-access-section {
        margin-top: -50px;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
