﻿:root {
	--coreon-navy: #0B1B33;
	--coreon-blue: #2563EB;
	--coreon-white: #FFFFFF;
	--coreon-text: #334155;
	--coreon-text-muted: #64748B;
	--coreon-border: #E2E8F0;
	--coreon-bg: #F8FAFC;
	--si-font-sans-serif: 'Inter', sans-serif;
	--si-body-font-family: 'Inter', sans-serif;
}

.coreon-system-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 620px;
	min-height: 520px;
	margin-inline: auto;
}

.system-glow {
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(37, 99, 235, .22) 0%, rgba(11, 27, 51, .12) 35%, transparent 70%);
	filter: blur(18px);
}

.system-window {
	position: relative;
	z-index: 2;
	width: 100%;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 24px;
	background: rgba(14, 17, 30, .96);
	box-shadow: 0 35px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
	transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.system-window-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 58px;
	padding: 0 20px;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.window-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
}

.system-title {
	color: rgba(255, 255, 255, .65);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .04em;
}

.system-status {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, .62);
	font-size: .72rem;
}

.project-preview {
	height: 380px;
	flex: none;
	background-size: cover;
	background-position: top center;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .12);
}

.system-window-body {
	display: grid;
	grid-template-columns: 66px 1fr;
	min-height: 390px;
}

.system-sidebar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 18px 12px;
	border-right: 1px solid rgba(255, 255, 255, .06);
	background: rgba(255, 255, 255, .015);
}

.sidebar-logo,
.sidebar-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	color: rgba(255, 255, 255, .42);
}

.sidebar-logo {
	margin-bottom: 8px;
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #0b1b33);
}

.sidebar-item.active {
	color: #fff;
	border: 1px solid rgba(37, 99, 235, .28);
	background: rgba(37, 99, 235, .18);
}

.system-content {
	min-width: 0;
	padding: 28px;
}

.system-content-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.system-content-heading > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.system-label {
	color: rgba(255, 255, 255, .38);
	font-size: .72rem;
}

.system-content-heading strong {
	color: #fff;
	font-size: 1rem;
}

.system-live {
	padding: 6px 11px;
	border: 1px solid rgba(37, 99, 235, .22);
	border-radius: 20px;
	background: rgba(37, 99, 235, .12);
	color: #93c5fd;
	font-size: .7rem;
}

.system-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.metric-card {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, .055);
	border-radius: 14px;
	background: rgba(255, 255, 255, .025);
}

.metric-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(37, 99, 235, .12);
	color: #93c5fd;
}

.metric-card > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.metric-card small {
	color: rgba(255, 255, 255, .38);
	font-size: .65rem;
}

.metric-card strong {
	overflow: hidden;
	color: rgba(255, 255, 255, .85);
	font-size: .75rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.system-chart {
	position: relative;
	height: 190px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .05);
	border-radius: 15px;
	background: rgba(255, 255, 255, .018);
}

.chart-grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 100% 38px, 70px 100%;
}

.chart-svg {
	position: absolute;
	inset: 22px 0 0;
	width: 100%;
	height: calc(100% - 22px);
}

.floating-card {
	position: absolute;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 160px;
	padding: 13px 15px;
	border: 1px solid rgba(37, 99, 235, .25);
	border-radius: 14px;
	background: rgba(16, 19, 34, .96);
	box-shadow: 0 18px 45px rgba(0, 0, 0, .3);
}

.floating-card-security {
	left: -28px;
	bottom: 72px;
}

.floating-card-api {
	top: 80px;
	right: -28px;
}

.floating-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2563eb, #0b1b33);
	color: #fff;
}

.floating-card > div {
	display: flex;
	flex-direction: column;
}

.floating-card small {
	color: rgba(255, 255, 255, .4);
	font-size: .65rem;
}

.floating-card strong {
	color: rgba(255, 255, 255, .88);
	font-size: .76rem;
}

.technology-card {
	min-height: 168px;
}

.technology-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(var(--si-primary-rgb), .1);
	color: var(--si-primary);
	font-size: 1.75rem;
	transition: transform .25s ease;
}

