/* shared.css — Pixel Node Studio */
:root { --accent: #2563eb; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; overflow-x: hidden; }
h1,h2,h3,h4 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }


/* Scroll Progress */
#scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); z-index: 9999; width: 0%; }

/* Nav */
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0; background: var(--accent); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.lang-switch { cursor: pointer; font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; border: 1px solid #e2e8f0; transition: all 0.2s; background: transparent; letter-spacing: 0.5px; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.lang-switch.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Hero (index only) */
.hero-gradient { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 25%, #1e40af 50%, #2563eb 75%, #3b82f6 100%); background-size: 300% 300%; animation: gradientShift 25s ease infinite; }
@keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
#particles-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
@keyframes bounce { 0%,20%,50%,80%,100%{transform:translateX(-50%) translateY(0)} 40%{transform:translateX(-50%) translateY(-12px)} 60%{transform:translateX(-50%) translateY(-6px)} }

/* Cards */
.preview-card { display: block; border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.preview-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,.08); }
.preview-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.preview-label { padding: 18px 22px; background: #fff; }
.card-overlay { position: absolute; inset: 0; background: rgba(37,99,235,0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.card-3d:hover .card-overlay { opacity: 1; }
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }

/* Filter tabs */
.filter-btn { padding: 8px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; border: 1px solid #e2e8f0; transition: all 0.3s; cursor: pointer; background: #fff; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Pricing */
.pricing-card { border: 1px solid #e2e8f0; border-radius: 20px; padding: 40px 32px; transition: transform 0.3s ease, box-shadow 0.3s ease; background: #fff; }
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.pricing-card.featured { border: 2px solid var(--accent); position: relative; }
.pricing-card.featured:hover { box-shadow: 0 20px 50px rgba(37,99,235,0.15); }
.feature-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: #475569; margin-bottom: 12px; }
.feature-check svg { flex-shrink: 0; margin-top: 2px; }
.feature-li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: #475569; margin-bottom: 12px; }
.feature-li::before { content: '\2726'; color: var(--accent); font-size: 0.7rem; margin-top: 3px; flex-shrink: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; color: #374151; }
.check svg { flex-shrink: 0; margin-top: 2px; }

/* FAQ */
.faq-item { border: 1px solid #f1f5f9; border-radius: 12px; overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: #dbeafe; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.faq-question:hover { color: var(--accent); }
.faq-icon { transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 24px; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* Process timeline */
.process-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #e2e8f0; transform: translateX(-50%); }
.process-line-fill { position: absolute; left: 50%; top: 0; width: 2px; background: var(--accent); transform: translateX(-50%); height: 0%; }
.process-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; z-index: 2; position: relative; box-shadow: 0 0 0 6px #fff, 0 0 0 8px #e2e8f0; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1e293b; color: #fff; padding: 16px 24px; z-index: 9997; transform: translateY(100%); transition: transform 0.4s ease; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cookie-banner.show { transform: translateY(0); }
.cookie-btn { padding: 8px 24px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }

/* Form */
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 2px rgba(37,99,235,0.4); }

/* Reveal */
.gs-reveal { opacity: 0; transform: translateY(40px); }

/* Custom cursor */
.cursor-dot { position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, opacity 0.25s ease; opacity: 0; mix-blend-mode: difference; }
.cursor-dot.visible { opacity: 1; }
.cursor-dot.hover { width: 40px; height: 40px; background: rgba(37,99,235,0.15); border: 1.5px solid var(--accent); }
@media (pointer: coarse) { .cursor-dot { display: none !important; } }

/* Section divider */
.section-divider { height: 1px; background: #e2e8f0; position: relative; overflow: hidden; }
.section-divider::after { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--accent); transition: width 0s; }
.section-divider.revealed::after { width: 100%; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }

/* Reveal variants */
.gs-reveal { opacity: 0; transform: translateY(40px); }
.gs-reveal-left { opacity: 0; transform: translateX(-60px); }
.gs-reveal-right { opacity: 0; transform: translateX(60px); }

/* Preview card overlay (Frame-style) */
.preview-card { position: relative; }
.preview-card .card-img-wrap { overflow: hidden; }
.preview-card .card-img-wrap img { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.preview-card:hover .card-img-wrap img { transform: scale(1.06); }
.preview-card .card-view-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,10,30,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; z-index: 2; }
.preview-card:hover .card-view-overlay { opacity: 1; }
.card-view-text { color: #fff; font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border: 1.5px solid rgba(255,255,255,0.5); padding: 10px 24px; border-radius: 50px; backdrop-filter: blur(4px); }

/* Counter */
.counter-value { font-variant-numeric: tabular-nums; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-gradient { animation: none; }
  .scroll-indicator { animation: none; }
  .gs-reveal, .gs-reveal-left, .gs-reveal-right { opacity: 1; transform: none; }
  .cursor-dot { display: none !important; }
}
