/* Custom CSS for Skavya Interiors */

/* Bootstrap Override - Force grey colors */
.navbar .nav-link,
.navbar .nav-link:visited,
.navbar .nav-link:active,
.navbar .nav-link:focus,
.navbar .nav-link:hover {
	background-color: transparent !important;
	color: rgba(0, 0, 0, 0.65) !important;
}

.navbar .nav-link.active,
.navbar .nav-link.active:visited,
.navbar .nav-link.active:active,
.navbar .nav-link.active:focus,
.navbar .nav-link.active:hover {
	background-color: #6c757d !important;
	color: white !important;
}

.navbar .nav-link:hover:not(.active) {
	background-color: #495057 !important;
	color: white !important;
}

/* Root Variables */
:root {
	--primary-color: #6c757d;
	--secondary-color: #2c3e50;
	--accent-color: #868e96;
	--text-dark: #2c3e50;
	--text-light: #7f8c8d;
	--bg-light: #f8f9fa;
	--white: #ffffff;
	--success: #27ae60;
	--primary-font: "Poppins", sans-serif;
	--heading-font: "Playfair Display", serif;
	
	/* Override Bootstrap navbar colors */
	--bs-navbar-active-color: #ffffff !important;
	--bs-navbar-hover-color: #ffffff !important;
	--bs-navbar-color: rgba(0, 0, 0, 0.65) !important;
	
	/* Override Bootstrap primary colors to prevent yellow/golden */
	--bs-primary: #6c757d !important;
	--bs-primary-rgb: 108, 117, 125 !important;
	--bs-link-color: #6c757d !important;
	--bs-link-hover-color: #495057 !important;
}

/* Global Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--primary-font);
	line-height: 1.6;
	color: var(--text-dark);
	overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--heading-font);
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 1rem;
}

h1 {
	font-size: 2.5rem;
}
h2 {
	font-size: 2.2rem;
}
h3 {
	font-size: 1.8rem;
}

.text-primary {
	color: var(--primary-color) !important;
}
.bg-primary {
	background-color: var(--primary-color) !important;
}
.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}
.btn-primary:hover {
	background-color: #5a6268;
	border-color: #5a6268;
}

/* Navigation Styles */
/* Navigation Styles - Updated for proper header height */
.navbar {
	padding: 0.5rem 0; /* Reduced from 1rem to 0.5rem for smaller header */
	transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
	background-color: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
	display: flex;
	align-items: center;
	font-weight: 600;
}

/* Logo styling for consistent height */
.navbar-brand img {
	max-height: 60px; /* Matches the height="60" in HTML */
	width: auto;
	transition: all 0.3s ease;
}

.brand-text {
	line-height: 1.2;
}

.navbar-nav .nav-link {
	font-weight: 500;
	padding: 0.5rem 1rem !important;
	margin: 0 0.2rem;
	transition: all 0.3s ease;
	border-radius: 25px;
}

/* Active navlink styling */
.navbar-nav .nav-link.active {
	background-color: var(--primary-color) !important;
	color: white !important;
	font-weight: 600;
}

/* Hover navlink styling - different grey color */
.navbar-nav .nav-link:hover {
	background-color: #495057 !important;
	color: white !important;
}

/* Override Bootstrap's default active color */
.navbar .navbar-nav .nav-link.active {
	color: white !important;
}

/* Additional specificity to override Bootstrap */
.navbar.navbar-light .navbar-nav .nav-link.active {
	background-color: var(--primary-color) !important;
	color: white !important;
}

.navbar.navbar-light .navbar-nav .nav-link:hover {
	background-color: #495057 !important;
	color: white !important;
}

/* Force override for all navbar states */
.navbar .navbar-nav .nav-link.active {
	background-color: var(--primary-color) !important;
	color: white !important;
}

.navbar .navbar-nav .nav-link:hover {
	background-color: #495057 !important;
	color: white !important;
}