@media (max-width: 991px) {
	.sidebar-logo,
	.sidebar-item {
		width: 32px;
		height: 32px;
	}

	.system-content {
		padding: 18px 14px;
	}

	.system-metrics {
		grid-template-columns: 1fr;
	}

	.metric-card:nth-child(2),
	.metric-card:nth-child(3) {
		display: none;
	}

	.system-chart {
		height: 145px;
	}

	.project-preview {
		height: 320px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.technology-icon,
	.system-window {
		transition: none;
		transform: none;
	}
}

/* Premium Cookie Consent Modal */
.cookie-consent-overlay {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
	display: none;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 24px;
	pointer-events: none;
}

.cookie-consent-modal {
	width: 100%;
	max-width: 480px;
	background: #0f121b;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	pointer-events: auto;
}

.cookie-header {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 20px;
}

.cookie-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(37, 99, 235, 0.15);
	color: #2563eb;
	font-size: 1.5rem;
	flex-shrink: 0;
	box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.cookie-title {
	color: #fff;
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.cookie-text {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
	line-height: 1.6;
	margin-bottom: 25px;
}

.cookie-text a {
	color: #93c5fd;
	text-decoration: none;
	font-weight: 500;
}

.cookie-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 20px;
}

.btn-cookie-settings {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	color: rgba(255, 255, 255, 0.8) !important;
	border-radius: 12px;
	padding: 10px 16px;
	font-size: 0.9rem;
	font-weight: 500;
}

.btn-cookie-accept {
	background: #2563eb !important;
	border: none !important;
	color: #fff !important;
	border-radius: 12px;
	padding: 10px 16px;
	font-size: 0.9rem;
	font-weight: 600;
}

.btn-cookie-accept:hover {
	background: #1d4ed8 !important;
}

.cookie-footer {
	text-align: center;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.3);
}

.cookie-footer a {
	color: rgba(255, 255, 255, 0.3);
	text-decoration: none;
	transition: color 0.2s;
}

.cookie-footer a:hover {
	color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 576px) {
	.cookie-buttons {
		grid-template-columns: 1fr;
	}
}

/* Premium Vertical Theme Switch */
.theme-toggle-wrapper.fixed-left-center {
	position: fixed;
	top: 35%;
	left: 0;
	transform: translateY(-50%);
	z-index: 1040;
	background: rgba(15, 18, 27, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-left: none;
	padding: 8px 6px;
	border-radius: 0 20px 20px 0;
	backdrop-filter: blur(12px);
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

html:not([data-bs-theme="dark"]) .theme-toggle-wrapper.fixed-left-center {
	background: #ffffff;
	border-color: rgba(0, 0, 0, 0.15);
	box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
}

.theme-toggle-btn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 32px;
	height: 64px;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 30px;
	cursor: pointer;
	padding: 6px 0;
	box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
	margin: 0;
}

html:not([data-bs-theme="dark"]) .theme-toggle-btn {
	background: rgba(0, 0, 0, 0.12);
	box-shadow: inset 0 2px 6px rgba(0,0,0,0.15);
}

.theme-toggle-btn i {
	font-size: 1.1rem;
	z-index: 2;
	transition: color 0.4s ease;
	line-height: 1;
}

.theme-toggle-slider {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 24px;
	height: 24px;
	background: #fff;
	border-radius: 50%;
	z-index: 1;
	transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.policy {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}

.policy .card-body {
	padding: 0 !important;
}

.technology-name {
	min-height: 48px;
}

/* Dark Mode is active (checked) - Slider at the bottom (Moon) */
.theme-toggle-checkbox:checked + .theme-toggle-btn .theme-toggle-slider {
	transform: translateY(32px);
	background: #2563eb;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
}

/* Light Mode is active (unchecked) - Slider at the top (Sun) */
.theme-toggle-checkbox:not(:checked) + .theme-toggle-btn .theme-toggle-slider {
	transform: translateY(0);
	background: #fff;
}

/* Icon Colors when Dark Mode (checked) */
.theme-toggle-checkbox:checked + .theme-toggle-btn .icon-sun {
	color: rgba(255, 255, 255, 0.4);
}

.theme-toggle-checkbox:checked + .theme-toggle-btn .icon-moon {
	color: #fff;
}

/* Icon Colors when Light Mode (unchecked) */
.theme-toggle-checkbox:not(:checked) + .theme-toggle-btn .icon-sun {
	color: #f59e0b; /* Amber sun inside white slider */
}

.theme-toggle-checkbox:not(:checked) + .theme-toggle-btn .icon-moon {
	color: rgba(0, 0, 0, 0.4);
}


/* Logo Theme Switcher */
html[data-bs-theme="dark"] .logo-light-mode {
	display: none !important;
}

html:not([data-bs-theme="dark"]) .logo-dark-mode {
	display: none !important;
}

/* Project Cards */
.project-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 1.25rem !important;
    overflow: hidden;
    background: var(--bs-body-bg);
}

[data-bs-theme="dark"] .project-card {
    border-color: rgba(255,255,255,0.05) !important;
    background: rgba(255,255,255,0.02);
}

.project-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 2rem 4rem rgba(0,0,0,0.1) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-bs-theme="dark"] .project-card:hover {
    box-shadow: 0 2rem 4rem rgba(0,0,0,0.3) !important;
}

