/* ==========================================================================
   1. GLOBAL ARCHITECTURE & SYSTEM TOKENS
   ========================================================================== */
:root {
    --bg-dark: #0f172a;
    --bg-solid-dark: #0b0f19;
    --card-bg-pc: rgba(30, 41, 59, 0.55);
    --card-bg-mobile: #1e293b;
    --accent-blue: #38bdf8;
    --accent-warm: #f59e8b;
    --accent-leaf: #8bd3a7;
    --accent-glow: rgba(56, 189, 248, 0.35);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   HIGH CONTRAST & ACCESSIBILITY TEXT MODIFIERS
   ========================================================================== */
.text-readable-silver {
    color: #cbd5e1 !important; /* Premium light silver for fluid readability */
    font-weight: 400;
}

.text-high-contrast-label {
    color: #e2e8f0 !important; /* Sharp bright light gray for small card labels */
    font-weight: 600;
}

.text-high-contrast-footer {
    color: #cbd5e1 !important; /* Highly visible slate tint for copyright rows */
    font-weight: 500;
}

/* Typography Utility Extensions */
.tracking-wider { letter-spacing: 0.12em; }
.tracking-tight { letter-spacing: -0.025em; }
.monospace { font-family: 'Courier New', Courier, monospace; }
.bg-dark { background-color: var(--bg-solid-dark) !important; }

.extra-small {
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-placeholder {
    min-height: 200px;
    background: #162032;
    border: 1px dashed rgba(56, 189, 248, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.14);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
}

.auto-clicker-preview {
    min-height: 200px;
    background:
        radial-gradient(circle at 28% 20%, rgba(20, 184, 166, 0.32), transparent 28%),
        radial-gradient(circle at 74% 18%, rgba(250, 204, 21, 0.18), transparent 24%),
        #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auto-clicker-orb {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08)),
        radial-gradient(circle at 36% 28%, #f8fafc, #67e8f9 28%, #14b8a6 66%, #0f766e);
    color: #042f2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    box-shadow:
        0 0 0 16px rgba(56, 189, 248, 0.08),
        0 0 52px rgba(20, 184, 166, 0.52);
}

.exe-preview {
    min-height: 200px;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.22), transparent 36%),
        linear-gradient(315deg, rgba(250, 204, 21, 0.16), transparent 42%),
        #101827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exe-badge {
    width: 112px;
    height: 82px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.policy-page {
    background:
        linear-gradient(180deg, #131827 0%, #162033 48%, #101827 100%);
    min-height: 100vh;
    padding-top: 76px;
}

.policy-hero {
    min-height: 34vh;
    background:
        linear-gradient(135deg, rgba(245, 158, 139, 0.18), rgba(139, 211, 167, 0.08) 42%, rgba(56, 189, 248, 0.1)),
        #111827;
    border-bottom: 1px solid rgba(245, 158, 139, 0.12);
}

.policy-content {
    max-width: 860px;
    color: #e7edf4;
    line-height: 1.75;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: clamp(22px, 4vw, 38px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.policy-content h2 {
    color: var(--accent-warm);
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.policy-content p {
    margin-bottom: 1rem;
}

.policy-content a {
    color: var(--accent-leaf);
    font-weight: 700;
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

.language-toggle {
    position: fixed;
    right: 22px;
    top: 88px;
    width: 46px;
    height: 38px;
    border: 1px solid rgba(245, 158, 139, 0.35);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #f8fafc;
    font-weight: 900;
    letter-spacing: 0;
    z-index: 10000;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.language-toggle:hover {
    background: rgba(245, 158, 139, 0.22);
}

.faq-content {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: rgba(15, 23, 42, 0.46);
    border: 1px solid rgba(245, 158, 139, 0.12);
    border-radius: 14px;
    padding: 18px;
}

.faq-item h2 {
    margin-top: 0;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

/* Universal Transition Frameworks */
.nav-link, .btn, .project-card, .footer-link {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. DESKTOP & LAPTOP VISUAL ENGINE (Glassmorphism & Cyber Glow)
   ========================================================================== */
@media (min-width: 769px) {
    /* Dynamic Cyber Blur Overlay Background */
    main {
        background-image: radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.07) 0%, transparent 45%);
    }

    /* Fixed Navbar Translucency */
    .navbar {
        backdrop-filter: blur(12px);
        background-color: rgba(15, 23, 42, 0.75) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 18px 0;
    }

    .navbar-nav .nav-link:hover {
        color: var(--accent-blue) !important;
        text-shadow: 0 0 8px var(--accent-glow);
    }

    /* PC Showcase Grid Elements: Glass Overlay & Elevation Pull */
    .project-card {
        background: var(--card-bg-pc) !important;
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 20px !important;
    }

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 25px var(--accent-glow) !important;
        border-color: rgba(56, 189, 248, 0.4) !important;
    }

    /* Premium Button Hover Micro-Interactions */
    .btn-info:hover {
        background-color: #7dd3fc !important;
        box-shadow: 0 0 20px var(--accent-glow);
        transform: translateY(-1px);
    }

    .btn-outline-info:hover {
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    }

    /* Horizontal Footer Spacing & Links */
    .footer-link {
        color: #94a3b8; /* Increased base visible brightness value */
        text-decoration: none;
        margin: 0 15px;
    }

    .footer-link:hover {
        color: var(--accent-blue);
    }
}

/* ==========================================================================
   3. MOBILE & TABLET VISUAL ENGINE (Streamlined Minimalist Dark UI)
   ========================================================================== */
@media (max-width: 768px) {
    /* Responsive Fluid Header Resizing */
    .display-2 { font-size: 2.4rem !important; font-weight: 800 !important; }
    .display-3 { font-size: 2.0rem !important; }
    .display-4 { font-size: 1.6rem !important; }

    /* Compact Solid Navbar Header Dropdowns */
    .navbar {
        background-color: #090d16 !important;
        padding: 12px 0;
    }

    .navbar-collapse {
        background-color: #090d16;
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.03);
    }

    /* Solid Dynamic Contrast Blocks for Mobile Grid Setup */
    .project-card {
        background: var(--card-bg-mobile) !important;
        border: none !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
        padding: 15px !important;
    }

    /* Full Width Touch Targets (Completely Thumb Accessible) */
    .project-card .btn {
        width: 100%;
        padding: 12px;
        font-weight: 600;
        border-radius: 50px !important;
    }

    /* Stacked Functional Navigation Items Inside Footer */
    .footer-link {
        display: block;
        padding: 12px 0;
        color: #94a3b8;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .footer-link:last-child {
        border-bottom: none;
    }
}
