/* Additional mobile optimizations */
@media (max-width: 480px) {
    /* Adjust hero text for very small screens */
    .slide-item h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .slide-item p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Make buttons more compact */
    .slide-item .animate-fadeIn.animation-delay-600 a {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Adjust vertical positioning */
    .slide-item .container {
        padding-bottom: 3rem;
    }
}/* Custom CSS for Response Property Services */

:root {
    --primary: #161c53;
    --primary-dark: #0e1236;
    --primary-light: #2a3077;
    --secondary: #12500c;
    --secondary-dark: #0b3006;
    --secondary-light: #1a7011;
}

/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1a202c;
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-secondary-dark {
    background-color: var(--secondary-dark);
}

.bg-secondary-light {
    background-color: var(--secondary-light);
}

/* Animations */
.animate-fadeIn {
    animation: fadeIn 1s ease-in-out;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preloader */
#preloader {
    transition: opacity 0.5s ease-out;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
.nav-link {
    position: relative;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    background-color: #2a3077; /* Fallback color while image loads */
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Services Section */
.service-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* Property Cards */
.property-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #e2e8f0; /* Placeholder background color */
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.property-content {
    padding: 1.5rem;
}

/* Testimonial Cards */
.testimonial-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

/* CTA Section Text */
.py-20.bg-primary h2,
.py-20.bg-primary p {
    color: white !important;
}

/* Newsletter Section Text */
.py-16.bg-primary h2,
.py-16.bg-primary p {
    color: white !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 30;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Form Elements */
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 28, 83, 0.2);
    outline: none;
}

/* Footer Styles */
.bg-gray-900 {
    color: white !important;
}

.bg-gray-900 h3 {
    color: white !important;
}

.bg-gray-900 p, 
.bg-gray-900 ul li a, 
.bg-gray-900 ul li span {
    color: #e2e8f0 !important;
}

/* Target all links in footer more directly */
footer a.text-primary {
    color: white !important;
    font-weight: 500;
}

footer a.text-primary:hover {
    color: #cbd5e0 !important;
}

/* Target all text in footer */
footer .text-sm {
    color: #cbd5e0 !important;
}

/* Make sure all footer links are visible */
footer a {
    color: #a0aec0 !important;
}

footer a:hover {
    color: white !important;
}

/* Override specifically for the Terra Labz link */
footer a[href*="terralabz"] {
    color: white !important;
    font-weight: 500;
}

/* Footer Links */
.hover\:text-primary:hover {
    color: var(--primary) !important;
}

.bg-gray-900 a {
    color: #a0aec0 !important;
}

.bg-gray-900 a:hover {
    color: var(--primary-light) !important;
}

/* Footer Icons */
.bg-gray-900 .fas {
    color: white !important;
}

.bg-gray-900 .text-gray-500 {
    color: #cbd5e0 !important;
}

.bg-gray-900 .text-primary {
    color: var(--primary-light) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .property-image {
        height: 200px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Media Queries for Better Mobile Experience */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .service-card, .property-card, .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Stack the hero buttons vertically on small screens */
    .slide-item .animate-fadeIn.animation-delay-600 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Make each button full width */
    .slide-item .animate-fadeIn.animation-delay-600 a {
        width: 100%;
        margin: 0;
        text-align: center;
        white-space: nowrap;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Mobile hero buttons fix */
@media (max-width: 640px) {
    /* Target hero buttons container */
    .slide-item .animate-fadeIn.animation-delay-600 {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    /* Target each button individually */
    .slide-item .animate-fadeIn.animation-delay-600 a {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
        margin-right: 0 !important;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        text-align: center;
    }
}

/* Specific fix for very small screens */
@media (max-width: 360px) {
    .slide-item .animate-fadeIn.animation-delay-600 {
        max-width: 220px;
    }
    
    .slide-item .animate-fadeIn.animation-delay-600 a {
        font-size: 0.875rem;
        padding: 0.625rem 0.75rem;
    }
}

/* Mobile Hero Button Fix - Add this at the END of your CSS file */

/* Mobile-first approach for hero buttons */
@media screen and (max-width: 767px) {
    /* Target the container */
    .slide-item .container .animate-fadeIn.animation-delay-600 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 250px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Target all anchor buttons in hero */
    .slide-item .container .animate-fadeIn.animation-delay-600 a {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 0 12px 0 !important; /* Clear all margins, add bottom margin */
        text-align: center !important;
    }
    
    /* Target the first button specifically to remove right margin */
    .slide-item .container .animate-fadeIn.animation-delay-600 a:first-child {
        margin-right: 0 !important;
    }
    
    /* Target last button to remove bottom margin */
    .slide-item .container .animate-fadeIn.animation-delay-600 a:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Ensure font sizes are reasonable on mobile */
    .slide-item .container .animate-fadeIn.animation-delay-600 a {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
    }
}