/* ---
  Advokat Ivanov Redesign - Custom Theme
  This file completely overrides Bootstrap's default visual styles.
--- */

/* 1. Typography & Font Import */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

/* 2. Root Variables: Color Palette, Gradients, Fonts */
:root {
  /* Typography */
  --font-primary: 'Manrope', sans-serif;

  /* Dark Theme Palette - Updated to deep purple-blue */
  --dark-bg: #0f0e2e;
  --dark-surface: #070622;
  --text-light: #ffffff;
  --text-muted-dark: #c6c5e7;

  /* Vibrant Gradients - Brighter colors */
  --gradient-primary: linear-gradient(90deg, #9333ea 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(90deg, #ff4b1f 0%, #ff9068 100%);
  --gradient-text: linear-gradient(90deg, #8e44ad, #e91e63, #00bcd4);

  /* Bootstrap Variable Overrides */
  --bs-body-font-family: var(--font-primary);
  --bs-body-bg: var(--dark-bg);
  --bs-body-color: var(--text-light);
  --bs-light: var(--dark-surface);
  --bs-light-rgb: 26, 24, 80;
  --bs-dark: #000;
  --bs-dark-rgb: 0, 0, 0;
  --bs-primary: #9333ea;
  --bs-primary-rgb: 147, 51, 234;
}

section {
  width: 100% !important;
  overflow-x: hidden;
}

/* Keyframe for animated gradient shift */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* 3. Global Styles & Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  padding-top: 70px;
  /* Offset for fixed navbar */
  overflow-x: hidden;
  /* Prevent horizontal scroll from animations */
  width: 100%;
  max-width: 100%;
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 1.125rem;
  /* Increased from default 1rem to 1.125rem (18px) */
  line-height: 1.7;
  /* Increased line height for better readability */
  letter-spacing: 0.1px;
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(147, 51, 234, 0.2);
  border-top: 4px solid #9333ea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: 0.1px;
}

.display-4 {
  font-size: 3.5rem;
  /* Increased from default */
  letter-spacing: 0.1px;
}

.display-5 {
  font-weight: 900;
  margin-bottom: 1.5rem;
  font-size: 2.75rem;
  /* Increased from default */
  letter-spacing: 0.1px;
}

.lead {
  font-weight: 600;
  color: #ffffff;
  font-size: 1.375rem;
  /* Increased from default 1.25rem */
  letter-spacing: 0.1px;
}

.text-muted {
  color: var(--text-muted-dark) !important;
  font-size: 1.125rem;
  /* Ensure consistent sizing */
  letter-spacing: 0.1px;
}

a {
  color: #ce5aff;
  text-decoration: none;
  transition: color 0.15s ease-out;
  letter-spacing: 0.1px;
}

a:hover {
  color: #6298ff;
}

/* Prevent overflow from containers and rows */
.container,
.container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

.row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.row>* {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* Ensure all images and media stay within bounds */
img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  max-width: 100%;
  display: block;
}

/* Ensure sections don't overflow */
section,
main,
header,
footer {
  max-width: 100%;
  overflow-x: hidden;
}

/* Remove vertical scroll inside inner sections/components; allow only page-level scrolling */
section>.contact-section,
section>.container {
  min-height: fit-content;
  overflow-y: hidden !important;
  overflow-x: hidden;
}

/* Gradient Text Utility */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* 4. Component Redesign */

/* --- Fancy Button --- */

.btn {
  transform-origin: none !important;
}

.btn-primary {
  all: unset;
  display: inline-block;
  padding: 14px 35px;
  margin: 1em 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--gradient-primary);
  background-size: 200% 100%;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.1px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.25rem;
}

/* --- Secondary/Outline Button --- */
.btn-secondary,
.btn-outline-light {
  all: unset;
  display: inline-block;
  padding: 14px 35px;
  margin: 1em 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1850;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 1);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.1px;
  box-sizing: border-box;
}

.btn-secondary svg,
.btn-outline-light svg {
  stroke: #1a1850;
}

.btn-secondary.btn-lg,
.btn-outline-light.btn-lg {
  padding: 16px 40px;
  font-size: 1.25rem;
}

