/* =============================================================================
   HOUTINI UNIFIED HEADER ARCHITECTURE
   Single container with coordinated glass morphism effects
   ============================================================================= */

/* Remove old body padding - controlled by JS spacer */
body {
  padding-top: 0;
  transition: padding-top 0.3s ease;
}

/* Unified Header Container */
.houtini-unified-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  transform-origin: top center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Single Glass Container - Spans Entire Header - ENHANCED GLASS MORPHISM */
.houtini-header-glass-container {
  /* Force hardware acceleration for better backdrop-filter performance */
  will-change: backdrop-filter;
  
  /* Enhanced backdrop-filter with better browser compatibility */
  backdrop-filter: blur(20px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(200%) brightness(1.1);
  
  /* Reduce background opacity to let backdrop-filter show through */
  background: rgba(255, 255, 255, 0.7) !important;
  
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  
  /* Ensure proper stacking context for backdrop-filter */
  isolation: isolate;
  z-index: 1;
}

/* Glass Effect Enhancement Layer - IMPROVED FALLBACK */
.houtini-header-glass-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(1px)) {
  .houtini-header-glass-container {
    background: rgba(255, 255, 255, 0.95) !important;
  }
  
  .dark-theme .houtini-header-glass-container {
    background: rgba(26, 26, 26, 0.95) !important;
  }
}

/* Social Section Glass Morphism - Let theme CSS handle colors */
header#masthead.houtini-unified-header .houtini-header-glass-container .houtini-social-section,
header.houtini-unified-header .houtini-social-section,
.houtini-unified-header .houtini-social-section,
.houtini-social-section {
  /* Remove background and padding - let social-bar-links handle all styling */
  background: transparent; /* No background on container */
  backdrop-filter: none; /* No blur effects */
  -webkit-backdrop-filter: none;
  border-bottom: none; /* No border */
  padding: 0; /* NO PADDING - this was causing the white gaps! */
  margin: 0; /* No margins */
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  transform-origin: top center;
  overflow: hidden;
}

/* Social Section - Clean full-width approach without Bootstrap container */

/* Social Bar Links Container - Direct child of social section, no Bootstrap container */
.houtini-social-section .social-bar-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  width: 100%;
  background-color: rgba(26, 26, 26, 0.9) !important; /* Use that lovely dark grey */
  padding: 8px 15px; /* Horizontal padding for content spacing */
  margin: 0; /* Remove any margins */
  border-radius: 0; /* Remove rounded corners for full-width bar */
}

/* LARGE BREAKPOINT ONLY - Reduce social bar height by 10px */
@media (min-width: 992px) {
  .houtini-social-section .social-bar-links {
    padding: 3px 15px; /* Reduced from 8px to 3px = 10px height reduction */
  }
}

