/*
Theme Name: MaxCor Inter-Ventures
Theme URI: https://www.maxcorinterventures.com
Author: MaxCor Inter-Ventures Co.
Description: A modern, professional WordPress theme for MaxCor Inter-Ventures Co. — Innovation without Boundaries.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maxcor
*/

/* ========================================
   CSS Variables / Design Tokens
   ======================================== */
:root {
  --color-primary: #d4af37;
  --color-primary-dark: #b8960c;
  --color-secondary: #d4af37;
  --color-accent: #d4af37;
  --color-text: #e0e0e0;
  --color-text-light: #a0a0b0;
  --color-bg: #0d1b2a;
  --color-bg-alt: #1b2838;
  --color-bg-dark: #060d18;
  --color-border: #1e3048;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', var(--font-primary);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.site-logo img {
  height: 45px;
  width: auto;
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
  transition: filter 0.3s ease;
}

.site-logo img:hover {
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff)
         drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #c0c0d0;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--color-primary);
  background: rgba(212, 175, 55, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 6px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 40%, #111111 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 30% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 60px 0;
}

.hero-tagline {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero h1 span {
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: #000000;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: #e8c84a;
  border-color: #e8c84a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  color: #000000;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--color-primary-dark);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* ========================================
   Services / Products Grid
   ======================================== */
.services-section {
  position: relative;
  overflow: hidden;
}

#services-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.5s ease;
  pointer-events: none;
}

.service-card:hover::after {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(80, 200, 220, 0.3), rgba(212, 175, 55, 0.6));
  animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
  0% { background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(80, 200, 220, 0.3), rgba(212, 175, 55, 0)); }
  33% { background: linear-gradient(135deg, rgba(80, 200, 220, 0), rgba(212, 175, 55, 0.6), rgba(80, 200, 220, 0.3)); }
  66% { background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(80, 200, 220, 0), rgba(212, 175, 55, 0.6)); }
  100% { background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(80, 200, 220, 0.3), rgba(212, 175, 55, 0)); }
}

.service-card:hover {
  border-color: transparent;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.12), 0 0 20px rgba(212, 175, 55, 0.08);
  transform: translateY(-4px);
  background: linear-gradient(145deg, var(--color-bg-alt), rgba(212, 175, 55, 0.03));
}

.service-card:hover .service-icon {
  animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(80, 200, 220, 0.2); }
  50% { box-shadow: 0 0 20px 4px rgba(80, 200, 220, 0.2), 0 0 40px 8px rgba(212, 175, 55, 0.1); }
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
  margin-bottom: 24px;
  font-size: 28px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

/* ========================================
   About Section
   ======================================== */
.about-section {
  position: relative;
  overflow: hidden;
}

#about-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ========================================
   Mission & Vision
   ======================================== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mv-card {
  padding: 48px 40px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.mv-card.mission {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #ffffff;
}

.mv-card.mission h3,
.mv-card.mission p {
  color: #ffffff;
}

.mv-card.mission p {
  opacity: 0.9;
}

.mv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.mv-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  position: relative;
  overflow: hidden;
}

#contact-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-details .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-details .label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
}

.contact-details .value {
  font-size: 1rem;
  color: var(--color-text);
  margin-top: 2px;
}

.contact-form {
  background: var(--color-bg-alt);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: all var(--transition);
  color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(44, 142, 203, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: #060d18;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .about-grid {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .header-inner {
    height: 70px;
  }

  .hero {
    padding-top: 70px;
  }
}


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

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2).reveal {
  transition-delay: 0.1s;
}

.service-card:nth-child(3).reveal {
  transition-delay: 0.2s;
}

.service-card:nth-child(4).reveal {
  transition-delay: 0.3s;
}

/* ========================================
   Nav Toggle Animation
   ======================================== */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .site-header,
  .hero,
  .nav-toggle,
  .contact-form,
  .btn {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 20px 0;
  }
}


/* ========================================
   Chatbot Widget
   ======================================== */
#maxcor-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-primary);
}

#chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #b8960c);
  border: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

#chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
}

#chat-toggle.chat-open {
  transform: scale(0);
  pointer-events: none;
}

#chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  max-height: 520px;
  background: #0d1b2a;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}

#chat-window.chat-hidden {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
}

#chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1b2838, #0d1b2a);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #b8960c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
}

.chat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.chat-status {
  font-size: 0.75rem;
  color: #68d391;
}

#chat-close {
  background: none;
  border: none;
  color: #a0a0b0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

#chat-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 350px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.chat-msg {
  display: flex;
  max-width: 85%;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-bubble {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #d4af37, #b8960c);
  color: #000;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot .chat-bubble {
  background: #1b2838;
  color: #e0e0e0;
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-bottom-left-radius: 4px;
}

.chat-bubble.typing {
  display: flex;
  gap: 4px;
  padding: 14px 20px;
}

.chat-bubble.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4af37;
  animation: typingDot 1.4s infinite;
}

.chat-bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

#chat-input-area {
  display: flex;
  padding: 12px 16px;
  gap: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  background: #0a1520;
}

#chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  background: #1b2838;
  color: #e0e0e0;
  font-size: 0.875rem;
  font-family: var(--font-primary);
  outline: none;
  transition: border-color 0.2s;
}

