:root {
  /* BSafe Brand Colors */
  --primary-blue: #1e40af;
  --secondary-blue: #3b82f6;
  --accent-blue: #60a5fa;
  --light-blue: #dbeafe;
  --dark-blue: #1e3a8a;
  --navy-blue: #1e293b;

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Status Colors */
  --success-green: #10b981;
  --warning-yellow: #f59e0b;
  --error-red: #ef4444;

  /* Typography */
  --font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  /* Spacing & Layout */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-800);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-blue) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 50%,
    var(--accent-blue) 100%
  );
  color: var(--white);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 48px;
  max-width: 600px;
}

/* Section Styling */
.section {
  padding: 120px 0;
}

.section-light {
  background: var(--white);
}

.section-gray {
  background: var(--gray-50);
}

.section-header {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--light-blue);
  color: var(--primary-blue);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-weight: 400;
}

/* Contact Cards */
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-xl);
  padding: 48px 40px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--white);
  font-size: 32px;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.contact-text {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-info {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 1.125rem;
  word-break: break-all;
}

/* Contact Form */
.contact-form-section {
  background: var(--gray-50);
  position: relative;
}

.form-container {
  background: var(--white);
  border-radius: var(--border-radius-xl);
  padding: 64px 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  position: relative;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  opacity: 0;
  border-radius: var(--border-radius-xl);
  transition: opacity 0.3s ease;
}

.form-container:hover::before {
  opacity: 0.02;
}

.form-group {
  margin-bottom: 32px;
  position: relative;
}

.form-label {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 12px;
  display: block;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: all 0.3s ease;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-blue)
  );
  border: none;
  padding: 16px 40px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  color: var(--white);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Map Section */
.map-section {
  background: var(--white);
  padding: 0;
  position: relative;
}

.map-container {
  width: 100%;
  height: 500px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 1.125rem;
  font-weight: 500;
}

.map-placeholder i {
  font-size: 4rem;
  color: var(--primary-blue);
  margin-bottom: 24px;
}

.map-button {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.map-button:hover {
  background: var(--dark-blue);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Quick Contact Bar */
.quick-contact-bar {
  background: var(--gray-900);
  color: var(--white);
  padding: 24px 0;
  position: relative;
}

.quick-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 12px 20px;
  border-radius: var(--border-radius);
}

.quick-contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-blue);
  text-decoration: none;
}

.quick-contact-item i {
  font-size: 1.25rem;
  color: var(--secondary-blue);
}

/* Footer */
.footer {
  background: var(--gray-900);
  border-top: 1px solid var(--gray-800);
  padding: 60px 0 30px;
  color: var(--white);
}

.footer-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-text {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

/* Social Media Links */
.social-links {
  display: flex;

  gap: 24px;
  margin: 32px 0;
}

.social-link {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Delays */
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 80px;
  }

  .section {
    padding: 80px 0;
  }

  .contact-card {
    margin-bottom: 32px;
    padding: 32px 24px;
  }

  .form-container {
    padding: 40px 24px;
  }

  .quick-contact-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .contact-info {
    font-size: 1rem;
    word-break: break-word;
  }
}

/* Success Message */
.alert-success {
  background: var(--success-green);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: none;
}

.alert-success.show {
  display: block;
  animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading State */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