/* Social Section Scroll-Out Animation - Class-based approach */
.houtini-unified-header.social-hidden .houtini-social-section {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.houtini-social-section .social-bar-links a {
  color: #ffffff; /* White text on black background */
  font-size: 18px;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}

.houtini-social-section .social-bar-links a:hover {
  color: var(--houtini-primary, #0066FF);
  transform: translateY(-1px);
}

/* Platform-specific hover colors */
.houtini-social-section .social-bar-links .fab.fa-twitter:hover { color: #1DA1F2; }
.houtini-social-section .social-bar-links .fab.fa-github:hover { color: #333; }
.houtini-social-section .social-bar-links .fab.fa-npm:hover { color: #CB3837; }
.houtini-social-section .social-bar-links .fab.fa-linkedin-in:hover { color: #0077B5; }
.houtini-social-section .social-bar-links .fas.fa-envelope:hover { color: var(--houtini-secondary); }

/* Dark theme styles moved to 07-dark-theme.css for consolidation */

/* Mobile responsive for social bar */
@media (max-width: 768px) {
  .houtini-social-section .social-bar-links {
    justify-content: center;
    gap: 12px;
  }
  
  .houtini-social-section .social-bar-links a {
    font-size: 16px;
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .houtini-social-section {
    padding: 8px 0;
  }
  
  .houtini-social-section .social-bar-links {
    gap: 10px;
  }
  
  .houtini-social-section .social-bar-links a {
    font-size: 14px;
    padding: 5px;
  }
}

/* Main Navigation Styling - Clean approach */
.houtini-main-nav {
  background: transparent;
  padding: 0 0 8px 0; /* Remove top padding, keep bottom padding for spacing */
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

/* Main Navigation Container - Simplified */
.houtini-main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  min-height: 50px;
}

/* LARGE BREAKPOINT ONLY - Reduce nav container height by 10px */
@media (min-width: 992px) {
  .houtini-main-nav .container {
    min-height: 40px; /* Reduced from 50px to 40px = 10px height reduction */
  }
  
  .houtini-main-nav {
    padding: 0 0 3px 0; /* Reduced bottom padding from 8px to 3px for additional height reduction */
  }
}

/* Logo Height Fix - Clean approach */
.houtini-main-nav .navbar-brand {
  height: auto;
  padding: 0.5rem 0;
  line-height: 1.2;
  font-size: 2rem;
}

/* Navigation Links - Clean right alignment */
.houtini-main-nav .navbar-nav.ms-auto.houtini-nav-links {
  margin-left: auto;
  margin-right: 0 !important;
}

/* Logo Styling with Enhancements */
.houtini-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--houtini-primary);
  text-decoration: none !important;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Nuclear override for Bootstrap navbar-brand link decoration */
.navbar .navbar-brand.houtini-logo,
.navbar .navbar-brand.houtini-logo:hover,
.navbar .navbar-brand.houtini-logo:focus,
.navbar .navbar-brand.houtini-logo:active,
.navbar .navbar-brand.houtini-logo:visited,
a.navbar-brand.houtini-logo,
a.navbar-brand.houtini-logo:hover,
a.navbar-brand.houtini-logo:focus,
a.navbar-brand.houtini-logo:active,
a.navbar-brand.houtini-logo:visited {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  text-decoration-color: transparent !important;
}

/* Ensure no underlines on logo link in any state */
.navbar-brand.houtini-logo,
.navbar-brand.houtini-logo:hover,
.navbar-brand.houtini-logo:focus,
.navbar-brand.houtini-logo:active,
.navbar-brand.houtini-logo:visited {
  text-decoration: none !important;
}

.houtini-logo:hover {
  color: var(--houtini-secondary);
  transform: scale(1.02);
  text-decoration: none !important;
}

.logo-text {
  position: relative;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--houtini-cyan), var(--houtini-accent));
  border-radius: 2px;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

/* Code Animation Elements */
.houtini-code-animation {
  display: flex;
  gap: 8px;
  opacity: 0.6; /* Increase opacity to make more visible */
}

.houtini-code-element {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--houtini-secondary);
  animation: codeFloat 4s ease-in-out infinite;
  transform-origin: center center;
}

.houtini-code-element:nth-child(2) {
  animation: codeFloatVariant1 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.houtini-code-element:nth-child(3) {
  animation: codeFloatVariant2 3.5s ease-in-out infinite;
  animation-delay: 1s;
}

.houtini-code-element:nth-child(4) {
  animation: codeFloatVariant3 4.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Enhanced Code Animation Keyframes - Much More Dynamic */
@keyframes codeFloat {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    opacity: 0.4;
  }
  20% {
    transform: translateX(12px) translateY(-8px) rotate(45deg) scale(1.1);
    opacity: 0.7;
  }
  40% {
    transform: translateX(-8px) translateY(-15px) rotate(180deg) scale(0.9);
    opacity: 1;
  }
  60% {
    transform: translateX(15px) translateY(-10px) rotate(270deg) scale(1.2);
    opacity: 0.8;
  }
  80% {
    transform: translateX(-5px) translateY(-3px) rotate(320deg) scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: translateX(0) translateY(0) rotate(360deg) scale(1);
    opacity: 0.4;
  }
}

/* Individual element variations for more organic feel */
@keyframes codeFloatVariant1 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateX(-10px) translateY(-12px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateX(14px) translateY(-5px) rotate(180deg);
    opacity: 0.9;
  }
  75% {
    transform: translateX(6px) translateY(-18px) rotate(270deg);
    opacity: 0.6;
  }
  100% {
    transform: translateX(0) translateY(0) rotate(360deg);
    opacity: 0.3;
  }
}

@keyframes codeFloatVariant2 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    opacity: 0.5;
  }
  30% {
    transform: translateX(18px) translateY(-9px) rotate(120deg) scale(1.3);
    opacity: 0.9;
  }
  60% {
    transform: translateX(-12px) translateY(-20px) rotate(240deg) scale(0.7);
    opacity: 1;
  }
  100% {
    transform: translateX(0) translateY(0) rotate(360deg) scale(1);
    opacity: 0.5;
  }
}

@keyframes codeFloatVariant3 {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0.4;
  }
  35% {
    transform: translateX(-6px) translateY(-16px) rotate(150deg);
    opacity: 0.7;
  }
  70% {
    transform: translateX(20px) translateY(-4px) rotate(300deg);
    opacity: 1;
  }
  100% {
    transform: translateX(0) translateY(0) rotate(360deg);
    opacity: 0.4;
  }
}

/* Navigation Links - Subtle Hover Effects */
.houtini-nav-links .nav-link {
  color: var(--bs-body-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 0.75rem;
  padding: 0.5rem 0;
  text-decoration: none;
}

.houtini-nav-links .nav-link:hover {
  color: var(--bs-body-color);
  opacity: 0.7;
  transform: translateY(-1px);
  text-decoration: none;
}

.houtini-nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--houtini-gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.houtini-nav-links .nav-link:hover::after {
  width: 20px;
}

/* Override Bootstrap link defaults for navigation */
.navbar-nav .nav-link,
.houtini-nav-links a,
.nav-link {
  color: var(--bs-body-color) !important;
  text-decoration: none !important;
}

.navbar-nav .nav-link:hover,
.houtini-nav-links a:hover,
.nav-link:hover {
  color: var(--bs-body-color) !important;
  text-decoration: none !important;
  opacity: 0.7;
}

/* Mobile Hamburger Button */
.houtini-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.houtini-hamburger-line {
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--houtini-cyan), var(--houtini-accent));
  border-radius: 2px;
  margin: 3px 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
}