/* --- Unified Action Buttons --- */
.action-buttons-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.btn.action-button,
.action-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  font-size: 18px !important;
  /* desktop & tablet */
  line-height: 26px !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  min-height: 48px !important;
  flex: 0 0 auto;
  /* shrink to content on tablet & desktop */
  min-width: 200px;
  /* consistent visual width without stretching full row */
  text-align: center;
  letter-spacing: 0.2px;
  white-space: nowrap;
  margin-top: 1em;
}

.cookie-banner .btn-outline-secondary,.cookie-banner .btn-outline-primary{
  margin: 1em 0;
  max-height: fit-content !important;
  height: 55px;
}

/* Tablet & desktop: keep natural width, center group */
@media (min-width: 576px) {
  .action-buttons-group {
    justify-content: center;
  }
}

.action-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Variant overrides */
.btn-primary.action-button {
  background: var(--gradient-primary);
  color: #fff;
  max-height: fit-content !important;
  margin-top: 1em;
}

.btn-outline-secondary.action-button,
.btn-outline-light.action-button {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1850;
  border: 2px solid #ffffff;
  margin-top: 1em;
}

/* Mobile adjustments */
@media (max-width: 575px) {
  .action-buttons-group {
    gap: 10px;
  }

  .action-button {
    flex: 1 1 100%;
    font-size: 17px !important;
    line-height: 24px !important;
  }
}

/* --- Navbar --- */
#main-nav {
  background-color: var(--dark-surface) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: background-color 0.15s ease-out;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.75rem;
  /* Increased from 1.5rem */
  letter-spacing: 0.1px;
}

/* Navbar toggler custom icon */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.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%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: transform 0.15s ease-out;
}

/* Change to X icon when navbar is expanded */
.navbar-toggler[aria-expanded="true"] .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%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e");
  transform: rotate(90deg);
}

.nav-link {
  font-weight: 600;
  transition: color 0.15s ease-out;
  color: var(--text-muted-dark);
  font-size: 1.125rem;
  /* Increased from default */
  letter-spacing: 0.1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-light) !important;
}

/* Active nav link when scrolled to section (Bootstrap scrollspy) */
.navbar-nav .nav-link.active,
.navbar-nav .show>.nav-link {
  color: var(--text-light) !important;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 14, 46, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  z-index: 1100;
  padding: 20px 0;
  font-size: 14px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  display: none;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-banner #cookie-decline,
.cookie-banner #cookie-accept {
  font-size: 16px;
  transition: none !important;
  animation: none !important;
}

.cookie-banner .btn.btn-outline-secondary.btn-sm {
  background: #ffffff;
  color: #1a1850;
  border: 2px solid #ffffff;
}

.cookie-banner .btn.btn-outline-secondary.btn-sm:hover {
  background: #f5f5f5;
  transform: none !important;
}

.cookie-banner .btn.btn-primary.btn-sm {
  background: var(--gradient-primary);
  border: none;
  transition: none !important;
  animation: none !important;
}

.cookie-banner .btn.btn-primary.btn-sm:hover {
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.5);
  animation: none !important;
  transform: none !important;
}

@media (max-width: 575px) {
  .cookie-banner .container {
    padding: 0 1rem;
  }

  .cookie-banner {
    font-size: 13px;
  }
}

/* --- Hero Section --- */
.hero-section {
  min-height: 90vh;
  background: linear-gradient(rgba(15, 14, 46, 0.7), rgba(15, 14, 46, 0.7)), url('../images/hero-background.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  animation: gradient-shift 8s ease-out infinite;
}

.hero-section .lead {
  color: #ffffff;
  font-weight: 600;
}

/* Reusable page hero (service pages) */
.page-hero {
  min-height: 50vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.8) 0%, rgba(59, 130, 246, 0.8) 100%);
  z-index: 1;
}

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

