/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1E1E1E;
    color: #ffffff;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Top Bar */
.top-bar {
    background-color: #2D2D30;
    padding: 8px 0;
    font-size: 14px;
    color: #6A9955;
    text-align: center;
}

.top-bar-text {
    font-weight: 500;
}

/* Header */
.header {
    background-color: #1E1E1E;
    border-bottom: 1px solid #3E3E42;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #569CD6;
    text-decoration: none;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #569CD6;
}

.navbar-toggler {
    border: none;
    color: #ffffff;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1E1E1E 0%, #2D2D30 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #569CD6, #C586C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #CCCCCC;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(135deg, #569CD6, #C586C0);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(86, 156, 214, 0.3);
}

/* Code Editor Container */
.code-editor-container {
    background-color: #1E1E1E;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid #3E3E42;
}

.code-editor-header {
    background-color: #2D2D30;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3E3E42;
}

.editor-tabs {
    display: flex;
    gap: 1rem;
}

.tab {
    padding: 0.5rem 1rem;
    background-color: #3E3E42;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #CCCCCC;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: #569CD6;
    color: #ffffff;
}

.editor-controls {
    color: #6A9955;
    font-size: 1.2rem;
    cursor: pointer;
}

.code-editor {
    background-color: #1E1E1E;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
}

.code-editor pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-editor code {
    color: #D4D4D4;
    background: none;
    padding: 0;
}

/* Syntax Highlighting */
.keyword { color: #569CD6; }
.string { color: #CE9178; }
.comment { color: #6A9955; }
.function { color: #DCDCAA; }
.number { color: #B5CEA8; }
.operator { color: #D4D4D4; }

.code-output {
    background-color: #0C0C0C;
    padding: 1rem 1.5rem;
    border-top: 1px solid #3E3E42;
}

.output-header {
    color: #6A9955;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.output-content {
    color: #D4D4D4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

/* Sections */
.companies-section, .developers-section {
    padding: 5rem 0;
}

.companies-section {
    background-color: #252526;
}

.developers-section {
    background-color: #1E1E1E;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #CCCCCC;
    margin-bottom: 3rem;
}

/* Feature Cards */
.feature-card {
    background-color: #2D2D30;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3E3E42;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #569CD6, #C586C0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #CCCCCC;
    line-height: 1.6;
}

/* Developer Stats */
.developer-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #569CD6;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #CCCCCC;
    font-size: 1.1rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #CCCCCC;
    font-size: 1.1rem;
}

.feature-list i {
    color: #6A9955;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Customer Logos */
.customer-logos {
    background-color: #252526;
    padding: 3rem 0;
    border-top: 1px solid #3E3E42;
    border-bottom: 1px solid #3E3E42;
}

.logos-title {
    color: #CCCCCC;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.logo-item {
    background-color: #2D2D30;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    color: #CCCCCC;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid #3E3E42;
}

.logo-item:hover {
    background-color: #3E3E42;
    color: #569CD6;
}

/* Footer */
.footer {
    background-color: #1E1E1E;
    padding: 3rem 0 1rem;
    border-top: 1px solid #3E3E42;
}

.footer h5 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

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

.footer-links a:hover {
    color: #569CD6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #2D2D30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCCCCC;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #569CD6;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Bottom Bar */
.bottom-bar {
    background-color: #0C0C0C;
    padding: 1rem 0;
    text-align: center;
    color: #6A9955;
    font-size: 0.9rem;
}

.rivertheme-link {
    color: #569CD6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(86, 156, 214, 0.2), rgba(197, 134, 192, 0.2));
    border: 1px solid rgba(86, 156, 214, 0.3);
}

.rivertheme-link:hover {
    color: #C586C0;
    background: linear-gradient(135deg, rgba(86, 156, 214, 0.4), rgba(197, 134, 192, 0.4));
    border-color: rgba(197, 134, 192, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(86, 156, 214, 0.3);
}

/* Buttons */
.btn-outline-primary {
    border: 2px solid #569CD6;
    color: #569CD6;
    background: transparent;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #569CD6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(86, 156, 214, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .code-editor-container {
        margin-top: 2rem;
    }
    
    .developer-stats {
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-button, .btn-outline-primary {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2D2D30;
}

::-webkit-scrollbar-thumb {
    background: #569CD6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C586C0;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .logo-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Code Editor Interactive States */
.code-editor-container:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.tab:hover:not(.active) {
    background-color: #4E4E52;
}

.editor-controls:hover {
    color: #569CD6;
}