.houtini-mobile-toggle:hover .houtini-hamburger-line {
  background: linear-gradient(90deg, var(--houtini-accent), var(--houtini-purple));
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

/* Header Spacer for Fixed Positioning */
.houtini-header-spacer {
  height: 120px; /* Adjust based on header height */
  transition: height 0.4s ease;
}

/* =============================================================================
   SCROLL STATES & ANIMATIONS - SMOOTH PROGRESSIVE SYSTEM
   ============================================================================= */

/* REMOVED: Hard state social-hidden class - now handled by smooth JS transforms */
/* Social Section Progressive Transform - Handled by JavaScript for smoothness */
.houtini-social-section {
  /* Smooth transition for any manual transforms */
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* REMOVED: Hard state compact class - now handled by smooth JS scaling */
/* Logo and Navigation Progressive Scaling - Handled by JavaScript */
.houtini-logo {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.houtini-main-nav {
  transition: padding 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: padding;
}

/* REMOVED: Hard state enhanced-glass class - now handled by smooth JS backdrop-filter */
/* Glass Container Progressive Enhancement - Handled by JavaScript */
.houtini-header-glass-container {
  transition: backdrop-filter 0.15s ease-out;
  will-change: backdrop-filter;
}

/* Header Spacer Responsive to Social Section State */
.houtini-header-spacer {
  height: 120px; /* Base height with social visible */
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LARGE BREAKPOINT ONLY - Adjust spacer for reduced header heights */
@media (min-width: 992px) {
  .houtini-header-spacer {
    height: 100px; /* Reduced from 120px to account for smaller header on large screens */
  }
}

/* =============================================================================
   MOBILE RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
  .houtini-social-section .social-links {
    justify-content: center;
    gap: 16px;
  }
  
  .houtini-header-spacer {
    height: 140px;
  }
  
  .houtini-unified-header.social-hidden + .houtini-header-spacer {
    height: 100px;
  }
  
  .houtini-logo {
    font-size: 1.5rem;
  }
  
  .houtini-code-animation {
    display: none !important;
  }
  
  .houtini-nav-links .nav-link {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .houtini-social-section .social-links a {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .houtini-header-spacer {
    height: 120px;
  }
  
  .houtini-unified-header.social-hidden + .houtini-header-spacer {
    height: 80px;
  }
}

/* =============================================================================
   ANIMATIONS & KEYFRAMES
   ============================================================================= */

@keyframes logoGlow {
  0% { 
    box-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
    width: 60%;
  }
  100% { 
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
    width: 80%;
  }
}

@keyframes codeFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
    opacity: 0.4;
  }
  50% { 
    transform: translateY(-4px) rotate(2deg);
    opacity: 0.7;
  }
}

/* =============================================================================
   THEME TOGGLE COMPATIBILITY
   ============================================================================= */

.houtini-theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--houtini-cyan), var(--houtini-purple));
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--houtini-shadow-glow);
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.houtini-theme-toggle:hover {
  background: linear-gradient(135deg, var(--houtini-accent), var(--houtini-cyan));
  box-shadow: 0 6px 30px rgba(255, 105, 180, 0.5);
  transform: translateY(-2px) scale(1.05);
}