.page-hero h1 {
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Service Detail Content Styling */
.service-detail-content {
  background: rgba(26, 24, 80, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.service-detail-content h1 {
  color: var(--text-light);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  display: none;
  /* Hide duplicate h1 */
}

.service-detail-content h3 {
  color: var(--text-light);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-detail-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.service-detail-content p {
  color: var(--text-muted-dark);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-detail-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.service-detail-content ul li {
  color: var(--text-muted-dark);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.service-detail-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #9333ea;
  font-weight: 700;
  font-size: 1.25rem;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(59, 130, 246, 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Service Page Responsive */
@media (max-width: 991px) {
  .page-hero {
    min-height: 40vh;
    padding: 6rem 0 3rem;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  .service-detail-content {
    padding: 2rem;
    margin-top: -2rem;
    border-radius: 20px;
  }

  .service-detail-content h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .page-hero {
    min-height: 35vh;
    padding: 5rem 0 2rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .service-detail-content {
    padding: 1.5rem;
    margin-top: -1.5rem;
  }
}

#about {
  background-color: var(--dark-surface);
}

/* Add overlay to office image in About section */
#about img {
  position: relative;
}

#about .col-lg-6:has(img)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 14, 46, 0.15), rgba(15, 14, 46, 0.15));
  pointer-events: none;
  border-radius: 0.375rem;
}

#about .col-lg-6 {
  position: relative;
}

/* --- Cards --- */
.card {
  background-color: var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

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

.card-title {
  font-weight: 700;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1px;
}

.card-text {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
  letter-spacing: 0.1px;
}

.card-img-top {
  opacity: 0.8;
  transition: opacity 0.15s ease;
  width: 100%;
  height: 220px !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Wrapper for card images to allow overlay */
.card picture {
  position: relative;
  display: block;
  width: 100%;
  height: 220px !important;
  overflow: hidden;
}

/* Add overlay to all card images */
.card picture::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 14, 46, 0.6), rgba(15, 14, 46, 0.6));
  transition: background 0.15s ease-out;
  pointer-events: none;
}

.card:hover .card-img-top {
  opacity: 1;
}

.card:hover picture::after {
  background: linear-gradient(rgba(15, 14, 46, 0.3), rgba(15, 14, 46, 0.3));
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
}

/* --- Services Section --- */
#services .card {
  /* keep existing dark background, shadow, etc. */
  display: flex;
  flex-direction: column;
  height: 100%;
  /* with .h-100 on card container ensures equal heights */
  min-height: 100%;
}

/* Fix image dimensions so all images are same size and crop consistently */
#services .card-img-top {
  width: 100%;
  height: 220px !important;
  /* choose desired uniform height */
  object-fit: cover;
  object-position: center;
  display: block;
}

#services .card picture {
  height: 220px !important;
}

/* Button inside card should look like a button */
#services .card-body .btn {
  pointer-events: none;
  /* Prevents button from interfering with card click */
  display: inline-block;
}

/* Center-align all text content on service detail pages */
.service-detail-content {
  text-align: center;
}

.service-detail-content h3 {
  margin-top: 2rem;
}

/* Make card body stretch to fill remaining space and align contents */
#services .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
}

/* Normalize titles and text inside service cards */
#services .card-title {
  font-size: 1.25rem;
  /* Increased from 1.05rem */
  line-height: 1.3;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
}

#services .card-text {
  font-size: 1.0625rem;
  /* Increased from 0.95rem */
  line-height: 1.6;
  color: var(--text-muted-dark);
  margin-bottom: 1rem;
}

/* Optional: consistent gaps inside the grid */
#services .row>.col {
  display: flex;
  align-items: stretch;
}

/* Outline Button for "Back to Services" */
.btn-outline-secondary {
  all: unset;
  display: inline-block;
  padding: 14px 35px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1850;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 1);
  border-radius: 50px;
  transition: all 0.15s ease-out;
  letter-spacing: 0.1px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.btn-outline-secondary:focus {
  background: rgba(255, 255, 255, 1);
  color: #1a1850;
}

.btn-outline-secondary svg {
  stroke: #1a1850;
}

/* --- Forms --- */
.form-control {
  background-color: var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 0.85rem 1.2rem;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease-out, box-shadow 0.3s ease-out;
  font-size: 1.0625rem;
  /* Increased font size in forms */
  letter-spacing: 0.1px;
}

