/* Cyntris Labs - Dark Modern Professional Theme */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

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

::-webkit-scrollbar-track {
	background: var(--bg-darker);
	border-radius: 6px;
}

::-webkit-scrollbar-thumb {
	background: var(--gradient-primary);
	border-radius: 6px;
	border: 2px solid var(--bg-darker);
}

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

* {
	scrollbar-width: thin;
	scrollbar-color: var(--primary-color) var(--bg-darker);
}

:root {
	--primary-color: #8b5cf6;
	--secondary-color: #7c3aed;
	--accent-color: #a855f7;
	--bg-dark: #0a0a0a;
	--bg-darker: #050505;
	--bg-card: #1a1a1a;
	--text-primary: #ffffff;
	--text-secondary: #b0b0b0;
	--text-muted: #666666;
	--border-color: #333333;
	--gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	--gradient-accent: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
	--shadow-primary: 0 10px 30px rgba(139, 92, 246, 0.2);
	--shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		sans-serif;
	background: var(--bg-dark);
	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-darker);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	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);
	}
}

/* Navigation */
.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	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 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 70px;
}

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

.nav-menu {
	display: flex;
	list-style: none;
	gap: 30px;
}

.nav-link {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	transition: color 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: 0.3s;
}

/* Main Content Padding */
.main-content {
	padding-top: 70px;
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(8px);
	z-index: 1;
}

.hero-bg-animation {
	animation: heroBackgroundSlide 15s infinite;
}

@keyframes heroBackgroundSlide {
	0%,
	33% {
		background-image: url("/assets/images/courses/devops-engineering.png");
	}
	34%,
	66% {
		background-image: url("/assets/images/courses/python-ai-programming.webp");
	}
	67%,
	100% {
		background-image: url("/assets/images/courses/cybersecurity-fundamentals.jpg");
	}
}

.hero-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
	z-index: 2;
}

.hero-home {
	justify-content: center;
	text-align: center;
}

.hero-home .hero-container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

.hero-content {
	max-width: 600px;
}

.hero-title {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: fadeInUp 1s ease;
}

.hero-subtitle {
	font-size: 1.3rem;
	color: var(--text-secondary);
	margin-bottom: 30px;
	animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
	display: flex;
	gap: 20px;
	animation: fadeInUp 1s ease 0.4s both;
}

.hero-home .hero-cta {
	justify-content: center;
}

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

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

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

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

.btn-secondary:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
}

/* Sections */
.section {
	padding: 80px 0;
}

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

.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 20px;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-subtitle {
	font-size: 1.1rem;
	color: var(--text-secondary);
	text-align: center;
	margin-bottom: 60px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Cards */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.card {
	background: var(--bg-card);
	border-radius: 16px;
	padding: 30px;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-align: center;
}

.card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gradient-primary);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

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

.card:hover::before {
	transform: scaleX(1);
}

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

.card-title {
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--text-primary);
	text-align: center;
}

.card-description {
	color: var(--text-secondary);
	margin-bottom: 20px;
	flex-grow: 1;
	text-align: center;
}

.card-footer {
	margin-top: auto;
	padding-top: 20px;
	text-align: center;
}

/* Blog Cards */
.blog-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.blog-card {
	background: var(--bg-card);
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	text-align: center;
}

.blog-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-card);
}

.blog-image {
	width: 100%;
	height: 200px;
	background: var(--gradient-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.2rem;
}

.blog-content {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	text-align: center;
}

.blog-date {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 10px;
	text-align: center;
}

.blog-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--text-primary);
	text-align: center;
}

.blog-excerpt {
	color: var(--text-secondary);
	margin-bottom: 20px;
	flex-grow: 1;
	text-align: center;
}

/* Footer */
.footer {
	background: var(--bg-darker);
	border-top: 1px solid var(--border-color);
	padding: 60px 0 30px;
}

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

.footer-section h3 {
	color: var(--text-primary);
	margin-bottom: 20px;
	font-size: 1.2rem;
}

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

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

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

.footer-links a:hover {
	color: var(--primary-color);
}

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

/* Cookie Popup */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 20px;
	z-index: 1001;
	max-width: 400px;
	margin: 0 auto;
	box-shadow: var(--shadow-card);
	transform: translateY(100px);
	opacity: 0;
	transition: all 0.3s ease;
}

.cookie-popup.show {
	transform: translateY(0);
	opacity: 1;
}