/* Legacy cleanup section removed - styles were targeting non-existent elements */

/* =============================================================================
   FOOTER STYLING - Matching Original Houtini.ai Design
   ============================================================================= */

/* High Specificity Footer Overrides - Override Bootstrap bg-body-tertiary */
footer#footer.bg-body-tertiary,
#footer.bg-body-tertiary,
#footer {
  position: relative !important;
  background: var(--houtini-bg-primary, #FAFAFA) !important;
  border-top: 1px solid var(--houtini-gray-200, #E5E5E5) !important;
  margin-top: var(--houtini-spacing-3xl, 6rem) !important;
  padding: 0 !important; /* Remove any Bootstrap padding */
}

.houtini-footer-content {
  padding: var(--houtini-spacing-2xl, 4rem) 0 var(--houtini-spacing-lg, 2rem) !important;
}

/* Footer Grid Layout */
.houtini-footer-content .row {
  margin-bottom: var(--houtini-spacing-xl);
}

/* WordPress Widget Headings - Target actual rendered structure */
.houtini-footer-content .footer_widget h5,
.houtini-footer-content .footer_widget h6,
.houtini-footer-content .footer_widget .wp-block-heading {
  font-family: var(--houtini-font-family);
  font-size: var(--houtini-font-size-lg);
  font-weight: var(--houtini-font-weight-semibold);
  color: var(--houtini-text-primary);
  margin-bottom: var(--houtini-spacing-sm);
  letter-spacing: var(--houtini-heading-tracking);
}

/* WordPress Footer Widget Styling */
.houtini-footer-content .footer_widget {
  margin-bottom: var(--houtini-spacing-sm);
}

.houtini-footer-content .footer_widget p {
  font-size: var(--houtini-font-size-sm);
  line-height: var(--houtini-line-height-relaxed);
  color: var(--houtini-text-secondary);
  margin-bottom: var(--houtini-spacing-sm);
}

/* WordPress Menu Styling in Footer */
.houtini-footer-content .footer_widget .menu,
.houtini-footer-content .footer_widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.houtini-footer-content .footer_widget .menu li,
.houtini-footer-content .footer_widget ul li {
  margin-bottom: var(--houtini-spacing-xs);
}

.houtini-footer-content .footer_widget .menu li a,
.houtini-footer-content .footer_widget ul li a {
  color: var(--houtini-text-secondary);
  text-decoration: none;
  font-size: var(--houtini-font-size-sm);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  padding: 4px 0;
}

.houtini-footer-content .footer_widget .menu li a:hover,
.houtini-footer-content .footer_widget ul li a:hover {
  color: var(--houtini-cyan);
  text-shadow: var(--houtini-text-glow-cyan);
}

.houtini-footer-content .footer_widget .menu li a::after,
.houtini-footer-content .footer_widget ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--houtini-gradient-primary);
  transition: width 0.3s ease;
}

.houtini-footer-content .footer_widget .menu li a:hover::after,
.houtini-footer-content .footer_widget ul li a:hover::after {
  width: 100%;
}

/* Social Links Styling - Target ACTUAL Widget Structure */
.widget.footer_widget .social-links,
.footer_widget .social-links,
footer .social-links {
  display: flex !important;
  gap: var(--houtini-spacing-sm, 1rem) !important;
  margin: var(--houtini-spacing-md, 1.5rem) 0 !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
}

.widget.footer_widget .social-links a,
.footer_widget .social-links a, 
footer .social-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #00CCFF, #8A2BE2) !important;
  color: white !important;
  text-decoration: none !important;
  font-size: 1.125rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25) !important;
  position: relative !important;
  overflow: hidden !important;
}

.widget.footer_widget .social-links a:hover,
.footer_widget .social-links a:hover,
footer .social-links a:hover {
  background: linear-gradient(135deg, #FF69B4, #00CCFF) !important;
  transform: translateY(-3px) scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.35) !important;
  color: white !important;
  text-decoration: none !important;
}

.widget.footer_widget .social-links a::before,
.footer_widget .social-links a::before,
footer .social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s ease;
}

