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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #6366f1;
    --dark-bg: #0a0e27;
    --card-bg: #151932;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: #1e2442;
    --success: #10b981;
    --warning: #f59e0b;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-alt: linear-gradient(135deg, #00d4ff 0%, #6366f1 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll from code blocks */
code {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

pre code {
    display: block;
    overflow-x: auto;
}

/* Improve touch scrolling on mobile */
html {
    -webkit-tap-highlight-color: transparent;
}

/* Better touch targets */
a, button, .command-card, .category-card, .filter-tab {
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.1);
    touch-action: manipulation;
}

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

/* Header */
.header {
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.terminal-icon {
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
}

.logo-text {
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-alt);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-alt);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Search Section */
.search-section {
    padding: 3rem 0;
    background-color: var(--card-bg);
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background-color: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

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

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
}

/* Commands Section */
.commands-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--bg-color) 0%, var(--card-bg) 15%);
}

.filter-tabs {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border-radius: 12px;
}

/* Filter tabs in hero section */
.hero-content .filter-tabs {
    margin-top: 2.5rem;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.filter-tab {
    padding: 0.75rem 1.75rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9375rem;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-alt);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.filter-tab:hover::before {
    opacity: 0.1;
}

.filter-tab:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.filter-tab.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.3);
}

.filter-tab.active::before {
    opacity: 0;
}

