/*
Theme Name: EastIT
Theme URI: https://eastit.pl
Author: EastIT
Author URI: https://eastit.pl
Description: Ciemny motyw wizytówkowy dla agencji EastIT.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: eastit
*/

/* ── CSS Variables ── */
:root {
  --bg: #080b10;
  --bg2: #0d1219;
  --surface: #111820;
  --border: #1e2b3a;
  --accent: #00e5ff;
  --accent2: #0066ff;
  --accent-glow: rgba(0, 229, 255, 0.15);
  --text: #e8edf5;
  --text-muted: #5a6a7e;
  --text-mid: #8fa3bc;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Mono', monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* Noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.3;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* ── Cursor ── */
.cursor { position: fixed; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.cursor-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; transform: translate(-50%,-50%); transition: transform 0.1s; }
.cursor-ring { width: 36px; height: 36px; border: 1px solid var(--accent); border-radius: 50%; transform: translate(-50%,-50%); opacity: 0.5; transition: transform 0.15s ease, width 0.2s, height 0.2s, opacity 0.2s; }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 56px; height: 56px; opacity: 0.8; }

/* ── NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,11,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.site-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 8px 20px; font-family: 'DM Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: none; transition: background 0.2s, color 0.2s, box-shadow 0.2s; text-decoration: none; }
.nav-cta:hover { background: var(--accent); color: var(--bg); box-shadow: 0 0 20px var(--accent-glow); }

/* ── HERO ── */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding: 120px 60px 80px; position: relative; overflow: hidden; }
.hero-glow { position: absolute; top: 20%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,102,255,0.12) 0%, transparent 70%); pointer-events: none; animation: glowPulse 6s ease-in-out infinite; }
.hero-glow2 { position: absolute; bottom: -10%; right: 5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%); pointer-events: none; animation: glowPulse 8s ease-in-out infinite reverse; }
@keyframes glowPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.1);opacity:0.7} }

.hero-content { max-width: 800px; position: relative; z-index: 1; }

.hero-tag { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); padding: 8px 16px; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 36px; animation: fadeUp 0.8s ease forwards; opacity: 0; }
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 1.5s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-title { font-family: 'Syne', sans-serif; font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-bottom: 24px; animation: fadeUp 0.8s 0.15s ease forwards; opacity: 0; }
.hero-title .accent-line { color: var(--accent); display: block; }

.hero-desc { font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; max-width: 520px; margin-bottom: 48px; animation: fadeUp 0.8s 0.3s ease forwards; opacity: 0; }

.hero-actions { display: flex; gap: 16px; align-items: center; animation: fadeUp 0.8s 0.45s ease forwards; opacity: 0; }