.widget.footer_widget .social-links a:hover::before,
.footer_widget .social-links a:hover::before,
footer .social-links a:hover::before {
  left: 100%;
}

/* Fix FontAwesome Icons in Social Links - HIGH SPECIFICITY */
.houtini-footer-content .social-links a i,
footer .houtini-footer-content .social-links a i,
footer#footer .social-links a i {
  font-size: var(--houtini-font-size-lg, 1.125rem) !important;
  color: white !important;
  display: inline-block !important;
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900 !important;
}

.houtini-footer-content .social-links a:hover i,
footer .houtini-footer-content .social-links a:hover i,
footer#footer .social-links a:hover i {
  color: white !important;
}

/* Emergency Override for Social Links Container Alignment */
footer#footer .footer_widget .social-links {
  display: flex !important;
  gap: 1rem !important;
  margin-top: 1rem !important;
  justify-content: flex-start !important;
}

/* Emergency Override - Ensure all footer content uses proper color scheme */
footer#footer {
  background: var(--houtini-bg-primary, #FAFAFA) !important;
  border-top: 1px solid var(--houtini-gray-200, #E5E5E5) !important;
}

footer#footer .houtini-footer-content {
  padding: var(--houtini-spacing-2xl, 4rem) 0 var(--houtini-spacing-lg, 2rem) !important;
}

/* Footer Brand Logo Enhancement - Target Actual HTML */
footer#footer .fw-bold {
  font-family: var(--houtini-font-family, 'Montserrat', sans-serif) !important;
  font-size: var(--houtini-font-size-2xl, 1.5rem) !important;
  font-weight: var(--houtini-font-weight-bold, 700) !important;
  color: var(--houtini-primary, #0066FF) !important;
  margin-right: var(--houtini-spacing-sm, 1rem) !important;
  position: relative !important;
}

footer#footer .fw-bold::after {
  content: '' !important;
  position: absolute !important;
  bottom: -6px !important;
  left: 50% !important;
  width: 50% !important;
  height: 3px !important;
  background: var(--houtini-gradient-rainbow, linear-gradient(90deg, #00CCFF, #FF69B4)) !important;
  border-radius: 2px !important;
  transform: translateX(-50%) !important;
  animation: logoGlow 2s ease-in-out infinite alternate !important;
}

/* Brand Section Styling */
.houtini-footer-content .d-flex.align-items-center .fw-bold {
  font-family: var(--houtini-font-family);
  font-size: var(--houtini-font-size-2xl);
  font-weight: var(--houtini-font-weight-bold);
  color: var(--houtini-primary);
  margin-right: var(--houtini-spacing-sm);
  position: relative;
}

.houtini-footer-content .d-flex.align-items-center .fw-bold::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 50%;
  height: 3px;
  background: var(--houtini-gradient-rainbow);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: logoGlow 2s ease-in-out infinite alternate;
}

/* Code Animation in Footer */
.houtini-code-animation {
  display: flex;
  gap: 8px;
  align-items: center;
}

.houtini-code-element {
  font-family: var(--houtini-font-mono);
  font-size: var(--houtini-font-size-sm);
  font-weight: var(--houtini-font-weight-medium);
  color: var(--houtini-secondary);
  background: rgba(0, 204, 136, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  animation: codeFloat 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.houtini-code-element:nth-child(1) { --delay: 0s; }
.houtini-code-element:nth-child(2) { --delay: 0.5s; }
.houtini-code-element:nth-child(3) { --delay: 1s; }

/* Copyright Text */
.houtini-footer-content .text-muted {
  color: var(--houtini-text-tertiary) !important;
  font-size: var(--houtini-font-size-sm);
  margin-top: var(--houtini-spacing-xs);
}

/* Separator Line */
.houtini-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    var(--houtini-gray-200) 20%, 
    var(--houtini-gray-200) 80%, 
    transparent 100%
  );
  margin: var(--houtini-spacing-xl) 0;
  opacity: 0.6;
}

/* Quick Links Styling */
.houtini-footer-content .d-flex.justify-content-center a {
  color: var(--houtini-text-secondary);
  text-decoration: none;
  font-size: var(--houtini-font-size-sm);
  font-weight: var(--houtini-font-weight-medium);
  transition: all var(--houtini-transition-normal);
  position: relative;
  padding: 8px 0;
}

.houtini-footer-content .d-flex.justify-content-center a:hover {
  color: var(--houtini-cyan);
  text-shadow: var(--houtini-text-glow-cyan);
  transform: translateY(-1px);
}

