/* ==========================================================================
   PROFESSIONAL CSS-ONLY FOOTER WITH NEON EFFECTS
   ========================================================================== */

/* CSS Variables for consistent theming */
:root {
  --footer-bg-primary: #0a0a0a;
  --footer-bg-secondary: #1a1a1a;
  --footer-text-primary: #ffffff;
  --footer-text-secondary: #b3b3b3;
  --footer-accent: #00ff88;
  --footer-neon-blue: #00d4ff;
  --footer-neon-purple: #b900ff;
  --footer-neon-pink: #ff006b;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Footer Container */
.footer {
  background: linear-gradient(135deg, var(--footer-bg-primary) 0%, var(--footer-bg-secondary) 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--footer-border);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(185, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Footer Main Content */
.footer-main {
  padding: 80px 0 40px;
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Brand Section */
.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  text-decoration: none;
  color: var(--footer-text-primary);
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid rgba(0, 255, 136, 0.3);
}

.footer-logo-text {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(45deg, var(--footer-accent), var(--footer-neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from { 
    filter: drop-shadow(0 0 5px var(--footer-accent));
    transform: scale(1);
  }
  to { 
    filter: drop-shadow(0 0 15px var(--footer-accent));
    transform: scale(1.02);
  }
}

.footer-description {
  color: var(--footer-text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 16px;
}

/* Social Media Icons with Pure CSS Neon Effects */
.footer-social {
  display: flex;
  gap: 20px;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  font-size: 24px;
  transition: var(--footer-transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* Specific social media colors */
.social-link:nth-child(1):hover { /* Facebook */
  background: rgba(59, 89, 152, 0.2);
  border-color: #3b5998;
  box-shadow: 0 0 20px rgba(59, 89, 152, 0.5);
}

.social-link:nth-child(2):hover { /* Twitter */
  background: rgba(29, 161, 242, 0.2);
  border-color: #1da1f2;
  box-shadow: 0 0 20px rgba(29, 161, 242, 0.5);
}

.social-link:nth-child(3):hover { /* Instagram */
  background: linear-gradient(45deg, rgba(225, 48, 108, 0.2), rgba(255, 220, 128, 0.2));
  border-color: #e1306c;
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.5);
}

.social-link:nth-child(4):hover { /* LinkedIn */
  background: rgba(0, 119, 181, 0.2);
  border-color: #0077b5;
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.5);
}

/* Footer Columns */
.footer-column {
  min-width: 0;
}

.footer-column-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--footer-text-primary);
  margin-bottom: 25px;
  position: relative;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--footer-accent), var(--footer-neon-blue));
  border-radius: 2px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-item {
  margin-bottom: 12px;
}

.footer-link {
  color: var(--footer-text-secondary);
  text-decoration: none;
  transition: var(--footer-transition);
  display: inline-block;
  position: relative;
  padding: 5px 0;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--footer-accent);
  transition: width 0.3s ease;
}

.footer-link:hover::before {
  width: 100%;
}

.footer-link:hover {
  color: var(--footer-text-primary);
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* CSS-Only Newsletter Section */
.footer-newsletter {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 30px 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.footer-newsletter h3 {
  color: var(--footer-text-primary);
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 700;
}

.footer-newsletter p {
  color: var(--footer-text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 14px;
}

/* Pure CSS Newsletter Form */
.newsletter-form {
  position: relative;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--footer-transition);
  margin-bottom: 20px;
}

.newsletter-form:focus-within {
  border-color: var(--footer-accent);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 20px;
  color: var(--footer-text-primary);
  font-size: 14px;
  outline: none;
}

.newsletter-input::placeholder {
  color: var(--footer-text-secondary);
}

.newsletter-btn {
  background: linear-gradient(45deg, var(--footer-accent), var(--footer-neon-blue));
  border: none;
  padding: 15px 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--footer-transition);
  position: relative;
  overflow: hidden;
}

.newsletter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.newsletter-btn:hover::before {
  left: 100%;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-top: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--footer-accent);
  flex: 1;
  justify-content: center;
  transition: var(--footer-transition);
}

.trust-item:hover {
  background: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: var(--footer-text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Legal Links */
.footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-link {
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--footer-transition);
}

.footer-legal-link:hover {
  color: var(--footer-text-primary);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--footer-accent), var(--footer-neon-blue));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--footer-transition);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
  z-index: 1000;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 60px 0 30px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-brand {
    max-width: none;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .footer-content {
    gap: 30px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-btn {
    margin-top: 10px;
    justify-content: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Focus styles for accessibility */
.social-link:focus,
.footer-link:focus,
.newsletter-btn:focus,
.footer-legal-link:focus,
.back-to-top:focus {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
}

/* Main Footer Container */
.footer {
  background: linear-gradient(135deg, var(--footer-bg-primary) 0%, var(--footer-bg-secondary) 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--footer-border);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(185, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.footer-wrapper {
  position: relative;
  z-index: 2;
}

/* Footer Main Content */
.footer-main {
  padding: 80px 0 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

/* Brand Section */
.brand-section {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 32px;
  font-weight: 900;
  color: var(--footer-text-primary);
}

.logo-text {
  background: linear-gradient(45deg, var(--footer-accent), var(--footer-neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.logo-accent {
  color: var(--footer-accent);
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from { 
    filter: drop-shadow(0 0 5px var(--footer-accent));
    transform: scale(1);
  }
  to { 
    filter: drop-shadow(0 0 15px var(--footer-accent));
    transform: scale(1.1);
  }
}

.footer-description {
  color: var(--footer-text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 16px;
}

/* Animated Neon Social Media Icons */
.social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--footer-transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.neon-icon {
  width: 24px;
  height: 24px;
  transition: var(--footer-transition);
}

.neon-icon svg {
  width: 100%;
  height: 100%;
  transition: var(--footer-transition);
}

/* Twitter Neon Effect */
.twitter-link {
  border: 1px solid rgba(29, 161, 242, 0.3);
}

.twitter-link:hover {
  background: rgba(29, 161, 242, 0.1);
  box-shadow: 
    0 0 20px rgba(29, 161, 242, 0.5),
    inset 0 0 20px rgba(29, 161, 242, 0.1);
  transform: translateY(-3px) scale(1.05);
}

.twitter-link .neon-icon svg {
  color: #1da1f2;
  filter: drop-shadow(0 0 5px rgba(29, 161, 242, 0.5));
}

.twitter-link:hover .neon-icon svg {
  filter: drop-shadow(0 0 15px rgba(29, 161, 242, 0.8));
  animation: neonPulse 1.5s ease-in-out infinite;
}

/* LinkedIn Neon Effect */
.linkedin-link {
  border: 1px solid rgba(0, 119, 181, 0.3);
}

.linkedin-link:hover {
  background: rgba(0, 119, 181, 0.1);
  box-shadow: 
    0 0 20px rgba(0, 119, 181, 0.5),
    inset 0 0 20px rgba(0, 119, 181, 0.1);
  transform: translateY(-3px) scale(1.05);
}

.linkedin-link .neon-icon svg {
  color: #0077b5;
  filter: drop-shadow(0 0 5px rgba(0, 119, 181, 0.5));
}

.linkedin-link:hover .neon-icon svg {
  filter: drop-shadow(0 0 15px rgba(0, 119, 181, 0.8));
  animation: neonPulse 1.5s ease-in-out infinite;
}

/* YouTube Neon Effect */
.youtube-link {
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.youtube-link:hover {
  background: rgba(255, 0, 0, 0.1);
  box-shadow: 
    0 0 20px rgba(255, 0, 0, 0.5),
    inset 0 0 20px rgba(255, 0, 0, 0.1);
  transform: translateY(-3px) scale(1.05);
}

.youtube-link .neon-icon svg {
  color: #ff0000;
  filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5));
}

.youtube-link:hover .neon-icon svg {
  filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.8));
  animation: neonPulse 1.5s ease-in-out infinite;
}

/* Instagram Neon Effect */
.instagram-link {
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.instagram-link:hover {
  background: linear-gradient(45deg, rgba(225, 48, 108, 0.1), rgba(255, 220, 128, 0.1));
  box-shadow: 
    0 0 20px rgba(225, 48, 108, 0.5),
    inset 0 0 20px rgba(225, 48, 108, 0.1);
  transform: translateY(-3px) scale(1.05);
}

.instagram-link .neon-icon svg {
  color: #e1306c;
  filter: drop-shadow(0 0 5px rgba(225, 48, 108, 0.5));
}

.instagram-link:hover .neon-icon svg {
  filter: drop-shadow(0 0 15px rgba(225, 48, 108, 0.8));
  animation: neonPulse 1.5s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { 
    filter: drop-shadow(0 0 15px currentColor);
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 25px currentColor);
    transform: scale(1.1);
  }
}

/* Social Tooltips */
.social-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--footer-transition);
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.social-link:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--footer-accent);
  transition: var(--footer-transition);
}

.trust-badge:hover {
  background: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
}

.badge-icon {
  font-size: 14px;
}

/* Footer Sections */
.footer-section {
  min-width: 0;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--footer-text-primary);
  margin-bottom: 25px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--footer-accent), var(--footer-neon-blue));
  border-radius: 2px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-link {
  color: var(--footer-text-secondary);
  text-decoration: none;
  transition: var(--footer-transition);
  display: inline-block;
  position: relative;
  padding: 5px 0;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--footer-accent);
  transition: width 0.3s ease;
}

.footer-link:hover::before {
  width: 100%;
}

.footer-link:hover {
  color: var(--footer-text-primary);
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Newsletter Section */
.newsletter-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 30px 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.newsletter-description {
  color: var(--footer-text-secondary);
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Newsletter Form with Validation */
.newsletter-form {
  margin-bottom: 25px;
}

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

.input-wrapper {
  display: flex;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--footer-transition);
}

.input-wrapper:focus-within {
  border-color: var(--footer-accent);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px 20px;
  color: var(--footer-text-primary);
  font-size: 14px;
  outline: none;
}

.newsletter-input::placeholder {
  color: var(--footer-text-secondary);
}

.newsletter-input:invalid {
  border-color: var(--footer-neon-pink);
}

.newsletter-btn {
  background: linear-gradient(45deg, var(--footer-accent), var(--footer-neon-blue));
  border: none;
  padding: 15px 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--footer-transition);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.newsletter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.newsletter-btn:hover::before {
  left: 100%;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.newsletter-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Form Validation Messages */
.error-message {
  color: var(--footer-neon-pink);
  font-size: 12px;
  margin-top: 8px;
  display: none;
  animation: fadeInUp 0.3s ease;
}

.success-message {
  color: var(--footer-accent);
  font-size: 12px;
  margin-top: 8px;
  display: none;
  animation: fadeInUp 0.3s ease;
}

.error-message.show,
.success-message.show {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Privacy Consent */
.newsletter-privacy {
  margin-top: 15px;
}

.newsletter-privacy label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--footer-text-secondary);
  line-height: 1.4;
  cursor: pointer;
}

.newsletter-privacy input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--footer-accent);
}

.privacy-link {
  color: var(--footer-accent);
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* Newsletter Stats */
.newsletter-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--footer-accent);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 11px;
  color: var(--footer-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: var(--footer-text-secondary);
  font-size: 14px;
}

.company-reg {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 5px;
}

/* Certification Badges */
.footer-certifications {
  display: flex;
  gap: 15px;
  align-items: center;
}

.cert-badge {
  height: 30px;
  opacity: 0.7;
  transition: var(--footer-transition);
}

.cert-badge:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Legal Links */
.legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-link {
  color: var(--footer-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--footer-transition);
}

.legal-link:hover {
  color: var(--footer-text-primary);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }
  
  .newsletter-section {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 60px 0 30px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .brand-section {
    max-width: none;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .trust-badges {
    justify-content: center;
  }
  
  .newsletter-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .footer-content {
    gap: 30px;
  }
  
  .input-wrapper {
    flex-direction: column;
  }
  
  .newsletter-btn {
    justify-content: center;
    margin-top: 10px;
  }
  
  .newsletter-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .footer-certifications {
    flex-direction: column;
    gap: 10px;
  }
  
  .legal-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
.social-link:focus,
.footer-link:focus,
.newsletter-btn:focus,
.legal-link:focus {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
}


.social-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Footer Columns */
.footer-column {
  min-width: 0;
}

.footer-column-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--border-radius-full);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-item {
  margin-bottom: var(--spacing-sm);
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
  position: relative;
  padding: var(--spacing-xs) 0;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.footer-link:hover::before {
  width: 100%;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* Newsletter Section */
.footer-newsletter {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.newsletter-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-sm);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.newsletter-submit {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-primary);
  border: none;
  border-radius: var(--border-radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.newsletter-submit:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.footer-legal {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--color-text-primary);
}

.footer-legal-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  z-index: var(--z-fixed);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.back-to-top:focus {
  outline: 3px solid rgba(99, 102, 241, 0.5);
  outline-offset: 3px;
}

/* RESPONSIVE DESIGN */

/* Large screens */
@media (min-width: 1200px) {
  .footer-content {
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
  }
}

/* Medium screens and tablets */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-2xl);
  }
  
  .footer-newsletter {
    grid-column: 1 / -1;
    margin-top: var(--spacing-xl);
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
  .footer-main {
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
    margin-bottom: var(--spacing-xl);
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-newsletter {
    margin-top: var(--spacing-lg);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input {
    min-width: auto;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  .footer-main {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .footer-brand {
    margin-bottom: var(--spacing-lg);
  }
  
  .footer-column-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .newsletter-form {
    gap: var(--spacing-sm);
  }
  
  .footer-legal {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .back-to-top {
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 45px;
    height: 45px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .social-link:hover,
  .footer-link:hover,
  .newsletter-submit:hover,
  .back-to-top:hover {
    transform: none;
  }
  
  .back-to-top {
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .footer {
    background: var(--color-bg-primary);
    border-top: 2px solid var(--color-text-primary);
  }
  
  .footer-newsletter,
  .social-link {
    border: 1px solid var(--color-text-primary);
  }
  
  .newsletter-input {
    border: 1px solid var(--color-text-primary);
    background: var(--color-bg-secondary);
  }
  
  .newsletter-submit,
  .back-to-top {
    border: 2px solid var(--color-primary);
  }
}

/* Print styles */
@media print {
  .footer {
    background: none !important;
    color: #000 !important;
  }
  
  .footer-social,
  .newsletter-form,
  .back-to-top {
    display: none !important;
  }
  
  .footer-link {
    color: #000 !important;
  }
}