/* Smooth scrolling for anchor links */
html { scroll-behavior: smooth; }

/* Theme variables */
:root {
	--color-primary: #ffffff;
	--color-secondary: #f7f8f8;
	--color-bg-dark: #000000;
	--color-bg-darker: #000000;
	--color-bg-card: #0a0a0a;
	--color-text-primary: #f7f8f8;
	--color-text-light: #ffffff;
	--color-text-muted: #999999;
	--color-accent: #cccccc;
	--shadow-sm: 0 2px 8px rgba(255, 255, 255, 0.05);
	--shadow-md: 0 4px 16px rgba(255, 255, 255, 0.08);
	--shadow-lg: 0 8px 32px rgba(255, 255, 255, 0.12);
	--shadow-glow: 0 0 20px rgba(255, 255, 255, 0.15), 0 0 40px rgba(255, 255, 255, 0.1);
	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;
	--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	--max-width: 1200px;
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2rem;
	--spacing-xl: 3rem;
	--spacing-2xl: 4rem;
}

/* Reset */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Base */
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--color-bg-dark);
	color: var(--color-text-primary);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

.skip-link {
	position: absolute;
	left: 0;
	top: 0;
	transform: translateY(-200%);
	opacity: 0;
	background: var(--color-primary);
	color: var(--color-bg-dark);
	padding: var(--spacing-sm);
	text-decoration: none;
	font-weight: 600;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	border-radius: var(--radius-sm);
	transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.skip-link:focus, .skip-link:active {
	transform: translateY(0);
	opacity: 1;
}

.hero-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: -1;
	background:
		radial-gradient(ellipse at 70% 15%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
		radial-gradient(ellipse at 15% 85%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
		radial-gradient(ellipse at 85% 70%, rgba(255, 255, 255, 0.015) 0%, transparent 45%),
		linear-gradient(180deg, #000000 0%, #050505 50%, #000000 100%);
	pointer-events: none;
	animation: gradientShift 20s ease infinite alternate;
}

@keyframes gradientShift {
	0% { background-position: 0 0, 100% 100%, 100% 0; }
	100% { background-position: 100% 100%, 0 0, 0 100%; }
}

.container {
	position: relative;
	z-index: 1;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

.hero {
	position: relative;
	text-align: center;
	padding: clamp(1.25rem, 4vh, 2rem) var(--spacing-md) var(--spacing-lg);
	min-height: 24vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: var(--spacing-sm);
}

.logo {
	display: block;
	max-width: 100%;
	width: clamp(280px, 70vw, 560px);
	height: auto;
	margin: 0;
	filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.2))
					drop-shadow(0 4px 20px rgba(255, 255, 255, 0.1));
	transition: transform var(--transition-medium), filter var(--transition-medium);
	animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
	0% {
		filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.2))
						drop-shadow(0 4px 20px rgba(255, 255, 255, 0.1));
	}
	100% {
		filter: drop-shadow(0 3px 15px rgba(255, 255, 255, 0.3))
						drop-shadow(0 6px 30px rgba(255, 255, 255, 0.15));
	}
}

.logo:hover {
	transform: scale(1.02) translateY(-2px);
	animation-play-state: paused;
	filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.35))
					drop-shadow(0 8px 40px rgba(255, 255, 255, 0.2));
}

.subtitle {
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
	color: var(--color-accent);
	margin: var(--spacing-xs) 0 var(--spacing-sm);
	font-weight: 400;
	max-width: 640px;
	line-height: 1.5;
	text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
	animation: fadeInUp 0.8s ease-out 0.3s both;
	align-self: center;
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-xs);
	padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.75rem, 4vw, 2.5rem);
	font-size: clamp(1rem, 2vw, 1.125rem);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius-xl);
	transition: all var(--transition-medium);
	cursor: pointer;
	border: none;
	min-height: 48px;
	min-width: 48px;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
}

.btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
	width: 300px;
	height: 300px;
}

.btn > * { position: relative; z-index: 1; }

.btn-primary {
	background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
	color: #000000;
	box-shadow: var(--shadow-md), 0 0 30px rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg), var(--shadow-glow);
	background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
	border-color: #ffffff;
}

