* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: Segoe UI, sans-serif;
	scroll-behavior: smooth;
}

body {
	transition: .4s;
}
body {
	background: var(--bg);
	color: var(--text);
}

/* LIGHT MODE */
:root {
	--bg: #FAFAFA;
	--card: #ffffff;
	--primary: #111111;
	--accent: #D4AF37;
	--text: #1F2937;
	--shadow: rgba(0, 0, 0, .08);
}

/* DARK MODE */
body.dark {
	--bg: #0A0A0A;
	--card: #1A1A1A;
	--primary: #ffffff;
	--accent: #FFD700;
	--text: #ffffff;
	--shadow: rgba(255, 255, 255, .05);
}



/* NAVBAR */
nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 8%;
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--bg);
	box-shadow: 0 5px 15px var(--shadow);
}

.logo {
	font-size: 28px;
	font-weight: 700;
	color: var(--accent);
}

nav ul {
	display: flex;
	gap: 25px;
	list-style: none;
	align-items: center;
}

nav ul li a {
	text-decoration: none;
	color: var(--text);
	font-weight: 500;
}

.toggle-btn, .login-btn {
	padding: 10px 18px;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
}
nav ul li button a {
	text-decoration: none;
	color: var(--card);
	font-weight: 500;
}

.toggle-btn {
	background: var(--accent);
}

.login-btn {
	background: var(--primary);
	color: var(--bg);
}


/* Ham Burger menu */

.ham-menu{
	height: 90vh;
	width: 15rem;
	position:fixed;
	top: 5rem;
	left: -20rem;
	display: flex;
	flex-direction: column;
	background-color: var(--accent);
	z-index: 10;
	align-items: center;
	justify-content: start;
	/* display: none; */
	transition: all .5s ease-in-out;
	border:1px solid var(--shadow);
	border-radius:.9rem;
	box-shadow:10px 5px 5px var(--shadow);
}

.ham-menu ul {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 25px;
	list-style: none;
	align-items: center;
}

.ham-menu ul li a {
	text-decoration: none;
	color: var(--text);
	font-weight: 500;
}

.ham-menu ul li button a {
	text-decoration: none;
	color: var(--card);
	font-weight: 500;
}
.ham-menu .toggle-btn {
	background: var(--text);
	color: var(--card);
}

.show-ham-menu{
	/* display: block; */
	top: 5rem;
	left: 0rem;
}

.hide-ham-btn{
	display: none;
}



/* HERO */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 8%;
	gap: 40px;
	flex-wrap: wrap;
}

.hero-text {
	flex: 1;
}

.hero-text h1 {
	font-size: 60px;
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero-text h1 span {
	color: var(--accent);
}

.hero-text p {
	font-size: 18px;
	line-height: 1.8;
	margin-bottom: 25px;
	max-width: 600px;
}

.btns {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.btn {
	padding: 14px 28px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 700;
	transition: .3s;
}

.primary-btn {
	background: var(--accent);
	color: #111;
}

.secondary-btn {
	background: transparent;
	border: 2px solid var(--accent);
	color: var(--text);
}

.btn:hover {
	transform: translateY(-4px);
}

.hero-image {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.card {
	background: var(--card);
	padding: 25px;
	border-radius: 18px;
	box-shadow: 0 12px 25px var(--shadow);
	transition: .3s;
}

.card:hover {
	transform: translateY(-8px);
}

.card h3 {
	font-size: 30px;
	color: var(--accent);
	margin-bottom: 10px;
}

/* COMMON */
section {
	padding: 80px 8%;
}

.title {
	text-align: center;
	font-size: 40px;
	margin-bottom: 15px;
}

.sub {
	text-align: center;
	margin-bottom: 45px;
	opacity: .8;
}

/* LAWYER SECTION */
.lawyers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 25px;
}

.lawyer-card {
	background: var(--card);
	padding: 20px;
	border-radius: 18px;
	box-shadow: 0 10px 20px var(--shadow);
	text-align: center;
}

.lawyer-card img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 15px;
}

.lawyer-card h3 {
	margin-bottom: 10px;
}

.rating {
	color: var(--accent);
	margin: 8px 0;
}

/* SEARCH BANNER */
.search-box {
	background: linear-gradient(135deg, var(--accent), #f5d76a);
	padding: 60px;
	border-radius: 25px;
	text-align: center;
	color: #111;
}

.search-box h2 {
	font-size: 38px;
	margin-bottom: 15px;
}

.search-box p {
	margin-bottom: 20px;
	font-size: 18px;
}

/* FEEDBACK */
.feedback-wrap {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding-bottom: 15px;
}

.feedback-wrap::-webkit-scrollbar {
	height: 6px;
}

.feedback-wrap::-webkit-scrollbar-thumb {
	background: var(--accent);
	border-radius: 20px;
}

.feedback-card {
	min-width: 320px;
	background: var(--card);
	padding: 25px;
	border-radius: 18px;
	box-shadow: 0 10px 20px var(--shadow);
}

.controls {
	text-align: center;
	margin-top: 25px;
}

.controls button {
	padding: 12px 18px;
	margin: 0 8px;
	border: none;
	cursor: pointer;
	border-radius: 10px;
	background: var(--accent);
	font-weight: 700;
}

/* COUNTER */
.counter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.counter {
	background: var(--card);
	padding: 30px;
	border-radius: 18px;
	text-align: center;
	box-shadow: 0 10px 20px var(--shadow);
}

.counter h2 {
	font-size: 45px;
	color: var(--accent);
}

/* CONTACT */
.contact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	align-items: center;
}

.contact-box {
	background: var(--card);
	padding: 30px;
	border-radius: 20px;
	box-shadow: 0 10px 20px var(--shadow);
}

.contact input, .contact textarea {
	width: 100%;
	padding: 14px;
	margin: 10px 0;
	border: none;
	outline: none;
	border-radius: 10px;
	background: rgba(128, 128, 128, .08);
	color: var(--text);
}

/* FOOTER */
footer {
	padding: 40px 8%;
	background: var(--card);
	margin-top: 50px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 25px;
}

footer h3 {
	margin-bottom: 15px;
	color: var(--accent);
}

footer p, footer li {
	margin-bottom: 8px;
	opacity: .8;
	list-style: none;
}

.copy {
	margin-top: 30px;
	text-align: center;
	opacity: .7;
}

.user-name-f {
	width: 20rem;
}

.user-message-f {
	width: 25rem;
}

/* MOBILE */
@media ( max-width :900px) {
	nav ul {
		display: none;
	}
	.hero {
		flex-direction: column;
		text-align: center;
		padding-top: 60px;
	}
	.hero-text h1 {
		font-size: 42px;
	}
	.btns {
		justify-content: center;
	}
	.hero-image {
		grid-template-columns: 1fr;
	}
	#feedback-input {
		flex-direction: column;
		align-items: center;
	}
	.user-name-f {
		width: 20rem;
	}
	.user-message-f {
		width: 20rem;
	}
	.hide-ham-btn{
		display: block;
	}
}

@media ( max-width :420px) {
	.user-name-f {
		width: 12rem;
	}
	.user-message-f {
		width: 12rem;
	}
}