/* Custom CSS for Scalater Dev OÜ */

/* Root Variables */
:root {
	--primary-color: #007bff;
	--secondary-color: #6c757d;
	--success-color: #28a745;
	--danger-color: #dc3545;
	--warning-color: #ffc107;
	--info-color: #17a2b8;
	--light-color: #f8f9fa;
	--dark-color: #343a40;
	--white: #ffffff;
	--black: #000000;
}

/* Global Styles */
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	padding-top: 76px; /* Account for fixed navbar */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: #2c3e50;
	margin-bottom: 1rem;
}

p {
	margin-bottom: 1rem;
	color: #555;
}

/* Links */
a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #0056b3;
}

/* Navigation */
.navbar {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.navbar-brand {
	font-size: 1.5rem;
	font-weight: 700;
}

.navbar-nav .nav-link {
	font-weight: 500;
	margin: 0 0.5rem;
	transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
	color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
	color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
	background: linear-gradient(
			135deg,
			rgba(0, 123, 255, 0.8),
			rgba(0, 123, 255, 0.6)
		),
		url('../images/hero-bg.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	color: white;
	position: relative;
	overflow: hidden;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
}

.hero-section .container {
	position: relative;
	z-index: 2;
}

.hero-section h1 {
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	animation: fadeInUp 1s ease-out;
}

.hero-section p {
	color: white;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
	animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-section .btn {
	animation: fadeInUp 1s ease-out 0.6s both;
}

/* Page Header */
.page-header {
	background: linear-gradient(135deg, #007bff, #0056b3);
	color: white;
	padding: 120px 0 80px;
	text-align: center;
}

.page-header h1 {
	color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
	color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
	border-radius: 5px;
	padding: 12px 30px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: none;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary-color), #0056b3);
	box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #0056b3, var(--primary-color));
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

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

.btn-outline-primary:hover {
	background: var(--primary-color);
	color: white;
	transform: translateY(-2px);
}

.btn-outline-light {
	border: 2px solid white;
	color: white;
}

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

/* Cards */
.card {
	border: none;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.card-img-top {
	height: 200px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.card:hover .card-img-top {
	transform: scale(1.05);
}

/* Service Cards */
.service-card {
	background: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	text-align: center;
	border: 1px solid #e9ecef;
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
	margin-bottom: 1.5rem;
}

/* Tech Cards */
.tech-card {
	background: white;
	padding: 1.5rem;
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.tech-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Process Steps */
.process-step {
	position: relative;
	padding: 2rem;
}

.step-number {
	width: 60px;
	height: 60px;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: bold;
	margin: 0 auto 1rem;
}

/* Pricing Cards */
.pricing-card {
	background: white;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	padding: 2rem;
	transition: all 0.3s ease;
	text-align: center;
}

.pricing-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
	border: 3px solid var(--primary-color);
	transform: scale(1.05);
}

.pricing-header {
	margin-bottom: 2rem;
}

.pricing-features {
	margin-bottom: 2rem;
}

.pricing-features ul li {
	margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
	background: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.contact-icon {
	margin-right: 1rem;
	flex-shrink: 0;
}

.contact-details h6 {
	margin-bottom: 0.5rem;
	color: var(--dark-color);
}

.contact-details p {
	margin: 0;
}

.contact-details a {
	color: var(--primary-color);
	text-decoration: none;
}

.contact-details a:hover {
	text-decoration: underline;
}

/* Forms */
.form-control {
	border-radius: 5px;
	padding: 12px 15px;
	border: 1px solid #ddd;
	transition: all 0.3s ease;
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--dark-color);
}

.form-select {
	border-radius: 5px;
	padding: 12px 15px;
	border: 1px solid #ddd;
	transition: all 0.3s ease;
}

.form-select:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check-input {
	margin-top: 0.25rem;
}

.form-check-label {
	font-weight: 400;
}

.invalid-feedback {
	font-size: 0.875rem;
	color: var(--danger-color);
}

.was-validated .form-control:valid {
	border-color: var(--success-color);
}

.was-validated .form-control:invalid {
	border-color: var(--danger-color);
}

/* Cookie Consent Banner */
.cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 1rem 0;
	z-index: 1050;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.cookie-consent.show {
	transform: translateY(0);
}

.cookie-consent p {
	margin: 0;
	color: white;
}

.cookie-consent a {
	color: white;
	text-decoration: underline;
}

.cookie-consent a:hover {
	color: #ccc;
}

/* Footer */
footer {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	position: relative;
	overflow: hidden;
}

footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(
		90deg,
		var(--primary-color),
		#17a2b8,
		var(--primary-color)
	);
}

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

footer a:hover {
	color: white;
	transform: translateX(5px);
}

/* Enhanced Footer Styles */
.footer-enhanced {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.footer-enhanced .text-light {
	color: #ffffff !important;
}

.footer-enhanced .text-muted {
	color: #adb5bd !important;
}

.footer-brand {
	position: relative;
}

.footer-brand::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-color), #17a2b8);
	border-radius: 2px;
}

.company-stats .stat-item {
	display: flex;
	align-items: center;
	padding: 5px 0;
	border-left: 2px solid transparent;
	padding-left: 10px;
	transition: all 0.3s ease;
}

.company-stats .stat-item:hover {
	border-left-color: var(--primary-color);
	padding-left: 15px;
}

.company-stats .stat-item small {
	color: #c8c9ca !important;
}

.contact-info .contact-item {
	display: flex;
	align-items: center;
	padding: 8px 0;
	transition: all 0.3s ease;
}

.contact-info .contact-item:hover {
	padding-left: 10px;
}

.contact-info .contact-item i {
	width: 20px;
	text-align: center;
}

.contact-info .contact-item a {
	color: #000000 !important;
	text-decoration: none;
}

.contact-info .contact-item a:hover {
	color: var(--primary-color) !important;
}

.contact-info .contact-item span {
	color: #010101 !important;
}

.business-hours {
	background: rgba(0, 123, 255, 0.15);
	padding: 10px;
	border-radius: 8px;
	border-left: 3px solid var(--primary-color);
}

.business-hours small {
	color: #c8c9ca !important;
}

.footer-links {
	margin: 0;
	padding: 0;
}

.footer-links li {
	margin-bottom: 10px;
	transition: all 0.3s ease;
}

.footer-links li:hover {
	transform: translateX(5px);
}

.footer-links a {
	position: relative;
	display: inline-block;
	padding: 5px 0;
	color: #ffffff !important;
	text-decoration: none;
}

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

.footer-links a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary-color);
	transition: width 0.3s ease;
}

.footer-links a:hover::after {
	width: 100%;
}

.social-links {
	display: flex;
	gap: 10px;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid transparent;
	border-radius: 50%;
	color: #adb5bd;
	font-size: 18px;
	transition: all 0.3s ease;
	text-decoration: none;
}

.social-link:hover {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: white;
	transform: translateY(-3px) scale(1.1);
	box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.footer-divider {
	border-color: rgba(255, 255, 255, 0.2);
	margin: 2rem 0;
}

.footer-copyright {
	font-size: 0.9rem;
	color: #c8c9ca !important;
}

.footer-badge {
	text-align: right;
}

.footer-badge .pulse {
	animation: pulse 2s infinite;
}

.footer-badge .text-light {
	color: #ffffff !important;
}

.footer-badge small {
	color: #c8c9ca !important;
}

.footer-cta {
	background: rgba(0, 123, 255, 0.15);
	padding: 15px 20px;
	border-radius: 10px;
	border: 1px solid rgba(0, 123, 255, 0.3);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.footer-cta small {
	color: #e9ecef !important;
}

.footer-cta .btn {
	padding: 8px 20px;
	font-size: 0.9rem;
	border-radius: 20px;
	transition: all 0.3s ease;
}

.footer-cta .btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

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

/* Footer animations */
.footer-enhanced .row > div {
	animation: fadeInUp 0.6s ease-out;
}

.footer-enhanced .row > div:nth-child(1) {
	animation-delay: 0.1s;
}

.footer-enhanced .row > div:nth-child(2) {
	animation-delay: 0.2s;
}

.footer-enhanced .row > div:nth-child(3) {
	animation-delay: 0.3s;
}

.footer-enhanced .row > div:nth-child(4) {
	animation-delay: 0.4s;
}

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

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Utility Classes */
.text-shadow {
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-gradient-primary {
	background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.shadow-custom {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
	.hero-section {
		background-attachment: scroll;
	}

	.hero-section h1 {
		font-size: 2.5rem;
	}

	.page-header {
		padding: 100px 0 60px;
	}

	.page-header h1 {
		font-size: 2rem;
	}

	.service-card {
		padding: 1.5rem;
	}

	.tech-card {
		padding: 1rem;
	}

	.contact-item {
		flex-direction: column;
		text-align: center;
	}

	.contact-icon {
		margin-right: 0;
		margin-bottom: 1rem;
	}

	.pricing-card.featured {
		transform: none;
	}

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

	.cookie-consent .col-lg-4 {
		margin-top: 1rem;
	}
}

@media (max-width: 576px) {
	.hero-section h1 {
		font-size: 2rem;
	}

	.page-header h1 {
		font-size: 1.75rem;
	}

	.btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}

	.service-card {
		padding: 1rem;
	}

	.step-number {
		width: 50px;
		height: 50px;
		font-size: 1.25rem;
	}
}

/* Print Styles */
@media print {
	.navbar,
	.cookie-consent,
	footer {
		display: none !important;
	}

	body {
		padding-top: 0;
	}

	.hero-section {
		background: none;
		color: black;
	}

	.page-header {
		background: none;
		color: black;
	}

	.btn {
		display: none;
	}

	.card {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}

/* Accessibility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.card {
		border: 2px solid #000;
	}

	.btn {
		border: 2px solid;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
