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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f8f9fa;
    color: #181818;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-right: 4rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #111827;
}

.subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.desc {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Kickstarter Button */
.kickstarter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #05ce78;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(5, 206, 120, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.kickstarter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #04b868;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    border-radius: 50px;
}

.kickstarter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(5, 206, 120, 0.4);
}

.kickstarter-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.kickstarter-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.kickstarter-logo svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Product Section */
.product-section {
    padding: 4rem 5%;
    background: white;
}

.product-section h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: #111827;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1.25rem 1.25rem 0.5rem;
    font-size: 1.25rem;
    color: #111827;
}

.product-card p {
    padding: 0 1.25rem 1.25rem;
    color: #6b7280;
}

/* About Section */
.about-section {
    padding: 2rem 5%;
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.about-section h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.about-section h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #111827;
}

.about-section p {
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.7;
}

/* Footer */
footer {
    background: #f9fafb;
    padding: 2rem 5%;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #6b5563;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        padding: 3rem 5%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 5%;
    }
    
    .hero-content {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .product-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .about-section {
        margin: 1rem 0;
        border-radius: 0;
    }
}

/* Mobile Navigation */
@media (max-width: 480px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0.8rem 5%;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        height: 60px;
    }

    .nav-links {
        position: static;
        display: flex;
        justify-content: flex-end;
        padding: 0;
        margin: 0;
        background: transparent;
        box-shadow: none;
        align-items: center;
    }

    .nav-links li {
        list-style: none;
        margin-left: 1.2rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: #f3f4f6;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    /* Add padding to main content to account for fixed header */
    main {
        padding-top: 5.5rem; /* Increased padding to prevent content from being hidden */
        padding-bottom: 2rem;
    }

    .about-section,
    .product-section,
    .hero-section {
        margin-top: 1.5rem;
        padding-top: 2rem;
    }
    
    /* Ensure first element after nav has proper spacing */
    .hero-section {
        padding-top: 3rem;
        min-height: calc(100vh - 60px); /* Viewport height minus header */
    }
    
    /* Adjust footer spacing */
    footer {
        margin-top: 2rem;
    }
}