/*
* Auda-eg.com Real Estate Landing Page Styles
* Arabic, Responsive, Modern, Animated Cards
*/

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #2c3e50; /* Dark Blue-Gray */
    --secondary-color: #1abc9c; /* Turquoise */
    --accent-color: #e74c3c; /* Red-Orange */
    --text-color: #34495e; /* Dark Gray */
    --light-text: #ecf0f1; /* Light Gray */
    --bg-color: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --font-family: 'Cairo', sans-serif; /* Arabic-friendly font */
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl; /* Right-to-left for Arabic */
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--body-font);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

section {
    padding: 80px 0;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    padding: 15px 0;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.logo img {
    height: 45px;
    margin-left: 10px; /* RTL: margin-left */
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-right: 30px; /* RTL: margin-right */
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0; /* RTL: right */
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== SLIDER ===== */
.slider-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 0; /* Remove section padding */
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.6); /* Dark overlay */
}

.slide-content {
    text-align: center;
    color: var(--light-text);
    max-width: 700px;
    padding: 0 20px;
    z-index: 2;
    animation: slideContentAppear 1s ease-out 0.5s forwards;
    opacity: 0;
}

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

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--light-text);
    color: var(--light-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 10px;
    font-size: 1.2rem;
}

.slider-controls button:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* ===== SEARCH SECTION ===== */
.search-section {
    background-color: var(--light-bg);
}

.search-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

#search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: flex-end;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group select,
.form-group input[type="text"] {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}

#search-form .btn {
    grid-column: 1 / -1; /* Span full width on smaller screens if needed */
    justify-self: center; /* Center button if it doesn't span full */
    padding: 12px 40px;
    margin-top: 10px;
}

/* ===== PROPERTIES SECTION & CARDS ===== */
.properties-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.property-card-placeholder {
    text-align: center;
    padding: 50px;
    color: #777;
}

.property-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden; /* Important for child elements like ::before if it has rounded corners */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: cardLoadInAnimation 0.6s ease-out 0.2s forwards;
    position: relative; /* For ::before pseudo-element positioning */
}

@keyframes cardLoadInAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay for hover fade-in effect */
.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 188, 156, 0.2); /* Semi-transparent secondary color overlay */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1; /* Above image, below content */
    pointer-events: none; /* Allow clicks to pass through to the card itself */
}

.property-card:hover::before {
    opacity: 1;
}

.property-card:hover {
    transform: translateY(-10px) scale(1.04); /* Enhanced hover effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 10px 15px rgba(0, 0, 0, 0.18); /* Deeper shadow */
}

.property-card .card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative; /* Ensure image is part of the flow for z-index */
    z-index: 0; /* Behind the ::before overlay if it were to cover image directly */
}

.property-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.property-card:hover .card-image img {
    transform: scale(1.12); /* Slightly more zoom */
}

.property-card .card-content {
    padding: 20px;
    position: relative; /* To stack above ::before overlay */
    z-index: 2;
}

.property-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.property-card .card-location,
.property-card .card-price,
.property-card .card-details {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.property-card .card-price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.property-card .card-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    position: absolute;
    top: 15px;
    left: 15px; /* RTL: left */
    z-index: 3; /* Ensure tag is on top of everything */
}

/* Additional animation for card elements on hover - subtle slide up for text */
.property-card:hover .card-title,
.property-card:hover .card-location,
.property-card:hover .card-price,
.property-card:hover .card-details {
    transform: translateY(-2px);
    transition: transform 0.3s ease-out;
}

/* ===== ABOUT & CONTACT SECTIONS (Basic Styling) ===== */
.about-section, .contact-section {
    background-color: var(--light-bg);
}

.about-section h2, .contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-section p, .contact-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ===== CONTACT SECTION STYLES ===== */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: var(--box-shadow);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.1);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(26, 60, 110, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.info-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.info-content h4 {
    margin-bottom: 5px;
}

.info-content p {
    color: var(--body-font);
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(26, 60, 110, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    margin-right: 10px;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== FOOTER STYLES ===== */
#footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding-top: 80px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    margin-top: 20px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    margin: auto;

}

.copyright {
    color: #ffffff;
    font-size: 0.9rem;
    margin: auto;

}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}
