Radiant Gain
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background-color: #ffffff;
color: #000000;
}
header {
background-color: #382C73;
color: #fff;
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
nav a {
color: #fff;
margin-left: 2rem;
text-decoration: none;
font-weight: 500;
}
nav a:hover {
text-decoration: underline;
}
.hero {
background: url('https://radiant-gain.lovable.app/assets/hero.jpg') center/cover no-repeat;
height: 90vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: #fff;
padding: 2rem;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
}
.cta-button {
background-color: #F1C338;
color: #000;
padding: 0.75rem 1.5rem;
font-weight: bold;
border: none;
border-radius: 4px;
cursor: pointer;
}
.section {
padding: 4rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.section h2 {
font-size: 2rem;
margin-bottom: 1rem;
color: #382C73;
}
.about {
background-color: #F9F9F6;
}
.about p {
color: #3A3A3A;
line-height: 1.6;
}
.projects, #filtered-projects {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.project-card {
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 1rem;
background-color: #fff;
}
.project-card img {
width: 100%;
border-radius: 6px;
}
.filter-section label,
.filter-section select,
.filter-section input {
display: block;
margin-bottom: 1rem;
font-size: 1rem;
width: 100%;
padding: 0.5rem;
}
.no-results {
grid-column: 1 / -1;
text-align: center;
font-size: 1.2rem;
color: #888;
}
footer {
background-color: #382C73;
color: #fff;
text-align: center;
padding: 2rem 1rem;
}
@media (max-width: 768px) {
.hero h1 {
font-size: 2rem;
}
nav a {
margin-left: 1rem;
}
}
const projects = [
{
type: 'Residential',
name: 'Luxury Sky Residences',
bhk: '3 BHK',
budget: '2–3 Cr',
location: 'Golf Course Extension',
image: 'https://radiant-gain.lovable.app/assets/project1.jpg',
description: 'Premium homes with skyline views & 5-star amenities.'
},
{
type: 'Residential',
name: 'Forest Retreat Homes',
bhk: '4 BHK',
budget: '3 Cr & Above',
location: 'SPR Road',
image: 'https://radiant-gain.lovable.app/assets/project2.jpg',
description: 'Nature-infused gated living near SPR with wellness & clubhouse.'
},
{
type: 'Commercial',
name: 'Pre-leased Business Tower',
purpose: 'Pre-leased',
image: 'https://radiant-gain.lovable.app/assets/project3.jpg',
description: 'Pre-leased commercial asset with assured ROI.'
}
];
function updateFilters() {
const propertyType = document.getElementById('propertyType').value;
document.getElementById('commercial-filters').style.display = propertyType === 'Commercial' ? 'block' : 'none';
document.getElementById('residential-filters').style.display = propertyType === 'Residential' ? 'block' : 'none';
filterProjects();
}
function filterProjects() {
const type = document.getElementById('propertyType').value;
const search = document.getElementById('searchInput').value.toLowerCase();
const purpose = document.getElementById('commercialPurpose')?.value;
const bhk = document.getElementById('residentialBHK')?.value;
const budget = document.getElementById('residentialBudget')?.value;
const location = document.getElementById('residentialLocation')?.value;
const filtered = projects.filter(project => {
if (type && project.type !== type) return false;
if (search && !project.name.toLowerCase().includes(search)) return false;
if (type === 'Commercial' && purpose && project.purpose !== purpose) return false;
if (type === 'Residential') {
if (bhk && project.bhk !== bhk) return false;
if (budget && project.budget !== budget) return false;
if (location && project.location !== location) return false;
}
return true;
});
const container = document.getElementById('filtered-projects');
if (filtered.length === 0) {
container.innerHTML = '
No results found. Try adjusting your filters.
';
} else {
container.innerHTML = filtered.map(p => `
${p.name}
${p.description}
`).join('');
}
}