$content = [System.IO.File]::ReadAllText("index.html", [System.Text.Encoding]::UTF8)

# Replace logos
$content = $content -replace 'The-view-logo-transparent.png', 'Shriram Logo.webp'

# Replace About view (Aerial view)
$content = $content -replace 'Shriram Shankari 2.jpg', 'shankari-Aerial-View.webp'

# Replace 2 BHK Floor plan
$content = $content -replace '2 BHK Shriram Shankari.jpg', 'Shriram-Shankari -2bhk-Floorplan.webp'
$content = $content -replace '3 BHK Shriram Shankari.jpg', 'Shankari Floor Plan.webp' # Using the generic floor plan

# Replace Master plan
$content = $content -replace 'Shriram Shankari Shriram-Shankari -Tower Plan-1.jpg', 'Shankari-Master-plan.webp'

# Replace Gallery / Gallery images
$content = $content -replace 'Shriram-Shankari -Elevation-2.jpg', 'Shankari-Elevation-2.webp'
$content = $content -replace 'Shriram Shankari \(Codename The View\) centre.jpg', 'Shankari-CENTRALPARK.webp'
$content = $content -replace 'Shriram Shankari \(Codename The View\) amenities.jpg', 'shankari-pool.webp'
$content = $content -replace '2 BHK Shriram Shankari.jpg', 'Shriram-Shankari -2bhk-Floorplan.webp'

# Replace Location Map
$content = $content -replace 'Shriram-Shankari -Location.jpg\?v=2', 'Shriram-Shankari-Location-map.webp'
$content = $content -replace 'Shriram-Shankari -Location.jpg', 'Shriram-Shankari-Location-map.webp'

[System.IO.File]::WriteAllText("index.html", $content, [System.Text.Encoding]::UTF8)
Write-Host "Updated index.html image sources"
