/* ============================================
   THELIVERANK — Premium SEO Agency
   Additional CSS (WordPress Customizer Ready)
   ============================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #111111;
  --secondary: #444444;
  --accent: #2F80ED;
  --accent-dark: #1a5fbd;
  --bg: #FFFFFF;
  --card-bg: rgba(255,255,255,0.65);
  --card-border: rgba(255,255,255,0.45);
  --glass-blur: 20px;
  --success: #16A34A;
  --warning: #F59E0B;
  --error: #DC2626;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --bg-subtle: #F9FAFB;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; }

/* Glass Header */
.glass-header {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-header.scrolled {
  background: rgba(255,255,255,0.88);
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

/* Glass Card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: rgba(47,128,237,0.2);
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(47,128,237,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Blob backgrounds */
.blob-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Fade-in animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in { opacity: 0; transition: opacity 0.7s ease; }
.fade-in.visible { opacity: 1; }

.scale-in { opacity: 0; transform: scale(0.95); transition: opacity 0.6s ease, transform 0.6s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Counter animation */
.counter { display: inline-block; }

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.active .accordion-content { max-height: 500px; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }

/* Table */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th {
  background: var(--bg-subtle);
  font-weight: 600; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--secondary);
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.data-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: var(--bg-subtle); }

/* Mobile Menu */
.mobile-menu { transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-menu.open { transform: translateX(0); }

/* Progress bar */
.progress-fill { transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* Breadcrumb */
.breadcrumb a:hover { color: var(--accent); }

/* Floating buttons */
.floating-btn {
  position: fixed;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: none;
}
.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

#backToTop {
  bottom: 32px;
  right: 32px;
  background: var(--primary);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
#backToTop.show { opacity: 1; pointer-events: auto; }

#whatsappBtn {
  bottom: 100px;
  right: 32px;
  background: #25D366;
  color: #fff;
  animation: whatsappPulse 2s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
#whatsappBtn:hover {
  animation: none;
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 12px rgba(37,211,102,0.08); }
}

/* Testimonial */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
}

/* Hero gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Newsletter + Form inputs */
.newsletter-input {
  border: 1.5px solid var(--border-light);
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
  font-family: var(--font-body);
  width: 100%;
}
.newsletter-input:focus { border-color: var(--accent); }

.form-input {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
  background: #fff;
}
.form-input:focus { border-color: var(--accent); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* Star rating */
.star-filled { color: #F59E0B; }

/* Badge */
.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(47,128,237,0.08);
  color: var(--accent);
}

/* Section spacing */
.section-pad { padding: 100px 0; }
@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

/* Smooth page transition */
.page-transition { animation: pageIn 0.5s ease forwards; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

a { transition: color 0.2s; }
::selection { background: rgba(47,128,237,0.15); }

/* ============================================
   NEW: TheLiveRank Enhanced Components
   ============================================ */

/* Team Avatar Placeholder */
.team-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  background-size: cover;
  background-position: center;
}
.team-avatar .initials {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  color: #9CA3AF;
  letter-spacing: 2px;
}
.team-avatar[style*="background-image: url"] .initials { display: none; }

/* Client Logo Marquee */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-marquee-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.logo-marquee-track img {
  height: 28px;
  opacity: 0.35;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}
.logo-marquee-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Award Hexagon */
.hex-badge {
  width: 110px;
  height: 120px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hex-badge svg { filter: drop-shadow(0 4px 12px rgba(47,128,237,0.15)); }

/* Stats Glass Circle */
.stat-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(47,128,237,0.08);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* Performance Guarantee */
.guarantee-percent {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--accent), #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Hero Dropdown */
.hero-dropdown {
  appearance: none;
  padding: 16px 48px 16px 20px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px 0 0 12px;
  font-size: 15px;
  font-family: var(--font-body);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  outline: none;
  min-width: 260px;
  transition: border-color 0.3s;
}
.hero-dropdown:focus { border-color: var(--accent); }

/* Award Laurel */
.award-laurel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.award-laurel svg { filter: drop-shadow(0 2px 4px rgba(47,128,237,0.1)); }

/* Testimonial Slider */
.testimonial-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 8px 0;
}
.testimonial-slider::-webkit-scrollbar { display: none; }
.testimonial-slider > div { scroll-snap-align: start; min-width: 340px; flex-shrink: 0; }

@media (max-width: 768px) {
  .testimonial-slider > div { min-width: 300px; }
  .team-avatar { width: 160px; height: 160px; }
  .team-avatar .initials { font-size: 36px; }
}

/* Hero dashboard image */
.hero-dashboard-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
}
.hero-dashboard-img img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-animation { animation: float 4s ease-in-out infinite; }
