body {
    font-family: 'Source Han Sans', 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #333;
}

/* --- Header and Navigation --- */
header {
    background-color: #FFFFFF;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #9333ea;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #5451D6; /* Purple for hover */
}

/* --- Main Content --- */
main {
    padding-top: 0;
}

section {
    padding: 4rem 2rem;
    text-align: center;
}

/* --- Home Section (Hero) --- */
#home {
    background: linear-gradient(90deg, #8E78FF 0%, #5451D6 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.home-content {
    text-align: center;
    margin-bottom: 3rem;
}

#home h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

#home p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

#home .product-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 700px;
}

#home .product {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

#home .product h3 {
    color: white;
}

#home .product p {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Other Sections --- */
h2 {
    font-size: 1.8rem;
    color: #5451D6; /* Purple */
    margin-bottom: 4rem;
}

#contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center */
    align-items: center;
    position: relative;
    padding-top: 8rem; /* Added for top spacing */
    padding-bottom: 120px; /* Space for footer */
    box-sizing: border-box;
}

#products .product-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.product {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 300px;
    text-align: left;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.product h3 {
    font-size: 1.5rem;
    color: #5451D6; /* Purple */
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product {
    transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- Footer --- */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    color: #6c757d;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid #e9ecef;
}

footer a {
    color: #6c757d;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Contact Section --- */
#contact .subtitle {
    margin-bottom: 3rem;
    color: #6c757d;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1000px;
    width: 100%;
    text-align: left;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    background-color: #8E78FF;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
}

.contact-text p {
    margin: 0;
    color: #6c757d;
}

.contact-form-wrapper {
    flex: 1;
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: #8E78FF;
}

.btn-submit {
    background: linear-gradient(90deg, #8E78FF 0%, #5451D6 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
}