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

body, html {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Theme Variables */
:root {
    --bg-color: #fff;
    --text-color: #333;
    --primary-color: #0366d6;
    --secondary-color: #555;
    --accent-color: #dff0d8;
    --footer-bg-color: #333;
    --footer-text-color: #fff;
    --hero-bg-color: #f9f9f9;
    --problems-bg-color: #efefef;
    --menu-bg-color: #f5f5f5;
    --link-color: #0366d6;
}

[data-theme="dark"] {
    --bg-color: #333;
    --text-color: #ccc;
    --primary-color: #4a90e2;
    --secondary-color: #999;
    --accent-color: #424242;
    --footer-bg-color: #212121;
    --footer-text-color: #ccc;
    --hero-bg-color: #424242;
    --problems-bg-color: #2b2b2b;
    --menu-bg-color: #424242;
    --link-color: #1e90ff;
}

/* Layout and Typography */
h1, h2 {
    color: var(--primary-color);
}

p, li {
    font-size: 16px;
    color: var(--secondary-color);
}

section {
    padding: 20px;
    margin: 20px;
}

/* Navbar Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--menu-bg-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 15px;
    padding: 10px;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.menu-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-switcher {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.theme-switcher i, .theme-switcher input[type="checkbox"] {
    margin-right: 5px;
}

/* Styling for Checkbox (Theme Toggle) */
input[type="checkbox"]#theme-toggle {
    cursor: pointer;
    width: 40px;
    height: 20px;
    appearance: none;
    background-color: var(--secondary-color);
    border-radius: 10px;
    position: relative;
    outline: none;
    transition: background-color 0.3s ease;
}

input[type="checkbox"]#theme-toggle:checked {
    background-color: var(--primary-color);
}

input[type="checkbox"]#theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: var(--bg-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

input[type="checkbox"]#theme-toggle:checked::before {
    transform: translateX(20px);
}

/* Hero Section */
#hero {
    background: var(--hero-bg-color);
    text-align: center;
    padding: 40px 20px;
}

#hero h1 {
    margin-bottom: 20px;
    font-size: 24px;
}

#hero img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Problems Section */
#problems {
    background: var(--problems-bg-color);
}

#problems ul {
    list-style-type: none;
    padding: 20px;
}

#problems li {
    background: var(--bg-color);
    margin: 8px 0;
    padding: 10px;
    border-left: 5px solid var(--primary-color);
}

/* Solutions and How It Works Sections */
#solutions, #how-it-works {
    text-align: center;
}

#solutions img, #how-it-works video {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Social Proof Section */
#social-proof {
    background: var(--accent-color);
    text-align: center;
    padding: 20px;
}

/* Pricing Table */
#pricing table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#pricing th, #pricing td {
    text-align: left;
    padding: 12px;
    border: 1px solid #ccc;
}

#pricing th {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Stock Counter Styles */
#stock-counter {
    background: var(--hero-bg-color);
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 600px;
}

#stock-counter h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

#stock-counter p {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 20px;
}

#stock-counter ul {
    list-style-type: none;
    padding: 0;
}

#stock-counter li {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#stock-counter span {
    font-weight: bold;
    color: var(--primary-color);
}

/* Call to Action Section */
#cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
}

#cta h2 {
    color: white;
}

#cta button {
    padding: 10px 20px;
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

#cta button:hover {
    background-color: #eef;
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    text-align: center;
    padding: 10px 20px;
}

footer p {
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navbar Responsive Styles */
    .hamburger-menu {
        display: block;
    }

    .menu-links {
        display: none;
        flex-direction: column;
        position: absolute;
        width: 100%;
        top: 40px;
        left: 0;
        background: var(--menu-bg-color);
        z-index: 999;
    }

    .menu-links.active {
        display: flex;
    }

    .menu-links a {
        display: block;
        text-align: center;
        width: 100%;
        padding: 10px;
        border-top: 1px solid var(--secondary-color);
    }

    .theme-switcher {
        display: flex;
        position: absolute;
        right: 20px;
        top: 10px;
    }

    /* Body Responsive Styles */
    body {
        font-size: 14px;
    }

    h1, h2 {
        font-size: 20px;
    }

    #hero, #cta, footer {
        padding: 20px;
    }
}

@media (prefers-color-scheme: dark) {
    body[data-theme="auto"] {
        --bg-color: #333;
        --text-color: #ccc;
        --primary-color: #4a90e2;
        --secondary-color: #999;
        --accent-color: #424242;
        --footer-bg-color: #212121;
        --footer-text-color: #ccc;
        --hero-bg-color: #424242;
        --problems-bg-color: #2b2b2b;
    }
}