.cookie-buttons {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.cookie-buttons .btn {
	padding: 8px 20px;
	font-size: 0.9rem;
}

/* Go to Top Button */
.go-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	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);
	}
}

.fade-in-up {
	animation: fadeInUp 0.8s ease;
}

/* Form Styles */
.form-group {
	margin-bottom: 20px;
}

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

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

.form-input:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--primary-color);
}

.form-textarea {
	resize: vertical;
	min-height: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.hamburger {
		display: flex;
	}

	.nav-menu {
		position: fixed;
		top: 70px;
		left: -100%;
		width: 100%;
		height: calc(100vh - 70px);
		background: var(--bg-darker);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.3s ease;
	}

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

	.hero-title {
		font-size: 2.5rem;
	}

	.hero-cta {
		flex-direction: column;
		align-items: center;
	}
	
	.hero-home .hero-cta {
		align-items: center;
	}

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

	.blog-cards {
		grid-template-columns: 1fr;
	}

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

	.cookie-popup {
		left: 10px;
		right: 10px;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 2rem;
	}

	.section-title {
		font-size: 2rem;
	}

	.container {
		padding: 0 15px;
	}
}

.about-approach-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

@media (max-width: 1024px) {
	.about-approach-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.about-approach-grid {
		grid-template-columns: 1fr !important;
		gap: 30px !important;
		margin-top: 40px !important;
	}
	
	.about-approach-grid > div {
		padding: 20px;
		background: var(--bg-card);
		border-radius: 16px;
		border: 1px solid var(--border-color);
		transition: all 0.3s ease;
	}
	
	.about-approach-grid > div:hover {
		transform: translateY(-5px);
		box-shadow: var(--shadow-card);
		border-color: var(--primary-color);
	}
	
	.section .container > div[style*="grid-template-columns: 1fr 1fr"] {
		grid-template-columns: 1fr !important;
		gap: 30px !important;
		text-align: center;
	}
	
	.section .container > div[style*="grid-template-columns: 1fr 1fr"] h2 {
		text-align: center !important;
	}
}

/* Slick Slider Overrides */
.slick-dots {
	bottom: -50px;
}

.slick-dots li button:before {
	color: var(--primary-color);
	font-size: 12px;
}

.slick-prev,
.slick-next {
	z-index: 1;
}

.slick-prev:before,
.slick-next:before {
	color: var(--primary-color);
}

/* Button Centering */
.btn-center-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* Newsletter Section Mobile Responsive */
.newsletter-section {
	padding: 40px 20px;
	background: var(--gradient-primary);
	border-radius: 20px;
	text-align: center;
	color: white;
	margin: 40px auto;
	max-width: 500px;
	box-sizing: border-box;
}

.newsletter-form {
	display: flex;
	gap: 15px;
	margin-top: 30px;
	flex-wrap: wrap;
	justify-content: center;
}

.newsletter-input {
	flex: 1;
	min-width: 250px;
	padding: 12px 16px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.9);
	box-sizing: border-box;
}

.newsletter-btn {
	padding: 12px 24px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid white;
	color: white;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.newsletter-btn:hover {
	background: white;
	color: var(--primary-color);
}

@media (max-width: 768px) {
	.newsletter-section {
		margin: 20px 15px;
		padding: 30px 20px;
		border-radius: 16px;
		max-width: none;
	}
	
	.newsletter-form {
		flex-direction: column;
		align-items: stretch;
		gap: 15px;
	}
	
	.newsletter-input {
		width: 100%;
		min-width: unset;
		max-width: none;
	}
	
	.newsletter-btn {
		width: 100%;
		max-width: none;
	}
	
	/* Blog page newsletter form */
	.card form {
		flex-direction: column !important;
		align-items: center !important;
		gap: 15px !important;
		max-width: none !important;
	}
	
	.card form input {
		width: 100% !important;
		flex: none !important;
		max-width: 300px;
	}
	
	.card form button {
		width: 100% !important;
		max-width: 300px;
	}
}

@media (max-width: 480px) {
	.btn-center-container {
		flex-direction: column;
		gap: 15px;
	}
	
	.newsletter-section {
		margin: 15px 10px;
		padding: 20px 15px;
		border-radius: 12px;
	}
	
	.newsletter-section h3 {
		font-size: 1.4rem !important;
		margin-bottom: 15px !important;
	}
	
	.newsletter-section p {
		font-size: 0.9rem !important;
		line-height: 1.4 !important;
	}
	
	.newsletter-section > div:first-child {
		font-size: 2rem !important;
		margin-bottom: 15px !important;
	}
}
