/* Custom Styles for Samar Homes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #83203a; /* Dark Blue / New Red */
  --secondary-color: #D4AF37; /* Gold */
  --bg-color: #F8F9FA; /* Light Grey */
  --text-color: #333333;
}

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-color);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #F5F5DC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-hover:hover {
  animation: float 3s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color); 
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color); 
}

/* Sticky Header Transition */
#navbar {
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(131, 32, 58, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Image lightBox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Floating CTA button */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 50;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Tab System */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}
.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-btn {
  transition: all 0.3s;
}
.tab-btn.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  font-weight: 600;
  background-color: #f8fafc;
}

/* Hero Section Overlay */
.hero-overlay {
  background: linear-gradient(to right, rgba(131, 32, 58, 0.95) 0%, rgba(131, 32, 58, 0.5) 100%);
}

/* Animations that we trigger via JS */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.opacity-0 {
  opacity: 0;
}
.animate-fade-in-up {
  opacity: 1 !important;
  transform: translateY(0);
}
.animate-fade-in {
  opacity: 1 !important;
}

/* Initial state for upward fade */
.translate-y-8 {
  transform: translateY(2rem);
}
