/* Demo mode badge */
.demo-badge {
    margin-top: 6px;
    text-align: center;
    font-size: 0.85rem;
    color: #93c5fd;
    background: rgba(147,197,253,0.08);
    border: 1px solid rgba(147,197,253,0.2);
    border-radius: 999px;
    padding: 6px 12px;
    display: inline-block;
}

/* Toast notifications */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(2,6,12,0.85);
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: 999px;
    padding: 10px 16px;
    z-index: 5000;
    box-shadow: 0 10px 30px rgba(2,6,23,0.5);
    transition: opacity 220ms ease, transform 220ms ease;
    opacity: 0;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

/* Section/icon accents */
.sec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-end: 8px;
    filter: drop-shadow(0 2px 6px rgba(96,165,250,0.18));
    transform: translateY(1px);
}
html[dir="rtl"] .sec-icon { margin-inline-end: 0; margin-inline-start: 8px; }

.li-icon {
    display: inline-block;
    margin-inline-end: 8px;
    transform: translateY(1px);
}
html[dir="rtl"] .li-icon { margin-inline-end: 0; margin-inline-start: 8px; }

/* Subtle float on hover */
.icon-float:hover { transform: translateY(-2px); transition: transform 180ms ease; }

.motion-section, #features, #pricing, #about {
    position: relative;
    overflow: hidden;
}

/* Animated gradient orbs and scanning lines */
@keyframes orbDrift {
  0% { transform: translate(-10%, 0) scale(1); opacity: 0.35; }
  50% { transform: translate(10%, -6%) scale(1.05); opacity: 0.5; }
  100% { transform: translate(-10%, 0) scale(1); opacity: 0.35; }
}
@keyframes scanLines {
  0% { transform: translateX(-20%); opacity: 0.12; }
  50% { transform: translateX(20%); opacity: 0.2; }
  100% { transform: translateX(-20%); opacity: 0.12; }
}

/* Base layers for sections */
#features::before, #pricing::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 320px;
  background: radial-gradient(600px 260px at 20% 60%, rgba(96,165,250,0.18), rgba(59,130,246,0.10), transparent 70%);
  filter: blur(12px);
  animation: orbDrift 14s ease-in-out infinite;
  pointer-events: none;
}
#features::after, #pricing::after {
  content: '';
  position: absolute;
  left: -10%; right: -10%; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(96,165,250,0.0), rgba(147,197,253,0.35), rgba(96,165,250,0.0));
  filter: blur(0.4px);
  animation: scanLines 7s ease-in-out infinite;
  pointer-events: none;
}

/* Slightly different hues per section for variety */
#pricing::before {
  background: radial-gradient(600px 260px at 80% 40%, rgba(34,197,94,0.16), rgba(16,185,129,0.10), transparent 70%);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #features::before, #pricing::before,
  #features::after, #pricing::after { animation: none; }
}

