:root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --secondary-text: #86868b;
    --card-bg: #1c1c1e;
    --border-color: #333333;
    --accent-color: #0a84ff;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(to bottom, #000000, #1B1B30);
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Monospace override for Portfolio */
body.mono-theme {
    font-family: var(--font-mono);
}

header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
}

.nav-button {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.nav-button:hover {
    background-color: var(--card-bg);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-text);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
}

.hero-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    line-height: 1.7;
}

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

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

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-card h3 {
    color: var(--accent-color);
    margin-top: 0;
}

.controls-section {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
}

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

.control-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.control-group li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.shortcut {
    font-family: var(--font-mono);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-color);
}

footer {
    padding: 2rem;
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

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

a:hover {
    text-decoration: underline;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}