@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    /* Royal Blue */
    --primary-light: #eff6ff;
    --accent: #f59e0b;
    --accent-light: #fffbeb;
    --bg: #ffffff;
    /* Pure White for maximum readability */
    --bg-alt: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text: #0f172a;
    /* Slate 900 for high contrast */
    --text-muted: #475569;
    /* Slightly darker than before */
    --border: rgba(226, 232, 240, 0.8);
    --radius: 24px;
    --font-main: 'Outfit', sans-serif;
    --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.02) 0%, transparent 40%);
    z-index: -1;
}

/* Floating Particles Simulation */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px;
    animation: float 20s infinite linear;
}

@keyframes float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100px);
    }
}

@keyframes aurora {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

header {
    padding: 6rem 1rem 4rem;
    text-align: center;
    position: relative;
}

.lang-switcher {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

@media (max-width: 768px) {
    .lang-switcher {
        position: static;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
    }
}

.lang-switcher select {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.lang-switcher select:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sticky-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.trust-item {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Global Navigation Styles */
.global-nav {
    padding: 1rem;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-item span {
    font-size: 1.1rem;
}

.nav-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .nav-container {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.4rem;
        border-radius: 20px;
    }

    .nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-premium);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.tool-card {
    padding: 2.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-card.large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 400px;
    padding: 4rem;
}

.tool-card.medium {
    grid-column: span 2;
}

.tool-card.small {
    grid-column: span 1;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: 0.5s;
}

.tool-card:hover::before {
    opacity: 0.03;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -12px rgba(37, 99, 235, 0.12);
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.tool-card.large h3 {
    font-size: 2.2rem;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.btn {
    background: var(--primary);
    color: #fff;
    padding: 1.2rem;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1.5px solid var(--primary);
    padding: 0.8rem 1.8rem;
    border-radius: 14px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.btn-back:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(-4px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.drop-zone {
    border: 2px dashed var(--border);
    background: var(--bg-alt);
    padding: 5rem 2rem;
    text-align: center;
    border-radius: var(--radius);
    transition: 0.3s;
    cursor: pointer;
}

.history-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.hidden {
    display: none !important;
}

/* Cyber Shield HUD Styles - Artisan Intelligence Edition */
.privacy-monitor {
    background: #020617;
    color: #38bdf8;
    padding: 2rem;
    border-radius: 20px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    margin-top: 2rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
    position: relative;
    box-shadow:
        inset 0 0 30px rgba(56, 189, 248, 0.1),
        0 10px 30px -10px rgba(2, 6, 23, 0.5);
    overflow: hidden;
    line-height: 1.8;
}

.privacy-monitor div {
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    position: relative;
    z-index: 2;
}

.privacy-monitor::before {
    content: 'SECURE_SHELL v2.1';
    position: absolute;
    top: -10px;
    right: 20px;
    background: #020617;
    padding: 0 10px;
    font-size: 0.6rem;
    color: #38bdf8;
    letter-spacing: 2px;
}

.privacy-monitor .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(56, 189, 248, 0.05) 45%,
            rgba(56, 189, 248, 0.2) 50%,
            rgba(56, 189, 248, 0.05) 55%,
            transparent 100%);
    animation: scan-hud 3s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes scan-hud {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Comparison Table Styles */
.comparison-section {
    padding: 6rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-alt);
    font-weight: 700;
}

.comparison-table .feature {
    text-align: left;
    background: #fff;
    font-weight: 600;
}

.comparison-table .highlight {
    color: var(--primary);
    font-weight: 800;
    background: var(--primary-light);
}

/* Preview Table Styles */
.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-table th,
.preview-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.preview-table th {
    background: var(--bg-alt);
    color: var(--text-muted);
    font-weight: 600;
}

.preview-table input {
    width: 100%;
    border: 1px solid transparent;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    transition: 0.2s;
}

.preview-table input:hover {
    border-color: var(--border);
    background: var(--bg-alt);
}

.preview-table input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.table-scroll-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.btn-delete-row {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-row:hover {
    color: #b91c1c;
}