/* Removed register section styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero sample report preview */
.hero-preview {
    margin: 1.25rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    max-width: 720px;
    background: rgba(2,6,12,0.4);
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: 16px;
    padding: 0.75rem;
    backdrop-filter: blur(8px);
}
.kpi {
    background: #0b1220;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.kpi-label { color: #94a3b8; font-size: 0.9rem; }
.kpi-value { color: #93c5fd; font-weight: 700; font-size: 1.2rem; }
.kpi-badge {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
}
.kpi-badge.good { background: rgba(34,197,94,0.18); color: #86efac; border: 1px solid rgba(34,197,94,0.35); }
.kpi-badge.ok { background: rgba(234,179,8,0.18); color: #fde68a; border: 1px solid rgba(234,179,8,0.35); }
.kpi-badge.bad { background: rgba(239,68,68,0.18); color: #fecaca; border: 1px solid rgba(239,68,68,0.35); }

/* Utility */
.is-hidden { display: none !important; }

/* Trusted by */
.trusted-by {
    margin: 1rem auto 0;
    text-align: center;
}
.trusted-title { color: #94a3b8; font-size: 0.9rem; display: block; margin-bottom: 0.5rem; }
.trusted-logos {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
    margin: 0; padding: 0;
}
.logo-chip {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(148,163,184,0.12);
    border: 1px solid rgba(148,163,184,0.25);
    border-radius: 999px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Hero bullets on dark banner */
.hero-bullets {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    margin: 0.75rem 0 0.5rem 0;
    padding: 0;
}
.hero-bullets li {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.hero-bullets i { color: #93c5fd; }

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.btn-cta {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: 1px solid rgba(37, 99, 235, 0.6);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-cta:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.35);
}
.btn-ghost:hover { background: rgba(226, 232, 240, 0.08); transform: translateY(-2px); }

/* Motion enhancements across site */
.metric-card, .pricing-card, .recommendation-item {
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.metric-card:hover, .pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.18), 0 10px 20px rgba(0,0,0,0.1);
}

/* Tab underline motion */
.tab-btn { position: relative; overflow: hidden; }
.tab-btn::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    width: 0; height: 3px;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    transition: width 0.25s ease, left 0.25s ease;
}
.tab-btn:hover::after, .tab-btn.active::after { width: 60%; left: 20%; }

/* Responsive tweaks for bullets/ctas */
@media (max-width: 640px) {
  .hero-bullets li { font-size: 0.9rem; }
}

/* Full-bleed particles canvas behind content */
#heroParticles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #0b1117;
    transition: all 0.3s ease;
}

/* Arabic RTL Support */
html[dir="rtl"] {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[dir="rtl"] body {
    text-align: right;
}

.container {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B5E34;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* New brand link styles */
.brand-link { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand-logo { height: 24px; width: auto; display: block; }
.brand-text { color: #e5e7eb; font-weight: 700; }
.brand-text:hover { color: #93c5fd; text-shadow: 0 0 12px rgba(147,197,253,0.45); }

/* Center navigation links across languages */
.nav-links { flex: 1; justify-content: center; align-items: center; }
.navbar > .nav-brand { order: 1; }
.navbar > .nav-links { order: 2; }
.navbar > .language-switcher { order: 3; }

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

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #93c5fd;
}

/* Nav underline effect */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -6px;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    transition: width 200ms ease, left 200ms ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; left: 20%; }

/* RTL underline direction */
html[dir="rtl"] .nav-links a::after { left: auto; right: 50%; }
html[dir="rtl"] .nav-links a:hover::after, html[dir="rtl"] .nav-links a.active::after { left: auto; right: 20%; width: 60%; }

/* Language Switcher */
.language-switcher {
    display: flex;
    background: rgba(148,163,184,0.15);
    border-radius: 25px;
    padding: 4px;
    gap: 2px;
}
.language-switcher { min-width: 92px; justify-content: center; }

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.lang-btn.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.35);
}

.lang-btn:hover:not(.active) {
    background: #e2e8f0;
    color: #2563eb;
}

/* RTL Navigation */
/* RTL: keep row direction but reorder items so logo moves to the right */
html[dir="rtl"] .navbar { flex-direction: row; }
html[dir="rtl"] .navbar > .nav-brand { order: 3; }
html[dir="rtl"] .navbar > .nav-links { order: 2; }
html[dir="rtl"] .navbar > .language-switcher { order: 1; }

html[dir="rtl"] .nav-right {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Dark animated gradient background */
    background: linear-gradient(135deg, #0b0f14, #0e141b, #131a22, #0a0f16);
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
    /* Animate gradient movement */
    background-size: 400% 400%;
    animation: gradientFlow 22s ease-in-out infinite;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 450px at 50% 15%, rgba(255,255,255,0.10), transparent 60%),
                radial-gradient(800px 400px at 15% 85%, rgba(255,255,255,0.06), transparent 60%),
                radial-gradient(800px 400px at 85% 80%, rgba(255,255,255,0.06), transparent 60%),
                linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0));
    z-index: 1;
}

/* Floating AI blobs */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.12), transparent 60%);
    filter: blur(8px);
    z-index: 1;
    animation: floatBlob 14s ease-in-out infinite alternate;
}

@keyframes floatBlob {
    from { transform: translateY(0) translateX(0) scale(1); }
    to   { transform: translateY(30px) translateX(20px) scale(1.05); }
}

/* Smooth animated gradient keyframes */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px; /* allow wider hero to showcase image */
    padding: 2.5rem 2rem;
    margin: 3rem auto;
    background: transparent; /* remove overlay to show full image */
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    will-change: transform;
    transition: transform 120ms ease-out;
}

