/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 100vh;
}

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

.logo {
    font-size: 2rem;
    margin-right: 10px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Download Section */
.download-section {
    margin-top: 30px;
    text-align: left;
}

.download-label {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: left;
    flex-wrap: wrap;
}

.btn-download {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Terminal Demo */
.hero-demo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-subtitle a {
    color: inherit;
}

.terminal {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.terminal-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    background: #1a1a1a;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    height: 400px;
    overflow-y: auto;
}

.terminal-content {
    color: #ffffff;
    margin: 0;
}

.text-cyan { color: #00bcd4; }
.text-green { color: #4caf50; }
.text-blue { color: #2196f3; }
.text-yellow { color: #ffc107; }
.text-gray { color: #9e9e9e; }
.text-white { color: #ffffff; }

/* Typing animation */
.typing-text {
    animation: typing 2s steps(22, end) infinite;
}

@keyframes typing {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #2d3748;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    margin: 20px auto;
    border-radius: 2px;
}

/* Features Section */
.features {
    padding: 100px 40px;
    background: #f8fafc;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

.feature-card p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

/* Commands Section */
.commands {
    padding: 100px 40px;
    background: white;
}

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

.command-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.command-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.command-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.command-name {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

.command-type {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.command-description {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1rem;
}

.command-example {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}

.command-example pre {
    margin: 0;
    color: #ffffff;
}

/* Installation Section */
.installation {
    padding: 100px 40px;
    background: #f8fafc;
}

.quick-download {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 60px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quick-download h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.quick-download p {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1rem;
}

.quick-download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download-small {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 120px;
    justify-content: center;
}

.btn-download-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-download-small .download-icon {
    font-size: 1.2rem;
}

.install-content {
    margin-bottom: 60px;
}

.install-step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
}

.step-number {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.code-block {
    position: relative;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.code-block pre {
    margin: 0;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.requirements {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.requirements h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.requirements ul {
    list-style: none;
    padding: 0;
}

.requirements li {
    padding: 8px 0;
    color: #4a5568;
    position: relative;
    padding-left: 25px;
}

.requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Contributing Section */
.contributing {
    padding: 100px 40px;
    background: white;
}

.contributing-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contribute-card {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contribute-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.contribute-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contribute-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.contribute-card p {
    color: #4a5568;
    margin-bottom: 25px;
}

.contribute-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contribute-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.contribution-guidelines {
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.contribution-guidelines h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2d3748;
}

.contribution-guidelines ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.contribution-guidelines li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
    color: #4a5568;
}

.contribution-guidelines li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #667eea;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.contribution-guidelines code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 60px 40px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 60px 20px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .features, .commands, .installation, .contributing {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid, .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .install-step {
        flex-direction: column;
        text-align: center;
    }
    
    .terminal {
        max-width: 100%;
    }
    
    .terminal-body {
        font-size: 0.8rem;
        height: 300px;
    }
    
    .command-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer {
        padding: 40px 20px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-buttons {
        gap: 10px;
    }
    
    .btn-download {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .quick-download-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-download-small {
        min-width: auto;
    }
}

/* Commands Reference Table Styles */
.commands-reference {
    padding: 80px 20px;
    background: #f8fafc;
}

.commands-table-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
}

.commands-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.commands-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.commands-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
}

.commands-table td {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.commands-table tbody tr:hover {
    background: #f7fafc;
}

.commands-table tbody tr:last-child td {
    border-bottom: none;
}

.commands-table code {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 500;
}

.commands-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

.commands-table td:nth-child(2) {
    color: #4a5568;
    line-height: 1.6;
}

.commands-table td:nth-child(3) {
    color: #2d3748;
    line-height: 1.6;
}

/* Responsive table */
@media (max-width: 768px) {
    .commands-reference {
        padding: 60px 20px;
    }
    
    .commands-table {
        font-size: 0.9rem;
    }
    
    .commands-table th,
    .commands-table td {
        padding: 15px 10px;
    }
    
    .commands-table code {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
}