.btn-secondary {
	background: rgba(10, 10, 10, 0.8);
	color: #ffffff;
	box-shadow: var(--shadow-sm);
	border: 2px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
}

.btn-secondary:hover, .btn-secondary:focus {
	background: rgba(255, 255, 255, 0.1);
	border-color: #ffffff;
	box-shadow: var(--shadow-md), 0 0 20px rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-md);
	justify-content: center;
	margin-top: var(--spacing-sm);
	animation: fadeInUp 1s ease-out 0.5s both;
}

.section {
	position: relative;
	z-index: 1;
	padding: var(--spacing-xl) var(--spacing-md);
	max-width: var(--max-width);
	margin: 0 auto;
}

.section-title {
	font-family: 'Orbitron', sans-serif;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	color: #ffffff;
	margin-bottom: var(--spacing-xl);
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	letter-spacing: 1.5px;
	font-weight: 700;
	text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
	position: relative;
}

.section-title::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -8px;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
	border-radius: 2px;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: var(--spacing-xl);
	margin-top: var(--spacing-xl);
	justify-items: center;
}

.service-card {
	background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
	backdrop-filter: blur(20px);
	border-radius: var(--radius-md);
	padding: var(--spacing-xl);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	transition: all var(--transition-medium);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
	position: relative;
	overflow: hidden;
	text-align: center;
}

.service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #ffffff 0%, #999999 100%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition-medium);
}

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

.service-card:hover, .service-card:focus-within {
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15), 0 6px 16px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.3);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(10, 10, 10, 0.95) 100%);
}

.service-icon {
	font-size: clamp(2.5rem, 5vw, 3rem);
	color: #ffffff;
	margin-bottom: var(--spacing-xs);
	filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
	transition: transform var(--transition-medium);
}

.service-card:hover .service-icon {
	transform: scale(1.1) rotateY(10deg);
	filter: drop-shadow(0 6px 16px rgba(255, 255, 255, 0.4));
}

.service-title {
	font-size: clamp(1.25rem, 2vw, 1.375rem);
	font-weight: 700;
	color: #ffffff;
	margin-bottom: var(--spacing-xs);
	text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.service-desc {
	font-size: clamp(0.938rem, 1.5vw, 1.063rem);
	color: var(--color-text-primary);
	line-height: 1.7;
}

.clients-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--spacing-lg);
	margin-top: var(--spacing-xl);
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.client-type {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
	backdrop-filter: blur(15px);
	border-radius: var(--radius-md);
	padding: var(--spacing-xl);
	border-left: 4px solid #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
	transition: all var(--transition-medium);
	flex: 0 1 260px;
	min-width: 260px;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
	min-height: 140px;
	position: relative;
	overflow: hidden;
	text-align: center;
}

.client-type::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100px;
	height: 100px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
	transform: translate(40%, -40%);
	transition: transform var(--transition-medium);
}

.client-type:hover::after { transform: translate(30%, -30%); }

.client-type:hover, .client-type:focus-within {
	transform: translateX(6px) translateY(-4px);
	box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	border-left-color: #ffffff;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.client-type strong {
	color: #ffffff;
	font-size: clamp(1.063rem, 2vw, 1.25rem);
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
	z-index: 1;
}

.client-type i { font-size: 1.4em; filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.3)); }
.client-type p { z-index: 1; }

.why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: var(--spacing-lg);
	margin-top: var(--spacing-xl);
	justify-items: center;
}

.why-card {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.8) 100%);
	backdrop-filter: blur(15px);
	border-radius: var(--radius-md);
	padding: var(--spacing-xl);
	border-left: 4px solid #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
	transition: all var(--transition-medium);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
	min-height: 140px;
	position: relative;
	overflow: hidden;
	text-align: center;
}

.why-card::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100px;
	height: 100px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
	transform: translate(40%, -40%);
	transition: transform var(--transition-medium);
}

.why-card:hover::after { transform: translate(30%, -30%); }

.why-card:hover, .why-card:focus-within {
	transform: translateX(6px) translateY(-4px);
	box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	border-left-color: #ffffff;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(10, 10, 10, 0.95) 100%);
}

