/* Tailwind CSS Configuration & Custom Styles for Malhotra Property Dealer */

/* Custom CSS Variables for Brand Colors */
:root {
  --dark-blue: #011536;
  --light-bg: #FDFDFD;
  --accent: #ECBB52;
}

/* Tailwind CSS Configuration via @layer directive */
@layer base {

  /* Custom color palette configuration */
  :root {
    --color-dark-blue: #011536;
    --color-light-bg: #FDFDFD;
    --color-accent: #ECBB52;
  }
}

/* Custom Utility Classes */
@layer utilities {
  .bg-dark-blue {
    background-color: #011536 !important;
  }

  .text-dark-blue {
    color: #011536 !important;
  }

  .bg-light-bg {
    background-color: #FDFDFD !important;
  }

  .text-light-bg {
    color: #FDFDFD !important;
  }

  .bg-accent {
    background-color: #ECBB52 !important;
  }

  .text-accent {
    color: #ECBB52 !important;
  }

  .border-accent {
    border-color: #ECBB52 !important;
  }

  .focus-accent:focus {
    border-color: #ECBB52 !important;
    outline-color: #ECBB52 !important;
  }
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #333;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #011536;
  font-weight: 700;
}

p {
  line-height: 1.6;
  color: #666;
}

/* Buttons */
button {
  transition: all 0.3s ease;
  cursor: pointer;
}

button:hover {
  transform: translateY(-2px);
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Navbar Styles */
#navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Animation */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobileMenu.open {
  max-height: 500px;
}

/* Hero Section */
#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(1, 21, 54, 0.8) 0%, rgba(1, 21, 54, 0.6) 100%);
}

/* Property Cards */
.property-card {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Locality Cards */
.locality-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.locality-card img {
  transition: transform 0.4s ease;
}

.locality-card:hover img {
  transform: scale(1.1);
}

.property-status-dot {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse-dot 1.8s infinite;
}

.property-status-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 50%;
  animation: ripple-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes ripple-dot {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Gallery */
.gallery-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

/* Lightbox Modal */
#lightbox {
  animation: fadeIn 0.3s ease;
}

#lightbox img {
  animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Review Cards */
.review-card {
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(236, 187, 82, 0.1);
}

/* Form Styles */
input,
textarea {
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #ECBB52 !important;
  box-shadow: 0 0 0 3px rgba(236, 187, 82, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #999;
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(1, 21, 54, 0.1);
}

.service-card .icon {
  transition: all 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

/* Smooth Transitions */
body * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid #ECBB52;
  outline-offset: 2px;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ECBB52;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #011536;
}

/* Print Styles */
@media print {

  #navbar,
  #topBar,
  .contact-form {
    display: none;
  }
}

/* Animation for section entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s ease;
}

/* Utility Classes */
.shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* WA and Call Buttons */
.quick_contact a {
  position: fixed;
  width: 40px;
  height: 40px;
  left: 18px;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 20px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.5s ease;
}

.qwhtsapp {
  bottom: 70px;
  background-color: #25d366;
}

.qcall {
  bottom: 120px;
  background-color: #2196f3;
}

.quick_contact_icon {
  margin-top: 10px;
}

.quick_contact a:hover {
  transform: scale(1.1);
}

/* WA and Call Buttons */

.locality-card-overlay {
  background: linear-gradient(45deg, #001435, transparent);
}