/*
Theme Name: AR Invisible Safety Grills
Theme URI: https://arinvisiblesafetygrills.com
Author: AR Invisible Safety Grills
Author URI: https://arinvisiblesafetygrills.com
Description: Custom WordPress theme for AR Invisible Safety Grills — Pune's leading invisible safety grill installation company. Dark modern design with Tailwind CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: ar-invisible
*/

/* ═══════════════════════════════════════════════
   GLOBAL RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #060d1a;
  color: #e5e7eb;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(59,130,246,0.3); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060d1a; }
::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
═══════════════════════════════════════════════ */
.font-heading { font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif; }
.gradient-text {
  background: linear-gradient(to right, #60a5fa, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════
   CARD & LAYOUT UTILITIES
═══════════════════════════════════════════════ */
.glass-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
}
.hero-gradient { background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0a1628 100%); }
.section-container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .section-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .section-container { padding: 0 2rem; } }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes pulse-ring { 0%{transform:scale(1);opacity:0.3} 100%{transform:scale(1.5);opacity:0} }
@keyframes glow { 0%{box-shadow:0 0 5px rgba(59,130,246,0.3)} 100%{box-shadow:0 0 20px rgba(59,130,246,0.6),0 0 40px rgba(59,130,246,0.2)} }
@keyframes wire-shimmer { 0%{opacity:0.2} 50%{opacity:0.6} 100%{opacity:0.2} }
@keyframes bounce-scroll { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

.anim-fade-up { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
.anim-fade-up-d1 { animation-delay: 0.1s; }
.anim-fade-up-d2 { animation-delay: 0.2s; }
.anim-fade-up-d3 { animation-delay: 0.3s; }
.anim-fade-up-d4 { animation-delay: 0.4s; }
.anim-fade-up-d5 { animation-delay: 0.5s; }
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-pulse-ring { animation: pulse-ring 2s ease-out infinite; }
.anim-bounce { animation: bounce-scroll 2s ease-in-out infinite; }

/* 3D Card Effect */
.card-3d { transition: transform 0.4s ease, box-shadow 0.4s ease; transform-style: preserve-3d; perspective: 1000px; }
.card-3d:hover { transform: translateY(-8px) rotateY(2deg) rotateX(-2deg); box-shadow: 0 25px 50px rgba(59,130,246,0.1); }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Wire Lines */
.wire-line { position: absolute; background: linear-gradient(90deg,transparent,rgba(96,165,250,0.3),transparent); height: 1px; animation: wire-shimmer 3s ease-in-out infinite; }
.wire-line-v { position: absolute; background: linear-gradient(180deg,transparent,rgba(96,165,250,0.3),transparent); width: 1px; animation: wire-shimmer 3s ease-in-out infinite; }
.hero-particle { position: absolute; width: 3px; height: 3px; background: rgba(96,165,250,0.4); border-radius: 50%; animation: float 8s ease-in-out infinite; }
.glow-sphere { position: absolute; border-radius: 50%; border: 1px solid rgba(59,130,246,0.2); animation: float 6s ease-in-out infinite, glow 3s ease-in-out infinite alternate; }
.hero-glow-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(59,130,246,0.15); animation: float 6s ease-in-out infinite, glow 3s ease-in-out infinite alternate; pointer-events: none; }

/* ═══════════════════════════════════════════════
   HERO CAROUSEL
═══════════════════════════════════════════════ */
.hero-carousel { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 1.5rem; overflow: hidden; }
.hero-carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-carousel .slide.active { opacity: 1; }
.hero-carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(10,22,40,0.3),rgba(59,130,246,0.1)); }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.carousel-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; transition: all 0.3s; }
.carousel-dots .dot.active { background: #3b82f6; transform: scale(1.3); box-shadow: 0 0 10px rgba(59,130,246,0.5); }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; border-radius: 12px;
  box-shadow: 0 8px 25px rgba(37,99,235,0.35);
  transition: all 0.3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(37,99,235,0.5); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  background: rgba(255,255,255,0.08); color: #fff; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  background: #16a34a; color: #fff; border-radius: 12px;
  box-shadow: 0 8px 25px rgba(22,163,74,0.35);
  transition: all 0.3s ease;
}
.btn-wa:hover { background: #15803d; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero-carousel { aspect-ratio: 3/3; border-radius: 1rem; }
}

/* ═══════════════════════════════════════════════
   WORDPRESS SPECIFIC
═══════════════════════════════════════════════ */
.wp-block-image { margin: 1.5rem 0; }
.entry-content p { margin-bottom: 1.25rem; line-height: 1.8; color: #d1d5db; }
.entry-content h2, .entry-content h3 { color: #fff; margin: 2rem 0 1rem; font-family: 'Plus Jakarta Sans', Inter, sans-serif; }
.wp-caption { max-width: 100%; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* ═══════════════════════════════════════════════
   THEME TOGGLE (Dark/Light)
═══════════════════════════════════════════════ */
.theme-toggle-btn {
  position: fixed; bottom: 100px; right: 20px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(30,58,95,0.9); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 20px; backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s;
}
.theme-toggle-btn:hover { background: rgba(37,99,235,0.9); transform: scale(1.1); }

/* Light mode overrides */
body.light-mode {
  background: #f8fafc;
  color: #1e293b;
}
body.light-mode .glass-card { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
body.light-mode .hero-gradient { background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 50%, #dbeafe 100%); }
