:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #00cec9;
    --bg-color: #1e272e;
    --text-color: #d2dae2;
    --code-bg: #2d3436;
    --header-bg: #0c1013;
}

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

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 {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--text-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(circle at center, #2d3436 0%, var(--bg-color) 70%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #b2bec3;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.cta-button:hover {
    background-color: #5b4cc4;
    transform: translateY(-2px);
}

.secondary-button {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.secondary-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-image {
    max-width: 80%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

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

/* Features Section */
section {
    padding: 60px 0;
}

#features {
    background-color: #1a1e22;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #fff;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* New Feature List Layout */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-item {
    background-color: var(--code-bg);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}


.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    background: rgba(0, 206, 201, 0.1);
    padding: 15px;
    border-radius: 12px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-header h3 {
    font-size: 2rem;
    color: white;
}

.feature-description {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #dfe6e9;
}

.feature-body {
    display: grid;
    gap: 15px;
}

.usage-box {
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.usage-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

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

.cmd-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cmd-table tr:last-child {
    border-bottom: none;
}

.cmd-table td {
    padding: 12px 10px;
    vertical-align: top;
}

.cmd-table td:first-child {
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--accent-color);
    white-space: nowrap;
    width: 25%;
}

.cmd-table td:last-child {
    color: #b2bec3;
    font-size: 0.95rem;
}

/* Code Snippets within Features */
.feature-code {
    background-color: #000;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #d2dae2;
    overflow-x: auto;
    font-size: 0.9rem;
    border: 1px solid #333;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-comment {
    color: #636e72;
    font-style: italic;
}

.code-keyword {
    color: var(--primary-color);
}

.code-string {
    color: #a29bfe;
}

/* Gallery Section */
#gallery {
    padding-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: opacity 0.3s;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Usage Section Styles (Existing re-styled) */
.command-group {
    background-color: var(--code-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.command-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

pre {
    background-color: #000;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin-top: 10px;
}

code {
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--header-bg);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #333;
}

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

/* Modal converted to Hero Gallery */
.image-modal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.image-modal .gallery-item {
    max-width: 45%;
    /* Override or add specific styles if needed */
}

/* Responsive */
@media (max-width: 768px) {
    .image-modal {
        flex-direction: column;
        align-items: center;
    }

    .image-modal .gallery-item {
        max-width: 90%;
        margin-bottom: 20px;
    }

    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-header {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cmd-table td:first-child {
        width: 100%;
        display: block;
        padding-bottom: 0;
    }
    
    .cmd-table td:last-child {
        display: block;
        padding-bottom: 15px;
    }
}