#chat-input:focus {
  border-color: rgba(212, 175, 55, 0.5);
}

#chat-input::placeholder {
  color: #6b7280;
}

#chat-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4af37, #b8960c);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

#chat-send:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

@media (max-width: 480px) {
  #chat-window {
    width: calc(100vw - 48px);
    max-height: 70vh;
    bottom: 68px;
  }
}


/* ========================================
   Certifications & Clients Section
   ======================================== */
.certifications-section {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

#cert-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.certifications-section .container {
  position: relative;
  z-index: 1;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.cert-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.cert-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.cert-card img {
  height: 160px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.cert-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.cert-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 50%;
  color: var(--color-primary);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.client-badge {
  padding: 20px 24px;
  text-align: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition);
}

.client-badge:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(212, 175, 55, 0.05);
}


/* ========================================
   Partners Hex Grid (Cybersec Style)
   ======================================== */
.hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
}

.hex-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hex-inner {
  width: 120px;
  height: 120px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(80, 200, 220, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease;
  animation: hexPulse 4s ease-in-out infinite;
  animation-delay: calc(var(--hex-index, 0) * 0.6s);
}

@keyframes hexPulse {
  0%, 100% { box-shadow: none; background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(80, 200, 220, 0.1)); }
  50% { background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(80, 200, 220, 0.2)); }
}

.hex-inner::before {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--color-bg-alt);
  z-index: 0;
}

.hex-inner img {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s, filter 0.3s;
  filter: brightness(0.9);
}

.hex-item:hover .hex-inner {
  background: linear-gradient(135deg, #d4af37, #80c8dc);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.hex-item:hover .hex-inner img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.hex-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
  overflow: hidden;
}

.hex-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  animation: scanLine 3s linear infinite;
  animation-delay: calc(var(--hex-index, 0) * 0.5s);
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hex-item:hover .hex-label {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .hex-inner {
    width: 100px;
    height: 100px;
  }
  .hex-inner img {
    width: 55px;
    height: 55px;
  }
}


/* ========================================
   Circuit Board Background (all sections except hero)
   ======================================== */
.certifications-section,
.services-section,
.about-section,
.contact-section,
.section:not(.hero) {
  background-image: url('assets/images/circuit-bg.svg');
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: driftBg 60s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .certifications-section,
  .services-section,
  .about-section,
  .contact-section,
  .section:not(.hero) {
    animation: none;
  }
}


/* ========================================
   Red Accent Integration
   ======================================== */

/* Service card top bar - gold to red gradient on hover */
.service-card::before {
  background: linear-gradient(90deg, #d4af37, #c41e2f) !important;
}

/* Alternate section labels in red */
.section-label {
  color: #c41e2f !important;
}

/* Stat numbers in red */
.stat-number {
  color: #c41e2f !important;
  text-shadow: 0 0 20px rgba(196, 30, 47, 0.2) !important;
}

/* Contact icon circles - red tint */
.contact-details .icon {
  background: rgba(196, 30, 47, 0.1) !important;
  color: #c41e2f !important;
}

/* Footer top border - gold to red */
.footer-bottom {
  border-top: 1px solid transparent !important;
  border-image: linear-gradient(90deg, rgba(212, 175, 55, 0.3), rgba(196, 30, 47, 0.3), rgba(212, 175, 55, 0.3)) 1;
}

/* Chatbot avatar - red ring */
.chat-avatar {
  box-shadow: 0 0 0 2px #c41e2f, 0 0 8px rgba(196, 30, 47, 0.3);
}

/* Service card hover glow - add red */
.service-card:hover {
  box-shadow: 0 10px 40px rgba(196, 30, 47, 0.1), 0 0 20px rgba(212, 175, 55, 0.08) !important;
}

/* Icon pulse on service cards - red accent */
@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 47, 0.2); }
  50% { box-shadow: 0 0 20px 4px rgba(196, 30, 47, 0.15), 0 0 40px 8px rgba(212, 175, 55, 0.1); }
}

/* Hex grid hover - gold to red */
.hex-item:hover .hex-inner {
  background: linear-gradient(135deg, #d4af37, #c41e2f) !important;
}

/* Nav active indicator with red */
.nav-menu .current-menu-item a {
  border-bottom: 2px solid #c41e2f;
  padding-bottom: 8px;
}


/* ========================================
   Partners Card Grid
   ======================================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.partner-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.3s;
}

.partner-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.partner-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.1);
  transform: translateY(-3px);
}

.partner-card:hover img {
  transform: scale(1.08);
}

.partner-card:hover span {
  color: var(--color-primary);
}


/* ========================================
   Support Center
   ======================================== */
.support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto 48px;
}

.support-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.support-action-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.1);
}

.support-action-card .support-icon {
  color: var(--color-primary);
}

.support-action-card h3 {
  font-size: 1.1rem;
  color: #fff;
}

.support-action-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.support-panel {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.support-panel h2 {
  text-align: center;
  margin-bottom: 32px;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(212, 175, 55, 0.3);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 20px 16px;
  color: var(--color-text-light);
  line-height: 1.7;
}

@media (max-width: 480px) {
  .support-actions {
    grid-template-columns: 1fr;
  }
}
