/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', sans-serif;
	color: #333;
	overflow-x: hidden;
}

/* Top Bar */
.top-bar {
	background: #f8f9fa;
	padding: 10px 0;
	font-size: 14px;
	border-bottom: 1px solid #e9ecef;
}

.top-info, .top-links {
	color: #6c757d;
}

.top-links a {
	color: #6c757d;
	text-decoration: none;
	margin-left: 20px;
	transition: color 0.3s;
}

.top-links a:hover {
	color: #0d6efd;
}

/* Navigation */
.navbar {
	padding: 1rem 0;
	transition: all 0.3s;
}

.navbar-brand {
	font-size: 1.5rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand-text {
	font-size: 1.8rem;
}

.navbar-brand i {
	font-size: 2rem;
}

.nav-link {
	font-weight: 500;
	padding: 0.5rem 1rem !important;
	transition: color 0.3s;
	position: relative;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: #0d6efd;
	transition: all 0.3s;
	transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
	width: 80%;
}

/* Hero Section */
.hero-section {
	padding: 120px 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
	background-size: cover;
	opacity: 0.15;
	animation: wave 15s linear infinite;
}

@keyframes wave {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.hero-content {
	position: relative;
	z-index: 1;
	color: white;
	animation: fadeInUp 0.8s ease-out;
}

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

.hero-content .badge {
	padding: 10px 25px;
	font-size: 14px;
	font-weight: 500;
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.3);
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

.hero-content h1 {
	line-height: 1.2;
	margin-bottom: 1.5rem;
	color: white;
	text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
	font-weight: 800;
}

.hero-content .lead {
	font-size: 1.2rem;
	opacity: 0.95;
	text-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

.hero-search .form-control {
	border: none;
	padding: 18px 25px;
	border-radius: 50px 0 0 50px;
	box-shadow: 0 15px 50px rgba(0,0,0,0.2);
	font-size: 1.05rem;
}

.hero-search .form-control:focus {
	box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.hero-search .btn {
	border-radius: 0 50px 50px 0;
	padding: 18px 35px;
	font-weight: 600;
	box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.hero-stats {
	animation: fadeInUp 1.2s ease-out;
}

.hero-stats h3 {
	font-size: 3rem;
	margin-bottom: 0;
	font-weight: 800;
	text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.hero-stats p {
	font-size: 0.95rem;
	opacity: 0.9;
}

.hero-image {
	animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.hero-image img {
	border-radius: 20px;
	box-shadow: 0 25px 80px rgba(0,0,0,0.4);
	animation: float 4s ease-in-out infinite;
	transform: perspective(1000px) rotateY(-5deg);
	transition: all 0.5s;
}

.hero-image img:hover {
	transform: perspective(1000px) rotateY(0deg) scale(1.05);
	box-shadow: 0 30px 100px rgba(0,0,0,0.5);
}

@keyframes float {
	0%, 100% { transform: perspective(1000px) rotateY(-5deg) translateY(0); }
	50% { transform: perspective(1000px) rotateY(-5deg) translateY(-15px); }
}

/* Section Header */
.section-header h2 {
	font-size: 2.8rem;
	margin-bottom: 1rem;
	font-weight: 800;
	position: relative;
	display: inline-block;
}

.section-header h2::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 60px;
	height: 4px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 2px;
}

.section-header p {
	font-size: 1.1rem;
	color: #6c757d;
}

/* Categories Section */
.categories-section {
	position: relative;
}

.category-card {
	display: block;
	background: white;
	padding: 35px;
	border-radius: 20px;
	text-align: center;
	text-decoration: none;
	color: #333;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 8px 25px rgba(0,0,0,0.08);
	position: relative;
	overflow: hidden;
}

.category-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	opacity: 0;
	transition: opacity 0.4s;
}

.category-card:hover {
	transform: translateY(-15px) scale(1.05);
	box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
	color: white;
}

.category-card:hover::before {
	opacity: 1;
}

.category-card:hover .category-icon {
	background: white;
	color: #667eea;
	transform: rotate(360deg) scale(1.1);
}

.category-icon {
	width: 90px;
	height: 90px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 2.2rem;
	color: white;
	transition: all 0.5s;
	position: relative;
	z-index: 1;
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.category-card h5 {
	margin: 0;
	font-weight: 700;
	position: relative;
	z-index: 1;
	font-size: 1.1rem;
}

/* Book Card */
.book-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
	height: 100%;
	position: relative;
}

.book-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	opacity: 0;
	transition: opacity 0.4s;
	z-index: 0;
}

.book-card:hover {
	transform: translateY(-15px) scale(1.02);
	box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.book-card:hover::before {
	opacity: 0.05;
}

.book-image {
	position: relative;
	overflow: hidden;
	height: 300px;
}

.book-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.book-card:hover .book-image img {
	transform: scale(1.1);
}

.book-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	opacity: 0;
	transition: opacity 0.3s;
}

.book-card:hover .book-overlay {
	opacity: 1;
}

.book-info {
	padding: 20px;
}

.book-category {
	display: inline-block;
	background: #e7f3ff;
	color: #0d6efd;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 10px;
}

.book-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 10px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.book-author {
	font-size: 0.9rem;
	color: #6c757d;
	margin-bottom: 15px;
}

.book-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 15px;
	border-top: 1px solid #e9ecef;
}

.book-price {
	font-size: 1.2rem;
	font-weight: 700;
	color: #0d6efd;
}

/* Author Card */
.author-card {
	display: block;
	background: white;
	padding: 30px;
	border-radius: 15px;
	text-align: center;
	text-decoration: none;
	color: #333;
	transition: all 0.3s;
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.author-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.author-avatar {
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 3rem;
	color: white;
}

.author-card h5 {
	margin: 10px 0 5px;
	font-weight: 600;
}

/* CTA Section */
.cta-section {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 80px 0;
	margin-top: 80px;
}

/* Footer */
.footer {
	background: #1a1a2e;
	color: white;
	padding: 60px 0 20px;
}

.footer h4, .footer h5 {
	color: white;
	margin-bottom: 20px;
}

.footer-links {
	list-style: none;
	padding: 0;
}

.footer-links li {
	margin-bottom: 10px;
}

.footer-links a {
	color: #adb5bd;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-links a:hover {
	color: white;
}

.social-links a {
	display: inline-flex;
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	margin-right: 10px;
	transition: all 0.3s;
}

.social-links a:hover {
	background: #0d6efd;
	transform: translateY(-3px);
}

.newsletter-form .form-control {
	border: none;
	padding: 12px 20px;
	border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
	border-radius: 0 50px 50px 0;
	padding: 12px 25px;
}

/* Responsive */
@media (max-width: 991px) {
	.hero-section {
		padding: 60px 0;
	}
	
	.hero-content h1 {
		font-size: 2.5rem;
	}
	
	.hero-image {
		margin-top: 40px;
	}
	
	.section-header h2 {
		font-size: 2rem;
	}
}

@media (max-width: 767px) {
	.top-bar {
		font-size: 12px;
	}
	
	.top-info span {
		display: none;
	}
	
	.hero-content h1 {
		font-size: 2rem;
	}
	
	.hero-stats h3 {
		font-size: 1.8rem;
	}
	
	.book-image {
		height: 250px;
	}
}
