:root {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --accent-color: #58a6ff;
    --secondary-bg: #161b22;
    --border-color: #30363d;
    --success-color: #2ea043;
    --card-bg: #21262d;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
    color: #79c0ff;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.2rem;
    margin-top: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--accent-color);
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    cursor: default;
    transition: transform 0.3s;
    display: flex;
    /* Center the SVG */
    align-items: center;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
    /* Slightly thinner for elegance */
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
    /* Slightly thinner for elegance */
}

.nav-icon:hover {
    transform: scale(1.1) rotate(10deg);
}

.github-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: text-bottom;
    margin-right: 0.3rem;
    fill: currentColor;
}

.header-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo {
    height: 40px;
    width: auto;
}

nav a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-color);
}

nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.lang-selector {
    margin-left: 2rem;
    position: relative;
    display: inline-block;
}

.lang-selector select {
    background: var(--secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
}

.lang-selector select:hover {
    border-color: var(--accent-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
    background: radial-gradient(circle at top, #1f2937 0%, var(--bg-color) 70%);
}

.hero h1 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tagline {
    font-size: 1.25rem;
    color: #8b949e;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin-top: 2rem;
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-top: 0;
    color: #fff;
}

/* Materials Section */
.materials-list {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.materials-list ul {
    list-style: none;
    /* Removed default bullets */
}

.materials-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.materials-list li:last-child {
    border-bottom: none;
}

.materials-list li::before {
    content: "✔️";
    margin-right: 1rem;
    color: var(--success-color);
}


/* Installation Steps */
.step {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background: var(--accent-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.step h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1rem;
    /* Space for the number overlap visual */
}

.command-block {
    background: #000;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    color: #ce9178;
    /* VS Code string color */
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: #8b949e;
}

footer .heart {
    color: #e63946;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    header {
        flex-direction: row;
        /* Keep it in a row */
        justify-content: space-between;
        padding: 1rem 0;
        /* Reduced padding */
    }

    .header-brand {
        font-size: 1.5rem;
        /* Match h3 size */
        margin-right: auto;
        /* Push nav to the right if needed, though justify-content handles it */
    }

    nav {
        display: flex;
        flex-direction: row;
        /* Row for the few items left */
        gap: 0.5rem;
        /* Smaller gap */
        margin-top: 0;
        /* Reset margin */
        width: auto;
        /* Allow it to shrink */
        align-items: center;
    }

    /* Hide Features, Materials, Install */
    nav a[href="#features"],
    nav a[href="#materials"],
    nav a[href="#install"] {
        display: none;
    }

    /* Target the GitHub link specifically */
    nav a[href*="github"] {
        font-size: 0;
        /* Hide the text "GitHub" */
        margin: 0;
        padding: 0.5rem;
        display: inline-flex;
        align-items: center;
    }

    /* Restore size for the SVG icon within the link */
    nav a[href*="github"] .github-icon {
        width: 1.5rem;
        /* Slightly larger icon for touch */
        height: 1.5rem;
        margin-right: 0;
        /* No margin needed since text is hidden */
        font-size: 1rem;
        /* Reset font size context if needed by SVG (usually not) */
    }

    .lang-selector {
        margin-left: 0.5rem;
        margin-top: 0;
    }

    .lang-selector select {
        font-size: 0.8rem;
        /* Smaller font */
        padding: 0.2rem 0.4rem;
    }

    .step-number {
        position: static;
        margin-bottom: 1rem;
        width: 30px;
        height: 30px;
    }

    .step {
        border-left: none;
        border-top: 4px solid var(--accent-color);
    }
}