/* DIY Makers Forge - Dark Super Modern Theme */
:root {
	--primary-color: #fd3d96;
	--secondary-color: #f02399;
	--accent-color: #463b83;
	--bg-primary: #0a0a0a;
	--bg-secondary: #1a1a1a;
	--bg-card: #1e1e1e;
	--text-primary: #ffffff;
	--text-secondary: #b3b3b3;
	--text-muted: #666666;
	--border-color: #333333;
	--gradient-primary: linear-gradient(135deg, #fd3d96 0%, #c2186c 100%);
	--gradient-secondary: linear-gradient(135deg, #f02399 0%, #fd73c4 100%);
	--shadow-primary: 0 10px 40px rgba(253, 61, 150, 0.2);
	--shadow-secondary: 0 10px 40px rgba(240, 35, 153, 0.2);
	--navbar-height: 80px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
	background: var(--gradient-primary);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--primary-color);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--bg-primary);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	transition: opacity 0.5s ease;
}

.loading-spinner {
	width: 60px;
	height: 60px;
	border: 3px solid var(--border-color);
	border-top: 3px solid var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Navbar */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--navbar-height);
	background: rgba(10, 10, 10, 0.95);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
	transition: all 0.3s ease;
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-logo img {
	height: 50px;
	width: auto;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-link {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
}

.nav-link:hover,
.nav-link.active {
	color: var(--primary-color);
}

.nav-link::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--gradient-primary);
	transition: width 0.3s ease;
}

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

.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 4px;
}

.hamburger span {
	width: 25px;
	height: 3px;
	background: var(--text-primary);
	transition: all 0.3s ease;
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url("/assets/images/courses/modern-home-styling.jpeg")
		center/cover no-repeat;
	animation: heroSlideshow 15s infinite, heroZoom 15s infinite;
	z-index: 0;
}

.hero::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 10, 10, 0.3);
	backdrop-filter: blur(4px);
	z-index: 1;
}

@keyframes heroSlideshow {
	0%,
	33% {
		background: url("/assets/images/courses/modern-home-styling.jpeg") center/cover no-repeat;
	}
	34%,
	66% {
		background: url("/assets/images/courses/diy-furniture-making.jpg") center/cover no-repeat;
	}
	67%,
	100% {
		background: url("/assets/images/courses/sustainable-fashion.jpg") center/cover no-repeat;
	}
}

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

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
	opacity: 0.3;
}

.hero-content {
	max-width: 800px;
	padding: 0 2rem;
	position: relative;
	z-index: 3;
}

.hero h1 {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 800;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 1.5rem;
	animation: fadeInUp 1s ease 0.2s both;
	padding-top: 2rem;
}

@media (max-width: 768px) {
	.hero h1 {
		padding-top: 4rem;
	}
}

.hero p {
	font-size: 1.25rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
	animation: fadeInUp 1s ease 0.4s both;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 1rem 2rem;
	border: none;
	border-radius: 50px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn-primary {
	background: var(--gradient-primary);
	color: white;
	box-shadow: var(--shadow-primary);
}

.btn-secondary {
	background: transparent;
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 50px rgba(253, 61, 150, 0.4);
}

/* Cards */
.card {
	background: var(--bg-card);
	border-radius: 20px;
	padding: 2rem;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-primary);
	border-color: var(--primary-color);
}

.card-icon {
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
	text-align: center;
}

.card h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	text-align: center;
}

.card p {
	color: var(--text-secondary);
	margin-bottom: 2rem;
	flex-grow: 1;
	text-align: center;
}

.card .btn {
	margin-top: auto;
	align-self: center;
}

/* Grid Layouts */
.grid {
	display: grid;
	gap: 2rem;
}

.grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Sections */
.section {
	padding: 5rem 0;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.section-title {
	text-align: center;
	margin-bottom: 3rem;
}

.section-title h2 {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 1rem;
}

.section-title p {
	font-size: 1.2rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto;
}

/* Footer */
.footer {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	padding: 3rem 0 1rem;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-section h3 {
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.footer-section ul {
	list-style: none;
}

.footer-section ul li {
	margin-bottom: 0.5rem;
}

.footer-section ul li a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-section ul li a:hover {
	color: var(--primary-color);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
	color: var(--text-muted);
}

/* Cookie Popup */
.cookie-popup {
	position: fixed;
	bottom: 2rem;
	left: 2rem;
	right: 2rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 15px;
	padding: 1.5rem;
	z-index: 9999;
	display: none;
	animation: slideUp 0.5s ease;
}

.cookie-popup.show {
	display: block;
}

.cookie-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.cookie-buttons {
	display: flex;
	gap: 1rem;
}

.cookie-buttons .btn {
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
}

/* Go to Top Button */
.go-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 50px;
	height: 50px;
	background: var(--gradient-primary);
	border: none;
	border-radius: 50%;
	color: white;
	font-size: 1.2rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
}

.go-top.show {
	opacity: 1;
	visibility: visible;
}

.go-top:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-primary);
}

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

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

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

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

/* Form Styles */
.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
	font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 1rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	color: var(--text-primary);
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(253, 61, 150, 0.1);
}

/* Modal */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 10000;
}

.modal.show {
	display: flex;
}

