/* RESET & GLOBAL STYLES */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: sans-serif;
}

html,
body {
	width: 100%;
	overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Body background color */
body {
	background-color: #ffffff;
}

html {
	scroll-behavior: smooth;
}

/* Preloader styles */
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: #000000;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 1;
	transition: opacity 0.5s ease;
}

#main-content {
	display: none;
}

.preloader-logo {
	width: 20%;
	max-width: 200px;
	border-radius: 10%;
}


/* ---------------------------------------------------- */
/* NAVIGATION SECTION - CLEAN VERSION */
/* ---------------------------------------------------- */

nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(255, 255, 255, 0.98);
	padding: 6px 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.navbar {
	width: 85%;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;

	position: relative;
}

.logo {
	width: 55px;
	cursor: pointer;
	border-radius: 7px;
	align-items: center;
	transition: transform 0.3s ease;
}

.logo:hover {
	transform: scale(1.05);
}

/* Desktop Navigation */
.notsidebar {
	display: flex;
	align-items: center;
	gap: 15px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.notsidebar li {
	position: relative;
}

.notsidebar li a {
	text-decoration: none;
	
	color: #333;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 15px;
	border-radius: 8px;
	transition: all 0.3s ease;
	display: inline-block;
	text-transform: uppercase;
}

.notsidebar li:not(.dropdown):hover a {
	background: rgba(0, 0, 0, 0.03);
}

.notsidebar li a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 8px;
	left: 15px;
	background-color: #333;
	transition: width 0.3s ease;
}

.notsidebar li a:hover::after {
	width: calc(100% - 30px);
}

/* Dropdown Styles */
.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #fff;
	min-width: 200px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 8px 0;
	z-index: 10;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
}

.dropdown:hover .dropdown-content {
	display: block;
}

/* Keep underline for main nav items */
.notsidebar>li:not(.dropdown)>a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 8px;
	left: 15px;
	background-color: #333;
	transition: width 0.3s ease;
}

.notsidebar>li:not(.dropdown)>a:hover::after {
	width: calc(100% - 30px);
}

.dropdown-content a {
	padding: 10px 20px;
	color: #555;
	display: block;
	transition: all 0.2s ease;
	text-transform: uppercase;
	font-size: 15px;
	margin: 0 auto;
}

.dropdown-content a::after {
	display: none !important;
	/* This removes the underline */
}


.dropdown-content a:hover {
	background: rgba(0, 0, 0, 0.03);
}

/* Menu Button */
.menu-button {
	display: none;
	cursor: pointer;
	padding: 10px;
	margin-left: 10px;
}

.menu-button svg {
	display: block;
	transition: transform 0.3s ease;
}

.menu-button:hover svg {
	transform: scale(1.1);
}

/* Mobile Sidebar */
.sidebar {
	position: fixed;
	top: 0;
	right: -300px;
	height: 100vh;
	width: 280px;
	z-index: 9999;
	background-color: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	padding: 25px;
	transition: right 0.4s ease;
	list-style: none;
	margin: 0;
}

.sidebar.open {
	right: 0;
}

.sidebar li {
	margin: 8px 0;
}

.sidebar li a {
	padding: 5px 5px;
	border-radius: 8px;
	display: flex;
	transition: all 0.3s ease;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 16px;
}

.sidebar li a:hover {
	background: rgba(0, 0, 0, 0.05);
}

.close-btns {
	align-self: flex-end;
	margin-bottom: 20px !important;
	cursor: pointer;
	padding: 8px;
}

/* Mobile Dropdown */
.dropdown-content-mobile {
	max-height: 0;
	overflow: hidden;
	padding-left: 15px;
	transition: max-height 0.4s ease;
	list-style: none;
	margin: 0;
	
}

.mobile-dropdown.active .dropdown-content-mobile {
	max-height: 300px;
}

.dropdown-content-mobile li {
	margin: 8px 0;
}

.dropdown-content-mobile a {
	padding: 8px 15px;
	font-size: 15px;
	color: #555;
}

/* Responsive Rules */
@media screen and (max-width: 899px) {
	.hideOnMobile {
		display: none !important;
	}

	.menu-button {
		display: block !important;
	}
}

@media screen and (min-width: 900px) {
	.sidebar {
		display: none !important;
	}
}

/* ---------------------------------------------------- */
/* Banner Styling */

