/* ============================================
   STUNNING ENHANCED FOOTER STYLES
   Beautiful Light/Dark Mode Design
   ============================================ */

/* ============================================
   CSS VARIABLES FOR FOOTER THEMING
   ============================================ */
:root {
  /* Light Mode Footer Colors */
  --footer-bg-primary: #0a0a1a;
  --footer-bg-secondary: #12122a;
  --footer-bg-tertiary: #1a1a3a;
  --footer-text-primary: #ffffff;
  --footer-text-secondary: rgba(255, 255, 255, 0.75);
  --footer-text-muted: rgba(255, 255, 255, 0.5);
  --footer-border-color: rgba(255, 255, 255, 0.1);
  --footer-glow-color: rgba(239, 55, 36, 0.4);
  --footer-accent-gradient: linear-gradient(135deg, #ef3724 0%, #ff6b5b 50%, #ffd700 100%);
  --footer-card-bg: rgba(255, 255, 255, 0.05);
  --footer-card-border: rgba(255, 255, 255, 0.1);
  --footer-input-bg: rgba(255, 255, 255, 0.08);
  --footer-wave-opacity: 1;
}

/* Light Mode Footer Variables */
:root:not([data-theme="dark"]) .enhanced-footer,
[data-theme="light"] .enhanced-footer {
  --footer-bg-primary: #f8f9fc;
  --footer-bg-secondary: #ffffff;
  --footer-bg-tertiary: #eef1f7;
  --footer-text-primary: #1a1a2e;
  --footer-text-secondary: #4a5568;
  --footer-text-muted: #718096;
  --footer-border-color: rgba(0, 0, 0, 0.08);
  --footer-glow-color: rgba(239, 55, 36, 0.2);
  --footer-card-bg: #ffffff;
  --footer-card-border: rgba(0, 0, 0, 0.06);
  --footer-input-bg: #ffffff;
  --footer-wave-opacity: 0.9;
}

/* ============================================
   FOOTER WAVE CONTAINER - ANIMATED SVG WAVES
   ============================================ */
.footer-wave-container {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.footer-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  opacity: var(--footer-wave-opacity);
}

/* Mesmerizing Wave Animations */
.wave-path {
  animation: waveFlow 12s ease-in-out infinite;
  transform-origin: center;
}

.wave-1 {
  animation: waveFlow 14s ease-in-out infinite;
  opacity: 0.4;
}

.wave-2 {
  animation: waveFlow 10s ease-in-out infinite reverse;
  animation-delay: -2s;
  opacity: 0.6;
}

.wave-3 {
  animation: waveFlow 8s ease-in-out infinite;
  animation-delay: -4s;
  opacity: 0.8;
}

@keyframes waveFlow {
  0%, 100% {
    transform: translateX(0) scaleY(1);
  }
  25% {
    transform: translateX(-5%) scaleY(1.05);
  }
  50% {
    transform: translateX(-2.5%) scaleY(0.95);
  }
  75% {
    transform: translateX(-7.5%) scaleY(1.02);
  }
}

/* Light mode wave colors */
:root:not([data-theme="dark"]) .wave-1,
[data-theme="light"] .wave-1 {
  fill: rgba(239, 55, 36, 0.08) !important;
}

:root:not([data-theme="dark"]) .wave-2,
[data-theme="light"] .wave-2 {
  fill: rgba(239, 55, 36, 0.12) !important;
}

:root:not([data-theme="dark"]) .wave-3,
[data-theme="light"] .wave-3 {
  fill: rgba(239, 55, 36, 0.18) !important;
}

/* ============================================
   ENHANCED FOOTER BASE STRUCTURE
   ============================================ */
.enhanced-footer {
  position: relative;
  background: var(--footer-bg-primary);
  padding-top: 140px;
  overflow: visible;
  margin-top: 100px;
  transition: background 0.4s ease;
}

/* Subtle animated background pattern */
.enhanced-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, var(--footer-glow-color) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 40% 40%, rgba(239, 55, 36, 0.08) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
  animation: backgroundPulse 8s ease-in-out infinite;
}

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

/* Floating particles effect */
.enhanced-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(2px 2px at 100px 50px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 200px 150px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 300px 100px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 400px 200px, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1px 1px at 500px 80px, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(2px 2px at 600px 180px, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
  z-index: 0;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-100px) translateX(50px);
  }
}

