/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import fonts that emphasize the "i" */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 800;
    font-size: 1.75rem;
    font-family: 'JetBrains Mono', 'Inter', monospace;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.logo-img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #4a90e2;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #4a90e2;
}

.theme-toggle .moon-icon {
    display: none;
}

.theme-toggle.dark .sun-icon {
    display: none;
}

.theme-toggle.dark .moon-icon {
    display: block;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Menu */
.menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: #666;
    transition: all 0.2s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: currentColor;
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'JetBrains Mono', 'Inter', monospace;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #4a90e2;
}

.btn-outline {
    background: transparent;
    color: #4a90e2;
    border-color: #4a90e2;
}

.btn-outline:hover {
    background: #4a90e2;
    color: white;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    transition: color 0.3s ease;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
}

/* Apps Showcase */
.apps-showcase {
    padding: 80px 0;
    background: #f8fafc;
    transition: background-color 0.3s ease;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.app-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid #e5e7eb;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    transition: color 0.3s ease;
}

.app-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.app-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
    transition: background-color 0.3s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    transition: color 0.3s ease;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Footer */
.footer {
    background: #1f2937;
    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-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* Hamburger menu is now always visible for testing */
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: column;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        gap: 0;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }
    
    .nav-links .nav-link {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .app-card {
        padding: 1.5rem;
    }
}

/* Dark Mode Styles */
body[data-theme="dark"] {
    background: #0f172a !important;
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .header {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

body[data-theme="dark"] .logo a {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .nav-link {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .nav-link:hover,
body[data-theme="dark"] .nav-link.active {
    color: #60a5fa !important;
}

body[data-theme="dark"] .theme-toggle {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #60a5fa !important;
}

body[data-theme="dark"] .menu-toggle {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #60a5fa !important;
}

body[data-theme="dark"] .nav-links {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

body[data-theme="dark"] .apps-showcase {
    background: #1e293b !important;
}

body[data-theme="dark"] .app-card {
    background: #334155 !important;
    border-color: #475569 !important;
}

body[data-theme="dark"] .app-title {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .app-description {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .feature-tag {
    background: #475569 !important;
    color: #e2e8f0 !important;
}

body[data-theme="dark"] .section-title {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .section-subtitle {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .features {
    background: #0f172a !important;
}

body[data-theme="dark"] .feature-card h3 {
    color: #f1f5f9 !important;
}

body[data-theme="dark"] .feature-card p {
    color: #cbd5e1 !important;
}