.banner {
	width: 100%;
	height: 90vh;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	background-image: linear-gradient(rgba(60, 71, 72, 0.411), rgb(8, 7, 7)),
		url("./img/riviera1.webp");
	background-size: cover;
	background-position: center;
	position: relative;
	padding-bottom: 50px;
	overflow: hidden;
	transition: background-image 8s ease-in-out; /* Smoother and slower transition */
	margin-bottom: 30px; /* Adjust the value as needed */
}

.banner-slides {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: -1;
	overflow: hidden;
}

.banner-slides img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	opacity: 0;
	transition: opacity 3s ease-in-out;
}

.banner-slides img.active {
	opacity: 1;
}

.content {
	text-align: center;
	color: #fff;
	padding: 20px;
}

.content h1 {
	font-size: 59px; /* Original font size */
	margin-top: 80px;
	animation: fadeInDown 1s ease; /* Animation */
}

.content p {
	margin: 20px auto 40px; /* Increased space below the paragraph */
	font-size: 20px; /* Original font size */

	font-family: cursive; /* Original font family */
	animation: fadeInUp 1.2s ease; /* Animation */
	line-height: 1.8; /* Improved readability */
}

.button-group {
	display: flex;
	justify-content: center;
	margin-top: 30px;
	animation: fadeInUp 1.4s ease; /* Animation */
}

button {
	width: 200px; /* Original width */
	padding: 15px; /* Original padding */
	text-align: center;
	font-weight: bold;
	border: 2px solid #b4aa71; /* Original border color */
	background: transparent; /* Original background */
	color: #fff; /* Original text color */
	cursor: pointer;
	position: relative;
	overflow: hidden; /* Ensures hover effect stays within the button */
	transition: transform 0.3s ease, background-color 0.3s ease;
	margin: 7px 15px; /* Add horizontal spacing for big screens */
	box-sizing: border-box; /* Include padding and border in width */
}

span {
	background: #4a5b5878; /* Original hover background */
	height: 100%;
	width: 0;
	position: absolute;
	left: 0;
	top: 0; /* Changed from bottom to top for consistent positioning */
	z-index: -1; /* Keeps it behind the button text */
	transition: width 0.5s ease;
}

button:hover span {
	width: 100%; /* Expand to cover the entire button */
}

button:hover {
	border-color: transparent; /* Prevents double-layered border effect */
	transform: scale(1.05);
	background-color: #4a5b5878; /* Matches span color */
}

/* Optional: Focus state for better accessibility */
button:focus-visible {
	outline: none;
	transform: scale(1.05);
	background-color: #4a5b5878;
	border-color: transparent;
}

/* Responsive Styles */
@media (max-width: 768px) {
	.content h1 {
		font-size: 3rem;
	}

	.content p {
		font-size: 1rem;
	}

	button {
		width: 180px;
		padding: 12px 0;
	}

	.button-group {
		flex-direction: column; /* Stack buttons vertically */
		gap: 20px; /* Vertical gap between buttons */
	}
}

@media (max-width: 480px) {
	.content h1 {
		font-size: 2rem;
	}

	.content p {
		font-size: 0.9rem;
	}

	button {
		width: 150px;
		padding: 10px;
	}

	.button-group {
		flex-direction: column;
		align-items: center;
		gap: 25px; /* More vertical space between buttons */
	}
}

/* Animations */
@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

/*---------------------------------------------------------------*/

/* All Projects */
.New-projects {
	text-align: center;
	animation: fadeIn 1.5s ease-in-out; /* Reduced animation time */
	margin: 20px;
}

#property-container {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.property-card {
	position: relative;
	margin: 20px;
	flex: 1 1 calc(33.33% - 40px);
	max-width: 350px;
	min-width: 280px;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	animation: cardEntry 1s ease;
}

.property-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	transition: transform 0.5s ease, filter 0.3s ease;
}

.property-caption {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 10px 15px;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: bold;
	transform: scale(1);
	transition: transform 0.3s ease, background-color 0.3s ease;
}

/*project photo finish text start*/

/* Text Styles */
.text-wrapper {
	flex: 1;
	text-align: center; /* Center content inside the text-wrapper */
}

.about-title h4 {
	font-size: 0.9em;
	letter-spacing: 0.1em;
	color: #888;
	margin: 0;
	text-transform: uppercase;
	display: flex;
	align-items: center;
}

