/*
Theme Name: Hello Elementor Child (SEO & UX Optimized)
Theme URI: https://digitaldemand.in/
Description: Custom pro child theme optimized for Elementor, page speed, and Schema structured data.
Author: Digital Demand
Author URI: https://digitaldemand.in/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   1. CSS DESIGN TOKENS (Variables)
   ========================================================================== */
:root {
  --dd-primary: #0052FF;
  --dd-primary-hover: #0043D1;
  --dd-dark: #0A0F1D;
  --dd-text-main: #333F51;
  --dd-text-muted: #64748B;
  --dd-bg-light: #F8FAFC;
  --dd-card-bg: #FFFFFF;
  --dd-radius-sm: 8px;
  --dd-radius-md: 16px;
  --dd-radius-lg: 24px;
  --dd-shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --dd-shadow-hover: 0 20px 40px rgba(0, 82, 255, 0.12);
  --dd-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY & SMOOTH SCROLL
   ========================================================================== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--dd-text-main);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dd-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, var(--dd-primary) 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   3. PRO UI/UX CARD EFFECTS (.pro-card)
   ========================================================================== */
.pro-card {
  background-color: var(--dd-card-bg) !important;
  border-radius: var(--dd-radius-md) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: var(--dd-shadow-subtle) !important;
  transition: var(--dd-transition) !important;
  position: relative;
  overflow: hidden;
}

.pro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--dd-shadow-hover) !important;
  border-color: rgba(0, 82, 255, 0.3) !important;
}

.pro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--dd-primary);
  opacity: 0;
  transition: var(--dd-transition);
}

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

/* ==========================================================================
   4. HIGH-CONVERTING BUTTON ANIMATIONS (.pro-btn, .hero-cta, .btn-pulse)
   ========================================================================== */
.pro-btn .elementor-button,
a.pro-btn,
.hero-cta .elementor-button {
  border-radius: var(--dd-radius-sm) !important;
  transition: var(--dd-transition) !important;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25) !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pro-btn .elementor-button:hover,
a.pro-btn:hover,
.hero-cta .elementor-button:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.38) !important;
}

.btn-pulse {
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(0, 82, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
}

/* ==========================================================================
   5. GLASSMORPHISM FLOATING NODES & HERO EFFECTS
   ========================================================================== */
.glass-float-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.glass-node {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    transition: transform 0.5s ease-out;
}

.node-1 {
    top: 15%;
    left: 10%;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    animation: float1 18s ease-in-out infinite;
}

.node-2 {
    bottom: 20%;
    right: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    animation: float2 22s ease-in-out infinite;
}

.node-3 {
    top: 40%;
    right: 25%;
    padding: 20px;
    border-radius: 50%;
    animation: float3 15s ease-in-out infinite;
    font-size: 1.5rem;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 50px); }
}

/* ==========================================================================
   6. MOBILE UX & ACCESSIBILITY
   ========================================================================== */
@media (max-width: 767px) {
  body, html {
    overflow-x: hidden !important;
  }
  
  button, 
  .elementor-button, 
  .nav-link {
    min-height: 48px;
    min-width: 48px;
  }
  
  .glass-float-container {
    display: none;
  }
}

a:focus-visible, 
button:focus-visible, 
input:focus-visible {
  outline: 2px solid var(--dd-primary) !important;
  outline-offset: 3px !important;
}
