/* Modern Tech Documentation Styles */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #1a1a2e;
    --darker: #0f0f1e;
    --light: #f8f9fa;
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --code-bg: #1e1e2e;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 3D Flow Animation Canvas */
#flowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo .logo-img {
    height: 50px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
    transition: all 0.3s;
}

.nav-logo:hover .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(102, 126, 234, 0.6));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(102, 126, 234, 0.2);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: var(--sidebar-width);
    height: calc(100vh - 70px);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    z-index: 900;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 30px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 4px 0;
    transition: 0.3s;
}

.sidebar-content {
    padding: 20px;
}

.menu-section {
    margin-bottom: 30px;
}

.menu-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    font-weight: 600;
}

.menu-item {
    display: block;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    margin-bottom: 5px;
    font-size: 14px;
}

.menu-item:hover {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

/* Main Content */
.docs-content {
    position: relative;
    margin-left: var(--sidebar-width);
    margin-top: 70px;
    padding: 60px;
    max-width: 1000px;
    z-index: 1;
}

.doc-section {
    margin-bottom: 80px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 42px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    font-size: 48px;
}

.lead {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* Feature Grid */
.feature-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin: 40px 0 !important;
}

@media (max-width: 500px) {
    .feature-grid {
        grid-template-columns: 1fr !important;
    }
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Code Blocks */
.code-block {
    background: var(--code-bg);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-lang {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-btn {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: rgba(102, 126, 234, 0.4);
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Steps */
.steps {
    margin: 40px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.step-content ul {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* Info Boxes */
.info-box {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid;
}

.info-box.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.info-box.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-content h3 {
    margin-bottom: 10px;
}

/* Pricing Card Inline */
.pricing-card-inline {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
}

.price-tag {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-details {
    flex: 1;
}

.price-details h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.price-details p {
    color: rgba(255, 255, 255, 0.7);
}

/* Tabs */
.tabs {
    margin: 30px 0;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* File Types */
.file-types {
    margin: 30px 0;
}

.file-category {
    margin-bottom: 30px;
}

.file-category h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.file-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.file-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.file-tag.new {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

/* Comparison Table */
.comparison-table {
    margin: 30px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.improvement {
    color: var(--success);
    font-weight: 600;
}

/* Command List */
.command-list {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.command-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.command-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.command-item code {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}

.command-item p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Shortcuts Grid */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.shortcut-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.shortcut-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.keys {
    margin-bottom: 15px;
}

kbd {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Accordion */
.accordion {
    margin: 30px 0;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-icon {
    font-size: 24px;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* Buttons */
.btn-primary,
.btn-primary-large {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-primary:hover,
.btn-primary-large:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary-large {
    display: inline-block;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    margin: 60px 0;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s;
    z-index: 1000;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

.scroll-top.visible {
    display: flex;
}

/* Lists */
.numbered-list {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.numbered-list li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .docs-content {
        margin-left: 0;
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    
    .lead {
        font-size: 16px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .pricing-card-inline {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    #mainNav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        z-index: 999;
    }
    
    #mainNav.active {
        display: flex;
    }
    
    #mainNav a {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: #fff;
        text-decoration: none;
    }
}

/* Contact Page Mobile Grid Fix */
@media (max-width: 600px) {
    .doc-section > div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }
    
    .feature-box {
        padding: 20px 15px !important;
        min-height: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    .feature-box .feature-icon {
        margin-bottom: 10px;
    }
    
    .feature-box .feature-icon svg {
        width: 36px !important;
        height: 36px !important;
    }
    
    .feature-box h3 {
        font-size: 14px !important;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .feature-box p {
        font-size: 11px !important;
        text-align: center;
        line-height: 1.4;
    }
}