.about-title h4:before {
	content: "";
	display: block;
	width: 2px;
	height: 20px;
	background-color: #888;
	margin-right: 10px;
}

.text-wrapper h2 {
	font-size: 2.2em;
	color: #222;
	margin: 15px 0;
	line-height: 1.3;
	text-align: center;
}

.text-wrapper p {
	font-size: 1em;
	color: #555;
	line-height: 1.8;
	margin-bottom: 25px;
	text-align: center;
}

.primary-btn {
	width: 200px; /* Original width */
	padding: 15px; /* Original padding */
	text-align: center;
	font-weight: bold;
	border: 2px solid #000000; /* Original border color */
	background: transparent; /* Original background */
	color: #746f6f; /* Original text color */
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease, background-color 0.3s ease;
	margin: 7px 15px; /* Add horizontal spacing for big screens */
}

/* Responsive Design */
@media (max-width: 1200px) {
	.content-wrapper {
		text-align: center;
	}
	.text-wrapper h2 {
		font-size: 1.8em;
	}
	.text-wrapper p {
		font-size: 0.9em;
	}
}

@media (max-width: 480px) {
	.content-wrapper {
		gap: 20px;
	}
	.text-wrapper h2 {
		font-size: 1.5em;
	}
	.primary-btn {
		font-size: 0.9em;
		padding: 8px 15px;
	}
}

/* Fade-In Animation */
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 1.5s ease, transform 1.5s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Slide-Up Animation */
.slide-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1.5s ease, transform 1.5s ease;
}

.slide-up.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Add delay to animations */
.slide-up.delay-1 {
	transition-delay: 0.3s;
}
.slide-up.delay-2 {
	transition-delay: 0.6s;
}
.slide-up.delay-3 {
	transition-delay: 0.9s;
}

/*-------------------------------------------------------------*/

/*floor pland*/

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

.floorplans-header {
	text-align: center;
	margin-bottom: 20px;
}

.floorplans-title {
	font-size: 2.5rem;
	font-weight: bold;
	color: #d87c4a; /* Contrast color for the title */
	margin-bottom: 30px;
	margin-top: 20px;
}

/* Floor Plans Grid */
.floorplans-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	justify-items: center;
}

.floorplans-item {
	position: relative;
	width: 100%;
	max-width: 300px;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	background: linear-gradient(
		45deg,
		#ffffff,
		#f0f0f0
	); /* Subtle gradient for premium feel */
}

