/* Modern CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Properties */
:root {
    --primary-color: #ff4f00;
    --primary-dark: #e64700;
    --secondary-color: #2b6cb0;
    --secondary-dark: #1e4b7d;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --success: #2b6cb0;
    --warning: #ff4f00;
    --error: #ff4f00;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 15px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 165, 0, 0.25) 0, rgba(255, 165, 0, 0.25) 60px, transparent 61px),
        radial-gradient(circle at 80% 30%, rgba(255, 140, 0, 0.18) 0, rgba(255, 140, 0, 0.18) 40px, transparent 41px),
        radial-gradient(circle at 30% 70%, rgba(255, 180, 60, 0.22) 0, rgba(255, 180, 60, 0.22) 80px, transparent 81px),
        radial-gradient(circle at 60% 80%, rgba(255, 120, 0, 0.15) 0, rgba(255, 120, 0, 0.15) 30px, transparent 31px),
        radial-gradient(circle at 50% 40%, rgba(255, 200, 80, 0.20) 0, rgba(255, 200, 80, 0.20) 55px, transparent 56px),
        radial-gradient(circle at 90% 80%, rgba(255, 165, 0, 0.13) 0, rgba(255, 165, 0, 0.13) 25px, transparent 26px),
        radial-gradient(circle at 20% 90%, rgba(255, 180, 60, 0.18) 0, rgba(255, 180, 60, 0.18) 35px, transparent 36px),
        radial-gradient(circle at 70% 15%, rgba(255, 140, 0, 0.20) 0, rgba(255, 140, 0, 0.20) 50px, transparent 51px);
}

.hero {
    background: var(--background);
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.active:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.navbar.scrolled {
    background: var(--surface);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--primary-dark);
}

/* Theme Link */
.theme-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    cursor: pointer;
}

.theme-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 100px;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.theme-toggle span {
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(150deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hash Animation */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hash-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 79, 0, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Section Styles */
section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Input Section */
.input-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.input-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-header h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

textarea#textInput {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea#textInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-info i {
    color: var(--primary-color);
}

/* File Upload */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-content i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.upload-content p {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
}

.file-types {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--background);
    border-radius: var(--radius-md);
    color: var(--text);
}

.file-info i {
    color: var(--primary-color);
}

.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.generate-btn:hover {
    background: var(--primary-dark);
}

.generate-btn i {
    font-size: 1.1rem;
}

/* Output Section */
.output-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tab-content .hash-card {
    margin: 0;
    width: 100%;
}

.hash-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.hash-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.hash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(to right, var(--background), var(--surface));
    border-bottom: 1px solid var(--border);
}

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

.hash-title i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.hash-card:hover .hash-title i {
    transform: scale(1.1);
}

.hash-title h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.hash-actions {
    display: flex;
    gap: 0.5rem;
}

.hash-content {
    padding: 1.5rem;
    background: var(--surface);
}

.hash-output {
    padding: 1.25rem;
    background: var(--background);
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text);
    word-break: break-all;
    margin-bottom: 1.25rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.hash-output:hover {
    border-color: var(--primary-color);
}

.comparison-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

