* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #0066cc;
}

/* Hero */

/* Hero */
.hero {
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;      /* ← added: centers horizontally */
    text-align: center;
    color: white;
    position: relative;
}

/* .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
} */

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 90%;               /* ← prevents very long text from breaking layout */
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;           /* explicit – good to have */
    line-height: 1.1;             /* improves readability on smaller screens */
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;           /* make sure paragraph is also centered */

}

.btn {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #0052a3;
}

/* Sections */
section {
    padding: 80px 0;
}

.properties, .contact {
    background: #f9f9f9;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #222;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-10px);
}

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.property-info {
    padding: 1.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
    margin: 0.5rem 0;
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-content img {
    width: 350px;
    border-radius: 10px;
    flex-shrink: 0;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    text-align: left;
}

/* Contact */
.contact-info {
    margin: 2rem 0;
    font-size: 1.2rem;
}

.contact-info p {
    margin: 0.8rem 0;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Smooth click animation for property cards */
.property-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.12s ease-out, filter 0.12s ease-out;  /* smooth return */
}



.property-link:active {
    transform: scale(0.96);               /* subtle press-in effect */
    filter: brightness(0.94);             /* slight dim on press */
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);  /* tighter shadow while pressed */
}

/* Enhance the existing hover for better contrast with click */
.property-link:hover .property-card {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

/* Optional: even smoother feel with cubic-bezier easing */
.property-link,
.property-link .property-card {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);  /* natural bounce-back */
}