.floorplans-item:hover {
	transform: scale(1.08);
	box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Floorplans Image */
.floorplans-image {
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.floorplans-item:hover .floorplans-image {
	transform: scale(1.2); /* Slight zoom-in for premium effect */
	filter: brightness(0.8); /* Dim the image for better text visibility */
}

/* Text Overlay */
.floorplans-text {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(50px);
	padding: 10px 20px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	font-size: 1.2rem;
	font-weight: bold;
	text-align: center;
	border-radius: 10px;
	backdrop-filter: blur(10px); /* Adds a premium blurred background effect */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Show text with animation on hover */
.floorplans-item:hover .floorplans-text {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Hidden text overlay */
.floorplans-text {
	position: absolute;
	bottom: 10px;
	left: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	font-size: 1rem;
	padding: 5px 10px;
	border-radius: 5px;
	text-align: center;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show text on hover */
.floorplans-item:hover .floorplans-text {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 768px) {
	.floorplans-title {
		font-size: 2rem;
	}

	.floorplans-item {
		max-width: 100%;
	}

	.floorplans-text {
		font-size: 1rem;
		padding: 8px 15px;
	}
}

@media (max-width: 480px) {
	.floorplans-title {
		font-size: 1.5rem;
	}

	.floorplans-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 15px;
	}

	.floorplans-item {
		max-width: 100%;
		aspect-ratio: 1;
	}
}

/* Fullscreen Viewer */
.image-viewer {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	align-items: center;
	justify-content: center;
	flex-direction: column; /* Stack elements vertically */
	z-index: 1000;
}

.image-viewer img {
	max-width: 90%;
	max-height: 80%;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(255, 255, 255, 0.5);
}

.image-viewer-controls {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
}

.prev-btn,
.next-btn {
	width: 50px;
	height: 50px;
	background-color: #f9f9f9; /* Light white color */
	color: #333; /* Dark text for contrast */
	font-size: 1.5rem;
	font-weight: bold;
	text-align: center;
	border: 2px solid #000; /* Dark black border */
	border-radius: 50%; /* Makes the button round */
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow */
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.prev-btn:hover,
.next-btn:hover {
	background-color: #eaeaea; /* Slightly darker light color on hover */
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); /* Enhanced shadow on hover */
	transform: translateY(-3px); /* Slight upward movement */
}

.close-btn {
	padding: 12px 30px;
	background-color: #f9f9f9; /* Light white color */
	color: #333; /* Dark text for contrast */
	font-size: 1rem;
	font-weight: bold;
	text-transform: uppercase;
	border: 2px solid #000; /* Dark black border */
	border-radius: 0px; /* Square shape */
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow */
	transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.close-btn:hover {
	background-color: #eaeaea; /* Slightly darker light color on hover */
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); /* Enhanced shadow on hover */
	transform: translateY(-3px); /* Slight upward movement */
}

/* Responsive Design */
@media (max-width: 768px) {
	.prev-btn,
	.next-btn {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}
}

@media (max-width: 480px) {
	.prev-btn,
	.next-btn {
		width: 35px;
		height: 35px;
		font-size: 1rem;
	}
}

/*----------------------------------------------------------------------*/

/* YouTube Video Section */
.video-section {
	text-align: center;
	padding: 50px 20px;
	background: #ffffff; /* Keep it clean and minimal */
}

.video-header {
	margin-bottom: 20px;
}

/* Video Title Updated Color */
.video-title {
	font-size: 2.5rem;
	font-weight: bold;
	color: #494949; /* Matches your UI theme */
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Video Container */
.video-container {
	position: relative;
	width: 80%;
	max-width: 800px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Aspect Ratio */
.video-container iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
	.video-title {
		font-size: 2rem;
	}

	.video-container {
		width: 95%;
	}
}

@media (max-width: 480px) {
	.video-title {
		font-size: 1.8rem;
	}

	.video-container {
		width: 100%;
		border-radius: 8px;
	}
}

/*-------------------------------------------------------------*/

/*SPECIFICATION*/

/*scroll ing animation*/

@keyframes fadeInUpBig {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.8);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.animate-on-scroll {
	opacity: 0;
	transform: translateY(30px) scale(0.8);
	transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-on-scroll.in-view {
	opacity: 1;
	transform: translateY(0) scale(1);
	animation: fadeInUpBig 1.5s ease-in-out;
}

/* Optionally, add a smooth scrolling effect for the page */
html {
	scroll-behavior: smooth; /* This makes the page scroll smoothly */
}
/*scroll ing animation end*/

/* Wrapper styles */
#specification-wrapper {
	max-width: 1200px;
	margin: 20px auto;
	padding: 20px;
	background-color: #ffffff;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

/* Title styles */
.spec-title {
	text-align: center;
	color: #2c3e50;
	font-size: 3rem;
	margin-bottom: 30px;
	position: relative;
}

.spec-title::after {
	content: "";
	display: block;
	width: 80px;
	height: 4px;
	background-color: #3498db;
	margin: 10px auto 0;
	border-radius: 2px;
}

/* Grid styles */
#specification-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

/* Card styles */
.spec-card {
	background-color: #ffffff;
	border: 1px solid #dfe6e9;
	border-radius: 10px;
	padding: 10px 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
	height: auto;
	max-height: 250px;
}

.spec-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.spec-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, #3498db, #9b59b6);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

/* Heading styles */
.spec-heading {
	color: #2c3e50;
	font-size: 1.5rem;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.spec-heading .icon {
	font-size: 1.5rem;
	color: #3498db;
}

/* List styles */
.spec-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.spec-list li {
	margin-bottom: 8px;
	font-size: 1rem;
	color: #34495e;
	line-height: 1.6;
	display: flex;
	align-items: center;
}

.spec-list li::before {
	content: "•";
	color: #3498db;
	margin-right: 10px;
	font-size: 1.5rem; /* Increased size for the bullet */
	line-height: 1; /* Aligns with text */
}

/* Hover effect for text */
.spec-card:hover .spec-heading {
	color: #3498db;
}

/* Responsive styles */
@media (max-width: 768px) {
	.spec-title {
		font-size: 2rem;
	}

	.spec-heading {
		font-size: 1.2rem;
	}

	.spec-card {
		padding: 10px 15px;
	}
}

/*-------------------------------------------------------------*/
