* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

::-webkit-scrollbar {
	width: 4px;
	height: 4px;
}
::-webkit-scrollbar-track {
	border-radius: 0;
	background-color: #1f1140;
}
::-webkit-scrollbar-thumb {
	border-radius: 0;
	background-color: #572eb8;
}

body {
	font-family: system-ui;
	background: #0a0a0a;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	position: relative;
	overflow-x: hidden;
}

/* Advanced animated background */
.bg-animation {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: radial-gradient(circle at 20% 80%, #1f1140 0%, transparent 50%),
				radial-gradient(circle at 80% 20%, #1f1140 0%, transparent 50%),
				radial-gradient(circle at 40% 40%, #572eb8 0%, transparent 50%);
}

.floating-shapes {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: -1;
}

.shape {
	position: absolute;
	background: linear-gradient(45deg, #ffc50e14, #5d06790d);
	border-radius: 50%;
	filter: blur(1px);
}

.shape:nth-child(1) {
	width: 80px;
	height: 80px;
	top: 20%;
	left: 10%;
	animation: float1 6s ease-in-out infinite;
}

.shape:nth-child(2) {
	width: 60px;
	height: 60px;
	top: 60%;
	right: 10%;
	animation: float2 8s ease-in-out infinite;
}

.shape:nth-child(3) {
	width: 100px;
	height: 100px;
	bottom: 20%;
	left: 20%;
	animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
	0%, 100% { transform: translateY(0px) rotate(0deg); }
	33% { transform: translateY(-30px) rotate(120deg); }
	66% { transform: translateY(15px) rotate(240deg); }
}

@keyframes float2 {
	0%, 100% { transform: translateX(0px) rotate(0deg); }
	50% { transform: translateX(30px) rotate(180deg); }
}

@keyframes float3 {
	0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
	25% { transform: translateY(-20px) translateX(20px) rotate(90deg); }
	50% { transform: translateY(0px) translateX(40px) rotate(180deg); }
	75% { transform: translateY(20px) translateX(20px) rotate(270deg); }
}

.contact-container {
	background: rgba(15, 15, 15, 0.8);
	backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid #ffffff1a;
	border-radius: 10px;
	box-shadow: 
		0 32px 64px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 #ffffff1a;
	padding: 48px;
	width: 100%;
	max-width: 520px;
	position: relative;
	overflow: hidden;
}

.contact-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, 
		transparent, 
		#8b5cf6, 
		#06b6d4, 
		#10b981, 
		#f59e0b, 
		#ef4444, 
		transparent);
	animation: shimmer 3s ease-in-out infinite;
}

.contact-container::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, 
		transparent, 
		#8b5cf6, 
		#06b6d4, 
		#10b981, 
		#f59e0b, 
		#ef4444, 
		transparent);
	animation: shimmers 3s ease-in-out infinite;
}

@keyframes shimmer {
	0% { opacity: 0; transform: translateX(-100%); }
	50% { opacity: 1; transform: translateX(0%); }
	100% { opacity: 0; transform: translateX(100%); }
}

@keyframes shimmers {
	100% { opacity: 0; transform: translateX(-100%); }
	50% { opacity: 1; transform: translateX(0%); }
	0% { opacity: 0; transform: translateX(100%); }
}

.tb_back{
	position: absolute;
    left: 5px;
    top: 8px;
    text-decoration: none;
    font-size: 2.25rem;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tb_back:hover{
	transform: translateX(-10px);
    font-size: 2.5rem;
    left: 13px;
    top: 2px;
}

.glass-effect {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.05), transparent 50%),
				radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.05), transparent 50%);
	pointer-events: none;
}

.form-title {
	text-align: center;
	color: #ffffff;
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 8px;
	background: linear-gradient(330deg, #bea2ff 0%, #631e93 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.form-subtitle {
	text-align: center;
	color: #fff9;
	margin-bottom: 50px;
	font-size: 16px;
	font-weight: 400;
}

.form-group {
	position: relative;
	margin-bottom: 40px;
}

.form-input, .form-textarea {
	width: 100%;
	padding: 16px 20px;
	border: 1px solid #ffffff1a;
	border-radius: 5px;
	font-size: 16px;
	background: #150d2633;
	backdrop-filter: blur(10px);
	color: #ffffff;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
	font-family: inherit;
	font-weight: 400;
}

.form-input::placeholder, .form-textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.form-input:focus, .form-textarea:focus {
	border-color: #8b5cf6;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 
		0 0 0 1px rgba(139, 92, 246, 0.3),
		0 8px 24px rgba(139, 92, 246, 0.1);
	transform: translateY(-2px);
}

.form-label {
	position: absolute;
	left: 14px;
	top: 18px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 16px;
	pointer-events: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: transparent;
	padding: 0 8px;
	font-weight: 400;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
	top: -14px;
	left: 16px;
	font-size: 13px;
	color: #a78bfa;
	background: #382868;
	border: 1px solid #a78bfa;
	padding: 1px 7px 3px;
	font-weight: 500;
}

.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
	color: #fff9;
	background: #150d26;
	border-color: #ffffff1a;
}