/* Additional Bootstrap overrides with maximum specificity */
.navbar.navbar-light .navbar-nav .nav-link.active,
.navbar.navbar-light .navbar-nav .nav-link.active:focus,
.navbar.navbar-light .navbar-nav .nav-link.active:hover {
	background-color: var(--primary-color) !important;
	color: white !important;
	border-color: var(--primary-color) !important;
}

.navbar.navbar-light .navbar-nav .nav-link:hover,
.navbar.navbar-light .navbar-nav .nav-link:focus {
	background-color: #495057 !important;
	color: white !important;
	border-color: #495057 !important;
}

/* Override any Bootstrap yellow/golden colors */
.navbar .nav-link.active,
.navbar .nav-link:hover,
.navbar .nav-link:focus {
	background-color: var(--primary-color) !important;
	color: white !important;
}

.navbar .nav-link:hover:not(.active) {
	background-color: #495057 !important;
	color: white !important;
}

/* Ensure navbar items are vertically centered */
.navbar-nav {
	align-items: center;
}

.navbar-text {
	margin-bottom: 0; /* Remove default margin */
}

/* WhatsApp Floating Button */
.whatsapp-float {
	position: fixed;
	width: 60px;
	height: 60px;
	bottom: 40px;
	right: 40px;
	z-index: 1000;
}

.whatsapp-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #25d366;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	text-decoration: none;
	box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.whatsapp-btn:hover {
	background-color: #128c7e;
	color: white;
	transform: scale(1.1);
	width: 200px;
	border-radius: 30px;
}

.whatsapp-text {
	opacity: 0;
	margin-left: 10px;
	font-size: 14px;
	font-weight: 500;
	transition: opacity 0.3s ease;
	white-space: nowrap;
}

.whatsapp-btn:hover .whatsapp-text {
	opacity: 1;
}

/* Hero Section */
.hero-section {
	background: transparent; /* Removed grey overlay to show video clearly */
	min-height: 100vh;
	display: flex;
	align-items: center;
	color: white;
	text-align: center;
	position: relative;
}

.hero-content {
	position: relative;
	z-index: 2;
}

.hero-title {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
	font-size: 1.3rem;
	margin-bottom: 2rem;
	font-weight: 300;
}

