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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 80px;
}

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

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

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

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    color: #4c51bf;
    border: 2px solid rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4c51bf 0%, #667eea 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(76, 81, 191, 0.4);
}

.btn-icon {
    display: inline-block;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-outline {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
    color: #1e40af;
    border: 2px solid rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.hero-content-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.hero-logo {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    height: 120px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.app-preview {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.app-preview-img {
    height: 400px;
    width: auto;
}

.app-preview p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    color: white;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    /* Ensure proper alignment for 7 cards */
    grid-auto-rows: 1fr;
}

.feature-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

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

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

/* Languages Section */
.languages {
    padding: 80px 0;
    background: #f8fafc;
}

.languages h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.language-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.language-card:hover {
    transform: translateY(-3px);
}

.flag {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.language-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.language-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status.active {
    background: #dcfce7;
    color: #166534;
}

.status.coming-soon {
    background: #fef3c7;
    color: #92400e;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.download p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

.download-btn:hover img {
    transform: scale(1.05);
}



/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: #f1f5f9;
}

.footer-section p,
.footer-section li {
    color: #d1d5db;
    line-height: 1.6;
}

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

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

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-container {
        position: relative;
    }
    
    .language-selector {
        margin-left: 0.5rem;
    }
    
    .language-dropdown {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        min-width: 100px;
    }
    
    .mobile-menu-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #2563eb;
        cursor: pointer;
        display: block;
        margin-right: 1rem;
    }
    
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-links.mobile-open a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .nav-links.mobile-open a:last-child {
        border-bottom: none;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-content-right {
        gap: 1.5rem;
    }
    
    .hero-logo-img {
        height: 80px;
    }
    
    .app-preview-img {
        height: 250px;
    }
    
    .features-grid,
    .languages-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .btn-icon {
        font-size: 1rem;
        margin-right: 0.4rem;
    }
    
    .hero-content-right {
        gap: 1rem;
    }
    
    .hero-logo-img {
        height: 60px;
    }
    
    .app-preview-img {
        height: 200px;
    }
    
    .features,
    .languages,
    .documentation,
    .download {
        padding: 60px 0;
    }
}

/* Documentation Header */
.docs-header {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 80px;
}

.docs-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0 0 0;
    text-align: center;
}

.back-link {
    margin-bottom: 1rem;
}

.back-link .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
}

/* Documentation Section */
.documentation {
    padding: 80px 0;
    background: #f8fafc;
}

.documentation h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.documentation-content {
    max-width: 800px;
    margin: 0 auto;
}

.doc-section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.doc-section h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.doc-section h4 {
    color: #374151;
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
}

.doc-section h5 {
    color: #2563eb;
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.doc-section p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.doc-section ol, .doc-section ul {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.faq-item h5 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Language Selector Styles */
.language-selector {
    margin-left: auto;
}

.language-dropdown {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.language-dropdown:hover {
    border-color: #2563eb;
}

.language-dropdown:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Documentation Header Styles */
.docs-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0 4rem;
    margin-bottom: 2rem;
}

.docs-header-content {
    position: relative;
}

.docs-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    text-align: left;
    justify-content: center;
}

.docs-hero-icon {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.docs-hero-text {
    text-align: center;
}

.docs-hero-text h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.docs-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

/* Quick Navigation Section */
.docs-quick-nav-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 0;
}

.docs-quick-nav {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.docs-quick-nav h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    color: #1e293b;
    font-weight: 600;
}

.quick-nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.quick-nav-item:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #3b82f6;
}

.nav-icon {
    font-size: 1.5rem;
    min-width: 1.5rem;
}

.quick-nav-item span:last-child {
    font-weight: 500;
}

/* Back link in docs header */
.docs-header .back-link {
    margin-bottom: 1rem;
}

.docs-header .back-link .btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.docs-header .back-link .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
}

.docs-header .back-link .btn-icon {
    margin-right: 0.5rem;
}

/* Responsive design for docs header */
@media (max-width: 768px) {
    .docs-hero {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .docs-hero-icon {
        font-size: 3rem;
        padding: 1rem;
    }
    
    .docs-hero-text h1 {
        font-size: 2rem;
    }
    
    .docs-hero-text {
        text-align: center;
    }
    
    .quick-nav-links {
        grid-template-columns: 1fr;
    }
    
    .docs-quick-nav {
        padding: 1.5rem;
    }
    
    .docs-quick-nav-section {
        padding: 1.5rem 0;
    }
}

/* Documentation Content Styles */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.feature-item h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.step-by-step {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.step-number {
    background: #3b82f6;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.ui-element {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.ui-element h4 {
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.ui-element p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.subsection {
    margin: 2rem 0;
}

.subsection h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.difficulty-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid;
}

.difficulty-item.again {
    border-color: #ef4444;
    background: #fef2f2;
}

.difficulty-item.hard {
    border-color: #f97316;
    background: #fff7ed;
}

.difficulty-item.good {
    border-color: #22c55e;
    background: #f0fdf4;
}

.difficulty-item.easy {
    border-color: #3b82f6;
    background: #eff6ff;
}

.difficulty-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.difficulty-item.again .difficulty-color {
    background: #ef4444;
}

.difficulty-item.hard .difficulty-color {
    background: #f97316;
}

.difficulty-item.good .difficulty-color {
    background: #22c55e;
}

.difficulty-item.easy .difficulty-color {
    background: #3b82f6;
}

.difficulty-item strong {
    color: #1e293b;
    font-size: 1.1rem;
}

.difficulty-item p {
    margin: 0.25rem 0 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-item h4 {
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tip-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .difficulty-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
} 