/*
Theme Name: Spydiweb Pro Business Theme
Theme URI: https://spydiweb.com
Author: Spydiweb Technologies
Author URI: https://spydiweb.com
Description: High-performance, modern dark-themed WordPress theme built for Spydiweb (Spydiweb.com). Features custom software, website development, mobile apps, digital marketing, SEO, AI video ads creation, and cloud hosting. Built-in WhatsApp lead routing to +91 7004901136, hero image slider, and interactive Ask AI consultation.
Version: 2.7.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spydiweb
Tags: business, technology, custom-software, portfolio, digital-marketing, dark-theme, translation-ready, full-width-template
*/

/* Core Resets & Custom Properties */
:root {
  --spydi-bg: #080c14;
  --spydi-surface: #0d1322;
  --spydi-surface-card: #0f172a;
  --spydi-border: #1e293b;
  --spydi-border-hover: #334155;
  --spydi-primary: #06b6d4;
  --spydi-primary-hover: #0891b2;
  --spydi-accent: #6366f1;
  --spydi-emerald: #10b981;
  --spydi-text: #f1f5f9;
  --spydi-text-muted: #94a3b8;
  --spydi-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --spydi-font-heading: 'Space Grotesk', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--spydi-font-sans);
  background-color: var(--spydi-bg);
  color: var(--spydi-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background-color: #06b6d4;
  color: #030712;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080c14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--spydi-font-heading);
  color: #ffffff;
  line-height: 1.25;
}

/* Container */
.spydi-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Gradient Text */
.spydi-gradient-text {
  background: linear-gradient(135deg, #22d3ee, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cards */
.spydi-card {
  background: var(--spydi-surface);
  border: 1px solid var(--spydi-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.spydi-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(6, 182, 212, 0.15);
}

/* ========================================================
   MODERN & ATTRACTIVE HEADER NAVIGATION STYLING
   Handles both custom markup and WordPress wp_nav_menu() output
   ======================================================== */

.spydiweb-nav-island {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(13, 19, 34, 0.75);
  padding: 0.35rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(51, 65, 85, 0.7);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 8px 20px -4px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* WordPress Menu UL */
nav ul.menu,
nav .menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul.menu > li,
nav .menu > li {
  position: relative;
  list-style: none;
}

/* Menu Item Links */
nav ul.menu > li > a,
nav .menu > li > a,
.spydi-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

nav ul.menu > li > a:hover,
nav .menu > li > a:hover,
.spydi-nav-link:hover {
  color: #ffffff;
  background-color: rgba(30, 41, 59, 0.75);
  border-color: rgba(71, 85, 105, 0.6);
  box-shadow: 0 4px 12px -2px rgba(6, 182, 212, 0.15);
  transform: translateY(-1px);
}

/* Active Menu Item */
nav ul.menu > li.current-menu-item > a,
nav ul.menu > li.current_page_item > a,
nav ul.menu > li.current-menu-ancestor > a,
.spydi-nav-link.active {
  color: #22d3ee !important;
  background: linear-gradient(135deg, rgba(8, 51, 68, 0.75), rgba(49, 46, 129, 0.65)) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  box-shadow: 0 0 15px -3px rgba(6, 182, 212, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Active glow dot */
nav ul.menu > li.current-menu-item > a::before,
nav ul.menu > li.current_page_item > a::before,
.spydi-nav-link.active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  margin-right: 2px;
}

/* Dropdown Sub-menus */
nav ul.menu li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0d1322;
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 1rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.12);
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  list-style: none;
}

nav ul.menu li:hover > ul.sub-menu {
  display: block;
  animation: spydiDropdownFade 0.2s ease-out forwards;
}

nav ul.menu li ul.sub-menu li a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

nav ul.menu li ul.sub-menu li a:hover {
  color: #22d3ee;
  background: rgba(30, 41, 59, 0.8);
  transform: translateX(3px);
}

@keyframes spydiDropdownFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================
   ATTRACTIVE "ASK AI" GLOWING BUTTON
   ======================================================== */
.spydi-ask-ai-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #a855f7 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.spydi-ask-ai-btn:hover {
  background-position: right center;
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-1.5px) scale(1.02);
  color: #ffffff;
}

.spydi-ask-ai-btn .ai-badge {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

/* ========================================================
   KEYFRAME ANIMATIONS & GRAPHICS
   ======================================================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-9px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes shimmerSweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-card {
  position: relative;
  overflow: hidden;
}

.shimmer-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.7), transparent);
  animation: shimmerSweep 3s infinite;
}

/* Ambient Radial Mesh Backgrounds */
.mesh-glow-cyan {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
}

.mesh-glow-indigo {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, transparent 70%);
}

/* Tech Grid Pattern */
.bg-tech-grid {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Content Styling for standard WordPress posts/pages */
.entry-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}
.entry-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}
.entry-content p {
  margin-bottom: 1.25rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.75;
}
.entry-content ul, .entry-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: #94a3b8;
}
.entry-content li {
  margin-bottom: 0.5rem;
}
.entry-content blockquote {
  border-left: 4px solid #06b6d4;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-style: italic;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.5rem 0;
}