.form-textarea {
	resize: vertical;
	min-height: 128px;
	max-height: 200px;
}

.submit-btn {
	width: 100%;
	padding: 16px;
	background: linear-gradient(135deg, #7133ff9e 0%, #631e937d 100%);
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	letter-spacing: 1px;
	/* text-transform: uppercase; */
	position: relative;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.submit-btn #btn-text{
	-webkit-text-fill-color: transparent;
    background: linear-gradient(88deg, #754cd3 0%, #dcaaff 100%);
    background-clip: text;
}

.submit-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(139, 92, 246, 0.4);
	background: linear-gradient(200deg, #7133ffe0 0%, #631e93de 100%);
}

.submit-btn:active {
	transform: translateY(-1px);
}

.submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.submit-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.6s ease;
}

.submit-btn:hover::before {
	left: 100%;
}

.submit-btn .icon {
	transition: transform 0.3s ease;
	font-size: 5rem;
	position: absolute;
	right: 0;
	top: -15px;
	transform: rotate(-18deg);
}

.submit-btn:hover .icon {
	transform: translateY(-12px) scale(1.1) rotate(-10deg);
}

.loading {
	display: none;
	margin-left: 10px;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.message {
	margin-top: 20px;
	padding: 16px 20px;
	border-radius: 5px;
	text-align: right;
	font-weight: 500;
	display: none;
	animation: messageSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.message .icon{
	transition: transform 0.3s ease;
	font-size: 6rem;
	position: absolute;
	left: 5px;
    top: -15px;
    transform: rotate(-21deg);
}

@keyframes messageSlide {
	from { 
		opacity: 0; 
		transform: translateY(-20px) scale(0.95); 
	}
	to { 
		opacity: 1; 
		transform: translateY(0) scale(1); 
	}
}

.message.success {
	box-shadow: 0 8px 24px #a78bfa4a;
    color: #ffffff;
    background: #382868;
    border: 1px solid #a78bfa;
}

.message.error {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-input.error, .form-textarea.error {
	border-color: #ef4444;
	background: rgba(239, 68, 68, 0.05);
	box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.form-label.error {
	border-color: #ef4444 !important;
	background: #4f0c0c !important;
	color: #ef4444 !important;
}

.error-text {
	color: #ef444480;
	font-size: 13px;
	margin-top: 6px;
	margin-left: 4px;
	opacity: 0;
	transition: opacity 0.3s ease;
	text-align: right;
}

.error-text.show {
	opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
	.contact-container {
		padding: 32px 24px;
		margin: 16px;
		border-radius: 20px;
	}
	
	.form-title {
		font-size: 28px;
	}

	.form-subtitle {
		font-size: 14px;
	}

	.form-input, .form-textarea {
		padding: 14px 16px;
	}
	
	.tb_back{
		position: absolute;
		right: 5px;
		left: unset;
		top: 8px;
		font-size: 1.5rem;
	}
	
	.tb_back:hover {
		left: unset;
		right: -5px;
		font-size: 1.75rem;
	}
	
	.submit-btn .icon{
		font-size: 3rem;
        top: -6px;
        right: -6px;
    }
	
	.submit-btn:hover .icon {
		font-size: 3.2rem;
        top: 13px;
        right: -10px;
        transform: translateY(-15px) scale(1.1) rotate(-25deg);
	}
}

/* Improved focus states for accessibility */
.form-input:focus-visible, .form-textarea:focus-visible, .submit-btn:focus-visible {
	outline: 2px solid #a78bfacc;
	outline-offset: 2px;
}

.form-input:focus-visible.error, .form-textarea:focus-visible.error {
	outline-color: #ef44444f;
}