/* ============================================
   isecwire - Premium Stylesheet
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(0, 212, 255, 0.15);
  color: #0B1426;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* --- Animated Logo Shield --- */
.logo-shield {
  transition: transform 0.3s ease;
}
.logo-group:hover .logo-shield {
  transform: scale(1.08);
}

/* --- Header --- */
.header-scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  border-bottom-color: transparent !important;
}

/* --- Hamburger Animation --- */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Particles Canvas --- */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --- Floating Elements --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}
.float { animation: float 4s ease-in-out infinite; }
.float-slow { animation: float-slow 6s ease-in-out infinite; }
.float-reverse { animation: float-reverse 5s ease-in-out infinite; }
.float-delay-1 { animation-delay: 0.5s; }
.float-delay-2 { animation-delay: 1s; }
.float-delay-3 { animation-delay: 1.5s; }

/* --- Gradient Animations --- */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* --- Glow Effects --- */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.15); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.3); }
}
.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

@keyframes subtle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.subtle-pulse { animation: subtle-pulse 2s ease-in-out infinite; }

/* --- Status Dot Animation --- */
@keyframes status-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}
.status-dot-active {
  animation: status-blink 2s ease-in-out infinite;
}

/* --- Scroll Reveal --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* --- Trust Bar Logo Scroll --- */
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logos-scroll {
  animation: scroll-logos 30s linear infinite;
}
.logos-scroll:hover {
  animation-play-state: paused;
}

/* --- Card Styles --- */
.service-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* --- Testimonial Card --- */
.testimonial-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.1);
}

/* --- Counter Animation --- */
.counter-value {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* --- Section Divider --- */
.section-divider {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00D4FF, #4F8FFF);
}

/* --- Button Styles --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.25);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  position: relative;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn-outline:hover {
  transform: translateY(-1px);
}

/* --- Feature Section Illustration Container --- */
.illustration-container {
  position: relative;
}
.illustration-container::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(79, 143, 255, 0.05));
  border-radius: 28px;
  transform: rotate(3deg);
  z-index: -1;
}

/* --- Form Styles --- */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-input:focus {
  border-color: #00D4FF;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  background: #fff;
}
.form-input:hover:not(:focus) {
  border-color: #cbd5e1;
}

/* --- Cookie Banner --- */
.cookie-banner {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.dismissed {
  transform: translateY(110%);
}

/* --- Dropdown Menu --- */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.nav-dropdown-trigger:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Responsive Utilities --- */
@media (max-width: 768px) {
  .hero-stats {
    gap: 1.5rem !important;
  }
  .hero-stats > div {
    text-align: center;
  }
}

/* --- Print --- */
@media print {
  header, footer, .cookie-banner, #hero-canvas { display: none !important; }
  section { page-break-inside: avoid; }
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .logos-scroll { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Article Typography (Blog Posts) --- */
.article-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0B1426;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0B1426;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-content p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.article-content ul, .article-content ol {
  margin-left: 1.25rem;
  margin-bottom: 1.25rem;
}
.article-content li {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.article-content ul li { list-style-type: disc; }
.article-content ol li { list-style-type: decimal; }
.article-content blockquote {
  border-left: 3px solid #00D4FF;
  padding-left: 1.25rem;
  font-style: italic;
  color: #6b7280;
  margin: 1.5rem 0;
}
.article-content code {
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #0B1426;
}
.article-content a {
  color: #00D4FF;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover {
  color: #0891b2;
}
.article-content strong {
  color: #0B1426;
  font-weight: 600;
}

/* --- Blog Card --- */
.blog-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.1);
  border-color: #a5f3fc;
}

/* --- Three.js Container --- */
#three-container canvas {
  display: block;
  border-radius: inherit;
}
#three-container {
  background: radial-gradient(ellipse at center, #0B1426 0%, #060D1A 100%);
}

/* --- Product Card Accent --- */
.product-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

/* --- Blog Category Pills --- */
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Blog Search --- */
.blog-search:focus {
  border-color: #00D4FF;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  background: #fff;
}