.houtini-footer-content .d-flex.justify-content-center a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--houtini-gradient-primary);
  transition: width var(--houtini-transition-normal);
  border-radius: 1px;
}

.houtini-footer-content .d-flex.justify-content-center a:hover::after {
  width: 100%;
}

/* Hover Lift Effect */
.houtini-hover-lift {
  transition: transform var(--houtini-transition-normal);
}

.houtini-hover-lift:hover {
  transform: translateY(-2px);
}

/* =============================================================================
   RESPONSIVE FOOTER DESIGN
   ============================================================================= */

@media (max-width: 768px) {
  .houtini-footer-content {
    padding: var(--houtini-spacing-xl) 0 var(--houtini-spacing-md);
  }
  
  .houtini-footer-content .row {
    margin-bottom: var(--houtini-spacing-lg);
  }
  
  .houtini-footer-content .d-flex.align-items-center {
    flex-direction: column;
    text-align: center;
    gap: var(--houtini-spacing-sm);
  }
  
  .houtini-footer-content .d-flex.align-items-center .fw-bold {
    font-size: var(--houtini-font-size-xl);
  }
  
  .houtini-code-animation {
    justify-content: center;
  }
  
  .houtini-footer-content .social-links {
    justify-content: center;
    margin-top: var(--houtini-spacing-sm);
  }
  
  .houtini-footer-content .d-flex.justify-content-center {
    flex-direction: column;
    gap: var(--houtini-spacing-sm);
    text-align: center;
  }
  
  .houtini-separator {
    margin: var(--houtini-spacing-lg) 0;
  }
}

@media (max-width: 480px) {
  .houtini-footer-content .social-links a {
    width: 36px;
    height: 36px;
    font-size: var(--houtini-font-size-base);
  }
  
  .houtini-footer-content .d-flex.justify-content-center a {
    padding: 12px;
    display: block;
    text-align: center;
  }
}

/* =============================================================================
   DARK MODE COMPATIBILITY - FOOTER WITH CORRECT SELECTORS
   ============================================================================= */

.dark-theme #footer,
.dark-theme footer#footer {
  background: var(--houtini-gray-900) !important;
  border-top-color: var(--houtini-gray-700) !important;
}

.dark-theme .houtini-footer-content .footer_widget h5,
.dark-theme .houtini-footer-content .footer_widget h6,
.dark-theme .houtini-footer-content .footer_widget .wp-block-heading,
.dark-theme footer#footer .footer_widget .wp-block-heading {
  color: var(--houtini-white) !important;
}

.dark-theme .houtini-footer-content .footer_widget p,
.dark-theme footer#footer .footer_widget p {
  color: var(--houtini-gray-400) !important;
}

.dark-theme .houtini-footer-content .footer_widget .menu li a,
.dark-theme .houtini-footer-content .footer_widget ul li a,
.dark-theme footer#footer .footer_widget .menu li a {
  color: var(--houtini-gray-300) !important;
}

.dark-theme .houtini-footer-content .footer_widget .menu li a:hover,
.dark-theme .houtini-footer-content .footer_widget ul li a:hover,
.dark-theme footer#footer .footer_widget .menu li a:hover {
  color: var(--houtini-cyan) !important;
}

.dark-theme .houtini-footer-content .fw-bold,
.dark-theme footer#footer .fw-bold {
  color: var(--houtini-cyan) !important;
}

.dark-theme .houtini-footer-content .text-muted,
.dark-theme footer#footer .text-muted {
  color: var(--houtini-gray-500) !important;
}

.dark-theme .houtini-separator {
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    var(--houtini-gray-700) 20%, 
    var(--houtini-gray-700) 80%, 
    transparent 100%
  ) !important;
}

.dark-theme .houtini-footer-content .d-flex.justify-content-center a,
.dark-theme footer#footer .d-flex.justify-content-center a {
  color: var(--houtini-gray-300) !important;
}

/* =============================================================================
   ORIGINAL DARK MODE COMPATIBILITY - HEADER
   ============================================================================= */

.dark-theme .houtini-header-glass-container {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .houtini-social-section {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 204, 136, 0.1));
}

.dark-theme .houtini-social-section .social-links a {
  background: rgba(255, 255, 255, 0.05);
  color: var(--houtini-cyan);
}

.dark-theme .houtini-logo {
  color: var(--houtini-cyan);
}

.dark-theme .houtini-nav-links .nav-link {
  color: #ffffff;
}