.why-icon {
	font-size: clamp(1.75rem, 3vw, 2rem);
	color: #ffffff;
	margin-bottom: var(--spacing-xs);
	filter: drop-shadow(0 3px 10px rgba(255, 255, 255, 0.3));
	transition: transform var(--transition-medium);
	z-index: 1;
}

.why-card:hover .why-icon { transform: scale(1.15); }
.why-card p { z-index: 1; }

.contact-section {
	text-align: center;
	padding: var(--spacing-2xl) var(--spacing-md);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
	border-radius: var(--radius-lg);
	margin-top: var(--spacing-xl);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section p {
	margin-bottom: var(--spacing-md);
	font-size: clamp(1.063rem, 2vw, 1.25rem);
}

.contact-section a {
	color: #ffffff;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: all var(--transition-fast);
	text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.contact-section a:hover, .contact-section a:focus {
	color: #cccccc;
	text-decoration-thickness: 3px;
	text-shadow: 0 3px 12px rgba(255, 255, 255, 0.4);
}

.footer {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: var(--spacing-2xl) var(--spacing-md);
	color: var(--color-text-muted);
	font-size: clamp(0.875rem, 1.5vw, 1rem);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: var(--spacing-2xl);
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.8) 100%);
	backdrop-filter: blur(10px);
}

.footer .container {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
	align-items: center;
}

.footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-lg);
	justify-content: center;
}

.footer a {
	color: #cccccc;
	text-decoration: none;
	transition: all var(--transition-fast);
	text-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
}

.footer a:hover, .footer a:focus {
	color: #ffffff;
	text-decoration: underline;
	text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Back to Top button */
.back-to-top {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-xs);
	padding: 0.5rem 1rem;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: var(--shadow-sm);
}

.back-to-top:hover, .back-to-top:focus {
	background: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
}

/* Floating action back-to-top (FAB) */
.fab-top {
	position: fixed;
	right: clamp(16px, 4vw, 24px);
	bottom: clamp(16px, 4vh, 24px);
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	text-decoration: none;
	z-index: 1000;
}

.fab-top:hover, .fab-top:focus {
	background: rgba(255, 255, 255, 0.2);
	border-color: #ffffff;
	box-shadow: 0 10px 28px rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
	.fab-top { transition: none; }
}

*:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25);
	border-radius: 4px;
}

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

@media (prefers-color-scheme: light) {
	/* Placeholder for future light theme overrides */
}

/* Responsive */
@media (max-width: 768px) {
	.hero { padding: var(--spacing-lg) var(--spacing-md); min-height: 30vh; }
	.hero-actions { flex-direction: column; width: 100%; }
	.btn { width: 100%; max-width: 420px; }
}

@media (min-width: 769px) {
	.services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.services-grid { grid-template-columns: repeat(4, 1fr); }
	.clients-grid { grid-template-columns: repeat(4, 1fr); }
	.why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Technology Partners Section */
.partners-grid {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: var(--spacing-lg);
	padding: var(--spacing-lg) 0;
	max-width: 1400px;
	margin: 0 auto;
	flex-wrap: wrap;
}

.partner-card {
	text-align: center;
	padding: var(--spacing-md);
	background: rgba(255, 255, 255, 0.03);
	border-radius: var(--radius-md);
	transition: transform var(--transition-medium), background var(--transition-medium);
	flex: 0 1 220px;
	min-width: 220px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.partner-card:hover,
.partner-card:focus-within {
	transform: translateY(-6px);
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.partner-logo {
	margin-bottom: var(--spacing-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
}

.partner-card h3 {
	font-size: 1.15rem;
	margin-bottom: var(--spacing-xs);
	color: var(--color-text-primary);
	font-weight: 600;
}

.partner-card p {
	color: var(--color-text-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Contact Section */
.contact-section h2 {
	text-align: center;
	border-left: none;
	padding-left: 0;
}

.contact-section h2::after {
	left: 50%;
	transform: translateX(-50%);
}

/* Footer Links */
.footer-link {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-xs);
}

/* Print */
@media print {
	.hero-bg { display: none; }
	body { background: #fff; color: #000; }
	.btn { border: 1px solid #000; }
}
