/* Shared Styles - Navbar & Footer */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
}

.navbar {
  background: rgba(0, 0, 0, 0.9) !important;
  transition: all 0.3s;
  padding: 1rem 0;
}

.navbar-scrolled {
  background: rgba(0, 0, 0, 0.95) !important;
  padding: 0.5rem 0;
  backdrop-filter: blur(10px);
}

.theme-btn {
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

body.dark-mode {
  background: linear-gradient(135deg, #0a0f1a 0%, #001122 50%, #00000f 100%) !important;
  color: #e0e7ff !important;
}

body.dark-mode section {
  background: transparent !important;
}

.dark-mode section.bg-light {
  background: rgba(0,0,0,0.2) !important;
}

.dark-mode .card {
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(59,130,246,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  color: #e2e8f0;
}

.dark-mode .card:hover {
  background: rgba(255,255,255,0.15) !important;
  box-shadow: 0 20px 40px rgba(59,130,246,0.3), 0 0 0 1px rgba(59,130,246,0.2) !important;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3 {
  color: #f8fafc;
}

.dark-mode footer {
  background: rgba(10,15,26,0.95) !important;
  border-top: 1px solid rgba(59,130,246,0.3);
}

.dark-mode .contact-footer a {
  color: #e2e8f0;
}

.dark-mode .contact-footer a:hover {
  color: #60a5fa;
}

.navbar-brand, .nav-link {
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-link {
  margin: 0 0.5rem;
  transition: color 0.3s;
}

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

.container {
  max-width: 1200px;
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  border-radius: 15px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(45deg, #007bff, #0056b3);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline-primary {
  border-width: 2px;
}

/* Contact Icon Cards - Footer */
.contact-cards-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.contact-icon-card {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-icon-card i {
  font-size: 1.5rem;
  z-index: 2;
  position: relative;
}

.contact-icon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,193,7,0.4), transparent);
  transition: left 0.6s;
}

.contact-icon-card:hover::before {
  left: 100%;
}

.contact-icon-card:hover {
  transform: translateY(-12px) scale(1.15) rotate(360deg);
  box-shadow: 0 20px 40px rgba(255,193,7,0.4);
  animation: iconPulseGlow 1.5s infinite;
}

@keyframes iconPulseGlow {
  0%, 100% { box-shadow: 0 20px 40px rgba(255,193,7,0.4); }
  50% { box-shadow: 0 20px 40px rgba(255,193,7,0.6), 0 0 30px rgba(255,193,7,0.3); }
}

/* Light mode cards */
.contact-icon-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #495057;
  border: 2px solid rgba(255,193,7,0.3);
}

.contact-icon-card:hover {
  background: linear-gradient(135deg, #ffc107, #ffed4a);
  color: #212529;
}

/* Dark mode overrides */
.dark-mode .contact-icon-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  color: #e2e8f0;
  border: 2px solid rgba(59,130,246,0.4);
  backdrop-filter: blur(12px);
}

.dark-mode .contact-icon-card:hover {
  background: linear-gradient(135deg, rgba(255,193,7,0.3), rgba(255,193,7,0.1)) !important;
  color: #f1f5f9;
  box-shadow: 0 20px 40px rgba(255,193,7,0.5), 0 0 30px rgba(255,193,7,0.3) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-cards-container {
    gap: 0.75rem;
  }
  .contact-icon-card {
    width: 50px;
    height: 50px;
  }
  .contact-icon-card i {
    font-size: 1.25rem;
  }
  .contact-icon-card:hover {
    transform: translateY(-8px) scale(1.1);
  }
}

@media (max-width: 768px) {
  .profile-pic {
    width: 150px !important;
    height: 150px !important;
  }
}
