@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Story+Script&display=swap');

:root {
	--primary-color: #0066ff;
	--secondary-color: #ff69b4;
	--tertiary-color: #ff8c00;
	--bg-dark: #1a1a1a;
	--text-light: #ffffff;
	--shadow-subtle: rgba(0, 0, 0, 0.15);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: linear-gradient(180deg, #0c0c1e 0%, #1a1a2e 50%, #16213e 100%);
	color: var(--text-light);
	font-family: 'Dosis', sans-serif;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
	pointer-events: auto;
}

* {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

img {
	-webkit-user-drag: none;
	-moz-user-drag: none;
	user-drag: none;
	pointer-events: none;
}

button,
a,
input,
textarea,
select,
.social-links i,
.home-button,
.back-button {
	pointer-events: auto;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	background: var(--primary-color);
	color: var(--text-light);
	padding: 0.5rem 1rem;
	text-decoration: none;
	border-radius: 0.5rem;
	z-index: 100;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 6px;
}

.sky-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

.stars-container,
.clouds-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.star {
	position: absolute;
	background: white;
	border-radius: 50%;
	animation: twinkle linear infinite;
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
	z-index: 1;
}

.cloud {
	position: absolute;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50px;
	opacity: 0.8;
	animation: float linear infinite;
	will-change: transform;
	z-index: 2;
}

.cloud::before,
.cloud::after {
	content: '';
	position: absolute;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
}

.cloud.small {
	width: 60px;
	height: 20px;
}
.cloud.small::before {
	width: 25px;
	height: 25px;
	top: -10px;
	left: 10px;
}
.cloud.small::after {
	width: 35px;
	height: 35px;
	top: -15px;
	right: 10px;
}

.cloud.medium {
	width: 100px;
	height: 35px;
}
.cloud.medium::before {
	width: 45px;
	height: 45px;
	top: -20px;
	left: 15px;
}
.cloud.medium::after {
	width: 55px;
	height: 55px;
	top: -25px;
	right: 15px;
}

.cloud.large {
	width: 140px;
	height: 50px;
}
.cloud.large::before {
	width: 65px;
	height: 65px;
	top: -30px;
	left: 20px;
}
.cloud.large::after {
	width: 75px;
	height: 75px;
	top: -35px;
	right: 20px;
}

@keyframes twinkle {
	0%,
	100% {
		opacity: 0.3;
		transform: scale(1);
	}
	25% {
		opacity: 1;
		transform: scale(1.2);
	}
	50% {
		opacity: 0.5;
		transform: scale(0.8);
	}
	75% {
		opacity: 0.8;
		transform: scale(1.1);
	}
}

@keyframes float {
	from {
		transform: translateX(-200px);
	}
	to {
		transform: translateX(calc(100vw + 200px));
	}
}

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

.cloud.speed-1 {
	animation-duration: 15s;
	opacity: 0.8;
}
.cloud.speed-2 {
	animation-duration: 20s;
	opacity: 0.9;
}
.cloud.speed-3 {
	animation-duration: 25s;
	opacity: 1;
}

.star.twinkle-1 {
	animation-duration: 2s;
	animation-delay: 0s;
}
.star.twinkle-2 {
	animation-duration: 3s;
	animation-delay: 0.5s;
}
.star.twinkle-3 {
	animation-duration: 4s;
	animation-delay: 1s;
}
.star.twinkle-4 {
	animation-duration: 2.5s;
	animation-delay: 1.5s;
}

.main-content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

h1 {
	font-family: 'Dosis', sans-serif;
	font-weight: 700;
	font-size: clamp(2rem, 6vw, 3rem);
	letter-spacing: clamp(1px, 0.5vw, 2px);
	color: var(--text-light);
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 8px var(--shadow-subtle);
	padding: 0 1rem;
}

.quote {
	font-family: 'Story Script', cursive;
	font-size: clamp(0.875rem, 2.5vw, 1rem);
	font-style: italic;
	color: var(--text-light);
	text-align: center;
	max-width: min(600px, 90vw);
	margin: 0 auto;
	padding: clamp(0.5rem, 2vw, 1rem);
	border-left: 4px solid var(--secondary-color);
	background: rgba(255, 192, 203, 0.1);
	border-radius: 0 0.5rem 0.5rem 0;
}

.social-nav {
	position: absolute;
	top: 1rem;
	right: 2rem;
	z-index: 20;
}

.social-links {
	display: flex;
	gap: clamp(1rem, 2vw, 1.5rem);
	list-style: none;
	margin: 0;
	padding: clamp(1rem, 8vw, 3.75rem);
	align-items: center;
	justify-content: flex-end;
}

.social-links i {
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
	color: var(--text-light);
	padding: 0.5rem;
	border-radius: 0.25rem;
}

.social-links i:hover,
.social-links i:focus {
	transform: scale(1.2);
	color: var(--secondary-color);
	outline: 2px solid var(--secondary-color);
	outline-offset: 2px;
}

.widgets-container {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 2rem;
	width: 100%;
	max-width: 1200px;
	align-items: center;
}

@media (min-width: 768px) {
	.widgets-container {
		flex-direction: row;
		justify-content: center;
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.widgets-container {
		flex-wrap: nowrap;
		gap: 1.5rem;
	}
}

.widget {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border-radius: 1rem;
	padding: 1rem;
	width: 100%;
	max-width: 350px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.widget-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	color: var(--secondary-color);
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.widget-content {
	max-height: 150px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--secondary-color) transparent;
}

.widget-content::-webkit-scrollbar {
	width: 4px;
}

.widget-content::-webkit-scrollbar-track {
	background: transparent;
}

.widget-content::-webkit-scrollbar-thumb {
	background: var(--secondary-color);
	border-radius: 2px;
}

.music-widget {
}

.music-header {
}

.music-tracks {
}

.track {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem;
	margin-bottom: 0.5rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 0.5rem;
	transition: background 0.2s ease;
	animation: fadeInUp 0.5s ease forwards;
	opacity: 0;
}

.track:hover {
	background: rgba(255, 255, 255, 0.08);
}

.track-image {
	width: 40px;
	height: 40px;
	border-radius: 0.25rem;
	object-fit: cover;
	flex-shrink: 0;
}

.track-info {
	flex: 1;
	min-width: 0;
}

.track-name {
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--text-light);
	margin-bottom: 0.125rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.track-artist {
	font-size: 0.75rem;
	color: #cccccc;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.track-time {
	font-size: 0.625rem;
	color: #999999;
	flex-shrink: 0;
}

.github-widget .widget-header {
	color: #00d4aa;
}

.repo {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.75rem;
	margin-bottom: 0.5rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 0.5rem;
	transition: background 0.2s ease;
	animation: fadeInUp 0.5s ease forwards;
	opacity: 0;
	border-left: 3px solid #00d4aa;
}

.repo:hover {
	background: rgba(255, 255, 255, 0.08);
}

.repo-name {
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--text-light);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.repo-name:hover {
	color: #00d4aa;
}

.repo-description {
	font-size: 0.75rem;
	color: #cccccc;
	line-height: 1.4;
}

.repo-stats {
	display: flex;
	gap: 1rem;
	font-size: 0.625rem;
	color: #999999;
}

.repo-stat {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.weather-widget .widget-header {
	color: #87ceeb;
}

.weather-display {
	padding: 0.5rem;
}

.weather-time {
	text-align: center;
	margin-bottom: 1rem;
}

.current-time {
	font-size: 1.5rem;
	font-weight: 700;
	color: #87ceeb;
	margin-bottom: 0.25rem;
	font-family: 'Courier New', monospace;
}

.current-date {
	font-size: 0.875rem;
	color: var(--text-light);
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.location {
	font-size: 0.75rem;
	color: #cccccc;
}

.weather-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	padding: 0.5rem;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 0.5rem;
}

.temperature {
	font-size: 2rem;
	font-weight: 700;
	color: #87ceeb;
}

.weather-icon {
	font-size: 2rem;
	color: #ffd700;
}

.weather-description {
	text-align: center;
	font-size: 0.875rem;
	color: #cccccc;
	margin-bottom: 1rem;
	text-transform: capitalize;
}

.weather-details {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.weather-detail {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: #cccccc;
}

.weather-detail i {
	color: #87ceeb;
	width: 16px;
	text-align: center;
}

.sun-times {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sun-time {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	color: #cccccc;
}

.sun-time i {
	color: #ffd700;
}

.weather-unavailable {
	text-align: center;
	padding: 1rem 0;
}

.weather-icon-large {
	font-size: 3rem;
	color: #87ceeb;
	margin-bottom: 0.5rem;
}

.weather-message {
	font-size: 0.875rem;
	color: #cccccc;
	margin-bottom: 0.25rem;
}

.weather-note {
	font-size: 0.75rem;
	color: #999999;
	font-style: italic;
}

.loading {
	text-align: center;
	color: #cccccc;
	font-size: 0.875rem;
	padding: 1rem;
}

.error {
	text-align: center;
	color: #ff6b6b;
	font-size: 0.875rem;
	padding: 1rem;
}

.site-footer {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: clamp(0.5rem, 2vw, 1rem);
	font-size: clamp(0.75rem, 1.5vw, 0.875rem);
	color: #cccccc;
	z-index: 1;
	text-align: center;
}

@media (max-width: 768px) {
	.social-nav {
		top: 0.5rem;
		right: 1rem;
	}

	.social-links {
		gap: 0.75rem;
		padding: 1rem;
	}

	.social-links i {
		font-size: 1.25rem;
		padding: 0.375rem;
	}

	.widgets-container {
		flex-direction: column;
		gap: 1rem;
		margin-top: 1.5rem;
	}

	.widget {
		max-width: 90vw;
	}
}

@media (max-width: 480px) {
	.social-nav {
		top: 0.25rem;
		right: 0.5rem;
	}

	.social-links {
		gap: 0.5rem;
		padding: 0.75rem;
		flex-direction: row;
	}

	.social-links i {
		font-size: 1.125rem;
		padding: 0.25rem;
	}

	.site-footer {
		padding: 0.5rem;
		font-size: 0.75rem;
	}

	.widgets-container {
		margin-top: 1rem;
		gap: 0.75rem;
	}

	.widget {
		padding: 0.75rem;
	}
}

@media (max-width: 320px) {
	.social-links {
		gap: 0.375rem;
		padding: 0.5rem;
	}

	.social-links i {
		font-size: 1rem;
		padding: 0.125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.star {
		animation-duration: 4s !important;
	}

	.cloud.speed-1 {
		animation-duration: 120s !important;
	}
	.cloud.speed-2 {
		animation-duration: 150s !important;
	}
	.cloud.speed-3 {
		animation-duration: 180s !important;
	}
}

.error-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
	padding: 2rem;
}

.error-code {
	font-family: 'Dosis', sans-serif;
	font-weight: 800;
	font-size: clamp(6rem, 20vw, 12rem);
	color: var(--secondary-color);
	text-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
	margin-bottom: 1rem;
	line-height: 0.8;
	letter-spacing: -0.1em;
}

.error-title {
	font-family: 'Dosis', sans-serif;
	font-weight: 600;
	font-size: clamp(1.5rem, 5vw, 2.5rem);
	color: var(--text-light);
	margin-bottom: 1.5rem;
	letter-spacing: 1px;
}

.error-message {
	font-size: clamp(1rem, 3vw, 1.25rem);
	color: #cccccc;
	margin-bottom: 2rem;
	line-height: 1.6;
	max-width: 500px;
}

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

.home-button,
.back-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	font-family: 'Dosis', sans-serif;
}

.home-button {
	background: linear-gradient(
		135deg,
		var(--secondary-color),
		var(--tertiary-color)
	);
	color: white;
	box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.home-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

.back-button {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-light);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	.error-actions {
		flex-direction: column;
		align-items: center;
	}

	.home-button,
	.back-button {
		width: 100%;
		max-width: 250px;
		justify-content: center;
	}
}

@media (prefers-contrast: high) {
	:root {
		--bg-dark: #000000;
		--text-light: #ffffff;
		--secondary-color: #ffffff;
	}

	.error-code {
		text-shadow: none;
	}

	.home-button {
		background: var(--text-light);
		color: var(--bg-dark);
	}
}
