steake's picture
Fix the broken site elements such as nav bar etc
b1f5a5d verified
/* Custom styles for Khmer23 luxury real estate website */
/* Smooth scrolling */
html {
scroll-behavior: smooth;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
background: #475569;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #64748b;
}
/* Typography improvements */
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
font-feature-settings: 'kern' 1, 'liga' 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Loading animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* Animation classes */
.animate-fade-in {
animation: fadeIn 0.8s ease-out forwards;
}
.animate-slide-in {
animation: slideIn 0.6s ease-out forwards;
}
.animate-pulse-slow {
animation: pulse 3s ease-in-out infinite;
}
/* Premium hover effects */
.hover-lift {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
/* Glass morphism effects */
.glass {
background: rgba(30, 41, 59, 0.8);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(148, 163, 184, 0.1);
}
/* Gradient text effects */
.gradient-text {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Custom button styles */
.btn-luxury {
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.btn-luxury::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: left 0.5s ease;
}
.btn-luxury:hover::before {
left: 100%;
}
/* Image hover effects */
.image-hover-zoom {
overflow: hidden;
}
.image-hover-zoom img {
transition: transform 0.7s ease;
}
.image-hover-zoom:hover img {
transform: scale(1.1);
}
/* Activity feed animations */
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.activity-item {
animation: slideUp 0.4s ease-out;
}
/* Theme transition */
* {
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Luxury card styles */
.luxury-card {
background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(148, 163, 184, 0.1);
transition: all 0.3s ease;
}
.luxury-card:hover {
border-color: rgba(16, 185, 129, 0.3);
transform: translateY(-2px);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
/* Form input luxury styling */
.luxury-input {
background: rgba(30, 41, 59, 0.5);
border: 1px solid rgba(148, 163, 184, 0.2);
transition: all 0.3s ease;
}
.luxury-input:focus {
border-color: #10b981;
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
/* Navigation hover effects */
.nav-link {
position: relative;
transition: color 0.3s ease;
}
.nav-link::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 0;
height: 2px;
background: #10b981;
transition: width 0.3s ease;
}
.nav-link:hover::after {
width: 100%;
}
/* Custom selection color */
::selection {
background: #10b981;
color: #ffffff;
}
/* Premium badge styles */
.badge-luxury {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
border: 1px solid rgba(16, 185, 129, 0.3);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
/* Responsive typography */
@media (max-width: 640px) {
h1 {
font-size: 2.5rem;
line-height: 1.2;
}
h2 {
font-size: 2rem;
line-height: 1.3;
}
}
/* Print styles */
@media print {
body {
background: white;
color: black;
}
.no-print {
display: none;
}
}
/* Focus styles for keyboard navigation */
*:focus {
outline: 2px solid #10b981;
outline-offset: 2px;
}
button:focus, input:focus, select:focus, textarea:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
/* Navigation specific fixes */
body {
padding-top: 80px; /* Account for fixed navbar */
}
@media (max-width: 768px) {
body {
padding-top: 80px;
}
}
/* Ensure navbar is always visible */
custom-navbar {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
z-index: 1000 !important;
}
/* Fix any potential z-index conflicts */
.fixed.top-4.right-4.z-50 {
z-index: 60 !important;
}
.fixed.bottom-4.left-4.z-40 {
z-index: 30 !important;
}