/* ====================================
   NAVBAR & FOOTER ENHANCED STYLES
   Modern, Performance-Optimized Design
   Universal Responsive Architecture
   ==================================== */

:root {
  --footer-bg: #0a0f18;
  --footer-surface: rgba(255, 255, 255, 0.03);
  --footer-accent: #00e5ff;
  --footer-accent-glow: rgba(0, 229, 255, 0.3);
  --footer-text: rgba(255, 255, 255, 0.7);
  --footer-text-bright: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-radius: 20px;
  --footer-padding: 5rem;
}

/* ========================
   NAVBAR STYLES
   ======================== */
.navbar {
  background: rgba(13, 22, 27, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #00bcd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--footer-accent) !important;
}

/* ========================
   FOOTER STYLES (Modern & Universal)
   ======================== */
.site-footer {
  background: var(--footer-bg);
  position: relative;
  padding: var(--footer-padding) 0 2rem;
  color: var(--footer-text);
  overflow: hidden;
  border-top: 1px solid var(--footer-border);
}

/* Background Glow Effect */
.site-footer::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, var(--footer-accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.site-footer h6 {
  color: var(--footer-text-bright);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer h6::after {
  content: '';
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, var(--footer-accent), transparent);
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

/* Brand Section */
.footer-brand p {
  line-height: 1.8;
  font-size: 0.95rem;
  max-width: 320px;
}

/* Social Icon Buttons (Premium Modern Style) */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 2.5rem;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 0 !important;
}

.social-icon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--footer-accent, rgba(255, 255, 255, 0.1));
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
  border-radius: 50%;
}

.social-icon-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 1;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  display: block;
}

.social-icon-btn:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--footer-accent, rgba(255, 255, 255, 0.3));
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.social-icon-btn:hover::before {
  transform: scale(1.1);
}

.social-icon-btn:hover img {
  transform: scale(1.1);
}

/* Specific Brand Colors on Hover (Restore original identity) */
.social-icon-btn.youtube:hover { --footer-accent: rgba(255, 0, 0, 0.2); }
.social-icon-btn.instagram:hover { --footer-accent: rgba(225, 48, 108, 0.2); }
.social-icon-btn.telegram:hover { --footer-accent: rgba(0, 136, 204, 0.2); }
.social-icon-btn.facebook:hover { --footer-accent: rgba(24, 119, 242, 0.2); }
.social-icon-btn.uzum:hover { --footer-accent: rgba(127, 0, 255, 0.2); }
.social-icon-btn.yandex:hover { --footer-accent: rgba(255, 0, 0, 0.2); }

/* Newsletter Section (Glass Morphism) */
.newsletter-box {
  background: var(--footer-surface);
  padding: 2rem;
  border-radius: var(--footer-radius);
  border: 1px solid var(--footer-border);
  margin-top: 2.5rem;
  backdrop-filter: blur(10px);
}

.newsletter-box h5 {
  color: var(--footer-text-bright);
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-form .input-group {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 5px;
  border: 1px solid var(--footer-border);
}

.newsletter-form .form-control {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
}

.newsletter-form .btn-primary {
  background: var(--footer-accent);
  border: none;
  border-radius: 10px !important;
  color: #000;
  font-weight: 700;
  padding: 0 1.5rem;
  transition: all 0.3s ease;
}

.newsletter-form .btn-primary:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 0 20px var(--footer-accent-glow);
}

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

.footer-col li {
  margin-bottom: 0.85rem;
}

.footer-col a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--footer-accent);
  transform: translateX(8px);
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-brand p {
    margin: 0 auto;
  }
  .social-row {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .site-footer {
    padding: 3.5rem 0 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h6 {
    justify-content: center;
  }
  .footer-col h6::after {
    display: none;
  }
}

/* Bottom Bar */
.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--footer-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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