/* ============================================================================
   Personal IT Guy — marketing site
   A dark, professional "cyber" theme. RTL/LTR aware via logical properties.
   ============================================================================ */

:root {
    --bg:        #07070e;
    --bg-alt:    #0b0b16;
    --surface:   rgba(20, 20, 36, 0.72);
    --surface-2: rgba(255, 255, 255, 0.04);
    --border:    rgba(255, 255, 255, 0.09);
    --border-lit:rgba(108, 99, 255, 0.4);
    --text:      #eef0ff;
    --muted:     rgba(200, 204, 235, 0.66);
    --faint:     rgba(200, 204, 235, 0.42);
    --accent:    #6c63ff;
    --accent-2:  #22d3ee;
    --accent-3:  #a78bfa;
    --danger:    #f87171;
    --radius:    16px;
    --radius-sm: 11px;
    --maxw:      1160px;
    --shadow:    0 24px 70px rgba(0, 0, 0, 0.5);
    --font:      'Heebo', system-ui, -apple-system, sans-serif;
    --font-head: 'Rubik', 'Heebo', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ── Animated cyber background ── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
    radial-gradient(ellipse 100% 80% at 50% -10%, #14142e 0%, var(--bg) 55%, #05050b 100%); }
.bg__grid {
    position: absolute; inset: -40%;
    background-image:
        linear-gradient(rgba(108, 99, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 72%);
    animation: grid-drift 30s linear infinite;
}
@keyframes grid-drift { from { transform: translateY(0); } to { transform: translateY(52px); } }
.bg__glow { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.7; }
.bg__glow--1 { width: 620px; height: 620px; top: -12%; inset-inline-start: 6%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.18), transparent 65%);
    animation: glow-a 20s ease-in-out infinite alternate; }
.bg__glow--2 { width: 540px; height: 540px; bottom: -14%; inset-inline-end: 4%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.13), transparent 65%);
    animation: glow-b 24s ease-in-out infinite alternate; }
@keyframes glow-a { to { transform: translate(90px, 70px); } }
@keyframes glow-b { to { transform: translate(-80px, -60px); } }
.bg__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: transform 0.06s ease, opacity 0.15s, background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: linear-gradient(135deg, var(--accent), #5b53e8); color: #fff;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4); }
.btn--primary:hover { opacity: 0.93; }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn--danger { background: rgba(248, 113, 113, 0.14); color: var(--danger); border-color: rgba(248, 113, 113, 0.35); }
.btn--danger:hover { background: rgba(248, 113, 113, 0.22); }
.btn--sm { padding: 8px 16px; font-size: 13.5px; }
.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    background: rgba(7, 7, 14, 0.7); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.nav__logo { width: 40px; height: 40px; object-fit: contain; display: block;
    filter: drop-shadow(0 2px 10px rgba(108, 99, 255, 0.45)); }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
    border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border);
    font-size: 13px; font-weight: 700; color: var(--muted); transition: color 0.15s, border-color 0.15s; }
.lang-switch:hover { color: var(--text); border-color: var(--border-lit); }
.lang-switch__flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); display: block; }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
    padding-block: clamp(48px, 9vw, 104px); }
.hero__badge { display: inline-block; padding: 7px 15px; border-radius: 999px;
    background: rgba(108, 99, 255, 0.14); border: 1px solid var(--border-lit);
    color: var(--accent-3); font-size: 13px; font-weight: 700; margin-bottom: 22px; }
.nav__brand, .hero__title, .section__title, .card__title, .svc__title, .cta__title,
.shot__cap h3, .step__title, .stat__num, .legal-page__title { font-family: var(--font-head); }

