/* ----------------------------------------------------------------
   BOOTSTRAP OVERRIDE - MUST BE AT TOP
---------------------------------------------------------------- */

/* Nuclear option to override Bootstrap link colors in footer */
.site-footer a[href],
.site-footer a[href]:link,
.site-footer a[href]:visited {
  color: var(--text-muted) !important;
}

.site-footer a[href]:hover,
.site-footer a[href]:focus,
.site-footer a[href]:active {
  color: #ffffff !important;
}

/* ----------------------------------------------------------------
   1. CORE VARIABLES & GLOBAL RESET
---------------------------------------------------------------- */

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-elevated: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #6b6b6b;
  --accent-primary: #d4af37;
  --accent-secondary: #e6c454;
  --accent-hover: #c19b2e;
  --success: #10b981;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----------------------------------------------------------------
   2. LINK COLOR OVERRIDES
---------------------------------------------------------------- */

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

a:hover,
a:focus {
  color: var(--accent-primary) !important;
}

/* Restore navbar link colors */
.navbar-nav .nav-link {
  color: #a0a0a0 !important;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

/* Restore register button */
.navbar-nav .nav-link.btn-register {
  color: #000000 !important;
}

.navbar-nav .nav-link.btn-register:hover {
  color: #000000 !important;
}

/* ----------------------------------------------------------------
   3. NAVBAR STYLES (Mockup Exact Match)
---------------------------------------------------------------- */

.nta-nav-custom {
  background: rgba(7, 7, 7, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0 !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

/* Navbar Logo */
.navbar-logo {
  height: 58px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-brand:hover .navbar-logo {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Center Links */
.nta-nav-center {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nta-nav-center .nav-item {
  position: relative;
}

.nta-nav-center .nav-link {
  color: #a8a8a8 !important;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.2rem !important;
  transition: color 0.2s ease;
  position: relative;
  text-decoration: none;
}

.nta-nav-center .nav-link:hover,
.nta-nav-center .nav-link:focus {
  color: #ffffff !important;
}

/* Active State with Underline Indicator as in mockup */
.nta-nav-center .nav-link.active {
  color: #ffffff !important;
  font-weight: 600;
}

.nta-nav-center .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary, #d4af37);
  border-radius: 2px;
}

/* Right Nav Actions */
.nta-nav-right {
  display: flex;
  align-items: center;
}

.nta-nav-search {
  color: #ffffff !important;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.nta-nav-search:hover {
  color: var(--accent-primary, #d4af37) !important;
  background: rgba(255, 255, 255, 0.06);
}

/* Login Pill Button */
.btn-nta-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-nta-login:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

/* Get Started Pill Button */
.btn-nta-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.48rem 1.4rem;
  border-radius: 999px;
  background: #f0d98b;
  color: #070707 !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(240, 217, 139, 0.2);
  transition: all 0.25s ease;
}

.btn-nta-started:hover {
  background: #e6cb7a;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240, 217, 139, 0.32);
}

.btn-nta-started i {
  font-size: 0.78rem;
  transition: transform 0.2s ease;
}

.btn-nta-started:hover i {
  transform: translateX(2px);
}

/* Toggler button */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240, 217, 139, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----------------------------------------------------------------
   4. DROPDOWN STYLES
---------------------------------------------------------------- */

.dropdown-menu {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dropdown-item {
  color: #b0b0b0 !important;
  transition: 0.2s;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.dropdown-item:hover {
  background: rgba(240, 217, 139, 0.12);
  color: #ffffff !important;
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 0.5rem 0;
}

/* ----------------------------------------------------------------
   5. LAYOUT HELPERS
---------------------------------------------------------------- */

.content-wrapper {
  margin-top: 80px;
  flex: 1;
}

/* ----------------------------------------------------------------
   6. PROFESSIONAL FOOTER - IRONGAINS INSPIRED
---------------------------------------------------------------- */

.site-footer {
  background: #080808;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  margin-top: auto;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.7) 0%, transparent 80%);
  pointer-events: none;
}

/* Brand Section */
.footer-brand-wrapper {
  margin-bottom: 1.25rem;
}

.footer-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Footer Logo Styling */
.footer-logo {
  height: 54px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.75rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.footer-tagline {
  color: var(--text-muted) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 0;
}

.footer-desc {
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  margin-top: 1rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary) !important;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--accent-primary);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 0;
}

.social-icon:hover::before {
  width: 100%;
  height: 100%;
}

.social-icon:hover {
  color: #000 !important;
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.social-icon i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

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

/* Footer Headings - IronGains Style */
.footer-heading {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
  position: relative;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 0.75rem;
}

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

.footer-links li {
  margin-bottom: 0.875rem;
}

.footer-links a,
.footer-links li a {
  color: var(--text-muted) !important;
  transition: all 0.25s ease;
  font-size: 0.9375rem;
  display: inline-block;
  position: relative;
  text-decoration: none !important;
  font-weight: 400;
}

.footer-links a:hover,
.footer-links li a:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.built-by {
  color: var(--text-muted) !important;
  font-size: 0.8125rem;
  font-weight: 400;
}

.footer-bottom-links a {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--accent-primary) !important;
}

.footer-contact-info a {
  color: #ffffff !important;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-contact-info a:hover {
  color: var(--accent-primary) !important;
}

/* ----------------------------------------------------------------
   7. RESPONSIVE ADJUSTMENTS
---------------------------------------------------------------- */

@media (max-width: 992px) {
  .navbar-logo {
    height: 30px;
    max-width: 150px;
  }

  .footer-logo {
    height: 42px;
    max-width: 170px;
  }

  .footer-brand {
    font-size: 1.25rem;
  }
  
  .social-links {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar { 
    padding: 0.75rem 0; 
  }
  
  .navbar .container { 
    padding: 0 1.5rem; 
  }
  
  .navbar-brand { 
    font-size: 1.125rem; 
  }

  .navbar-logo {
    height: 28px;
    max-width: 135px;
  }
  
  .navbar-collapse {
    background: #0d0d0d;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-top: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  }

  .nta-nav-center {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .nta-nav-center .nav-link {
    font-size: 0.95rem;
    padding: 0.4rem 0 !important;
  }

  .nta-nav-center .nav-link.active::after {
    bottom: -2px;
  }

  .nta-nav-right {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding-top: 1rem;
    width: 100%;
  }

  .nta-nav-search {
    display: none; /* Hidden inside mobile menu */
  }

  .btn-nta-login,
  .btn-nta-started {
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
  }

  .content-wrapper {
    margin-top: 65px; 
  }

  .footer-logo {
    height: 38px;
    max-width: 150px;
  }

  .footer-brand {
    font-size: 1.125rem;
  }
  
  .footer-heading {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }
  
  .footer-links a {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 26px;
    max-width: 120px;
  }

  .footer-logo {
    height: 35px;
    max-width: 135px;
  }

  .footer-brand {
    font-size: 1rem;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .footer-bottom .row {
    text-align: center;
  }
  
  .built-by {
    margin-top: 0.5rem;
  }
}