.form-control:focus {
  background-color: var(--dark-surface);
  color: var(--text-light);
  border-color: #8e44ad;
  box-shadow: 0 0 0 0.25rem rgba(142, 68, 173, 0.2);
}

.form-control::placeholder {
  /* Make placeholders high-contrast and fully opaque on the dark background */
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
  /* ensure consistency across browsers */
}

/* Vendor-prefixed placeholder selectors for broader browser support */
.form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.form-control::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  /* Increased label font size */
  color: var(--text-light);
  letter-spacing: 0.1px;
}

/* --- Footer --- */
footer.bg-dark {
  background-color: #04031a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  /* Reduced from default 1.125rem */
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  letter-spacing: 0.1px;
}

footer.bg-dark p {
  font-size: 0.9rem;
}

footer.bg-dark a {
  font-size: 0.9rem;
}

/* --- Section Padding --- */
.py-lg-6 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
  }
}

/* --- Responsive Typography --- */
/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  body {
    font-size: 1rem;
    /* Reduced from 1.125rem */
  }

  .display-4 {
    font-size: 2.75rem;
    /* Reduced from 3.5rem */
  }

  .display-5 {
    font-size: 2.25rem;
    /* Reduced from 2.75rem */
  }

  .lead {
    font-size: 1.2rem;
    /* Reduced from 1.375rem */
  }

  .text-muted {
    font-size: 1rem;
    /* Reduced from 1.125rem */
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
    /* Reduced from 1.25rem */
  }

  .btn-primary {
    font-size: 0.95rem;
    /* Reduced from 1rem */
  }

  .btn-outline-secondary {
    font-size: 1.05rem;
    /* Reduced from 1.2rem */
    padding: 12px 28px;
  }

  #services .card-title {
    font-size: 1.15rem;
    /* Reduced from 1.25rem */
  }

  #services .card-text {
    font-size: 1rem;
    /* Reduced from 1.0625rem */
  }

  .navbar-brand {
    font-size: 1.5rem;
    /* Reduced from 1.75rem */
  }

  .nav-link {
    font-size: 1.05rem;
    /* Reduced from 1.125rem */
  }

  .form-control,
  .form-label {
    font-size: 1rem;
    /* Reduced from 1.0625rem */
  }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
  body {
    font-size: 0.95rem;
    /* Further reduced */
  }

  .display-4 {
    font-size: 2rem;
    /* Further reduced */
  }

  .display-5 {
    font-size: 1.75rem;
    /* Further reduced */
  }

  .lead {
    font-size: 1.05rem;
    /* Further reduced */
  }

  .text-muted {
    font-size: 0.95rem;
    /* Further reduced */
  }

  .btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
    /* Further reduced */
  }

  .btn-primary {
    font-size: 0.9rem;
    /* Further reduced */
    padding: 12px 28px;
  }

  .btn-outline-secondary {
    font-size: 0.95rem;
    /* Further reduced */
    padding: 10px 24px;
  }

  #services .card-title {
    font-size: 1.05rem;
    /* Further reduced */
  }

  #services .card-text {
    font-size: 0.95rem;
    /* Further reduced */
  }

  .navbar-brand {
    font-size: 1.35rem;
    /* Further reduced */
  }

  .nav-link {
    font-size: 1rem;
    /* Further reduced */
  }

  .form-control,
  .form-label {
    font-size: 0.95rem;
    /* Further reduced */
  }

  footer.bg-dark,
  footer.bg-dark p,
  footer.bg-dark a {
    font-size: 0.85rem;
    /* Further reduced */
  }
}

/* --- Background Light Override --- */
.bg-light {
  background-color: var(--dark-surface) !important;
}

/* Services cards: show pointer cursor on hover/click */
#services .card {
  cursor: pointer;
}

/* Back-to-top button removed per request */

/* --- Call Now Button (fixed bottom-right) --- */
.call-now-btn {
  /* Positioning only — visual styling comes from .btn-primary */
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 50px;
  /* match .btn-primary rounded pill */
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  /* let .btn-primary control padding */
}

.rounded-circle {
  padding: 5px !important;
}

.call-now-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  stroke: currentColor;
  fill: none;
}

