html {
  font-family: 'Poppins', sans-serif !important;
  font-size: 12px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Poppins', sans-serif !important;
  font-size: 12px;
  margin-bottom: 60px;
  background: #f8f9fa;
}

/* Navbar Branding */
.navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c3e50;
  letter-spacing: 0.5px;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Footer Styling */
.footer {
  padding: 5px 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-logo img {
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 1 !important;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40%;
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Brand Colors */
.social-link.facebook { background: #1877F2; }
.social-link.linkedin { background: #0077B5; }
.social-link.instagram {
    background: radial-gradient(circle at 30% 30%, #fdf497, #f37a32, #e95950, #bc2a8d);
}
.social-link.twitter { background: #000000; }

.social-link:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

/* Profile Card Branding */
.profile-card {
  border-radius: 15px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.card-header-branded {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  padding: 15px;
  text-align: center;
  position: relative;
}

.profile-brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  background: white;
  padding: 8px 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-card .card-body {
  padding: 30px;
}

.profile-card .card-footer {
  border-top: 1px solid #e8e8e8;
  padding: 15px;
  background: #f8f9fa !important;
}

.profile-card .btn-outline-primary {
  border-radius: 10px;
  border-width: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.profile-card .btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.profile-card .card-title {
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.8rem;
}

.profile-card hr {
  margin: 20px 0;
  opacity: 0.15;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Adjust font sizes for mobile */
  html {
    font-size: 14px;
  }
  
  body {
    font-size: 14px;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-logo {
    height: 35px;
  }
  
  .brand-text {
    font-size: 0.95rem;
  }
  
  /* Ensure navbar items are visible and accessible */
  .navbar-collapse {
    background: white;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    width: 100%;
  }
  
  .navbar-nav .nav-item {
    margin: 5px 0;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 15px !important;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: #f8f9fa;
  }
  
  /* Make login/register buttons more prominent on mobile */
  .navbar-nav .nav-link {
    font-weight: 500;
    font-size: 1rem;
  }
  
  /* Profile card adjustments */
  .profile-card {
    margin: 10px;
  }
  
  .profile-card .card-body {
    padding: 20px;
  }
  
  .profile-card .card-title {
    font-size: 1.5rem;
  }
  
  .profile-brand-logo {
    height: 40px;
  }
  
  /* Social icons adjustments */
  .social-link {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 15px 0;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  /* Extra small devices */
  html {
    font-size: 13px;
  }
  
  .navbar-logo {
    height: 30px;
  }
  
  .brand-text {
    font-size: 0.9rem;
  }
  
  .navbar-toggler {
    padding: 6px 10px;
    font-size: 1rem;
  }
  
  /* Container padding adjustments */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .profile-card .card-title {
    font-size: 1.3rem;
  }
  
  .social-link {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* Ensure buttons and form elements are touch-friendly on mobile */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Improve hamburger menu visibility */
.navbar-toggler {
  border: 2px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 12px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
}