.hero__title { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.08; font-weight: 900;
    letter-spacing: -0.5px; margin-bottom: 20px;
    background: linear-gradient(120deg, #fff 20%, #c9c6ff 60%, #8fd8ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { font-size: clamp(15px, 1.9vw, 19px); color: var(--muted); max-width: 40ch; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat__num { font-size: 30px; font-weight: 900;
    background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 13px; color: var(--faint); font-weight: 600; }

/* Browser-ish mock frame */
.mock, .shot__frame { position: relative; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow), 0 0 60px rgba(108, 99, 255, 0.1); overflow: hidden; }
.mock { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform 0.5s; }
.hero__visual:hover .mock { transform: perspective(1400px) rotateY(0) rotateX(0); }
html[dir="rtl"] .mock { transform: perspective(1400px) rotateY(6deg) rotateX(2deg); }
html[dir="rtl"] .hero__visual:hover .mock { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock__bar, .shot__bar { display: flex; gap: 7px; padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid var(--border); }
.mock__bar span, .shot__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mock__bar span:first-child { background: #ff5f57; }
.mock__bar span:nth-child(2) { background: #febc2e; }
.mock__bar span:nth-child(3) { background: #28c840; }
.mock img, .shot img { width: 100%; height: auto; }
/* Inline illustrations (SVG embedded so they inherit the page's Google font).
   Force LTR base direction: the mockups are laid out with LTR x-coordinates and
   text-anchor, so inheriting the page's RTL direction would flip every anchor
   and shove the text out of its boxes. */
.illus { display: block; direction: ltr; }
.illus svg, .illus svg text, .illus svg tspan { direction: ltr; }
.illus svg { display: block; width: 100%; height: auto; }

/* ── Sections ── */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { position: relative; background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section__title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; letter-spacing: -0.4px; margin-bottom: 14px; }
.section__sub { font-size: 16px; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── Feature cards ── */
.card { padding: 28px 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-5px); border-color: var(--border-lit);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 30px rgba(108, 99, 255, 0.14); }
.card__icon { font-size: 34px; margin-bottom: 16px;
    filter: drop-shadow(0 0 14px rgba(108, 99, 255, 0.4)); }
.card__title { font-size: 19px; font-weight: 800; margin-bottom: 9px; }
.card__desc { font-size: 14.5px; color: var(--muted); }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); transition: transform 0.2s, border-color 0.2s; }
.step:hover { transform: translateY(-4px); border-color: var(--border-lit); }
.step__num { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border-radius: 13px; margin-bottom: 16px; font-size: 20px; font-weight: 900; color: #fff;
    background: linear-gradient(135deg, var(--accent), #5b53e8); box-shadow: 0 8px 22px rgba(108, 99, 255, 0.4); }
.step__title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step__desc { font-size: 14px; color: var(--muted); }
/* connector line between steps on wide screens */
.step:not(:last-child)::after { content: ''; position: absolute; top: 48px; inset-inline-end: -10px;
    width: 20px; height: 2px; background: linear-gradient(90deg, var(--border-lit), transparent); }
html[dir="rtl"] .step:not(:last-child)::after { background: linear-gradient(270deg, var(--border-lit), transparent); }

/* ── Gallery ── */
.shots { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.shot { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.shot:nth-child(even) { direction: ltr; }
.shot:nth-child(even) .shot__cap { direction: inherit; }
html[dir="rtl"] .shot:nth-child(even) { direction: rtl; }
.shot__cap h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.shot__cap p { font-size: 15.5px; color: var(--muted); }
.shot__frame { transition: transform 0.4s, box-shadow 0.4s; }
.shot__frame:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 0 50px rgba(34, 211, 238, 0.14); }

/* ── Services ── */
.svc { padding: 30px 26px; border-radius: var(--radius); text-align: center;
    background: linear-gradient(180deg, var(--surface), rgba(108, 99, 255, 0.05));
    border: 1px solid var(--border); transition: transform 0.2s, border-color 0.2s; }
.svc:hover { transform: translateY(-5px); border-color: var(--border-lit); }
.svc__icon { font-size: 42px; margin-bottom: 16px; }
.svc__title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.svc__desc { font-size: 14.5px; color: var(--muted); }

/* ── CTA ── */
.cta { padding-block: clamp(60px, 8vw, 100px); text-align: center; }
.cta__inner { max-width: 640px; padding: clamp(40px, 6vw, 64px); border-radius: 24px;
    background: radial-gradient(ellipse at 50% 0%, rgba(108, 99, 255, 0.22), var(--surface) 70%);
    border: 1px solid var(--border-lit); box-shadow: var(--shadow), 0 0 80px rgba(108, 99, 255, 0.16); }
.cta__title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-bottom: 14px; }
.cta__sub { font-size: 17px; color: var(--muted); margin-bottom: 30px; }
.cta__note { font-size: 13px; color: var(--faint); margin-top: 16px; line-height: 1.7; }
.cta__ver { display: inline-block; margin-top: 4px; padding: 3px 12px; border-radius: 999px;
    background: rgba(108, 99, 255, 0.14); border: 1px solid var(--border-lit); color: var(--accent-3); font-weight: 700; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); background: rgba(5, 5, 11, 0.6);
    padding-top: 52px; margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__brand { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.footer__logo { width: 200px; max-width: 60vw; height: auto; margin-bottom: 6px; }
.footer__tag { color: var(--muted); font-size: 14px; }
.footer__col h4 { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.footer__col p { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.footer__col a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center;
    padding-block: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer__admin { color: var(--faint); font-size: 12.5px; }
.footer__admin:hover { color: var(--muted); }

/* ── Legal / content page ── */
.legal-page { padding-block: clamp(40px, 7vw, 80px); min-height: 60vh; }
.legal-page__card { max-width: 820px; margin-inline: auto; padding: clamp(28px, 5vw, 52px);
    border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.legal-page__title { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-bottom: 22px;
    padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.legal-page__body { font-size: 16px; line-height: 1.9; color: var(--muted); }

/* ── Legal document modal (accessibility / terms) ── */
.lmodal { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lmodal[hidden] { display: none; }
.lmodal__backdrop { position: absolute; inset: 0; background: rgba(4, 4, 10, 0.72);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: lm-fade 0.22s ease; }
.lmodal__card { position: relative; display: flex; flex-direction: column; width: min(760px, 100%); max-height: min(84vh, 760px);
    border-radius: 22px; overflow: hidden; background: rgba(18, 18, 32, 0.96);
    border: 1px solid var(--border-lit); box-shadow: var(--shadow), 0 0 80px rgba(108, 99, 255, 0.18);
    animation: lm-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes lm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lm-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }

.lmodal__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 22px 26px; border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(108, 99, 255, 0.14), transparent); flex-shrink: 0; }
.lmodal__head::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); }
.lmodal__title { font-family: var(--font-head); font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin: 0; }
.lmodal__x { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; cursor: pointer; font-size: 16px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: background 0.15s, color 0.15s, transform 0.06s; }
.lmodal__x:hover { background: rgba(248, 113, 113, 0.16); border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; }
.lmodal__x:active { transform: scale(0.94); }

.lmodal__body { flex: 1; overflow-y: auto; padding: 24px 26px; font-size: 15.5px; line-height: 1.9; color: var(--muted); }
/* Styled scrollbar */
.lmodal__body { scrollbar-width: thin; scrollbar-color: rgba(108, 99, 255, 0.6) transparent; }
.lmodal__body::-webkit-scrollbar { width: 11px; }
.lmodal__body::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.lmodal__body::-webkit-scrollbar-thumb { border-radius: 999px; border: 3px solid transparent; background-clip: content-box;
    background-color: rgba(108, 99, 255, 0.55); }
.lmodal__body::-webkit-scrollbar-thumb:hover { background-color: rgba(108, 99, 255, 0.85); }

.lmodal__foot { display: flex; justify-content: center; padding: 18px 26px 22px; border-top: 1px solid var(--border); flex-shrink: 0; }
.lmodal__foot .btn { min-width: 200px; }

@media (max-width: 560px) {
    .lmodal { padding: 14px; }
    .lmodal__card { max-height: 90vh; }
    .lmodal__head, .lmodal__body, .lmodal__foot { padding-inline: 18px; }
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .bg__grid, .bg__glow { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero__subtitle { margin-inline: auto; }
    .hero__cta, .hero__stats { justify-content: center; }
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .step:not(:last-child)::after { display: none; }
    .shot, .shot:nth-child(even) { grid-template-columns: 1fr; direction: inherit; }
    .nav__links { display: none; }
}
@media (max-width: 560px) {
    .grid--3 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .hero__stats { gap: 22px; }
}