.modal-content {
	background: var(--bg-card);
	border-radius: 20px;
	padding: 2rem;
	max-width: 500px;
	width: 90%;
	border: 1px solid var(--border-color);
	animation: fadeInUp 0.3s ease;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.modal-footer {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.modal-close {
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 1.5rem;
	cursor: pointer;
}

@media (max-width: 768px) {
	.modal-footer {
		flex-direction: column;
		gap: 0.75rem;
	}

	.modal-footer .btn {
		width: 100%;
		text-align: center;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.nav-menu {
		position: fixed;
		top: var(--navbar-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--navbar-height));
		background: var(--bg-primary);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.3s ease;
		z-index: 999;
	}

	.nav-menu.active {
		left: 0;
	}

	.hamburger {
		display: flex;
	}

	.hamburger.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	.hamburger.active span:nth-child(2) {
		opacity: 0;
	}

	.hamburger.active span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -6px);
	}

	.cookie-popup {
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
	}

	.cookie-content {
		flex-direction: column;
		text-align: center;
	}

	.cookie-buttons {
		justify-content: center;
	}

	.grid-3 {
		grid-template-columns: 1fr;
	}

	.grid-2 {
		grid-template-columns: 1fr;
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.modal-content {
		margin: 1rem;
		max-height: 90vh;
		overflow-y: auto;
	}

	.hero h1 {
		font-size: clamp(2rem, 6vw, 4rem);
	}

	.section {
		padding: 3rem 0;
	}

	.container {
		padding: 0 1rem;
	}

	.card {
		padding: 1.5rem;
	}

	.notification {
		top: 1rem !important;
		right: 1rem !important;
		left: 1rem !important;
		max-width: none !important;
	}

	.testimonial-controls {
		padding: 1rem;
	}

	.testimonial-slide {
		padding: 2rem 1rem;
	}

	.testimonial-slide blockquote {
		font-size: 1.1rem;
	}
}

/* Page-specific adjustments */
.page-content {
	padding-top: var(--navbar-height);
	min-height: calc(100vh - var(--navbar-height));
}

/* Non-home page hero sections */
.page-content .hero {
	min-height: 60vh;
}

.page-content .hero h1 {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
}

@media (max-width: 768px) {
	.page-content .hero h1 {
		font-size: clamp(1.2rem, 3vw, 1.8rem);
	}

	/* Stay Updated section mobile styles */
	.section form {
		flex-direction: column !important;
		text-align: center;
	}

	.section form input[type="email"] {
		min-width: 100% !important;
	}

	.section form .btn {
		width: 100%;
	}

	/* Course search section mobile styles */
	.section .container > div:first-child {
		display: flex !important;
		flex-direction: column !important;
		gap: 1.5rem !important;
		padding: 1.5rem !important;
	}

	.section .container > div:first-child > div {
		width: 100% !important;
	}

	.section .container > div:first-child > div:last-child {
		display: flex !important;
		flex-direction: column !important;
		gap: 1rem !important;
	}

	.section select,
	.section input[type="text"] {
		padding: 1.2rem !important;
		font-size: 1rem !important;
		border-radius: 12px !important;
		width: 100% !important;
		min-width: auto !important;
	}

	.section .form-group {
		width: 100% !important;
		margin-bottom: 0 !important;
	}

	.section .form-group label {
		font-size: 1rem !important;
		margin-bottom: 0.75rem !important;
	}

	.section .form-group .fas.fa-search {
		display: none !important;
	}
}

/* Smooth scrolling for all browsers */
html {
	scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

.btn:focus,
.nav-link:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Loading states */
.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn:disabled:hover {
	transform: none;
	box-shadow: none;
}

/* Course and Blog Card Specific Styles */
.course-card .card-image,
.blog-card .card-image {
	margin-bottom: 1rem;
	overflow: hidden;
	border-radius: 10px;
}

.course-card .card-image img,
.blog-card .card-image img {
	transition: transform 0.3s ease;
}

.course-card:hover .card-image img,
.blog-card:hover .card-image img {
	transform: scale(1.05);
}

.course-meta {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.course-category {
	color: var(--primary-color);
	font-weight: 600;
}

.course-price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--secondary-color);
	text-align: center;
	margin-bottom: 1rem;
}

.blog-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.blog-category {
	background: var(--gradient-primary);
	color: white;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
}

.blog-date {
	color: var(--text-muted);
}

/* Image placeholder styles */
.image-placeholder {
	background: var(--bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-size: 2rem;
	border-radius: 10px;
}

/* Testimonial Slider */
.testimonial-slider {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
}

.testimonial-slides {
	position: relative;
	min-height: 300px;
}

.testimonial-slide {
	display: none;
	text-align: center;
	padding: 3rem 2rem;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.testimonial-slide.active {
	display: block;
	opacity: 1;
	position: relative;
}

.testimonial-stars {
	color: var(--secondary-color);
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
}

.testimonial-slide blockquote {
	font-size: 1.3rem;
	font-style: italic;
	margin-bottom: 2rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

.testimonial-author {
	font-weight: 600;
	color: var(--primary-color);
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.testimonial-course {
	color: var(--text-muted);
	font-size: 0.9rem;
}

.testimonial-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	background: var(--bg-secondary);
}

.testimonial-btn {
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.testimonial-btn:hover {
	color: var(--primary-color);
	background: var(--bg-card);
}

.testimonial-dots {
	display: flex;
	gap: 0.5rem;
}

.testimonial-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	background: var(--text-muted);
	cursor: pointer;
	transition: all 0.3s ease;
}

.testimonial-dot.active {
	background: var(--primary-color);
	transform: scale(1.2);
}

/* FAQ Accordion */
.faq-item {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	margin-bottom: 1rem;
	overflow: hidden;
}

.faq-question {
	width: 100%;
	padding: 1.5rem;
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: 1.1rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.faq-answer {
	padding: 0 1.5rem;
	max-height: 0;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
	padding: 0 1.5rem 1.5rem;
	max-height: 200px;
}

.faq-icon {
	transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
	transform: rotate(180deg);
}