.hero-buttons .btn {
	margin: 0.5rem;
	padding: 12px 30px;
	font-weight: 600;
	border-radius: 30px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Section Styles */
.section-padding {
	padding: 80px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
}

.section-title::after {
	content: "";
	width: 80px;
	height: 3px;
	background-color: var(--primary-color);
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
}

/* Service Cards */
.service-card {
	background: white;
	border-radius: 15px;
	padding: 2rem;
	height: 100%;
	transition: all 0.3s ease;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	border: none;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

.service-card h4 {
	color: var(--text-dark);
	margin-bottom: 1rem;
}

/* Gallery Styles */
.gallery-container {
	padding: 0;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	margin-bottom: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.gallery-item:hover {
	transform: scale(1.05);
}

.gallery-item img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	transition: all 0.3s ease;
}

.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(108, 117, 125, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	opacity: 0;
	transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

.gallery-overlay h5 {
	color: white;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.gallery-overlay p {
	color: white;
	font-size: 0.9rem;
	text-align: center;
	margin: 0;
}

/* Filter Buttons */
.filter-buttons {
	text-align: center;
	margin-bottom: 3rem;
}

.filter-btn {
	background: transparent;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	padding: 10px 25px;
	margin: 0 5px;
	border-radius: 25px;
	font-weight: 500;
	transition: all 0.3s ease;
	cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
	background-color: var(--primary-color);
	color: white;
}

/* Team Cards */
.team-card {
	background: white;
	border-radius: 15px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	height: 100%;
}

.team-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.team-image {
	height: 300px;
	overflow: hidden;
}

.team-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.3s ease;
}

.team-card:hover .team-image img {
	transform: scale(1.1);
}

.team-info {
	padding: 1.5rem;
	text-align: center;
}

.team-info h5 {
	color: var(--text-dark);
	margin-bottom: 0.5rem;
}

.team-designation {
	color: var(--primary-color);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.team-experience {
	color: var(--text-light);
	font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
	background: white;
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-control {
	border: 2px solid #e9ecef;
	border-radius: 10px;
	padding: 12px 15px;
	transition: all 0.3s ease;
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Contact Info Cards */
.contact-info-card {
	background: white;
	padding: 2rem;
	border-radius: 15px;
	text-align: center;
	height: 100%;
	transition: all 0.3s ease;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contact-info-card i {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

/* Footer Styles */
footer {
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
	position: relative;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a {
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: var(--primary-color) !important;
}

.social-links a {
	display: inline-block;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	text-align: center;
	line-height: 40px;
	transition: all 0.3s ease;
}

.social-links a:hover {
	background-color: var(--primary-color);
	transform: translateY(-3px);
}

/* Back to Top Button */
#btn-back-to-top {
	position: fixed;
	bottom: 120px;
	right: 40px;
	display: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--primary-color);
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	z-index: 999;
	transition: all 0.3s ease;
}

#btn-back-to-top:hover {
	background-color: #5a6268;
	transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
	.hero-title {
		font-size: 2.5rem;
	}

	.hero-subtitle {
		font-size: 1.1rem;
	}

	.hero-buttons .btn {
		display: block;
		width: 100%;
		margin: 0.5rem 0;
		padding: 10px 25px;
		font-size: 1rem;
	}

	.hero-secondary-buttons .btn {
		padding: 8px 18px;
		font-size: 0.9rem;
	}

	.service-card .btn {
		padding: 8px 16px;
		font-size: 0.9rem;
	}

	.section-padding {
		padding: 60px 0;
	}

	.whatsapp-float {
		bottom: 20px;
		right: 20px;
	}

	.whatsapp-btn {
		width: 50px;
		height: 50px;
		font-size: 20px;
	}

	.whatsapp-btn:hover {
		width: 50px;
		border-radius: 50%;
	}

	.whatsapp-text {
		display: none;
	}

	#btn-back-to-top {
		bottom: 90px;
		right: 20px;
		width: 45px;
		height: 45px;
	}
}

@media (max-width: 765px) and (min-width: 500px) {
	.hero-title {
		font-size: 2.2rem;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	h1 {
		font-size: 2.1rem;
	}

	h2 {
		font-size: 1.9rem;
	}

	h3 {
		font-size: 1.6rem;
	}

	h4 {
		font-size: 1.4rem;
	}

	h5 {
		font-size: 1.2rem;
	}

	h6 {
		font-size: 1rem;
	}

	p {
		font-size: 0.9rem;
	}

	.service-card .btn {
		padding: 8px 16px;
		font-size: 0.85rem;
	}

	.hero-buttons .btn {
		padding: 8px 20px;
		font-size: 0.9rem;
	}

	.hero-secondary-buttons .btn {
		padding: 6px 16px;
		font-size: 0.8rem;
	}
}

@media (max-width: 576px) {
	.hero-title {
		font-size: 2rem;
	}

	.hero-buttons .btn {
		display: block;
		width: 100%;
		margin: 0.5rem 0;
		padding: 8px 20px;
		font-size: 0.9rem;
	}

	.hero-secondary-buttons .btn {
		padding: 6px 16px;
		font-size: 0.8rem;
	}

	.service-card .btn {
		padding: 6px 14px;
		font-size: 0.8rem;
	}

	.gallery-item img {
		height: 250px;
	}

	.team-image {
		height: 250px;
	}
}

/* Loading Animation */
.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Smooth Animations */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.6s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Success/Error Messages */
.alert {
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 20px;
}

.alert-success {
	background-color: #d4edda;
	border-color: #c3e6cb;
	color: #155724;
}

.alert-danger {
	background-color: #f8d7da;
	border-color: #f5c6cb;
	color: #721c24;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: var(--primary-color);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #5a6268;
}
