/* style.css - Futuristic, clean design like Apple/Xiaomi: Minimalist, ample whitespace, subtle gradients, smooth animations */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #007AFF;
    --secondary-color: #00C851;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #ffffff;
        --border-color: #333333;
        --shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    gap: 0.5rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

main {
    margin-top: 80px;
    padding: 4rem 0;
    min-height: calc(100vh - 160px);
}

h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    opacity: 0.8;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Landing Chatbot */
.chatbot-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.message {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.message.bot {
    background: var(--accent-color);
    color: white;
}

.chat-input {
    display: flex;
    gap: 1rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--bg-color);
    color: var(--text-color);
}

.chat-input button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-input button:hover {
    background: #0056cc;
}

/* Marketplace */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab {
    padding: 0.5rem 1.5rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.category, .subcat {
    display: none;
}

.category.active, .subcat.active {
    display: block;
}

.subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.subcats li {
    padding: 0.5rem 1rem;
    background: rgba(0,122,255,0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subcats li:hover {
    background: var(--accent-color);
    color: white;
}

.product {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.product h3 {
    font-size: 1.5rem;
}

.product ul {
    list-style: disc;
    padding-left: 1.5rem;
    opacity: 0.8;
}

.submit-btn {
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Case Studies */
.case-study {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.case-study section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--accent-color);
}

/* Forum */
.forum-chat {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Learning */
.pathways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pathway, .industry {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* About */
.mission, .goals {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.goals ul {
    list-style: none;
    text-align: left;
}

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

.goals li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: rgba(0,0,0,0.05);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .nav {
        display: none; /* Mobile menu can be added with JS */
    }
    
    h1 {
        font-size: 2rem;
    }
}