.compare-input {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background);
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.compare-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.compare-btn {
    padding: 0.875rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.compare-btn:active {
    transform: translateY(0);
}

.comparison-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.comparison-result i {
    font-size: 1.1rem;
}

.comparison-result.match {
    color: var(--success);
    border-color: var(--success);
    background: rgba(46, 204, 113, 0.1);
}

.comparison-result.mismatch {
    color: var(--error);
    border-color: var(--error);
    background: rgba(231, 76, 60, 0.1);
}

.copy-btn {
    padding: 0.625rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Features Section */
.features-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(43, 108, 176, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.feature-card h3 {
    color: var(--secondary-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    letter-spacing: -0.5px;
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(255, 79, 0, 0.1), rgba(255, 79, 0, 0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 79, 0, 0.1),
        rgba(255, 79, 0, 0.05));
        opacity: 0;
    transition: opacity 0.4s ease;
    }

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white;
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

.feature-details {
    display: grid;
    gap: 2rem;
}

.feature-info {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(43, 108, 176, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.feature-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    border-color: rgba(43, 108, 176, 0.15);
}

.feature-info h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.3px;
}

.feature-info h4::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.feature-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.feature-info ul li {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(43, 108, 176, 0.05);
}

.feature-info ul li:last-child {
    border-bottom: none;
}

.feature-info ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.security-status {
    margin-top: auto;
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.2px;
    transition: all 0.3s ease;
}

.security-status.warning {
    background: linear-gradient(145deg, rgba(255, 79, 0, 0.05), rgba(255, 79, 0, 0.02));
    color: var(--primary-color);
    border: 1px solid rgba(255, 79, 0, 0.1);
}

.security-status.secure {
    background: linear-gradient(145deg, rgba(43, 108, 176, 0.05), rgba(43, 108, 176, 0.02));
    color: #40a94e;
    border: 1px solid rgba(43, 108, 176, 0.1);
}

.security-status i {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
}

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

.about-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 79, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.about-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

/* Footer */
.footer {
    background: var(--surface);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.footer-social {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .output-section {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .input-container {
        grid-template-columns: 1fr;
    }

    .input-card {
        padding: 1.25rem;
    }

    .card-header {
        margin-bottom: 1rem;
    }

    textarea#textInput {
        min-height: 120px;
    }

    .generate-btn {
        width: 100%;
        justify-content: center;
    }

    .output-section {
        padding: 1.5rem;
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

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

    .hash-card {
        margin-bottom: 1rem;
    }

    .hash-header {
        padding: 1rem;
    }

    .hash-content {
        padding: 1.25rem;
    }

    .hash-output {
        padding: 1rem;
        min-height: 3rem;
    }

    .feature-card {
        padding: 2rem;
        gap: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.5rem;
    }

    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.3rem;
    }

    .feature-info {
        padding: 1.5rem;
    }

    .feature-info h4 {
        font-size: 1.1rem;
    }

    .feature-info ul li {
        font-size: 0.95rem;
    }

    .security-status {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .export-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .export-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .export-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .export-header i {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .export-header h3 {
        font-size: 1.25rem;
    }

    .note-card {
        padding: 2rem;
    }

    .note-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .note-header i {
        font-size: 1.25rem;
        padding: 0.5rem;
    }

    .note-header h4 {
        font-size: 1.1rem;
    }

    .note-content p {
        font-size: 0.95rem;
        padding: 0.875rem;
    }

    .about-content {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .about-card h3 {
        font-size: 1.25rem;
    }

    .about-card p {
        font-size: 0.95rem;
    }

    .about-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .about-icon i {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .input-card {
        padding: 1rem;
    }

    .file-upload-area {
        padding: 1.5rem;
    }

    .upload-content i {
        font-size: 2rem;
    }

    .upload-content p {
        font-size: 0.9rem;
    }

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

    .hash-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .comparison-input-wrapper {
        flex-direction: column;
    }

    .compare-btn {
        width: 100%;
        justify-content: center;
    }

    .hash-output {
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 1.75rem;
        gap: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.35rem;
    }

    .feature-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.2rem;
    }

    .feature-info {
        padding: 1.25rem;
    }

    .feature-info h4 {
        font-size: 1rem;
    }

    .feature-info ul li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .security-status {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .output-section,
    .features-grid {
        padding: 1rem;
        gap: 1rem;
    }

    .export-card {
        padding: 1.5rem;
    }

    .export-header h3 {
        font-size: 1.1rem;
    }

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

    .note-card {
        padding: 1.5rem;
    }

    .note-header h4 {
        font-size: 1rem;
    }

    .note-content p {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .about-card {
        padding: 1.25rem;
    }

    .about-card h3 {
        font-size: 1.1rem;
    }

    .about-card p {
        font-size: 0.9rem;
    }

    .about-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .about-icon i {
        font-size: 1.5rem;
    }
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    }

[data-aos].aos-animate {
    opacity: 1;
    }

[data-aos="fade-up"] {
    transform: translateY(20px);
    }

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    }

[data-aos="fade-right"] {
    transform: translateX(-20px);
    }

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    }

[data-aos="fade-left"] {
    transform: translateX(20px);
    }

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    }

[data-aos="zoom-in"] {
    transform: scale(0.9);
    }

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    }

/* History Section Styles */
.history-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.history-content {
    position: relative;
}

.history-content p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.history-content p:last-child {
    margin-bottom: 0;
}

.extra-text {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.history-content.expanded .extra-text {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.read-more-btn:hover {
    background: rgba(255, 79, 0, 0.1);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.history-content.expanded + .read-more-btn i {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .history-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.25rem;
    }

    .history-content p {
        font-size: 0.9rem;
    }

    .read-more-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.875rem;
    }
}

@media (max-width: 480px) {
    .history-section {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    .history-content p {
        font-size: 0.85rem;
    }

    .read-more-btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Progress Bar */
.progress-container {
    margin: 1rem 0;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4f00, #ffa500, #2ecc71);
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

/* Export Section */
.export-section {
    display: none;
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    z-index: 1001;
    white-space: nowrap;
}

.fab-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.fab-button:active {
    transform: translateY(0);
}

.fab-button i {
    font-size: 1.1rem;
}

.fab-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.fab-menu-item:hover {
    background: var(--background);
    color: var(--primary-color);
}

.fab-menu-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.fab-menu-item:nth-child(2) {
    border-radius: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.fab-menu-item:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.fab-menu-item i {
    font-size: 1rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.fab-menu-item span {
    flex: 1;
}

/* Security Note */
.security-note {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.note-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--warning), var(--primary-color));
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--warning);
}

.note-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.note-header i {
    font-size: 1.5rem;
    color: var(--warning);
    background: var(--background);
    padding: 0.75rem;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.note-header h4 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.note-content {
    position: relative;
}

.note-content p {
    margin: 1rem 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--warning);
    transition: all 0.3s ease;
}

.note-content p:hover {
    background: rgba(255, 79, 0, 0.05);
    transform: translateX(5px);
}

.note-content p:first-child {
    margin-top: 0;
}

.note-content p:last-child {
    margin-bottom: 0;
}

.note-content p strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Hash Card Icon Colors */
.md5-card .hash-title i {
    color: #e74c3c;
}

.sha1-card .hash-title i {
    color: #3498db;
}

.sha224-card .hash-title i {
    color: var(--secondary-color);
}

.sha256-card .hash-title i {
    color: #2ecc71;
}

.sha512-card .hash-title i {
    color: var(--primary-color);
}

.sha3-256-card .hash-title i {
    color: var(--primary-color);
}

.sha3-384-card .hash-title i {
    color: var(--primary-color);
}

.sha3-512-card .hash-title i {
    color: var(--primary-color);
}

/* Removed Whirlpool and RIPEMD160 styles - algorithms no longer used */

/* Disabled button styles */
.generate-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.generate-btn:disabled:hover {
    background: var(--text-light);
    transform: none;
}

/* Responsive Design for FAB */
@media (max-width: 768px) {
    .fab-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .fab-button {
        height: 45px;
        padding: 0 1.25rem;
        font-size: 0.9rem;
    }

    .fab-button i {
        font-size: 1rem;
    }

    .fab-text {
        font-size: 0.85rem;
    }

    .fab-menu {
        min-width: 180px;
        bottom: 55px;
    }

    .fab-menu-item {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .fab-container {
        bottom: 1rem;
        right: 1rem;
    }

    .fab-button {
        height: 40px;
        padding: 0 1rem;
        font-size: 0.85rem;
    }

    .fab-button i {
        font-size: 0.95rem;
    }

    .fab-text {
        font-size: 0.8rem;
    }

    .fab-menu {
        min-width: 160px;
        bottom: 50px;
    }

    .fab-menu-item {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.tab-navigation::-webkit-scrollbar {
    height: 4px;
}

.tab-navigation::-webkit-scrollbar-track {
    background: transparent;
}

.tab-navigation::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn span {
    font-size: 0.9rem;
}

/* Tab Content Styles */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Ensure tab buttons are always clickable */
.tab-btn {
    pointer-events: auto !important;
    transition: all 0.3s ease;
}

.tab-btn:disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Prevent interference from processing states */
.tab-navigation {
    pointer-events: auto !important;
}

.tab-content {
    pointer-events: auto !important;
}

/* Hash output states */
.hash-output {
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.hash-output.processing {
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 768px) {
    .tab-navigation {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        flex-wrap: nowrap;
        gap: 4px;
        padding: 12px 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -20px;
        width: calc(100% + 40px);
    }
    
    .tab-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        min-width: 70px;
        padding: 8px 4px;
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .tab-btn span {
        display: inline;
        font-size: 0.65rem;
    }
    
    .tab-btn i {
        font-size: 0.75rem;
        margin-right: 3px;
    }
}

@media (max-width: 480px) {
    .tab-navigation {
        gap: 0.2rem;
        margin-bottom: 1rem;
    }

    .tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .tab-btn i {
        font-size: 0.85rem;
    }

    .tab-btn span {
        font-size: 0.75rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* File Processing States */
.processing {
    opacity: 0.7;
    pointer-events: none;
}

.processing .hash-output {
    color: var(--text-light);
    font-style: italic;
}

/* Progress Bar States */
.progress-container.processing {
    display: block !important;
}

.progress-fill.uploading {
    background: linear-gradient(90deg, #ff4f00, #ffa500);
}

.progress-fill.processing {
    background: linear-gradient(90deg, #ffa500, #2ecc71);
}

/* File Upload Error States */
.file-upload-area.error {
    border-color: var(--error);
    background-color: rgba(255, 79, 0, 0.05);
}

.file-upload-area.error .upload-content i {
    color: var(--error);
}

.file-upload-area.error .upload-content p {
    color: var(--error);
}

.file-info.error {
    color: var(--error);
}

.file-info.error i {
    color: var(--error);
}

/* File Size Warning */
.file-size-warning {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid #ffa500;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #ffa500;
}

.file-size-warning i {
    margin-right: 0.5rem;
}

/* Loading Popup Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.loading-overlay.show {
    opacity: 1;
}

.loading-popup {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 320px;
    width: 90%;
    animation: popupSlideIn 0.3s ease;
    border: 1px solid #e5e7eb;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-popup h3 {
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.loading-popup p {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.loading-progress-bar {
    width: 100%;
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
}

.loading-progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    width: 0%;
    transition: width 0.2s ease;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* History Controls */
.history-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.history-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.history-btn.danger {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.history-btn.danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-item-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.history-item-time {
    color: #6b7280;
    font-size: 0.75rem;
}

.history-item-input {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 8px;
    word-break: break-all;
    max-height: 60px;
    overflow-y: auto;
}

.history-hashes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-hash-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
}

.history-hash-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.75rem;
    min-width: 60px;
}

.history-hash-value {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #1f2937;
    flex: 1;
    margin: 0 12px;
    word-break: break-all;
}

.history-hash-copy {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.history-hash-copy:hover {
    background: #eff6ff;
}

/* History Empty State */
.history-empty {
    padding: 30px 20px;
}

.history-empty i {
    font-size: 2.5rem;
}

.history-empty p {
    font-size: 1rem;
}

.history-empty span {
    font-size: 0.8rem;
}

/* Modal close button mobile */
.modal-close {
    padding: 10px;
    font-size: 1.125rem;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* Navbar mobile fixes */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 12px 16px;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-content {
        padding: 0;
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    /* Show menu toggle on mobile */
    .menu-toggle {
        display: block !important;
        background: #f3f4f6;
        border: 1px solid #d1d5db;
        font-size: 1.5rem;
        color: #374151;
        cursor: pointer;
        padding: 10px;
        border-radius: 6px;
        transition: all 0.3s ease;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }
    
    /* Hide nav links by default on mobile */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex;
        border-radius: 0 0 8px 8px;
    }
    
    .nav-links.show {
        max-height: 250px;
        opacity: 1;
        transform: translateY(0);
        padding: 8px 0;
    }
    
    .nav-links a {
        padding: 14px 20px;
        font-size: 0.875rem;
        white-space: nowrap;
        color: #374151;
        text-decoration: none;
        border-radius: 0;
        transition: all 0.3s ease;
        font-weight: 500;
        border-bottom: 1px solid #f3f4f6;
        display: block;
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-links.show a {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-links a:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .nav-links a:nth-child(2) {
        transition-delay: 0.15s;
    }
    
    .nav-links a:nth-child(3) {
        transition-delay: 0.2s;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
        transform: translateX(5px);
    }
    
    .nav-links a.active {
        color: #3b82f6;
        font-weight: 600;
        background: rgba(59, 130, 246, 0.05);
    }
    
    /* Add top padding to main content to account for fixed navbar */
    main {
        padding-top: 80px;
    }
    
    /* Hero section mobile fixes */
    .hero {
        padding: 60px 20px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content .subtitle {
        font-size: 1rem;
        margin: 16px 0;
    }
    
    /* Input section mobile fixes */
    .input-section {
        padding: 40px 20px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .input-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .input-card {
        width: 100%;
        margin: 0;
    }
    
    /* Tab navigation mobile fixes */
    .tab-navigation {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        flex-wrap: nowrap;
        gap: 4px;
        padding: 12px 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -20px;
        width: calc(100% + 40px);
    }
    
    .tab-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        min-width: 70px;
        padding: 8px 4px;
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .tab-btn span {
        display: inline;
        font-size: 0.65rem;
    }
    
    .tab-btn i {
        font-size: 0.75rem;
        margin-right: 3px;
    }
    
    /* Hash cards mobile fixes */
    .hash-card {
        margin: 16px 0;
        padding: 16px;
    }
    
    .hash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .hash-title h3 {
        font-size: 1.125rem;
    }
    
    .hash-output {
        font-size: 0.75rem;
        padding: 12px;
        word-break: break-all;
    }
    
    .comparison-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .comparison-input-wrapper {
        width: 100%;
    }
    
    .compare-input {
        width: 100%;
        font-size: 0.875rem;
    }
    
    /* Modal mobile fixes */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.125rem;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 70vh;
    }
    
    .history-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .history-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    .history-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .history-item-title {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .history-item-time {
        font-size: 0.7rem;
    }
    
    .history-item-input {
        font-size: 0.8rem;
        padding: 8px 10px;
        margin-bottom: 10px;
        max-height: 50px;
    }
    
    .history-hashes {
        gap: 6px;
    }
    
    .history-hash-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px;
    }
    
    .history-hash-label {
        min-width: auto;
        font-weight: 600;
        font-size: 0.7rem;
        color: var(--primary-color);
    }
    
    .history-hash-value {
        margin: 0;
        font-size: 0.65rem;
        width: 100%;
        word-break: break-all;
        line-height: 1.3;
        font-family: 'Courier New', monospace;
    }
    
    .history-hash-copy {
        align-self: flex-end;
        margin-top: 4px;
        padding: 6px 10px;
        font-size: 0.7rem;
        background: var(--primary-color);
        color: white;
        border-radius: 4px;
    }
    
    .history-hash-copy:hover {
        background: var(--primary-dark);
    }
    
    /* History empty state mobile */
    .history-empty {
        padding: 30px 20px;
    }
    
    .history-empty i {
        font-size: 2.5rem;
    }
    
    .history-empty p {
        font-size: 1rem;
    }
    
    .history-empty span {
        font-size: 0.8rem;
    }
    
    /* Modal close button mobile */
    .modal-close {
        padding: 10px;
        font-size: 1.125rem;
    }
    
    /* FAB mobile fixes */
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-button {
        width: 56px;
        height: 56px;
    }
    
    .fab-text {
        display: none;
    }
    
    .fab-menu {
        bottom: 70px;
        right: 0;
        min-width: 140px;
    }
    
    .fab-menu-item {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    /* About section mobile fixes */
    .about-section {
        padding: 40px 20px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .about-card {
        width: 100%;
        padding: 24px 20px;
    }
    
    /* Footer mobile fixes */
    .footer {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    /* Loading popup mobile fixes */
    .loading-popup {
        width: 95%;
        max-width: 300px;
        padding: 24px 20px;
    }
    
    .loading-popup h3 {
        font-size: 1rem;
    }
    
    .loading-popup p {
        font-size: 0.8rem;
    }
    
    /* General mobile fixes */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    main {
        width: 100%;
        overflow-x: hidden;
    }
    
    section {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix horizontal scrolling */
    * {
        box-sizing: border-box;
    }
    
    .container, .section-container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        margin: 0;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .tab-btn {
        min-width: 60px;
        padding: 6px 2px;
        font-size: 0.7rem;
    }
    
    .hash-output {
        font-size: 0.7rem;
        padding: 8px;
    }
    
    .modal-content {
        margin: 10px;
        width: 98%;
    }
    
    .fab-container {
        bottom: 16px;
        right: 16px;
    }
    
    .fab-button {
        width: 48px;
        height: 48px;
    }
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #374151;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Theme toggle mobile styles */
.theme-toggle {
    padding: 6px 12px;
    font-size: 0.75rem;
    min-width: 80px;
    margin-right: 0.5rem;
}

.theme-toggle i {
    font-size: 0.9rem;
}

/* Dark Mode Component Overrides */
[data-theme="dark"] .navbar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .navbar.scrolled {
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .nav-links a {
    color: var(--text);
}

[data-theme="dark"] .nav-links a:hover {
    background: rgba(255, 79, 0, 0.1);
    color: var(--primary-color);
}

[data-theme="dark"] .nav-links a.active {
    color: var(--primary-color);
}

[data-theme="dark"] .input-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] .hash-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] .hash-output {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text);
}

[data-theme="dark"] .compare-input {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text);
}

[data-theme="dark"] .compare-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 79, 0, 0.1);
}

[data-theme="dark"] .file-upload-area {
    background: var(--surface);
    border: 2px dashed var(--border);
}

[data-theme="dark"] .file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 79, 0, 0.05);
}

[data-theme="dark"] .about-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] .modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] .modal-header {
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .history-item {
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] .history-hash-value {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text);
}

[data-theme="dark"] .tab-navigation {
    background: transparent;
    border-bottom: none;
}

[data-theme="dark"] .tab-btn {
    color: var(--text);
}

[data-theme="dark"] .tab-btn:hover {
    background: rgba(255, 79, 0, 0.1);
    color: var(--primary-color);
}

[data-theme="dark"] .tab-btn.active {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .loading-popup {
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] .loading-progress-bar {
    background: var(--background);
    border: 1px solid var(--border);
}

[data-theme="dark"] .nav-links a.active {
    color: var(--primary-color);
}

[data-theme="dark"] .theme-link {
    color: var(--text);
}

[data-theme="dark"] .theme-link:hover {
    background: rgba(255, 79, 0, 0.1);
    color: var(--primary-color);
}

/* Dark Mode Mobile Navigation Overrides */
@media screen and (max-width: 768px) {
    [data-theme="dark"] .navbar {
        background: rgba(30, 41, 59, 0.95);
        border-bottom: 1px solid var(--border);
    }
    
    [data-theme="dark"] .nav-links {
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    [data-theme="dark"] .nav-links a {
        color: var(--text);
        border-bottom: 1px solid var(--border);
    }
    
    [data-theme="dark"] .nav-links a:hover {
        background: rgba(255, 79, 0, 0.1);
        color: var(--primary-color);
    }
    
    [data-theme="dark"] .nav-links a.active {
        color: var(--primary-color);
        background: rgba(255, 79, 0, 0.05);
    }
    
    [data-theme="dark"] .menu-toggle {
        color: var(--text);
        background: var(--surface);
        border: 1px solid var(--border);
    }
    
    [data-theme="dark"] .menu-toggle:hover {
        background: rgba(255, 79, 0, 0.1);
        color: var(--primary-color);
    }
}