/* ═══════════════════════════════════════════════════════
   SAM Center for Justice & Recovery Data
   Premium Landing Page Styles (Global Version)
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────── */
:root {
    --sam-primary: #0ea5e9;
    --sam-primary-dark: #0284c7;
    --sam-accent: #8b5cf6;
    --sam-accent-light: #a78bfa;
    --sam-emerald: #10b981;
    --sam-amber: #f59e0b;
    --sam-rose: #f43f5e;
    --sam-cyan: #06b6d4;
    --sam-dark: #0f172a;
    --sam-dark-2: #1e293b;
    --sam-dark-3: #334155;
    --sam-light: #f8fafc;
    --sam-light-2: #f1f5f9;
    --sam-text: #0f172a;
    --sam-text-muted: #64748b;
    --sam-border: rgba(148, 163, 184, 0.15);
    --sam-glass: rgba(255, 255, 255, 0.08);
    --sam-glass-border: rgba(255, 255, 255, 0.12);
    --sam-gradient-1: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    --sam-gradient-2: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 50%, #8b5cf6 100%);
    --sam-shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --sam-shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
    --sam-shadow-lg: 0 10px 40px rgba(0, 0, 0, .12);
    --sam-shadow-glow: 0 0 40px rgba(14, 165, 233, .15);
    --sam-radius: 16px;
    --sam-radius-sm: 10px;
    --sam-radius-full: 9999px;
}

/* ─── Base Reset ─────────────────────────────────────── */
.sam-landing {
    min-height: 100vh;
    background: var(--sam-dark);
    color: white;
    font-family: 'Inter', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sam-landing * {
    box-sizing: border-box;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.sam-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sam-nav.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sam-glass-border);
    padding: 0.6rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-shield {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.brand-shield svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--sam-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sam-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--sam-radius-sm);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.sam-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sam-nav .nav-link.active {
    color: var(--sam-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.45rem 0.9rem;
    border-radius: var(--sam-radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--sam-gradient-1);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--sam-radius-full);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: orbFloat3 10s ease-in-out infinite;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-30px, 40px) scale(1.05);
    }

    66% {
        transform: translate(20px, -20px) scale(0.95);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 30px) scale(1.15);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--sam-primary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--sam-radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--sam-primary);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(14, 165, 233, .4);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px rgba(14, 165, 233, 0);
    }
}

.hero-title {
    margin: 0 0 1.5rem;
    line-height: 1.15;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-line {
    display: block;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
}

.title-highlight {
    background: var(--sam-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 2rem;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sam-gradient-1);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: var(--sam-radius-full);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.85rem 2rem;
    border-radius: var(--sam-radius-full);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.visual-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.ring-outer {
    width: 100%;
    height: 100%;
    border-color: rgba(14, 165, 233, 0.15);
    animation: ringRotate 30s linear infinite;
}

.ring-outer::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--sam-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--sam-primary);
}

.ring-middle {
    width: 75%;
    height: 75%;
    border-color: rgba(139, 92, 246, 0.12);
    animation: ringRotate 20s linear infinite reverse;
}

.ring-inner {
    width: 50%;
    height: 50%;
    border-color: rgba(6, 182, 212, 0.15);
    animation: ringRotate 15s linear infinite;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.visual-core {
    width: 100px;
    height: 100px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: corePulse 4s ease-in-out infinite;
}

@keyframes corePulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, .1);
    }

    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, .2), 0 0 80px rgba(14, 165, 233, .05);
    }
}

.data-point {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: floatPoint 6s ease-in-out infinite;
}

.dp-1 {
    top: 5%;
    left: 10%;
    animation-delay: 0s;
}

.dp-2 {
    top: 15%;
    right: 5%;
    animation-delay: 1s;
}

.dp-3 {
    top: 50%;
    left: -5%;
    animation-delay: 2s;
}

.dp-4 {
    bottom: 15%;
    right: 0%;
    animation-delay: 0.5s;
}

.dp-5 {
    bottom: 5%;
    left: 15%;
    animation-delay: 1.5s;
}

.dp-6 {
    top: 40%;
    right: -8%;
    animation-delay: 2.5s;
}

@keyframes floatPoint {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--sam-gradient-1);
    border-radius: 2px;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% {
        top: -50%;
    }

    100% {
        top: 150%;
    }
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════ */
.about-section {
    background: var(--sam-light);
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sam-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    padding: 0.4rem 1.2rem;
    background: rgba(14, 165, 233, 0.08);
    border-radius: var(--sam-radius-full);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--sam-text);
    margin: 0.75rem 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--sam-text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.about-card {
    background: white;
    border-radius: var(--sam-radius);
    padding: 2rem 1.5rem;
    border: 1px solid var(--sam-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sam-shadow-lg);
    border-color: transparent;
}

.about-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.08);
    color: var(--sam-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sam-text);
    margin: 0 0 0.6rem;
}

.about-card p {
    font-size: 0.88rem;
    color: var(--sam-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   STATISTICS SECTION
   ═══════════════════════════════════════════════════════ */
.stats-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    background: var(--sam-dark);
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 1rem 2rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--sam-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════ */
.services-section {
    background: var(--sam-light-2);
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: var(--sam-radius);
    padding: 2rem;
    border: 1px solid var(--sam-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sam-shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.si-blue {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sam-text);
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--sam-text-muted);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   REPORTS SECTION
   ═══════════════════════════════════════════════════════ */
.reports-section {
    background: white;
    padding: 6rem 0;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.report-card {
    background: var(--sam-light);
    border-radius: var(--sam-radius);
    padding: 2rem;
    border: 1px solid var(--sam-border);
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════ */
.cta-section {
    padding: 6rem 0;
    background: var(--sam-dark);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.sam-footer {
    background: var(--sam-dark-2);
    padding: 4rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand-name {
    font-size: 1.3rem;
    font-weight: 900;
    background: var(--sam-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .about-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .title-line {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════
   RTL SUPPORT
   ═══════════════════════════════════════════════════════ */
[dir="rtl"] .nav-links,
[dir="rtl"] .hero-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}