:root {
    --primary-color: #007BFF;
    --dark-bg: #0D1117;
    --secondary-bg: #161B22;
    --text-color: #C9D1D9;
    --text-secondary: #8B949E;
    --border-color: #30363D;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navbar */
.header {
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo img {
    width: 120px; /* Controls the size of the logo */
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-cta:hover {
    color: #fff;
    opacity: 0.9;
}

.nav-user-email {
    color: var(--text-secondary);
    font-size: 0.8rem; /* Smaller font size */
    font-style: italic; /* Italicized text */
    opacity: 0.8; /* Makes it slightly transparent */
    white-space: nowrap;
    align-self: center; /* Ensures vertical alignment */
}

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features, .hardware, .about {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-secondary);
}

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

.feature-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Hardware Section */
.hardware {
    background-color: var(--secondary-bg);
}

.hardware-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hardware-text {
    flex: 1;
}

.hardware-text h2 {
    font-size: 2.5rem;
}
.hardware-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.hardware-text ul {
    list-style: none;
    margin-top: 1rem;
}
.hardware-text li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.hardware-image {
    flex: 1;
    text-align: center;
}

.hardware-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* About Section */
.about {
    text-align: center;
}
.about p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* --- Submenu Styles --- */
.nav-item.has-submenu {
    position: relative;
}
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.5rem;
    list-style: none;
    min-width: 160px;
    z-index: 1001;
}
.has-submenu:hover .submenu {
    display: block;
}
.submenu li a {
    padding: 0.5rem 1rem;
    display: block;
    white-space: nowrap;
}

/* Responsive */
@media(max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4.5rem;
        flex-direction: column;
        background-color: var(--secondary-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hardware-content {
        flex-direction: column;
    }
}