.call-now-btn:hover,
.call-now-btn:focus {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  opacity: 0.98;
}

/* Slightly smaller on very small screens to avoid covering content */
@media (max-width: 420px) {
  .call-now-btn {
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}

/* --- Ultra Modern Contact Section --- */

/* Contact Section Background with animated gradient */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
  animation: contact-glow 4s ease-in-out infinite alternate;
}

@keyframes contact-glow {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Modern Contact Cards with glassmorphism */
.contact-card {
  background: rgba(26, 24, 80, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-12px);
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 20px 60px rgba(147, 51, 234, 0.3),
    0 0 0 1px rgba(147, 51, 234, 0.2);
}

.contact-card:hover::before {
  opacity: 1;
}

/* Animated Icon Wrapper */
.contact-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #9333ea 0%, #3b82f6 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
}

.contact-card:hover .contact-icon-wrapper {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.5);
}

.contact-icon {
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Contact Card Typography */
.contact-card h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.contact-card p {
  font-size: 1.0625rem;
  color: var(--text-muted-dark);
  margin: 0;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

/* Contact Links with hover effect */
.contact-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
  position: relative;
  display: inline-block;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9333ea 0%, #3b82f6 100%);
  transition: width 0.15s ease;
}

.contact-link:hover {
  color: #ce5aff;
  transform: translateX(4px);
}

.contact-link:hover::after {
  width: 100%;
}

/* Modern Contact Form Wrapper */
.contact-form-wrapper {
  background: rgba(26, 24, 80, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, transparent 70%);
  animation: form-pulse 3s ease-in-out infinite;
}

@keyframes form-pulse {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(10%, 10%) scale(1.1);
  }
}

.contact-form-wrapper h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

/* Modern Form Controls */
.form-control-modern {
  background: rgba(7, 6, 34, 0.6) !important;
  border: 2px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-light) !important;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  transition: all 0.15s ease;
  font-size: 1.0625rem;
  position: relative;
  z-index: 1;
}

.form-control-modern:focus {
  background: rgba(7, 6, 34, 0.8) !important;
  border-color: #9333ea !important;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.15),
    0 8px 24px rgba(147, 51, 234, 0.2) !important;
  transform: translateY(-2px);
}

.form-control-modern::placeholder {
  color: rgba(198, 197, 231, 0.6);
}

/* Enhanced Submit Button */
.contact-submit-btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact-submit-btn svg {
  transition: transform 0.15s ease;
}

.contact-submit-btn:hover svg {
  transform: translate(4px, -4px);
}

.contact-submit-btn::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.25s ease;
}

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

/* --- Scroll Indicator (Service Pages) --- */
.scroll-indicator {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(26, 24, 80, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1400;
  animation: indicator-bounce 0.7s ease-in-out infinite;
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #ffffff;
}

.scroll-indicator svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

@keyframes indicator-bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -14px);
  }
}

.scroll-indicator.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.7);
}

@media (max-width: 575px) {
  .scroll-indicator {
    bottom: 70px;
    /* keep above call button & cookie banner */
    width: 48px;
    height: 48px;
  }

  .scroll-indicator svg {
    width: 22px;
    height: 22px;
  }
}


.action-buttons-group.aos-init.aos-animate,
.btn-outline-secondary.action-button,
.btn-outline-light.action-button {
  min-width: 240px !important;
  min-height: 72px !important;
  max-height: fit-content !important;
}

.cookie-banner .btn.btn-outline-secondary.btn-sm,
.cookie-banner .btn.btn-primary.btn-sm {
  max-height: fit-content !important;
}


/* Responsive Contact Section */
@media (max-width: 991px) {
  .contact-card {
    padding: 2rem 1.5rem;
    min-height: 200px;
  }

  .contact-icon-wrapper {
    width: 70px;
    height: 70px;
  }

  .contact-icon {
    width: 28px;
    height: 28px;
  }

  .contact-form-wrapper {
    padding: 2.5rem 2rem;
  }

  .contact-form-wrapper h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .contact-card {
    padding: 1.75rem 1.25rem;
    min-height: 180px;
  }

  .contact-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .form-control-modern {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }

  .contact-submit-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}