/* Reveal animation */
.hero-content::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; height: 80px;
    border-radius: 0;
    background: transparent; /* remove inner gradient rim */
    pointer-events: none;
    transform: translateY(-100%);
    animation: reveal 1.2s ease-out forwards;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

/* Small AI badge near title */
.hero-title::after {
    content: 'AI';
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(37,99,235,0.35);
}

/* URL Checker */
.url-checker {
    margin-top: 3rem;
    width: 100%;
    max-width: 720px;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; height: 80px;
    border-radius: 0;
    background: transparent; /* remove inner gradient rim */
    pointer-events: none;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    min-width: 300px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(139, 94, 52, 0.15);
    border-radius: 50px;
    background: rgba(2,6,12,0.6);
    color: #e5e7eb;
    font-size: 1rem;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.25);
}

.input-group input::placeholder {
    color: #94a3b8;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
    background: rgba(2,6,12,0.8);
}

.input-group .btn {
    white-space: nowrap;
    min-width: 120px;
}

/* Loading Animation */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RTL Hero */
html[dir="rtl"] .hero-content {
    text-align: center;
}

html[dir="rtl"] .input-group {
    flex-direction: row-reverse;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-content {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

.section p {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.8;
}

/* Results Section */
.results-section {
    background: linear-gradient(180deg, #0b1117, #0f172a);
    padding: 4rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.metric-card {
    background: #0f172a;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.6), 0 2px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(148,163,184,0.12);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #93c5fd;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(59,130,246,0.18);
}

/* Mobile AI look for cards */
@media (max-width: 768px) {
  .metric-card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #fff7ee);
    box-shadow: 0 30px 50px rgba(139,94,52,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
  }
  .metric-icon {
    width: 64px;
    height: 64px;
    box-shadow: 0 14px 30px rgba(139,94,52,0.2);
  }
  .score {
    font-size: 2.2rem;
    text-shadow: 0 2px 10px rgba(139,94,52,0.15);
  }
}

.metric-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: 0.5rem;
}

.score-label {
    font-size: 0.875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Detailed Results */
.detailed-results {
    margin-top: 4rem;
    background: #0b1220;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.5);
}

.result-tabs {
    display: flex;
    background: #0b1220;
    border-bottom: 1px solid rgba(148,163,184,0.12);
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background: transparent;
    color: #93c5fd;
    border-bottom-color: #2563eb;
}

.tab-btn:hover:not(.active) {
    background: #e2e8f0;
    color: #2563eb;
}

.tab-content {
    padding: 2rem;
}

/* Tab panes animation */
.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(8px);
}
.tab-pane.active {
    display: block;
    animation: paneIn 420ms ease forwards;
}
@keyframes paneIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.recommendations {
    display: grid;
    gap: 1rem;
}

.recommendation-item {
    padding: 1.5rem;
    background: #0f172a;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    background: #0b1220;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.recommendation-item h4 {
color: #e5e7eb;
margin: 0;
font-size: 1.125rem;
font-weight: 600;
}

.recommendation-meta {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}

.impact-badge {
padding: 0.25rem 0.75rem;
border-radius: 20px;
color: white;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.time-badge {
padding: 0.25rem 0.75rem;
background: #e2e8f0;
color: #475569;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 500;
}

.recommendation-item p {
color: #94a3b8;
font-size: 0.9rem;
line-height: 1.6;
margin-bottom: 1rem;
}

.recommendation-steps {
background: #0b1220;
padding: 1rem;
border-radius: 8px;
border: 1px solid rgba(148,163,184,0.12);
}

.recommendation-steps h5 {
color: #e5e7eb;
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.recommendation-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-steps li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148,163,184,0.12);
    color: #cbd5e1;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.5rem;
}

.recommendation-steps li:last-child {
    border-bottom: none;
}

.recommendation-steps li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8B5E34;
    font-weight: bold;
}

/* RTL Support for recommendations */
html[dir="rtl"] .recommendation-item {
    border-left: none;
    border-right: 4px solid #8B5E34;
}

html[dir="rtl"] .recommendation-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .recommendation-steps li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir="rtl"] .recommendation-steps li:before {
    left: auto;
    right: 0;
}

/* Detail Tags Styling */
.recommendation-details {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.recommendation-details h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-transform: none;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e2e8f0;
    color: #475569;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #cbd5e1;
}

.detail-tag.issue-tag {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.detail-tag.vulnerability-tag {
    background: #fee2e2;
    color: #dc2626;
    border-color: #f87171;
}

/* RTL Support for detail tags */
html[dir="rtl"] .recommendation-details {
    border-left: none;
    border-right: 3px solid #3b82f6;
}

/*
==============================================
  Mobile Responsive Styles (max-width: 768px)
==============================================
*/

@media (max-width: 768px) {
    /* General Layout */
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-content {
        padding: 0 1rem;
    }

    /* Navigation */
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none; /* Hide nav links on mobile; requires hamburger menu for access */
    }

    .language-switcher {
        order: 2; /* Move to middle */
    }

    .nav-brand {
        order: 1; /* Logo on the left */
    }

    html[dir="rtl"] .navbar > .language-switcher {
        order: 2;
    }

    html[dir="rtl"] .navbar > .nav-brand {
        order: 3;
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem 0;
    }

    .hero-content {
        padding: 1rem;
        margin: 1rem auto;
    }

    .hero-title {
        font-size: 2.5rem; /* Reduce title font size */
    }

    .hero-subtitle {
        font-size: 1.1rem; /* Reduce subtitle font size */
    }

    /* Centered and Stacked Search Bar */
    .url-checker {
        margin-top: 2rem;
        max-width: 100%;
    }

    .input-group {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items */
        gap: 0.75rem;
    }

    .input-group input,
    .input-group select,
    .input-group .btn {
        width: 100%; /* Make all items full-width */
        max-width: 480px; /* Optional: constrain max width on slightly larger mobile */
        min-width: unset;
        text-align: center;
    }

    .input-group select {
        text-align-last: center; /* Center text in select */
    }

    /* Hero Bullets & CTAs */
    .hero-bullets {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 480px;
    }

    /* Grids */
    .results-grid,
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr; /* Single column for all grids */
        gap: 1.5rem;
    }

    .pricing-card.popular {
        transform: scale(1); /* Disable popular card scaling on mobile */
        animation: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Pricing Section */
.pricing {
    background: linear-gradient(135deg, #0b1117 0%, #111827 100%);
    padding: 5rem 0;
    color: #e5e7eb;
}

.pricing-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.pricing-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Desktop: 4 columns */
@media (min-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Tablets: 2 columns */
@media (min-width: 700px) and (max-width: 1099px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 1 column */
@media (max-width: 699px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: #0f172a;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #e5e7eb;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 3px solid #fbbf24;
}

/* Subtle float on popular card */
.pricing-card.popular {
    animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0% { transform: translateY(0) scale(1.05); }
  50% { transform: translateY(-6px) scale(1.05); }
  100% { transform: translateY(0) scale(1.05); }
}

/* RTL: flip tab underline hover direction subtly */
html[dir="rtl"] .tab-btn::after {
  left: auto; right: 50%;
}
html[dir="rtl"] .tab-btn:hover::after, 
html[dir="rtl"] .tab-btn.active::after {
  left: auto; right: 20%; width: 60%;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-right: 0.25rem;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #e5e7eb;
}

.plan-description {
    color: #94a3b8;
    font-size: 0.875rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148,163,184,0.12);
    font-size: 0.875rem;
    color: #cbd5e1;
}

.plan-features li.feature-highlight {
    color: #93c5fd;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(96,165,250,0.12), transparent);
    padding-left: 1rem;
    margin: 0 -1rem;
    border-radius: 6px;
}

.plan-features li.feature-limitation {
    color: #94a3b8;
    opacity: 0.7;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-btn {
    width: 100%;
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
    color: #e5e7eb;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.pricing-card.popular .plan-btn {
    background: linear-gradient(135deg, #F6E2BD 0%, #E9CFA0 100%);
    color: #1e293b;
}

/* Make pricing cards equal height */
.pricing-grid .pricing-card {
    display: flex;
    flex-direction: column;
}
.pricing-grid .pricing-card .plan-features {
    flex: 1 1 auto;
}
.pricing-grid .pricing-card .plan-btn {
    margin-top: 1rem;
}

.pricing-note {
    background: rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.pricing-note p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Features Section (dark) */
.features {
    background: linear-gradient(180deg, #0b1117, #0b1220);
}
#features { background: linear-gradient(180deg, #0b1117, #0b1220) !important; }
.features, #features { position: relative; overflow: hidden; }
/* Subtle mesh overlay for Features */
.features::before, #features::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(800px 400px at 20% 30%, rgba(147,197,253,0.06), transparent 60%),
      radial-gradient(700px 350px at 80% 70%, rgba(59,130,246,0.05), transparent 60%);
    mix-blend-mode: screen;
}
.features .section-content { max-width: 1100px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.feature-card {
    background: #0f172a;
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.5);
    transition: transform 220ms ease, box-shadow 220ms ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(2,6,23,0.55); }
.feature-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.feature-card h3 { color: #e5e7eb; margin-bottom: 0.25rem; }
.feature-card p { color: #94a3b8; font-size: 0.98rem; }

/* Ensure dark text colors apply regardless of earlier rules */
#features h2 { color: #e5e7eb !important; }
#features h3 { color: #e5e7eb !important; }
#features p { color: #94a3b8 !important; }
#about h2 { color: #e5e7eb !important; }
#about p { color: #94a3b8 !important; }

/* About Section (dark) */
.about {
    background: linear-gradient(180deg, #0b1220, #0b1117);
}
#about { background: linear-gradient(180deg, #0b1220, #0b1117) !important; }
.about, #about { position: relative; overflow: hidden; }
/* Soft top ambient band for About */
.about::before, #about::before {
    content: '';
    position: absolute;
    top: -20px; left: -10%; right: -10%; height: 120px;
    background: radial-gradient(60% 100% at 50% 0%, rgba(147,197,253,0.12), rgba(37,99,235,0.06), transparent 70%);
    filter: blur(12px);
    pointer-events: none;
}
.about .section-content { max-width: 900px; }
.about .section-content p { color: #94a3b8; font-size: 1.05rem; }

/* RTL Support for Pricing */
html[dir="rtl"] .currency {
    margin-right: 0;
    margin-left: 0.25rem;
}

html[dir="rtl"] .plan-features li {
    text-align: right;
}

/* Service Guarantee Section */
.service-guarantee {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.service-guarantee h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.guarantee-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.guarantee-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.guarantee-item p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* Mobile Responsiveness for Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }

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

/* Enhanced Footer Styles */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 3rem 0 1rem 0;
}

/* Center footer content container */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.875rem;
}

.contact-info i {
    color: #fbbf24;
    width: 16px;
}

.contact-info a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #fbbf24;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    display: flex;
    justify-content: center; /* center content horizontally */
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #475569;
    margin-top: 2rem;
    text-align: center; /* ensure text centered */
}

.footer-copyright p {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center; /* center icons */
}

/* Ensure hero input-group items align to center to avoid label overlap */
.input-group {
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    color: #fbbf24;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fbbf24;
    color: #1e293b;
    transform: translateY(-2px);
}

.footer-disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.footer-disclaimer p {
    margin: 0;
    font-size: 0.875rem;
    color: #fca5a5;
}

/* RTL Support for Footer */
html[dir="rtl"] .contact-info p {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-bottom {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-links {
    text-align: right;
}

/* Mobile Footer Responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    html[dir="rtl"] .footer-section {
        text-align: center;
    }
}

/* Legal Pages Styles */
.legal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #fbbf24;
    padding-bottom: 0.5rem;
}

.legal-section p {
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #475569;
}

.contact-details {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #fbbf24;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.legal-footer {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.legal-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}

/* RTL Support for Legal Pages */
html[dir="rtl"] .legal-section ul {
    margin-left: 0;
    margin-right: 1.5rem;
}

html[dir="rtl"] .contact-details {
    border-left: none;
    border-right: 4px solid #fbbf24;
}

/* Traffic Analysis Styles */
.traffic-overview {
    margin-bottom: 2rem;
}

.traffic-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.traffic-stat {
    background: linear-gradient(135deg, #F1E3CE 0%, #E6D5BF 100%);
    color: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.stat-trend {
    font-size: 1.5rem;
    font-weight: 600;
}

.traffic-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.traffic-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.traffic-section h4 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #fbbf24;
    padding-bottom: 0.5rem;
}

.page-item, .source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.page-item:last-child, .source-item:last-child {
    border-bottom: none;
}

.page-info, .source-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-right: 1rem;
}

.page-url, .source-name {
    font-weight: 500;
    color: #1e293b;
}

.page-percentage, .source-percentage {
    color: #3b82f6;
    font-weight: 600;
}

.page-visitors, .source-visitors {
    font-size: 0.875rem;
    color: #64748b;
}

.source-bar {
    width: 100px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 0 1rem;
    overflow: hidden;
}

.source-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

/* RTL Support for Traffic */
html[dir="rtl"] .page-info,
html[dir="rtl"] .source-info {
    margin-right: 0;
    margin-left: 1rem;
}

html[dir="rtl"] .source-bar {
    margin: 0 1rem 0 0;
}

/* Professional Plan Styling */
.professional-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.exact-issues {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.issue-item {
    background: white;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    border-left: 4px solid #f59e0b;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.hosting-recommendations {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.hosting-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hosting-item {
    background: white;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    border-left: 4px solid #10b981;
    font-weight: 500;
}

.upgrade-prompt {
    background: linear-gradient(135deg, #F1E3CE 0%, #E6D5BF 100%);
    color: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 1rem 0;
}

.upgrade-text {
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.upgrade-btn {
    background: #8B5E34;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    background: #7A4F2A;
    transform: translateY(-2px);
}

/* Mobile Traffic Responsiveness */
@media (max-width: 768px) {
    .traffic-stats {
        grid-template-columns: 1fr;
    }
    
    .traffic-details {
        grid-template-columns: 1fr;
    }
    
    .page-item, .source-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .page-info, .source-info {
        width: 100%;
        margin-right: 0;
    }
    
    .source-bar {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Features Section */
.features {
    background: white;
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
}

/* About Section */
.about {
    background: #f8fafc;
    padding: 5rem 0;
}

/* RTL Results */
html[dir="rtl"] .metric-card,
html[dir="rtl"] .feature-card {
    text-align: center;
}

html[dir="rtl"] .recommendation-item {
    border-left: none;
    border-right: 4px solid #2563eb;
}

html[dir="rtl"] .result-tabs {
    flex-direction: row-reverse;
}

/* Contact */
.contact {
    background: #f8fafc;
}

.contact-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
}
