/* =====================================
   PRIVACY POLICY — eLKhair Dev
   STYLE.CSS (Crawler-Safe & Accessible)
===================================== */

:root {
    --primary-blue: #2563EB;
    --accent-blue: #60A5FA;
    --primary-green: #10B981;
    --accent-green: #4ADE80;
    --primary-orange: #FB923C;
    --text-dark: #0F172A;
    --text-gray: #334155;
    --text-muted: #475569;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.55);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

/* ==========================
   RESET
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(
        135deg,
        #DBEAFE 0%,
        #BFDBFE 22%,
        #BAE6FD 42%,
        #D1FAE5 68%,
        #BBF7D0 84%,
        #FED7AA 100%
    );
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.75;
}

a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: #1D4ED8;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    background: rgba(37, 99, 235, 0.1);
    color: #1E40AF;
    padding: 2px 7px;
    border-radius: 6px;
}

/* ==========================
   FLOATING BACKGROUND
========================== */

.background-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.28;
    z-index: -1;
    pointer-events: none;
    animation: floating 18s ease-in-out infinite;
}

.blur-1 {
    width: 480px;
    height: 480px;
    background: #60A5FA;
    top: -150px;
    left: -150px;
}

.blur-2 {
    width: 440px;
    height: 440px;
    background: #4ADE80;
    right: -120px;
    top: 160px;
    animation-delay: 4s;
}

.blur-3 {
    width: 480px;
    height: 480px;
    background: #FB923C;
    bottom: -180px;
    left: 35%;
    animation-delay: 8s;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-32px);
    }
}

/* ==========================
   PROGRESS BAR
========================== */

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, #2563EB, #10B981, #FB923C);
    z-index: 9999;
    transition: width 0.08s linear;
}

/* ==========================
   NAVBAR
========================== */

.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 999;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active-nav {
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-links a.lang-pill {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-links a.lang-pill:hover {
    background: var(--primary-blue);
    color: #FFFFFF;
}

/* ==========================
   HERO SECTION
========================== */

.hero {
    padding: 64px 24px 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 880px;
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--primary-blue);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.08rem;
    color: var(--text-gray);
    margin-bottom: 22px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #FFFFFF;
    background: linear-gradient(135deg, #2563EB, #10B981);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(37, 99, 235, 0.28);
}

.btn-secondary:hover {
    color: #1D4ED8;
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==========================
   CONTAINER & SECTION DIVIDER
========================== */

.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0 22px;
}

.section-divider span {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1E40AF;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ==========================
   GLASS CARD (ALWAYS VISIBLE)
========================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 34px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.glass-card h2 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.glass-card h3 {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin: 20px 0 10px;
}

.glass-card p {
    color: var(--text-gray);
    margin-bottom: 14px;
}

.glass-card ul,
.glass-card ol {
    padding-left: 22px;
    margin-bottom: 14px;
    color: var(--text-gray);
}

.glass-card li {
    margin-bottom: 10px;
}

.callout {
    background: rgba(37, 99, 235, 0.08);
    border-left: 4px solid var(--primary-blue);
    padding: 16px 18px;
    border-radius: 12px;
    color: var(--text-dark);
    margin: 18px 0;
}

.contact-list {
    list-style: none;
    padding-left: 0 !important;
}

.contact-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-list li:last-child {
    border-bottom: none;
}

/* ==========================
   FOOTER
========================== */

footer {
    padding: 40px 24px 56px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.footer-content {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.92rem;
}

.footer-content h3 {
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* ==========================
   BACK TO TOP
========================== */

#backToTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    color: #FFFFFF;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #2563EB, #10B981);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    z-index: 999;
    transition: transform 0.2s ease;
}

#backToTop:hover {
    transform: translateY(-3px);
}

/* ==========================
   SCROLLBAR
========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #60A5FA, #4ADE80, #FB923C);
    border-radius: 20px;
}

/* ==========================
   MOBILE & REDUCED MOTION
========================== */

@media (max-width: 768px) {
    .navbar {
        padding: 14px 18px;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        justify-content: center;
        gap: 10px 14px;
    }

    .hero {
        padding: 40px 16px 24px;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .glass-card {
        padding: 24px 20px;
    }

    .container {
        padding: 16px 14px 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .background-blur {
        animation: none;
    }
    .glass-card,
    .btn-primary,
    .btn-secondary {
        transition: none;
    }
}

/* Only the selected language occupies the content area. */
.language-panel[hidden] { display: none !important; }
.language-panel { display: flow-root; }
.hero-actions button {
    font-family: inherit;
    cursor: pointer;
    border: 1px solid rgba(37, 99, 235, 0.28);
}
[data-language]:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    .language-panel { animation: none; }
}
