/* Custom CSS for A1 Property Solutions */

:root {
    --primary-color: #dc2626; /* Bright Red */
    --text-color: #374151; /* Dark Grey */
    --bg-color: #ffffff; /* White */
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 300;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    margin-left: -30px; /* Move logo and text much further to the left */
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.navbar-logo {
    height: 80px; /* Reduced from 90px to 80px */
    width: auto;
    max-width: 400px; /* Reduced from 450px to 400px */
    object-fit: contain;
}

.brand-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem; /* Adjusted from 1.5rem to 1.4rem */
    white-space: nowrap;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 80%;
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #6b7280;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

/* About Section */
.about-image-container {
    position: relative;
    margin-bottom: 30px;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-3px);
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

/* Services Section */
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Gallery Section - Slideshow */
.gallery-slideshow {
    max-width: 800px;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.slide {
    display: none;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
}

/* Error handling for broken images */
.slide-image[src=""] {
    display: none;
}

/* Remove broken CSS pseudo-elements that cause positioning issues */

.slide-image:hover {
    transform: scale(1.02);
}

/* Navigation arrows */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 14px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    border-radius: 4px;
    outline: none;
}

.prev-btn:focus, .next-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Dots indicators */
.dots-container {
    text-align: center;
    padding: 20px 0;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    outline: none;
}

.dot:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
}

/* Testimonials Section */
.testimonial-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 5px solid var(--primary-color);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.7;
    margin-bottom: 20px;
}

.blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-color);
}

.testimonial-author {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Section */
.contact-info {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background-color: #1f2937 !important;
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer p {
    color: #d1d5db;
    margin-bottom: 10px;
}

.footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 991px) {
    /* Tablet and mobile navigation fixes */
    .navbar-brand {
        margin-left: -15px; /* Less negative margin on smaller screens */
    }
    
    .navbar-logo {
        height: 45px; /* Smaller logo on tablets */
        max-width: 200px;
    }
    
    .brand-text {
        font-size: 1.2rem; /* Smaller text on tablets */
    }
}

@media (max-width: 768px) {
    /* Mobile navigation fixes */
    .navbar-brand {
        margin-left: 0; /* Reset margin on mobile */
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
    
    .navbar-logo {
        height: 50px; /* Increased from 40px to 50px for better visibility */
        max-width: 180px; /* Increased from 150px to 180px */
        flex-shrink: 0; /* Prevent logo from shrinking */
    }
    
    .brand-text {
        font-size: 1rem; /* Smaller text on mobile */
        white-space: nowrap !important;
        margin-left: 8px; /* Small gap between logo and text */
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 10px 15px !important;
        margin: 0 !important;
    }
    
    /* Other mobile styles */
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-image-container {
        margin-top: 40px;
        text-align: center;
    }
    
    .about-image-container {
        margin-bottom: 40px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .slide-image {
        height: 300px; /* Slightly smaller on mobile */
    }
    
    .prev-btn, .next-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    /* Very small mobile screens */
    .navbar-brand {
        margin-left: 0;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
    
    .navbar-logo {
        height: 45px; /* Increased from 35px to 45px for very small screens */
        max-width: 140px; /* Increased from 120px to 140px */
        flex-shrink: 0;
    }
    
    .brand-text {
        font-size: 0.9rem;
        line-height: 1;
        white-space: nowrap !important;
        margin-left: 6px;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-image-container {
        margin-top: 30px;
        order: -1; /* Show image before text on very small screens */
    }
    
    .about-image-container {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .slide-image {
        height: 250px; /* Smaller height on very small screens */
    }
    
    .prev-btn, .next-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .dot {
        height: 12px;
        width: 12px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
    
    /* Make navigation smaller on mobile */
    .nav-link {
        margin: 0 2px;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-brand {
        margin-left: -15px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .navbar-logo {
        height: 45px;
        max-width: 200px;
    }
}

/* Extra small screens - even smaller logo and text */
@media (max-width: 400px) {
    .navbar-logo {
        height: 35px;
        max-width: 150px;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        margin-left: -10px;
    }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* WhatsApp button styling - Keep for future use */
.btn-success {
    background-color: #25d366;
    border-color: #25d366;
}

.btn-success:hover {
    background-color: #20b858;
    border-color: #20b858;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* Error handling for unsupported CSS features */
@supports not (transform: translateY(-10px)) {
    .service-card:hover {
        opacity: 0.9;
        transition: opacity 0.3s ease;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-element {
        transform: none !important;
    }
}
