/* 
  Waycrest Solutions Pvt Ltd - Modern Design System 
*/

:root {
  --primary: #3d5a44;
  --primary-dark: #2a3d2e;
  --primary-light: #527a5d;
  --secondary: #5d4037;
  --accent: #c19137;
  --accent-hover: #a67c2e;
  --accent-light: #fdf5e6;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: "Outfit", sans-serif;
  scroll-behavior: smooth;
  background-color: #f8f9fa; /* neutral-50 */
  color: #262626; /* neutral-800 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Global Smooth Transitions */
*, *::before, *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

/* Glassmorphism Utilities */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.75); /* Darker for better contrast */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(193, 145, 55, 0.4);
}

/* Custom Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Section Header Utility */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, var(--primary), var(--accent));
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
    line-height: 1;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #737373; /* neutral-500 */
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

/* Logo Styling - Standard CSS Fix */
.site-logo {
  height: 3rem; /* 48px */
  width: 3rem; /* 48px */
  border-radius: 9999px;
  border-width: 2px;
  border-color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 500ms;
  object-fit: cover;
  background-color: #ffffff;
}

/* Hero Overlay */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.5) 0%,
    rgba(30, 58, 138, 0.3) 50%,
    rgba(2, 6, 23, 0.8) 100%
  );
}

/* Footer Links */
.footer-link {
  color: #a3a3a3; /* neutral-400 */
  transition: all 0.3s ease-in-out;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: var(--accent);
  transform: translateX(0.25rem);
}

/* Horizontal Scroll Animation */
@keyframes scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.animate-scroll {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

/* Mobile-specific fixes for horizontal scroll */
@media (max-width: 768px) {
  .animate-scroll {
    overflow-x: hidden;
    width: 200%;
    animation: scroll-mobile 6s linear infinite;
  }
  
  .animate-scroll .flex {
    overflow-x: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .animate-scroll .flex::-webkit-scrollbar {
    display: none;
  }
  
  /* Ensure cards don't overflow on mobile */
  .category-card-standard {
    min-width: 200px;
    max-width: 250px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

/* Mobile-specific scroll animation */
@keyframes scroll-mobile {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.category-card {
  flex-shrink: 0;
  width: 16rem;
  padding: 1.5rem;
  margin-left: 1rem;
  margin-right: 1rem;
  background-color: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #f5f5f5;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* For Standard CSS compatibility if tailwind is not processing @apply */
.category-card-standard {
  flex-shrink: 0;
  width: 16rem;
  padding: 1.5rem;
  margin-left: 1rem;
  margin-right: 1rem;
  background-color: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #f5f5f5;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card-standard:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Footer Background Image Support */
.footer-with-bg {
  position: relative;
}

.footer-with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: grayscale(100%);
  pointer-events: none;
}

/* Gallery Bento Grid Utilities */
.bento-grid {
  display: grid;
  gap: 1.5rem;
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.gallery-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  transition: all 0.5s ease;
}

.gallery-item-content {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-image-wrapper:hover .gallery-item-content {
  transform: translateY(0);
  opacity: 1;
}

.gallery-image-wrapper img {
  transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-image-wrapper:hover img {
  transform: scale(1.1);
}
/* Button Components */
.btn-accent {
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(193, 145, 55, 0.3);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(193, 145, 55, 0.4);
  color: white;
}

.btn-outline {
  border: 2px solid white;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: white;
}

/* Specific button overrides for cases where Tailwind might be overridden */
.btn-accent.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
.btn-accent.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.btn-accent.text-sm { font-size: 0.875rem !important; }