/* Light mode particles */
:root:not([data-theme="dark"]) .enhanced-footer::after,
[data-theme="light"] .enhanced-footer::after {
  background-image:
    radial-gradient(2px 2px at 100px 50px, rgba(239, 55, 36, 0.2), transparent),
    radial-gradient(2px 2px at 200px 150px, rgba(239, 55, 36, 0.15), transparent),
    radial-gradient(1px 1px at 300px 100px, rgba(255, 215, 0, 0.2), transparent),
    radial-gradient(2px 2px at 400px 200px, rgba(239, 55, 36, 0.1), transparent),
    radial-gradient(1px 1px at 500px 80px, rgba(255, 215, 0, 0.15), transparent),
    radial-gradient(2px 2px at 600px 180px, rgba(239, 55, 36, 0.12), transparent);
}

.footer-content {
  position: relative;
  z-index: 2;
  padding: 50px 0 30px;
}

/* ============================================
   FOOTER TOP - BRAND & NEWSLETTER
   ============================================ */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--footer-border-color);
}

/* Brand Section */
.footer-brand {
  flex: 1;
  min-width: 280px;
}

.footer-brand .brand-name {
  font-size: 3rem;
  font-weight: 800;
  color: var(--footer-text-primary);
  margin-bottom: 12px;
  background: var(--footer-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: brandShimmer 3s ease-in-out infinite;
  background-size: 200% 100%;
}

@keyframes brandShimmer {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.footer-brand .brand-name .text-theme {
  -webkit-text-fill-color: #ffd700;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.footer-brand .brand-tagline {
  color: var(--footer-text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

/* ============================================
   NEWSLETTER SECTION - GLASSMORPHISM STYLE
   ============================================ */
.newsletter-section {
  flex: 1;
  max-width: 480px;
  min-width: 300px;
  background: var(--footer-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--footer-card-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.newsletter-section:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 60px rgba(239, 55, 36, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(239, 55, 36, 0.3);
}

/* Light mode newsletter */
:root:not([data-theme="dark"]) .newsletter-section,
[data-theme="light"] .newsletter-section {
  background: #ffffff;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
}

.newsletter-title {
  color: var(--footer-text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletter-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef3724;
  border-radius: 50%;
  animation: newsletterDot 2s ease-in-out infinite;
}

@keyframes newsletterDot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 55, 36, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 55, 36, 0);
  }
}

.newsletter-desc {
  color: var(--footer-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Newsletter Form */
.newsletter-form {
  position: relative;
}

.newsletter-input-wrapper {
  display: flex;
  background: var(--footer-input-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--footer-border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.newsletter-input-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--footer-accent-gradient);
  border-radius: 18px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.newsletter-input-wrapper:focus-within::before {
  opacity: 1;
}

.newsletter-input-wrapper:focus-within {
  border-color: transparent;
  background: var(--footer-input-bg);
  box-shadow: 0 0 30px var(--footer-glow-color);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 18px 24px;
  color: var(--footer-text-primary);
  font-size: 1rem;
  outline: none;
  font-weight: 500;
}

.newsletter-input::placeholder {
  color: var(--footer-text-muted);
  font-weight: 400;
}

.newsletter-btn {
  background: linear-gradient(135deg, #ef3724 0%, #ff6b5b 100%);
  border: none;
  padding: 18px 32px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.newsletter-btn::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: left 0.6s ease;
}

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

.newsletter-btn:hover {
  background: linear-gradient(135deg, #ff6b5b 0%, #ffd700 100%);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.4);
}

.newsletter-btn .btn-text,
.newsletter-btn .btn-icon,
.newsletter-btn .btn-success {
  transition: all 0.3s ease;
}

.newsletter-btn .btn-icon {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
}

.newsletter-btn:hover .btn-text {
  opacity: 0;
}

.newsletter-btn:hover .btn-icon {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.newsletter-btn .btn-success {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.newsletter-btn.success {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.newsletter-btn.success .btn-text,
.newsletter-btn.success .btn-icon {
  opacity: 0;
}

.newsletter-btn.success .btn-success {
  opacity: 1;
}

.newsletter-message {
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

.newsletter-message.success {
  color: #10b981;
}

.newsletter-message.error {
  color: #ef4444;
}

/* ============================================
   FOOTER DIVIDER - ANIMATED GRADIENT LINE
   ============================================ */
.footer-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--footer-border-color) 10%,
    #ef3724 30%,
    #ffd700 50%,
    #ef3724 70%,
    var(--footer-border-color) 90%,
    transparent 100%);
  background-size: 200% 100%;
  margin: 0;
  animation: dividerFlow 4s linear infinite;
  opacity: 0.6;
}

@keyframes dividerFlow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* ============================================
   FOOTER MAIN CONTENT - WIDGET GRID
   ============================================ */
.footer-main {
  padding: 50px 0;
}

.footer-col {
  margin-bottom: 10px;
}

/* Footer Widget - Glass Card Style */
.footer-widget {
  background: var(--footer-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--footer-card-border);
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.footer-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--footer-accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.footer-widget:hover::before {
  transform: scaleX(1);
}

.footer-widget:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(239, 55, 36, 0.2);
}

/* Light mode widget */
:root:not([data-theme="dark"]) .footer-widget,
[data-theme="light"] .footer-widget {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

:root:not([data-theme="dark"]) .footer-widget:hover,
[data-theme="light"] .footer-widget:hover {
  box-shadow: 0 20px 50px rgba(239, 55, 36, 0.1);
}

/* Widget Title */
.widget-title {
  color: var(--footer-text-primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.widget-title i:first-child {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.15), rgba(255, 215, 0, 0.15));
  border-radius: 12px;
  color: #ef3724;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-widget:hover .widget-title i:first-child {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  color: white;
  transform: rotate(10deg) scale(1.1);
}

.widget-title .accordion-icon {
  display: none;
  margin-left: auto;
  transition: transform 0.3s ease;
  color: var(--footer-text-muted);
}

/* ============================================
   FOOTER ADDRESS - ELEGANT STYLING
   ============================================ */
.footer-address {
  font-style: normal;
}

.footer-address p {
  color: var(--footer-text-secondary);
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-address p::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ef3724;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ============================================
   QUICK LINKS - ANIMATED UNDERLINE EFFECT
   ============================================ */
.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-links li {
  margin: 0;
}

.animated-link {
  color: var(--footer-text-secondary);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  overflow: hidden;
}

.animated-link::before {
  content: '';
  width: 0;
  height: 2px;
  background: var(--footer-accent-gradient);
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated-link::after {
  content: '\2192';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: #ef3724;
}

.animated-link:hover {
  color: var(--footer-text-primary);
  transform: translateX(8px);
}

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

.animated-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   3D SOCIAL LINKS - FLIP CARD EFFECT
   ============================================ */
.social-links-3d {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-link-3d {
  perspective: 1000px;
  display: inline-block;
  text-decoration: none;
}

.social-card {
  width: 54px;
  height: 54px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link-3d:hover .social-card {
  transform: rotateY(180deg);
}

.social-front,
.social-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.social-front {
  background: var(--footer-card-bg);
  color: var(--footer-text-primary);
  border: 1px solid var(--footer-card-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-back {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  color: #fff;
  transform: rotateY(180deg);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Platform-specific back colors */
.social-link-3d[data-platform="GitHub"] .social-back {
  background: linear-gradient(135deg, #24292e, #6e5494);
}

.social-link-3d[data-platform="LinkedIn"] .social-back {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-link-3d[data-platform="Twitter"] .social-back {
  background: linear-gradient(135deg, #1da1f2, #0d8ecf);
}

.social-link-3d[data-platform="Instagram"] .social-back {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link-3d[data-platform="YouTube"] .social-back {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-link-3d[data-platform="Facebook"] .social-back {
  background: linear-gradient(135deg, #1877f2, #0d65d9);
}

/* Light mode social cards */
:root:not([data-theme="dark"]) .social-front,
[data-theme="light"] .social-front {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
}

:root:not([data-theme="dark"]) .social-front i,
[data-theme="light"] .social-front i {
  color: #1a1a2e;
}

:root:not([data-theme="dark"]) .social-link-3d:hover .social-front,
[data-theme="light"] .social-link-3d:hover .social-front {
  border-color: var(--footer-accent-color);
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.15);
}

:root:not([data-theme="dark"]) .social-card,
[data-theme="light"] .social-card {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

/* ============================================
   CONTACT INFO - INTERACTIVE ITEMS
   ============================================ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--footer-text-secondary);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.contact-item i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.1), rgba(255, 215, 0, 0.1));
  border-radius: 10px;
  color: #ef3724;
  font-size: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-item span {
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-item:hover {
  background: var(--footer-card-bg);
  border-color: var(--footer-card-border);
  transform: translateX(8px);
  color: var(--footer-text-primary);
}

.contact-item:hover i {
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

/* Light mode contact items */
:root:not([data-theme="dark"]) .contact-item:hover,
[data-theme="light"] .contact-item:hover {
  background: #f8f9fc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ============================================
   FOOTER BOTTOM - COPYRIGHT & LINKS
   ============================================ */
.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--footer-border-color);
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: var(--footer-text-muted);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
}

.heart-beat {
  color: #ef3724;
  display: inline-block;
  animation: heartBeat 1.2s ease-in-out infinite;
  font-size: 1.1em;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.25);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.15);
  }
  60% {
    transform: scale(1);
  }
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom-links a {
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-bottom-links a:hover {
  color: #ef3724;
  background: rgba(239, 55, 36, 0.1);
}

.footer-bottom-links .separator {
  color: var(--footer-border-color);
  font-size: 0.8rem;
}

/* ============================================
   BACK TO TOP BUTTON ENHANCEMENT
   ============================================ */
.enhanced-footer .scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ef3724, #ff6b5b);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.4);
  z-index: 1000;
}

.enhanced-footer .scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.enhanced-footer .scroll-top-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(239, 55, 36, 0.5);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-brand {
    min-width: auto;
  }

  .newsletter-section {
    max-width: 100%;
    width: 100%;
  }

  .footer-main .row {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .footer-wave-container {
    top: -60px;
    height: 80px;
  }

  .enhanced-footer {
    padding-top: 100px;
    margin-top: 60px;
  }

  .footer-content {
    padding: 30px 0 20px;
  }

  .footer-top {
    padding-bottom: 40px;
    margin-bottom: 30px;
  }

  .footer-brand .brand-name {
    font-size: 2.2rem;
  }

  .newsletter-section {
    padding: 24px;
    border-radius: 20px;
  }

  .newsletter-title {
    font-size: 1.25rem;
  }

  /* Accordion on Mobile */
  .widget-title {
    cursor: pointer;
    margin-bottom: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--footer-border-color);
    user-select: none;
  }

  .widget-title .accordion-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: var(--footer-card-bg);
    border-radius: 50%;
  }

  .widget-title.active .accordion-icon {
    transform: rotate(180deg);
    background: linear-gradient(135deg, #ef3724, #ff6b5b);
    color: white;
  }

  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
    padding: 0;
  }

  .accordion-content.active {
    max-height: 600px;
    padding: 24px 0;
  }

  .footer-widget {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .footer-widget:hover {
    transform: none;
    box-shadow: none;
  }

  .footer-widget::before {
    display: none;
  }

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

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-links-3d {
    justify-content: center;
  }

  .contact-info {
    align-items: stretch;
  }

  .contact-item {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .newsletter-input-wrapper {
    flex-direction: column;
    border-radius: 16px;
  }

  .newsletter-input {
    text-align: center;
    border-bottom: 1px solid var(--footer-border-color);
    padding: 16px;
  }

  .newsletter-btn {
    border-radius: 0 0 14px 14px;
    padding: 16px;
  }

  .social-card {
    width: 48px;
    height: 48px;
  }

  .social-front,
  .social-back {
    font-size: 1.2rem;
    border-radius: 12px;
  }

  .social-back {
    font-size: 0.55rem;
  }

  .footer-brand .brand-name {
    font-size: 1.8rem;
  }

  .footer-brand .brand-tagline {
    font-size: 0.95rem;
  }

  .copyright {
    font-size: 0.85rem;
  }

  .footer-bottom-links a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* ============================================
   ANIMATIONS FOR SCROLL REVEAL
   ============================================ */
.footer-widget,
.footer-brand,
.newsletter-section {
  opacity: 0;
  transform: translateY(30px);
  animation: footerReveal 0.8s ease forwards;
}

.footer-brand { animation-delay: 0.1s; }
.newsletter-section { animation-delay: 0.2s; }
.footer-widget:nth-child(1) { animation-delay: 0.3s; }
.footer-widget:nth-child(2) { animation-delay: 0.4s; }
.footer-widget:nth-child(3) { animation-delay: 0.5s; }

@keyframes footerReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .enhanced-footer {
    background: white !important;
    color: black !important;
  }

  .footer-wave-container,
  .enhanced-footer::before,
  .enhanced-footer::after {
    display: none !important;
  }

  .footer-widget {
    break-inside: avoid;
  }
}
