/* Custom styles for Maria Damota Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #FF6B6B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E85A5A;
}

/* Grid pattern background */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(255,107,107,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,107,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(45,45,45,0.7) 50%, rgba(26,26,26,0.5) 100%);
}

/* Coral gradient */
.coral-gradient {
    background: linear-gradient(135deg, #FF6B6B 0%, #E85A5A 100%);
}

/* Charcoal gradient */
.charcoal-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Text shadow */
.text-shadow {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Card hover effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Navigation link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B6B;
    transition: width 0.3s ease;
}

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

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #E85A5A 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E85A5A 0%, #FF6B6B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,107,0.3);
}

/* Secondary button */
.btn-secondary {
    border: 2px solid #FF6B6B;
    color: #FF6B6B;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #FF6B6B;
    color: white;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile navigation links */
.mobile-nav-link {
    position: relative;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

/* Image hover zoom */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(180deg, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.7) 100%);
    }
}

/* Print styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .btn-primary,
    .btn-secondary {
        background: #1a1a1a !important;
        color: white !important;
        border: none !important;
    }
}
