/*
Theme Name: FinitData
Theme URI: https://finitdata.com
Author: FinitData
Author URI: https://finitdata.com
Description: A premium dark-tech landing page theme for FinitData - Cloud Power, Data Precision. Built for data engineering and cloud consulting businesses.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finitdata
*/

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #151d2e;
  --bg-card-hover: #1a2540;
  --accent: #00d4ff;
  --accent-dim: #0099bb;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-secondary: #6366f1;
  --accent-tertiary: #10b981;
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.75rem 2rem;
  backdrop-filter: blur(20px);
  background: rgba(10, 14, 23, 0.8);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.nav-menu li a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: #33ddff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow-1 { top: -200px; right: -100px; background: var(--accent); }
.hero-glow-2 { bottom: -200px; left: -200px; background: var(--accent-secondary); }

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #33ddff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.data-orb { width: 400px; height: 400px; position: relative; }

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.15);
  animation: spin 20s linear infinite;
}

.orb-ring:nth-child(1) { inset: 0; border-color: rgba(0, 212, 255, 0.12); }
.orb-ring:nth-child(2) { inset: 40px; border-color: rgba(99, 102, 241, 0.15); animation-direction: reverse; animation-duration: 15s; }
.orb-ring:nth-child(3) { inset: 80px; border-color: rgba(16, 185, 129, 0.12); animation-duration: 25s; }

.orb-ring::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  right: -5px;
  box-shadow: 0 0 15px var(--accent);
}

.orb-ring:nth-child(2)::after { background: var(--accent-secondary); box-shadow: 0 0 15px var(--accent-secondary); }
.orb-ring:nth-child(3)::after { background: var(--accent-tertiary); box-shadow: 0 0 15px var(--accent-tertiary); }

.orb-center {
  position: absolute;
  inset: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.data-node {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}

.data-node .node-val {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  display: block;
}

.data-node:nth-child(5) { top: 10%; right: -20px; animation-delay: 0s; }
.data-node:nth-child(6) { bottom: 15%; left: -30px; animation-delay: 2s; }
.data-node:nth-child(7) { top: 50%; right: -40px; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: -2rem auto 0;
  padding: 0 2rem;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat-item { background: var(--bg-secondary); padding: 2rem; text-align: center; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ===== SECTIONS ===== */
.fd-section {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* ===== SERVICES ===== */
.services-wrap { max-width: 1200px; margin: 0 auto; }
.services-header { text-align: center; margin-bottom: 4rem; }
.services-header .section-desc { margin: 0.5rem auto 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.service-icon.blue { background: rgba(0, 212, 255, 0.1); color: var(--accent); }
.service-icon.purple { background: rgba(99, 102, 241, 0.1); color: var(--accent-secondary); }
.service-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--accent-tertiary); }
.service-icon.orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.service-icon.pink { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.service-icon.teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.service-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }

.service-tags span {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* ===== TECH STACK ===== */
.tech-wrap { max-width: 1200px; margin: 0 auto; }
.tech-header { text-align: center; margin-bottom: 3rem; }
.tech-header .section-desc { margin: 0.5rem auto 0; }

.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-item:hover {
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-2px);
}

.tech-item .tech-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.tech-item .tech-name { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }

/* ===== PROCESS ===== */
.process-wrap { max-width: 1200px; margin: 0 auto; }

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.process-steps { display: flex; flex-direction: column; gap: 1.5rem; }

.step { display: flex; gap: 1.25rem; align-items: flex-start; }

.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  background: var(--accent-glow);
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,212,255,0.15);
}

.step-content h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.step-content p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* Metrics card */
.metrics-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.metrics-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(0,212,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.metrics-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.metric-row:last-child { border-bottom: none; }
.metric-label { font-size: 0.9rem; color: var(--text-secondary); }

.metric-value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.metric-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

/* ===== CTA ===== */
.cta-wrap { max-width: 1200px; margin: 0 auto; }

.cta-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(0,212,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card .section-title,
.cta-card .section-desc,
.cta-actions { position: relative; z-index: 1; }

.cta-card .section-desc { margin: 0.5rem auto 2.5rem; text-align: center; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; }

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img { height: 60px; width: auto; opacity: 0.8; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.footer-links { display: flex; gap: 2rem; }

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--accent); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.active { display: flex; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: 1fr; }
  .cta-card { padding: 3rem 2rem; }
  .site-footer { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ===== BLOG & POSTS ===== */
.entry-content h2, .entry-content h3 {
  font-family: 'Syne', sans-serif;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-secondary); }
.entry-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.entry-content a { color: var(--accent); }
.entry-content a:hover { text-decoration: underline; }
.entry-content strong { color: var(--text-primary); }
.entry-content code {
  background: var(--bg-card);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--accent);
}
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Pagination */
.nav-links { display: flex; gap: 0.5rem; justify-content: center; }
.nav-links a, .nav-links span {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav-links a:hover { border-color: var(--accent); color: var(--accent); }
.nav-links .current {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
}

/* ===== PAGE TEXT FIX FOR DARK THEME ===== */
.page-wrap .page-content,
.page-wrap .page-content p,
.page-wrap .page-content li,
.page-wrap .page-content h2,
.page-wrap .page-content h3,
.page-wrap .page-content strong {
  color: #f0f4f8 !important;
}

/* ===== WPFORMS DARK THEME FIX ===== */
.wpforms-container { color: #f0f4f8 !important; }
.wpforms-form label,
.wpforms-form .wpforms-field-label { color: #f0f4f8 !important; }

.wpforms-form input,
.wpforms-form textarea,
.wpforms-form select {
  background: #151d2e !important;
  color: #f0f4f8 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 8px !important;
  padding: 0.85rem 1rem !important;
}

.wpforms-form input:focus,
.wpforms-form textarea:focus {
  border-color: #00d4ff !important;
  box-shadow: 0 0 0 3px rgba(0,212,255,0.15) !important;
}

.wpforms-form .wpforms-submit-container button {
  background: #00d4ff !important;
  color: #0a0e17 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.9rem 2rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  width: 100% !important;
}

.wpforms-form .wpforms-submit-container button:hover { background: #33ddff !important; }
.wpforms-form .wpforms-field-sublabel { color: #64748b !important; }

.wpforms-confirmation-container-full {
  color: #f0f4f8 !important;
  background: #151d2e !important;
  border-radius: 8px !important;
}

/* ===== FEATURED IMAGE FIX ===== */
article img.wp-post-image,
.fd-section img.wp-post-image,
.fade-in img.wp-post-image,
img.wp-post-image {
  width: 100% !important;
  max-height: 400px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  display: block !important;
}

/* ===== BREADCRUMBS ===== */
.fd-breadcrumbs {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 2rem;
}
.fd-breadcrumbs a {
  color: #00d4ff;
  text-decoration: none;
}
.fd-breadcrumbs a:hover {
  text-decoration: underline;
}
.fd-breadcrumbs .separator {
  margin: 0 0.5rem;
  color: #64748b;
}
