/* Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #6366f1;
    --accent-color: #8b5cf6;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #f3f4f6;
    --code-bg: #282c34;
    --success-color: #10b981;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

a:hover {
    color: var(--primary-dark);
}

pre {
    overflow-x: auto;
    background-color: var(--code-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Header */
header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.github-link {
    background-color: var(--bg-dark);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.github-link:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-content h2::after {
    display: none;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.buttons {
    display: flex;
    gap: 1rem;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.button.primary {
    background-color: var(--primary-color);
    color: white;
}

.button.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button.secondary {
    background-color: var(--bg-dark);
    color: var(--text-color);
}

.button.secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.terminal {
    width: 100%;
    background-color: #2a2e37;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(800px) rotateY(-5deg);
    transition: var(--transition);
}

.terminal:hover {
    transform: perspective(800px) rotateY(0deg) translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    background-color: #1c1e24;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.red {
    background-color: #ff5f57;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #28ca42;
}

.terminal-title {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.terminal-content {
    padding: 1rem;
}

.terminal-content pre {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.terminal-content code {
    color: #e5e7eb;
}

/* Overview Section */
.overview {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Architecture Section */
.architecture {
    padding: 5rem 0;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visual-example {
    background-color: var(--code-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: white;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* Performance Section */
.performance {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.comparison-table {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

thead {
    background-color: var(--bg-dark);
}

th {
    font-weight: 600;
}

.highlight {
    color: var(--success-color);
    font-weight: 600;
}

/* Updated usage section styles */

/* Usage Section */
.usage {
    padding: 5rem 0;
}

/* Base usage grid */
.usage-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

/* Default grid for standard cards */
.usage-grid:not(.two-column) {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Specific grid for the two-column layout */
.usage-grid.two-column {
    grid-template-columns: 1fr 1fr;
}

.usage-card {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

/* Makefile section styling */
.makefile-section {
    margin-bottom: 2rem;
    width: 100%;
}

/* Full width card adjustments */
.full-width {
    width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .usage-grid.two-column {
        grid-template-columns: 1fr;
    }
    
    .usage-card {
        margin-bottom: 1rem;
        width: 100%;
        overflow-x: auto;
    }
    
    /* Ensure code blocks don't overflow on mobile */
    .usage-card pre {
        max-width: 100%;
        overflow-x: auto;
    }
}

/* Technical Section */
.technical {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

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

.requirements-card {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Footer Section */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.links {
    display: flex;
    gap: 1.5rem;
}

.links a {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.links a:hover {
    color: var(--primary-light);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
    }
    
    .terminal {
        transform: none;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .terminal:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .usage-grid, .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
}

/* Add these styles to the end of your CSS file */

/* Full width card */
.full-width {
    width: 100%;
    margin-bottom: 2rem;
}

/* Two column grid for the bottom cards */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}
