/* 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: 30vh;
	display: flex;
	justify-content: center;
	align-items: center;

	background-image: linear-gradient(rgba(60, 71, 72, 0.411), rgb(8, 7, 7)),
		url("./img/riviera3.webp");
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
	transition: background-image 8s ease-in-out; /* Smoother and slower transition */
	margin-bottom: 80px; /* 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 */
	font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

.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;
	border-radius: 25px; /* Original border radius */
	font-weight: bold;
	border: 2px solid #63698b; /* Original border color */
	background: transparent; /* Original background */
	color: #fff; /* 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 */
}

span {
	background: #4a5b5878; /* Original hover background */
	height: 100%;
	width: 0;
	border-radius: 25px;
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: -1;
	transition: width 0.5s ease;
}

button:hover span {
	width: 100%;
}

button:hover {
	border: none;
	transform: scale(1.05);
	background-color: #4a5b5878;
}

/* 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 0;
	}

	.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);
	}
}

/* banner end */

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

/* About Section */
.about-section {
	padding: 0px 15px; /* Uniform padding for the section */
}

/* Container */
.container {
	max-width: 1200px;
	margin: auto;
}

/* Image Header */
.image-header {
	position: relative;
	width: 100%;
	height: 400px; /* Proportional height */
	overflow: hidden;
	border-radius: 15px;
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
	margin-bottom: 40px; /* Consistent spacing below the image */
	transition: all 0.3s ease;
}

.image-header img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease-in-out;
}

.image-header img:hover {
	transform: scale(1.1); /* Subtle zoom effect */
}

/* Content Wrapper */
.content-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px; /* Uniform gap between cards */
}

/* Text Card */
.text-card {
	background: #ffffff;
	padding: 20px; /* Consistent padding inside the cards */
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Light shadow for elegance */
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
	border-left: 5px solid #f57c00; /* Accent border for a premium feel */
}

.text-card:hover {
	transform: translateY(-5px); /* Slight hover elevation */
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
	background: #fafafa; /* Slight background change on hover */
}

/* Heading (h2) inside Text Card */
.text-card h2 {
	font-size: 1.8em; /* Proportional font size */
	color: #1c1e26; /* Premium dark color */
	margin-bottom: 15px; /* Uniform spacing below heading */
	font-weight: 600;
	text-transform: capitalize;
	transition: color 0.3s ease, transform 0.3s ease;
}

.text-card h2:hover {
	color: #f57c00; /* Elegant hover color */
	transform: translateX(5px); /* Slight horizontal movement */
}

/* Paragraph (p) inside Text Card */
.text-card p {
	font-size: 1em;
	color: #777; /* Subtle gray for readability */
	line-height: 1.6;
	margin: 0; /* Reset margin for uniformity */
	transition: color 0.3s ease, transform 0.3s ease;
}

.text-card p:hover {
	color: #444; /* Slightly darker text on hover */
	transform: translateX(5px); /* Horizontal shift on hover */
}

/* Responsive Design */
@media (max-width: 992px) {
	.content-wrapper {
		grid-template-columns: 1fr; /* Single column layout for smaller screens */
		gap: 20px; /* Reduced gap */
	}
}

@media (max-width: 768px) {
	.image-header {
		height: 350px; /* Adjusted height for medium screens */
	}
}

@media (max-width: 480px) {
	.image-header {
		height: 300px; /* Adjusted height for small screens */
	}

	.text-card h2 {
		font-size: 1.5em; /* Smaller font for smaller devices */
	}

	.text-card p {
		font-size: 0.95em; /* Slightly smaller text for better readability */
	}
}

/* Animation keyframes */
@keyframes fadeInUp {
	from {
		opacity: 0.2; /* Start with slight visibility */
		transform: translateY(30px); /* Move element slightly out of view */
	}
	to {
		opacity: 1; /* Fully visible */
		transform: translateY(0); /* Original position */
	}
}

/* Default state */
.animate-on-scroll {
	opacity: 0.2; /* Partially visible to avoid white gaps */
	transform: translateY(30px); /* Positioned slightly down */
	transition: opacity 1s ease-out, transform 1.5s ease-out;
}

/* Active state */
.animate-on-scroll.scrolled {
	animation: fadeInUp 1s ease-out forwards;
}
