/* Custom CSS for Trident Property Management */

:root {
    --primary-blue: #0056b3;
    --secondary-blue: #007bff;
    --accent-red: #dc3545;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 123, 255, 0.7)),
                url('https://pixabay.com/get/g34a0e498d0022e0e728ca4e6bead40c93afb78787749ffae819cf05b2e40d9a2166d1c0281bb4164fb3a8f16d478590fa371890bee3888e5f8b924826d181548_1280.jpg') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red) 0%, #e74c3c 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Trident Logo */
.trident-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.navbar-brand:hover .trident-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.6));
}

/* City Showcase Cards */
.city-showcase-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 300px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.city-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.city-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.city-showcase-card:hover .city-image {
    transform: scale(1.05);
}

.city-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.city-showcase-card:hover .city-overlay {
    transform: translateY(0);
}

/* City Header Styles */
.city-header {
    opacity: 0.6;
    transform: scale(0.95);
}

.city-header.active-city {
    opacity: 1;
    transform: scale(1);
    color: var(--primary-blue) !important;
}

.city-header:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* City Box Transitions */
.city-box {
    transition: all 0.5s ease;
}

.city-box.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.city-box.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Property Tabs */
.nav-pills .nav-link {
    color: var(--primary-blue);
    font-weight: 600;
    padding: 12px 24px;
    margin: 0 8px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

/* About Section Styling */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
}

/* Contact Form */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        margin-top: -70px;
        padding-top: 140px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .city-showcase-card {
        height: 250px;
    }
    
    .nav-pills .nav-link {
        margin: 4px 0;
        display: block;
    }
    
    .trident-logo {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 100vh;
        margin-top: -70px;
        padding-top: 150px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .city-showcase-card {
        height: 200px;
    }
    
    .trident-logo {
        width: 24px;
        height: 24px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Fix email layout on mobile */
    .card-body p {
        font-size: 0.85rem;
        word-break: break-all;
    }
    
    .card-body a {
        word-break: break-all;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Utility Classes */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-danger {
    color: var(--accent-red) !important;
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004085 100%) !important;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Card Enhancements */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

/* Icon Styling */
.fa, .fas, .far, .fab {
    color: inherit;
}

/* Alert Customization */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}
