/*
Theme Name: Vital Web Solution
Theme URI: https://vitalwebsolution.com
Author: Ammar Haq
Author URI: https://vitalwebsolution.com
Description: Vital Web Solution Digital Agency – dark, animated single-page WordPress theme with Tailwind CSS, GSAP, and Lenis smooth scroll.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vital-web-solution
*/

/* ─── Design Tokens ─── */
:root {
  --accent: #1879A9;
  --accent-light: #0074b0;
  --svc-web: #0074b0;
  --svc-mktg: #f472b6;
  --svc-design: #8b5cf6;
  --svc-seo: #10b981;
  --svc-app: #f59e0b;
  --bg: #080808;
  --surface: #0a0a0a;
  --surface-elevated: rgba(17, 17, 17, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --section-py: 40px;
  --section-py-md: 64px;
  --glow-blur: 140px;
  --glow-opacity: 0.07;
}

/* ─── Base ─── */
html, body {
  overflow-x: hidden;
}
body {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 450;
  font-style: normal;
  background-color: var(--bg);
  color: #ffffff;
}

/* ─── Typography ─── */
.t-hero { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(2rem, 3.5vw, 58px); line-height: 1.15; letter-spacing: -0.02em; text-align: left !important; }
.t-section     { font-family: "Poppins", sans-serif; font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.25; letter-spacing: -0.01em; }
.t-card-heading{ font-family: "Poppins", sans-serif; font-weight: 400; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.3; }
.t-subheading  { font-family: "Poppins", sans-serif; font-weight: 400; font-size: 1.125rem; line-height: 1.4; }
.t-body        { font-family: "Inter", Arial, sans-serif; font-weight: 400; font-size: 1rem; line-height: 1.7; color: #a1a1aa; }
.t-label       { font-family: "Inter", Arial, sans-serif; font-weight: 700; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: #737373; }

/* ─── Section Spacing ─── */
.section-wrap  { padding-top: var(--section-py); padding-bottom: var(--section-py); }
@media (min-width: 768px) { .section-wrap { padding-top: var(--section-py-md); padding-bottom: var(--section-py-md); } }
.section-hero  { padding-top: 5rem; padding-bottom: var(--section-py); }
@media (min-width: 768px) { .section-hero { padding-top: 7rem; padding-bottom: var(--section-py-md); } }

/* ─── Card System ─── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); position: relative; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.card:hover { border-color: var(--border-strong); box-shadow: 0 0 40px rgba(255,255,255,0.04); }
.card-lg { background: var(--surface-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); position: relative; overflow: hidden; }
.review-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }

/* ─── Button System ─── */
.btn-primary   { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 2rem; background: #fff; color: var(--bg); border-radius: var(--radius-full); font-family: "Inter", sans-serif; font-weight: 700; font-size: 0.875rem; transition: transform 0.2s, background 0.2s; }
.btn-primary:hover { transform: scale(1.03); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 2rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); color: #fff; border-radius: var(--radius-full); font-family: "Inter", sans-serif; font-weight: 700; font-size: 0.875rem; backdrop-filter: blur(8px); transition: background 0.3s, color 0.3s; }
.btn-secondary:hover { background: #fff; color: var(--bg); }
.btn-accent    { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 2rem; background: var(--accent); color: #fff; border-radius: var(--radius-full); font-family: "Inter", sans-serif; font-weight: 700; font-size: 1rem; transition: background 0.2s; box-shadow: 0 0 30px rgba(24,121,169,0.3); }
.btn-accent:hover { background: #1a8abf; }
.btn-nav       { display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.25rem; background: #fff; color: #000; border-radius: var(--radius-full); font-family: "Inter", sans-serif; font-weight: 700; font-size: 0.875rem; transition: transform 0.2s; }
.btn-nav:hover { transform: scale(1.05); }

/* ─── Border Utilities ─── */
.b-subtle { border-color: var(--border-subtle); }
.b-default{ border-color: var(--border); }
.b-strong { border-color: var(--border-strong); }

/* ─── Pill ─── */
.pill { display: inline-block; padding: 0.375rem 0.75rem; background: #1a1a1a; color: #d4d4d8; font-size: 0.8125rem; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); }

/* ─── Glow Blob ─── */
.glow-blob { position: absolute; border-radius: 9999px; background: var(--accent); filter: blur(var(--glow-blur)); opacity: var(--glow-opacity); pointer-events: none; }

/* ─── Accent Text ─── */
.text-accent       { color: var(--accent); }
.text-accent-light { color: var(--accent-light); }

/* ─── Navbar ─── */
#navbar { background: var(--bg); border-bottom: 1px solid var(--border); }
#navbar.nav-scrolled { background: rgba(8,8,8,0.7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom-color: var(--border-subtle); }
#navbar.nav-top { border-bottom-color: transparent; }

/* ─── FAQ Items ─── */
.faq-item { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s; }
.faq-item:hover { border-color: var(--border-strong); }

/* ─── Global Noise Texture ─── */
.noise-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.03; mix-blend-mode: overlay;
}

/* ─── Preloader ─── */
#preloader { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

/* ─── Split Text ─── */
.char { display: inline-block; clip-path: polygon(0 0, 100% 0, 100% 120%, 0 120%); transform: translateY(110%); opacity: 0; }

/* ─── Shimmer Button ─── */
.shimmer-btn { position: relative; overflow: hidden; }
.shimmer-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-20deg); transition: 0.5s; }
.shimmer-btn:hover::before { left: 150%; transition: 0.7s ease-in-out; }

/* ─── Float Animation ─── */
@keyframes float-subtle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-float { animation: float-subtle 6s ease-in-out infinite; will-change: transform; }

/* ─── Hero Glow Text ─── */
.hero-glow-text { color: var(--accent-light); }

/* ─── Hero Text Rotator ─── */
.hero-rotate-wrap { display: inline-block; position: relative; overflow: hidden; height: 1.2em; vertical-align: text-bottom; line-height: 1.2; }
.hero-rotate-word { display: block; position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease; }
.hero-rotate-word.active { position: relative; transform: translateY(0); opacity: 1; }
.hero-rotate-word.exit  { transform: translateY(-110%); opacity: 0; }

/* ─── Bento Grid Glow ─── */
.bento-card { position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.bento-card::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 0.3s; background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(24,121,169,0.15), transparent 40%); pointer-events: none; }
.bento-card:hover::before { opacity: 1; }
.bento-content { position: relative; z-index: 1; }

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
.nm-hide-scrollbar::-webkit-scrollbar { display: none; }
.nm-hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Marquee ─── */
@keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }
.animate-marquee      { animation: marquee 25s linear infinite; }
.animate-marquee-slow { animation: marquee 40s linear infinite; }

/* ─── Review Marquee ─── */
@keyframes review-scroll-right { 0% { transform: translateX(0); }    100% { transform: translateX(-50%); } }
@keyframes review-scroll-left  { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.review-marquee-right      { animation: review-scroll-right 25s linear infinite; }
.review-marquee-left       { animation: review-scroll-left  30s linear infinite; }
.review-marquee-right-fast { animation: review-scroll-right 20s linear infinite; }

/* ─── FAQ Accordion ─── */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-icon   { transform: rotate(45deg); }
.faq-item.active              { border-color: rgba(24,121,169,0.3) !important; }

/* ─── Vertical Review Scroll ─── */
.review-col   { overflow: hidden; position: relative; }
.review-track { display: flex; flex-direction: column; }
@keyframes vscroll-up   { 0% { transform: translateY(0); }    100% { transform: translateY(-50%); } }
@keyframes vscroll-down { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }
.review-col[data-dir="up"]   .review-track { animation: vscroll-up   30s linear infinite; }
.review-col[data-dir="down"] .review-track { animation: vscroll-down 35s linear infinite; }
.reviews-wrap:hover .review-track { animation-play-state: paused; }

/* ─── Lenis ─── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ─── WordPress Core Fixes ─── */
img { max-width: 100%; height: auto; }
a   { text-decoration: none; }
*, *::before, *::after { box-sizing: border-box; }


/* ─── Hero Title Alignment Override ─── */
#hero-title,
h1#hero-title,
.section-hero h1,
.section-hero #hero-title,
body .section-hero h1 {
  text-align: left !important;
  margin-left: -3px;
}

.lenis.lenis-stopped {
  overflow: hidden;
}