.btn-primary { background: var(--accent); color: var(--bg); border: none; padding: 14px 32px; font-family: 'DM Mono', monospace; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: none; text-decoration: none; display: inline-block; transition: box-shadow 0.3s, transform 0.2s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.btn-primary:hover { box-shadow: 0 0 30px rgba(0,229,255,0.4); transform: translateY(-2px); color: var(--bg); }

.btn-ghost { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.btn-ghost:hover { color: var(--text); }
.btn-ghost .arrow { transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.hero-stats { position: absolute; bottom: 60px; right: 60px; display: flex; flex-direction: column; gap: 24px; animation: fadeUp 0.8s 0.6s ease forwards; opacity: 0; }
.stat { text-align: right; border-right: 2px solid var(--border); padding-right: 20px; position: relative; }
.stat::after { content: ''; position: absolute; right: -4px; top: 0; width: 6px; height: 100%; background: var(--accent); opacity: 0; transition: opacity 0.3s; }
.stat:hover::after { opacity: 1; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--text); display: block; }
.stat-label { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.scroll-hint { position: absolute; bottom: 30px; left: 60px; display: flex; align-items: center; gap: 12px; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); animation: fadeUp 1s 1s ease forwards; opacity: 0; }
.scroll-line { width: 40px; height: 1px; background: var(--border); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; left: -100%; top: 0; width: 100%; height: 100%; background: var(--accent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%{left:-100%} 100%{left:100%} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* ── SECTIONS ── */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 80px; }
.section-tag { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.section-num { font-family: 'Syne', sans-serif; font-size: 5rem; font-weight: 800; color: var(--surface); line-height: 1; user-select: none; }

/* ── USŁUGI ── */
.services-section { padding: 120px 60px; position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }

.service-card { background: var(--bg); padding: 48px 40px; position: relative; overflow: hidden; transition: background 0.3s; cursor: none; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.service-card:hover { background: var(--surface); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon { width: 48px; height: 48px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; color: var(--accent); font-size: 1.2rem; transition: border-color 0.3s, box-shadow 0.3s; }
.service-card:hover .service-icon { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.service-card h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.service-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; }
.service-num { position: absolute; bottom: 20px; right: 24px; font-family: 'Syne', sans-serif; font-size: 3.5rem; font-weight: 800; color: var(--surface); line-height: 1; transition: color 0.3s; }
.service-card:hover .service-num { color: var(--bg2); }

/* ── PROCES ── */
.process-section { padding: 120px 60px; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; position: relative; }
.process-steps::after { content: ''; position: absolute; top: 32px; left: 80px; right: 80px; height: 1px; background: var(--border); z-index: 0; }
.step { position: relative; padding: 0 24px; z-index: 1; }
.step-circle { width: 64px; height: 64px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg2); font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: 28px; transition: border-color 0.3s, color 0.3s, box-shadow 0.3s; }
.step:hover .step-circle { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.step h4 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; }

/* ── TECH ── */
.tech-section { padding: 80px 60px; overflow: hidden; }
.tech-marquee-wrap { margin-top: 60px; position: relative; }
.tech-marquee-wrap::before, .tech-marquee-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
.tech-marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.tech-marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.tech-marquee { display: flex; gap: 0; animation: marquee 20s linear infinite; white-space: nowrap; }
.tech-marquee:hover { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.tech-item { display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; border: 1px solid var(--border); margin-right: -1px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); transition: border-color 0.3s, color 0.3s, background 0.3s; }
.tech-item:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); z-index: 1; position: relative; }
.tech-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }

/* ── KONTAKT ── */
.contact-section { padding: 120px 60px; background: var(--bg2); border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.contact-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,229,255,0.05) 0%, transparent 60%); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; position: relative; z-index: 1; }
.contact-left .section-title { margin-bottom: 20px; }
.contact-left p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--border); background: var(--bg); transition: border-color 0.3s; }
.contact-info-item:hover { border-color: var(--accent); }
.contact-info-icon { color: var(--accent); font-size: 1rem; flex-shrink: 0; }
.contact-info-text { font-size: 0.8rem; color: var(--text-mid); }
.contact-info-text strong { display: block; color: var(--text); font-size: 0.75rem; letter-spacing: 0.08em; margin-bottom: 2px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { position: relative; }
.form-group input, .form-group textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 16px 20px; font-family: 'DM Mono', monospace; font-size: 0.8rem; outline: none; resize: none; transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.form-group textarea { height: 120px; }
.form-submit { background: var(--accent); color: var(--bg); border: none; padding: 16px 32px; font-family: 'DM Mono', monospace; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: none; width: 100%; transition: box-shadow 0.3s, transform 0.2s; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.form-submit:hover { box-shadow: 0 0 30px rgba(0,229,255,0.35); transform: translateY(-1px); }

/* ── FOOTER ── */
.site-footer { padding: 30px 60px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; color: var(--text); text-decoration: none; }
.footer-logo span { color: var(--accent); }
.site-footer p { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--text-muted); text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* WordPress nav menu */
.nav-links .menu { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links .menu li a { color: var(--text-muted); text-decoration: none; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.2s; }
.nav-links .menu li a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-header { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero-section { padding: 100px 24px 80px; }
  .hero-stats { display: none; }
  .scroll-hint { left: 24px; }
  .services-section, .process-section, .tech-section, .contact-section { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer { padding: 24px; flex-direction: column; gap: 16px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .section-num { display: none; }
}