.filter-tab span {
    position: relative;
    z-index: 1;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.command-card {
    background: var(--dark-bg);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-alt);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.command-card:hover::before {
    opacity: 0.05;
}

.command-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.command-card > * {
    position: relative;
    z-index: 1;
}

.learn-more-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-alt);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.command-card:hover .learn-more-overlay {
    opacity: 1;
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.command-name {
    font-family: 'Fira Code', monospace;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    word-break: keep-all;
    white-space: nowrap;
}

.command-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-navigation { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-network { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-security { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-permissions { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.badge-monitoring { background: rgba(168, 85, 247, 0.2); color: #a78bfa; }
.badge-forensics { background: rgba(236, 72, 153, 0.2); color: #f472b6; }

.command-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.command-syntax {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.875rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

.command-syntax code {
    font-family: 'Fira Code', monospace;
    color: #7dd3fc;
    font-size: 0.9rem;
}

.command-example {
    margin-top: 1rem;
}

.command-example-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    word-break: keep-all;
    white-space: nowrap;
}

.command-example code {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    color: #a5f3fc;
    font-size: 0.875rem;
    overflow-x: auto;
    white-space: pre;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

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

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-content p {
    margin: 0;
    color: var(--text-secondary);
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-bg);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.github-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.github-icon {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.github-link:hover .github-icon {
    color: var(--dark-bg);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Page Hero Styles */
.page-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Categories Page Styles */
.categories-page-section {
    padding: 3rem 0 5rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.category-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-alt);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

/* About Page Styles */
.about-page-section {
    padding: 3rem 0 5rem;
}

.section-subtitle {
    font-size: 2rem;
    text-align: center;
    margin: 4rem 0 2rem;
}

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

.developer-section {
    margin-top: 4rem;
}

.developer-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.developer-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.developer-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.developer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.developer-github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.developer-github-link:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.github-icon-large {
    transition: all 0.3s ease;
}

.developer-github-link:hover .github-icon-large {
    color: var(--dark-bg);
}

/* Features Section */
.features-section {
    margin-top: 4rem;
}

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

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

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

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}


.footer p {
    color: var(--text-secondary);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-alt);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.scroll-to-top svg {
    stroke: white;
}

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

.command-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive Design */
/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .commands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Under 700px - Remove option gap */
@media (max-width: 700px) {
    .detail-grid {
        grid-template-columns: 1fr !important;
    }
    
    .option-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        grid-template-columns: none !important;
    }
    
    .option-flag {
        width: 100%;
    }
    
    .option-description {
        width: 100%;
        display: block;
        visibility: visible;
        opacity: 1;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Header */
    .header {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Search Section */
    .search-section {
        padding: 2rem 0;
    }

    .search-input {
        padding: 0.875rem 0.875rem 0.875rem 3rem;
        font-size: 0.9375rem;
    }

    .search-icon {
        left: 1rem;
    }

    /* Categories Section */
    .categories-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .category-title {
        font-size: 1.25rem;
    }

    /* Commands Section */
    .commands-section {
        padding: 3rem 0;
    }

    .commands-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .command-card {
        padding: 1.25rem;
    }

    .command-name {
        font-size: 1.25rem;
    }

    .command-description {
        font-size: 0.875rem;
    }

    .command-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Filter Tabs */
    .filter-tabs {
        gap: 0.5rem;
        flex-wrap: wrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    /* Detail Page */
    .detail-section {
        padding: 2rem 0 3rem;
    }

    .detail-command-name {
        font-size: 1.75rem;
    }

    .detail-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .detail-description {
        font-size: 0.9375rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .syntax-box,
    .example-box {
        padding: 1rem;
    }

    .syntax-box code,
    .example-box code {
        font-size: 0.8125rem;
    }

    .option-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }

    .option-flag {
        font-size: 0.875rem;
    }

    .option-description {
        font-size: 0.8125rem;
    }

    .use-case-item,
    .security-tip-item {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .back-link {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    /* New Pages */
    .page-hero {
        padding: 2.5rem 0 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .about-icon {
        font-size: 2rem;
    }

    .developer-card {
        padding: 1.5rem;
    }

    .developer-content h3 {
        font-size: 1.5rem;
    }

    .developer-github-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Small Mobile Styles (iPhone 5/SE and similar) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.875rem;
    }

    /* Header & Navigation */
    .header {
        padding: 0.875rem 0;
    }

    .header .container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .logo {
        font-size: 1.125rem;
    }

    .nav {
        gap: 1.25rem;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 0.25rem 0;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Search Section */
    .search-section {
        padding: 1.5rem 0;
    }

    .search-input {
        padding: 0.75rem 0.75rem 0.75rem 2.75rem;
        font-size: 0.875rem;
    }

    .search-icon {
        left: 0.875rem;
        width: 18px;
        height: 18px;
    }

    /* Sections */
    .section-title {
        font-size: 1.375rem;
        margin-bottom: 1.5rem;
    }

    .categories-section,
    .commands-section,
    .about-page-section,
    .categories-page-section {
        padding: 2rem 0;
    }

    /* Category Cards */
    .category-card {
        padding: 1.125rem;
    }

    .category-icon {
        font-size: 1.875rem;
        margin-bottom: 0.5rem;
    }

    .category-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .category-description {
        font-size: 0.8125rem;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    /* Command Cards */
    .command-card {
        padding: 0.875rem;
    }

    .command-name {
        font-size: 1.125rem;
        white-space: nowrap;
        word-break: keep-all;
    }

    .command-description {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .command-example-title {
        font-size: 0.75rem;
        white-space: nowrap;
        word-break: keep-all;
    }

    .command-syntax,
    .command-example {
        padding: 0.625rem;
    }

    .command-syntax code,
    .command-example code {
        font-size: 0.75rem;
        white-space: pre;
        overflow-x: auto;
    }

    .command-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    .command-tag {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    /* Filter Tabs */
    .filter-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .filter-tab {
        padding: 0.5rem 0.625rem;
        font-size: 0.6875rem;
    }

    /* Detail Page - Most Important Fix */
    .detail-section {
        padding: 1.5rem 0 2rem;
    }

    .back-link {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
        gap: 0.375rem;
    }

    .detail-header {
        margin-bottom: 1.25rem;
    }

    .detail-command-name {
        font-size: 1.375rem;
        margin-bottom: 0.625rem;
        word-break: break-word;
    }

    .detail-badge {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.625rem;
    }

    .detail-description {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .detailed-text {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .detail-card {
        padding: 1rem;
        overflow: hidden;
    }

    .detail-card-title {
        font-size: 0.875rem;
        margin-bottom: 0.875rem;
        gap: 0.375rem;
        flex-wrap: wrap;
        word-break: normal;
        white-space: normal;
    }

    .detail-card-title svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        min-width: 16px;
    }

    /* Syntax and Example Boxes */
    .syntax-box,
    .example-box {
        padding: 0.75rem;
        border-left-width: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .syntax-box code,
    .example-box code {
        font-size: 0.6875rem;
        line-height: 1.4;
        word-break: normal;
        display: block;
        white-space: pre;
        overflow-x: auto;
    }

    /* Options List */
    .option-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0.875rem;
        overflow: visible;
        grid-template-columns: none !important;
    }

    .option-flag {
        font-size: 0.8125rem;
        margin-bottom: 0;
        display: block;
        width: 100%;
    }

    .option-flag code {
        font-size: 0.8125rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .option-description {
        font-size: 0.8125rem;
        line-height: 1.5;
        word-break: break-word;
        overflow-wrap: break-word;
        display: block !important;
        width: 100%;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Use Cases */
    .usecase-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .usecase-number {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .usecase-content code {
        font-size: 0.75rem;
        word-break: break-word;
        white-space: normal;
        overflow-x: visible;
        display: block;
    }

    .usecase-description {
        font-size: 0.8125rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Security Tips */
    .security-tip-item {
        padding: 0.875rem;
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    /* Page Hero */
    .page-hero {
        padding: 2rem 0 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .page-description {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }

    /* About Page */
    .section-subtitle {
        font-size: 1.375rem;
        margin: 3rem 0 1.5rem;
    }

    .about-icon {
        font-size: 1.875rem;
    }

    .about-card {
        padding: 1rem;
    }

    .about-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .about-card p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .developer-card {
        padding: 1.25rem;
    }

    .developer-content h3 {
        font-size: 1.375rem;
        margin-bottom: 0.875rem;
    }

    .developer-content p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .developer-github-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .github-icon-large {
        width: 20px;
        height: 20px;
    }

    /* Features Section */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.25rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-item h4 {
        font-size: 1.125rem;
    }

    .feature-item p {
        font-size: 0.8125rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        margin-top: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.875rem;
    }

    .footer-content p {
        font-size: 0.8125rem;
    }

    .footer-link {
        font-size: 0.8125rem;
    }

    .github-link {
        width: 36px;
        height: 36px;
    }

    .github-icon {
        width: 20px;
        height: 20px;
    }

    .footer-copyright {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
    
    /* Scroll to Top Button */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Extra Small Mobile (320px - iPhone 5/SE) */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.375rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8125rem;
    }

    .detail-command-name {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .command-name {
        font-size: 1rem;
    }

    .detail-card {
        padding: 0.875rem;
        overflow: hidden;
    }

    .detail-card-title {
        font-size: 0.8125rem;
        word-break: normal;
        flex-wrap: wrap;
        white-space: normal;
    }

    .detail-card-title svg {
        min-width: 14px;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .syntax-box,
    .example-box {
        padding: 0.625rem;
    }

    .syntax-box code,
    .example-box code {
        font-size: 0.625rem;
        white-space: pre;
        word-break: normal;
        overflow-x: auto;
    }

    .option-item {
        padding: 0.75rem;
        overflow: visible;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        grid-template-columns: none !important;
    }

    .option-flag {
        margin-bottom: 0;
        width: 100%;
    }

    .option-description {
        word-break: break-word;
        overflow-wrap: anywhere;
        width: 100%;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Scroll to Top Button */
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Detail Page Styles */
.detail-section {
    padding: 3rem 0 5rem;
    min-height: calc(100vh - 200px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
    color: var(--text-primary);
}

.detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.detail-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-command-name {
    font-family: 'Fira Code', monospace;
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0;
}

.detail-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    word-wrap: break-word;
}

.detail-card.full-width {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.detail-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.detail-card-title svg {
    stroke-width: 2;
    color: var(--primary-color);
    flex-shrink: 0;
}

.syntax-box,
.example-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    overflow: hidden;
}

.syntax-box code,
.example-box code {
    font-family: 'Fira Code', monospace;
    color: #7dd3fc;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.detailed-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.options-list,
.usecases-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    align-items: start;
    overflow: hidden;
}

.option-flag code {
    font-family: 'Fira Code', monospace;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.option-description {
    color: var(--text-secondary);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.usecase-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.usecase-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--gradient-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.usecase-content {
    flex: 1;
    overflow-x: auto;
}

.usecase-content code {
    font-family: 'Fira Code', monospace;
    color: #a5f3fc;
    font-size: 0.95rem;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    display: block;
}

.security-tips {
    border: 2px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.security-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-tip-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.security-tip-item svg {
    flex-shrink: 0;
    color: #f59e0b;
    stroke-width: 2;
    margin-top: 2px;
}

.security-tip-item span {
    color: var(--text-secondary);
    line-height: 1.6;
}

.no-data {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

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

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
