/* assets/css/style.css - TypingBaba Clone Styles */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    /* Responsive unit */
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    margin: 0;
}

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Header */
.top-header {
    background-color: #fff;
    border-bottom: none;
}

.logo-link {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.social-icons a {
    display: inline-block;
    margin: 0 5px;
    color: #666;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ff7a00;
}

.search-form {
    position: relative;
}

.search-input {
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    padding: 8px 12px;
    width: 100%;
    max-width: 300px;
    /* Responsive width */
    color: #333;
    /* Explicit color */
    background-color: #fff;
    /* Explicit bg */
}

.search-btn {
    background-color: #ff7a00;
    border: 1px solid #ff7a00;
    border-radius: 0 4px 4px 0;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
}

/* Main Navigation */
.main-nav {
    background-color: #333;
    color: #fff;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-item {
    position: relative;
}

.nav-item>a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    transition: background-color 0.3s;
}

.nav-item>a:hover {
    background-color: #555;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 200px;
    display: none;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    transition: background-color 0.3s;
}

.dropdown li a:hover {
    background-color: #555;
}

.nav-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: block;
}

.nav-cta .btn-cta {
    background-color: #ff7a00;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-cta .btn-cta:hover {
    background-color: #e66a00;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
        flex-direction: column;
        display: none;
    }

    .nav-list.mobile-open {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item>a {
        padding: 15px;
    }

    .dropdown {
        position: static;
        display: none;
    }

    .nav-item:hover .dropdown {
        display: block;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4CAF50 0%, #009688 50%, #FF9800 100%);
    color: #fff;
    padding: 100px 0;
}

.hero-inner {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 0;
}

/* Features Section */
.features {
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    display: block;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: box-shadow 0.3s, border-color 0.3s;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #ff7a00;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
}

/* Color Classes for Icons */
.color-1 {
    color: #FF5722;
}

.color-2 {
    color: #2196F3;
}

.color-3 {
    color: #4CAF50;
}

.color-4 {
    color: #FF9800;
}

.color-5 {
    color: #9C27B0;
}

.color-6 {
    color: #00BCD4;
}

.color-7 {
    color: #FFEB3B;
}

.color-8 {
    color: #795548;
}

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-sub {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .search-input {
        width: 150px;
    }
}

/* Typing Test Styles */
.text-4xl {
    font-size: 2.25rem;
}

.md\:text-5xl {
    font-size: 3rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-white {
    color: #fff;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-orange-400 {
    color: #fb923c;
}

.text-green-400 {
    color: #4ade80;
}

.text-purple-400 {
    color: #c084fc;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-orange-600 {
    background-color: #ea580c;
}

.bg-orange-500 {
    background-color: #f97316;
}

.hover\:bg-gray-700:hover {
    background-color: #374151;
}

.hover\:bg-orange-500:hover {
    background-color: #f97316;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.p-2 {
    padding: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.w-full {
    width: 100%;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-8 {
    gap: 2rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border-width: 1px;
}

.border-gray-600 {
    border-color: #4b5563;
}

.border-gray-700 {
    border-color: #374151;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cursor-text {
    cursor: text;
}

.cursor-default {
    cursor: default;
}

.select-none {
    user-select: none;
}

.pointer-events-none {
    pointer-events: none;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-mono {
    font-family: 'Courier New', monospace;
}

.leading-relaxed {
    line-height: 1.625;
}

.break-words {
    overflow-wrap: break-word;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -30px, 0);
    }

    70% {
        transform: translate3d(0, -15px, 0);
    }

    90% {
        transform: translate3d(0, -4px, 0);
    }
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.active\:scale-95:active {
    transform: scale(0.95);
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

.min-h-\[300px\] {
    min-height: 300px;
}

.char {
    display: inline-block;
}

.char.current {
    background-color: rgba(255, 165, 0, 0.3);
}

.char.correct {
    color: #4ade80;
}

.char.incorrect {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.3);
}

/* ===== DARK MODE STYLES ===== */
/* CSS Custom Properties for Dark Mode - Ultra Dark Theme */
html.dark-mode body,
body.dark-mode {
    --dm-bg-deepest: #030305;
    --dm-bg-deep: #0a0a0f;
    --dm-bg-base: #0d0d14;
    --dm-bg-elevated: #12121a;
    --dm-bg-surface: #181820;
    --dm-bg-hover: #1e1e28;
    --dm-border: #1a1a24;
    --dm-border-light: #252530;
    --dm-text-primary: #e8e8ec;
    --dm-text-secondary: #a0a0a8;
    --dm-text-muted: #6a6a72;
    --dm-accent: #ff7a00;
    --dm-accent-hover: #ff8a20;

    background-color: var(--dm-bg-deep);
    color: var(--dm-text-primary);
}

/* Make sure all children inherit or check for html.dark-mode */
html.dark-mode .top-header,
html.dark-mode .mobile-menu,
body.dark-mode .top-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

html.dark-mode .feature-card,
body.dark-mode .feature-card {
    background-color: var(--dm-bg-base) !important;
    border-color: var(--dm-border) !important;
}

html.dark-mode .feature-card h3,
html.dark-mode .feature-card p,
body.dark-mode .feature-card h3,
body.dark-mode .feature-card p {
    color: #e0e0e0 !important;
}

/* Hero Section - Dark Mode */
html.dark-mode .hero-title,
html.dark-mode .hero-sub,
body.dark-mode .hero-title,
body.dark-mode .hero-sub {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Features Section - Dark Mode */
html.dark-mode .features,
body.dark-mode .features {
    background-color: var(--dm-bg-deep);
}

html.dark-mode .feature-card,
body.dark-mode .feature-card {
    background-color: var(--dm-bg-base);
    border-color: var(--dm-border);
    color: var(--dm-text-primary) !important;
    /* Force light text */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html.dark-mode .feature-card:hover,
body.dark-mode .feature-card:hover {
    background-color: var(--dm-bg-elevated);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border-color: var(--dm-accent);
}

html.dark-mode .feature-title,
body.dark-mode .feature-title {
    color: var(--dm-text-primary);
}

/* Footer - Dark Mode */
html.dark-mode .site-footer,
body.dark-mode .site-footer {
    background-color: var(--dm-bg-deepest);
    border-top-color: var(--dm-border);
    color: var(--dm-text-muted);
}

html.dark-mode .site-footer a,
body.dark-mode .site-footer a {
    color: var(--dm-text-secondary);
}

html.dark-mode .site-footer a:hover,
body.dark-mode .site-footer a:hover {
    color: var(--dm-accent);
}

/* Main Content Area - Dark Mode */
html.dark-mode main,
html.dark-mode section,
body.dark-mode main,
body.dark-mode section {
    background-color: var(--dm-bg-deep);
}

/* Text Colors - Dark Mode */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--dm-text-primary);
}

body.dark-mode p {
    color: var(--dm-text-secondary);
}

/* Buttons and Links - Dark Mode */
body.dark-mode .btn {
    background-color: var(--dm-bg-surface);
    border-color: var(--dm-border-light);
    color: var(--dm-text-primary);
}

body.dark-mode .btn:hover {
    background-color: var(--dm-bg-hover);
    border-color: var(--dm-accent);
}

body.dark-mode .btn-cta {
    background-color: var(--dm-accent);
    color: #fff;
}

body.dark-mode .btn-cta:hover {
    background-color: var(--dm-accent-hover);
}

/* Forms - Dark Mode */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: var(--dm-bg-base);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--dm-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--dm-text-muted);
}

/* Cards and Boxes - Dark Mode */
body.dark-mode .card,
body.dark-mode .box,
body.dark-mode .panel {
    background-color: var(--dm-bg-base);
    border-color: var(--dm-border);
    color: var(--dm-text-primary);
}

/* Tables - Dark Mode */
body.dark-mode table {
    background-color: var(--dm-bg-base);
    color: var(--dm-text-primary);
}

body.dark-mode th {
    background-color: var(--dm-bg-deepest);
    color: var(--dm-text-primary);
    border-color: var(--dm-border);
}

body.dark-mode td {
    border-color: var(--dm-border);
}

body.dark-mode tr:hover {
    background-color: var(--dm-bg-elevated);
}

/* Typing Test Specific - Dark Mode */
body.dark-mode .bg-gray-800 {
    background-color: var(--dm-bg-base) !important;
}

body.dark-mode .bg-gray-900 {
    background-color: var(--dm-bg-deepest) !important;
}

body.dark-mode .border-gray-600,
body.dark-mode .border-gray-700 {
    border-color: var(--dm-border) !important;
}

/* Scrollbar - Dark Mode */
body.dark-mode ::-webkit-scrollbar {
    width: 10px;
    background-color: var(--dm-bg-deepest);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background-color: var(--dm-bg-surface);
    border-radius: 5px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background-color: var(--dm-bg-hover);
}

body.dark-mode ::-webkit-scrollbar-track {
    background-color: var(--dm-bg-deepest);
}

/* Selection - Dark Mode */
body.dark-mode ::selection {
    background-color: var(--dm-accent);
    color: #fff;
}

/* Top Header - Dark Mode */
body.dark-mode .top-header {
    background-color: var(--dm-bg-base);
    border-bottom-color: var(--dm-border);
}

body.dark-mode .logo-link {
    color: var(--dm-text-primary);
}

body.dark-mode .social-icons a {
    color: var(--dm-text-muted);
}

body.dark-mode .social-icons a:hover {
    color: var(--dm-accent);
}

body.dark-mode .search-input {
    background-color: var(--dm-bg-surface) !important;
    border-color: var(--dm-border) !important;
    color: var(--dm-text-primary) !important;
    /* Force light text */
}

/* Main Navigation - Dark Mode */
body.dark-mode .main-nav {
    background-color: var(--dm-bg-deepest);
}

body.dark-mode .nav-item>a:hover {
    background-color: var(--dm-bg-surface);
}

body.dark-mode .dropdown {
    background-color: var(--dm-bg-base);
    border: 1px solid var(--dm-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .dropdown li a:hover {
    background-color: var(--dm-bg-hover);
}

/* ===== HIGH CONTRAST IMPROVEMENTS ===== */

/* Hero Section - Enhanced Contrast */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #1a202c 100%);
    color: #fff;
}

.hero-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-sub {
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Navigation - Enhanced Contrast */
.main-nav .nav-item>a {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.main-nav .nav-item>a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Feature Cards - Enhanced Contrast */
.feature-card {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
}

.feature-card h3,
.feature-title {
    color: #1a202c;
    font-weight: 700;
}

.feature-card p {
    color: #2d3748;
}

.feature-card:hover {
    border-color: #3182ce;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Buttons - High Contrast Styles */
.btn,
button {
    font-weight: 600;
}

.btn-primary,
.btn-cta,
.search-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover,
.btn-cta:hover,
.search-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
}

/* Tool Cards and Chips - Enhanced Contrast */
.tool-card,
.card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #1a202c;
}

.tool-card h3,
.card h3 {
    color: #1a202c;
    font-weight: 700;
}

.tool-card p,
.card p {
    color: #374151;
}

/* Chips and Badges - High Contrast */
.chip,
.badge,
.tag {
    background: #e2e8f0;
    color: #1a202c;
    border: 1px solid #cbd5e0;
    font-weight: 600;
}

.chip:hover,
.badge:hover,
.tag:hover {
    background: #cbd5e0;
    color: #1a202c;
}

.chip.active,
.badge.active,
.tag.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

/* Section Headers - Enhanced Contrast */
section h2,
.section-title {
    color: #1a202c;
    font-weight: 800;
}

section p,
.section-description {
    color: #374151;
}

/* Sidebar Navigation - Enhanced Contrast */
.sidebar-nav a,
.side-menu a {
    color: #1a202c;
    font-weight: 600;
}

.sidebar-nav a:hover,
.side-menu a:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.sidebar-nav a.active,
.side-menu a.active {
    background: #2563eb;
    color: #ffffff;
}

/* Tab Navigation - Enhanced Contrast */
.tab,
.tab-btn {
    color: #374151;
    font-weight: 600;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
}

.tab:hover,
.tab-btn:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.tab.active,
.tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

/* Input Fields - Enhanced Contrast */
input,
textarea,
select {
    background: #ffffff;
    border: 2px solid #cbd5e0;
    color: #1a202c;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: #718096;
}

/* Action Buttons in Cards - High Contrast */
.card-action,
.tool-action,
.action-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
}

.card-action:hover,
.tool-action:hover,
.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Text Highlight Classes - High Contrast */
.text-muted {
    color: #4a5568;
}

.text-secondary {
    color: #374151;
}

.text-primary-contrast {
    color: #1a202c;
}

/* Footer - Enhanced Contrast */
.site-footer {
    background: #1a202c;
    color: #e2e8f0;
}

.site-footer a {
    color: #90cdf4;
}

.site-footer a:hover {
    color: #ffffff;
}

/* Breadcrumb - Enhanced Contrast */
.breadcrumb {
    color: #e2e8f0;
}

.breadcrumb a {
    color: #ffffff;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #90cdf4;
}

/* Alert/Info Boxes - High Contrast */
.alert,
.info-box,
.notice {
    background: #ebf8ff;
    border: 2px solid #3182ce;
    color: #1a365d;
}

.alert-success {
    background: #f0fff4;
    border-color: #38a169;
    color: #22543d;
}

.alert-warning {
    background: #fffaf0;
    border-color: #dd6b20;
    color: #7b341e;
}

.alert-error {
    background: #fff5f5;
    border-color: #e53e3e;
    color: #742a2a;
}

/* Stats/Metrics Display - High Contrast */
.stat-value,
.metric-value {
    color: #1a202c;
    font-weight: 800;
}

.stat-label,
.metric-label {
    color: #4a5568;
    font-weight: 600;
}

/* Dark Mode - High Contrast Enhancements */
body.dark-mode .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.dark-mode .hero-sub {
    color: #e2e8f0;
}

body.dark-mode .feature-card h3,
body.dark-mode .feature-title,
body.dark-mode .tool-card h3 {
    color: #f7fafc;
}

body.dark-mode .feature-card p,
body.dark-mode .tool-card p {
    color: #cbd5e0;
}

body.dark-mode .btn-primary,
body.dark-mode .btn-cta,
body.dark-mode .action-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

body.dark-mode .chip,
body.dark-mode .badge,
body.dark-mode .tag {
    background: #374151;
    color: #f7fafc;
    border-color: #4b5563;
}

body.dark-mode .chip.active,
body.dark-mode .badge.active,
body.dark-mode .tag.active {
    background: #3b82f6;
    color: #ffffff;
}

body.dark-mode .tab,
body.dark-mode .tab-btn {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #374151;
}

body.dark-mode .tab.active,
body.dark-mode .tab-btn.active {
    background: #3b82f6;
    color: #ffffff;
}

body.dark-mode section h2,
body.dark-mode .section-title {
    color: #f7fafc;
}

body.dark-mode section p,
body.dark-mode .section-description {
    color: #cbd5e0;
}

body.dark-mode .stat-value,
body.dark-mode .metric-value {
    color: #f7fafc;
}

body.dark-mode .stat-label,
body.dark-mode .metric-label {
    color: #9ca3af;
}

body.dark-mode .breadcrumb {
    color: #9ca3af;
}

body.dark-mode .breadcrumb a {
    color: #60a5fa;
}

body.dark-mode .breadcrumb a:hover {
    color: #93c5fd;
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */
/* Breakpoints: 480px (mobile), 768px (tablet), 1024px (laptop), 1440px (desktop), 1920px (FHD), 2560px (2K/QHD), 3840px (4K/UHD) */

/* Base responsive container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== MOBILE FIRST (320px - 480px) ===== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Touch-friendly buttons */
    button,
    .btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Full width inputs on mobile */
    input,
    textarea,
    select {
        width: 100%;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Stack flex items */
    .flex-mobile-stack {
        flex-direction: column !important;
    }

    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }
}

/* ===== TABLET (481px - 768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Two column grids */
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== LAPTOP (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }

    .container {
        max-width: 960px;
        padding: 0 24px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* ===== DESKTOP (1025px - 1440px) ===== */
@media (min-width: 1025px) and (max-width: 1440px) {
    html {
        font-size: 16px;
    }

    .container {
        max-width: 1200px;
        padding: 0 30px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* ===== LARGE DESKTOP / FHD (1441px - 1920px) ===== */
@media (min-width: 1441px) and (max-width: 1920px) {
    html {
        font-size: 17px;
    }

    .container {
        max-width: 1400px;
        padding: 0 40px;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    /* Larger spacing for big screens */
    section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* ===== 2K / QHD DISPLAYS (1921px - 2560px) ===== */
@media (min-width: 1921px) and (max-width: 2560px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: 1600px;
        padding: 0 50px;
    }

    h1 {
        font-size: 3.25rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    /* Larger cards and spacing */
    .feature-card,
    .card,
    .tool-card {
        padding: 2.5rem;
        border-radius: 20px;
    }

    /* Bigger icons */
    .card-icon,
    .feature-icon {
        width: 90px;
        height: 90px;
        font-size: 2.25rem;
    }

    section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    /* Larger buttons */
    button,
    .btn {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
}

/* ===== 4K / UHD DISPLAYS (2561px+) ===== */
@media (min-width: 2561px) {
    html {
        font-size: 20px;
    }

    .container {
        max-width: 2000px;
        padding: 0 80px;
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 2.25rem;
    }

    p {
        font-size: 1.25rem;
        line-height: 1.8;
    }

    /* Extra large cards */
    .feature-card,
    .card,
    .tool-card {
        padding: 3rem;
        border-radius: 28px;
    }

    /* Bigger icons for 4K */
    .card-icon,
    .feature-icon {
        width: 110px;
        height: 110px;
        font-size: 2.75rem;
    }

    section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    /* Large buttons for 4K */
    button,
    .btn {
        padding: 18px 36px;
        font-size: 1.25rem;
        border-radius: 12px;
    }

    /* Larger inputs */
    input,
    textarea,
    select {
        padding: 16px 20px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    /* Keyboard keys for 4K */
    .key {
        min-width: 64px;
        height: 64px;
        font-size: 1.1rem;
    }

    /* Navbar adjustments */
    .nav-item>a {
        padding: 20px 30px;
        font-size: 1rem;
    }
}

/* ===== ULTRA-WIDE MONITORS (21:9 aspect ratio, 2560px+) ===== */
@media (min-width: 2560px) and (min-aspect-ratio: 21/9) {
    .container {
        max-width: 2200px;
    }

    /* Center content with generous side margins */
    main,
    .main-content {
        max-width: 1800px;
        margin: 0 auto;
    }
}

/* ===== RESPONSIVE GRID UTILITIES ===== */
.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* 2K+ grid enhancements */
@media (min-width: 1921px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .grid-5-2k {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 2561px) {
    .grid-4 {
        gap: 2.5rem;
    }

    .grid-6-4k {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ===== RESPONSIVE TEXT UTILITIES ===== */
.text-responsive {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
}

.heading-responsive {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

/* ===== RESPONSIVE SPACING ===== */
.section-padding {
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 4rem 2rem;
    }
}

@media (min-width: 1440px) {
    .section-padding {
        padding: 5rem 3rem;
    }
}

@media (min-width: 1921px) {
    .section-padding {
        padding: 6rem 4rem;
    }
}

@media (min-width: 2561px) {
    .section-padding {
        padding: 8rem 5rem;
    }
}

/* ===== ENHANCED MOBILE RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {

    /* Container adjustments */
    .container {
        padding: 0 1rem;
    }

    /* Typography scaling */
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Touch-friendly targets */
    button,
    .btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Form elements */
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents iOS zoom */
    }

    /* Hide excess content on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Stack flex containers */
    .flex-mobile-column {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    /* Extra small text adjustments */
    p {
        font-size: 0.9rem;
    }

    /* Full-width buttons on mobile */
    .btn-mobile-full {
        width: 100% !important;
    }
}

/* Mobile-specific visibility */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}


/* Large Screen Optimizations (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .features-grid {
        gap: 40px;
    }

    .feature-card {
        padding: 40px 30px;
    }

    .hero {
        padding: 120px 0;
    }
}

/* Ultra Wide Screens (1600px+) */
@media (min-width: 1600px) {
    .container {
        max-width: 1520px;
    }

    .hero-title {
        font-size: clamp(3rem, 6vw, 5rem);
    }
}

/* Laptop Optimization (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .no-print,
    nav,
    .nav-dock,
    .hamburger-btn,
    .mobile-menu {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}