/* Custom styles for Md. Fazlul Haque Salim Law Firm website */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0B1F3A;
}

::-webkit-scrollbar-thumb {
  background: #C9A227;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #DFBA49;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #C9A227 0%, #DFBA49 100%);
  width: 0%;
  z-index: 100;
  transition: width 0.1s ease-out;
}

/* Glassmorphism */
.glass-card {
  background: rgba(11, 31, 58, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.glass-nav {
  background: rgba(11, 31, 58, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

/* Gradients */
.gold-gradient-text {
  background: linear-gradient(135deg, #DFBA49 0%, #C9A227 50%, #A6821E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #DFBA49 0%, #C9A227 50%, #A6821E 100%);
}

.navy-gradient-bg {
  background: linear-gradient(135deg, #0B1F3A 0%, #050f1d 100%);
}

/* Hero Overlay */
.hero-overlay {
  background: linear-gradient(to right, rgba(11, 31, 58, 0.95), rgba(11, 31, 58, 0.7), rgba(11, 31, 58, 0.95));
}

/* Floating Call Button */
.floating-call {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 90;
  animation: pulse-gold 2s infinite;
}

/* Floating Facebook Button */
.floating-fb {
  position: fixed;
  bottom: 104px;
  right: 30px;
  z-index: 90;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(201, 162, 39, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0);
  }
}

/* Hover effects */
.hover-gold-grow {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-gold-grow:hover {
  transform: translateY(-5px);
  border-color: #C9A227;
  box-shadow: 0 10px 20px -5px rgba(201, 162, 39, 0.3);
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0B1F3A;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(201, 162, 39, 0.2);
  border-top-color: #C9A227;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
