/* Three Space Realtors - Custom Styles */

body {
    font-family: 'Inter', sans-serif;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #198754;
    border-radius: 4px;
}

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

/* Navbar styling */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Button transitions */
.btn {
    transition: all 0.3s ease;
}

/* Form inputs focus */
.form-control:focus,
.form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Badge for purple status */
.bg-purple {
    background-color: #6f42c1 !important;
}

/* Image gallery hover effect */
.gallery-image {
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Sticky sidebar */
@media (min-width: 992px) {
    .sticky-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Hero section gradient overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(6, 95, 70, 0.95) 100%);
}

/* Feature icons */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Stats counter animation */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Testimonial cards */
.testimonial-card {
    border-left: 4px solid #198754;
}

/* Property card image */
.property-image {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hover-card:hover .property-image {
    transform: scale(1.1);
}

/* Filter bar */
.filter-bar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #198754;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .display-6 {
        font-size: 1.25rem;
    }
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Page transitions */
.page-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== OTP Verification Modal Styles ===== */

.verification-step {
    transition: all 0.3s ease;
}

/* OTP Input Group */
.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.2);
    outline: none;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Verification Icon Animation */
.verification-icon {
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Success Checkmark Animation */
.success-checkmark {
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Resend Button */
.resend-btn {
    color: #198754;
    text-decoration: none;
}

.resend-btn:hover {
    color: #157347;
    text-decoration: underline;
}

.resend-btn:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

/* Modal Styling */
#verificationModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#verificationModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
}

#verificationModal .form-control-lg {
    border-radius: 10px;
    padding: 12px 16px;
}

/* Project Card Overlay for Locked State */
.project-card-locked {
    position: relative;
}

.project-card-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

.lock-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    text-align: center;
}

/* Responsive OTP inputs */
@media (max-width: 576px) {
    .otp-input {
        width: 40px;
        height: 45px;
        font-size: 1.2rem;
    }

    .otp-input-group {
        gap: 6px;
    }
}