.project-image {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 600px;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-image-wrapper {
    overflow: hidden;
    height: 100%;
    position: relative;
}

.project-feature {
    font-size: 0.875rem;
    color: var(--bs-body-color);
    margin-bottom: 0.5rem;
}

.tech-badge {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-weight: 500;
}

/* Utilities & Overlays */
.hero-gradient-overlay {
    background: radial-gradient(circle at top right, rgba(11, 27, 51, 0.15), transparent 50%), radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.1), transparent 50%);
}

.hero-bg-overlay {
    background-image: url('/wwwroot/img/hero-bg.svg');
}

.max-w-650 {
    max-width: 650px;
}

/* Terminal Typing Effect (Responsive) */
.terminal-container {
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    color: #2563eb;
    background: rgba(0, 163, 255, 0.05);
    border: 1px solid rgba(0, 163, 255, 0.2);
    padding: 8px 12px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}
.terminal-prefix {
    color: #2563eb;
    margin-right: 8px;
    font-weight: 700;
}
.cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background-color: #2563eb;
    margin-left: 6px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@media (max-width: 768px) {
    .terminal-container {
        font-size: 0.8rem;
        padding: 8px 10px;
        white-space: pre-wrap;
    }
}

/* Dark Hero Page Navbar Fix (Light Mode) */
html.dark-hero-page[data-bs-theme="light"] header.header.navbar:not(.navbar-stuck) .nav-link,
html.dark-hero-page[data-bs-theme="light"] header.header.navbar:not(.navbar-stuck) .navbar-brand {
    color: rgba(255, 255, 255, 0.9) !important;
}
html.dark-hero-page[data-bs-theme="light"] header.header.navbar:not(.navbar-stuck) .nav-link:hover,
html.dark-hero-page[data-bs-theme="light"] header.header.navbar:not(.navbar-stuck) .nav-link.active {
    color: #fff !important;
}
html.dark-hero-page[data-bs-theme="light"] header.header.navbar:not(.navbar-stuck) .logo-light-mode {
    display: none !important;
}
html.dark-hero-page[data-bs-theme="light"] header.header.navbar:not(.navbar-stuck) .logo-dark-mode {
    display: block !important;
}
html.dark-hero-page[data-bs-theme="light"] header.header.navbar:not(.navbar-stuck) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
html.dark-hero-page[data-bs-theme="light"] header.header.navbar:not(.navbar-stuck) .btn-outline-secondary {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}
html.dark-hero-page[data-bs-theme="light"] header.header.navbar:not(.navbar-stuck) .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
html.dark-hero-page[data-bs-theme="light"] header.header.navbar:not(.navbar-stuck) .btn-outline-secondary i {
    color: #fff !important;
}

