@font-face {
	font-family: "font2";
	src: url("../assets/Lilex-Regular.ttf") format("truetype");
	font-display: swap;
}

:root {
	--bg-primary: #0a0a0a;
	--bg-secondary: #151515;
	--text-primary: #ffffff;
	--text-secondary: #888;
	--text-tertiary: #666;
	--accent: #ff3e3e;
	--accent-hover: #ff6b6b;
	--border: #1f1f1f;
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "font2", -apple-system, BlinkMacSystemFont, sans-serif;
	background-color: var(--bg-primary);
	color: var(--text-secondary);
	line-height: 1.7;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
			to bottom,
			rgba(10, 10, 10, 0.9),
			rgba(10, 10, 10, 0.95)
		),
		url("../assets/image.png") no-repeat center center;
	background-size: cover;
	background-attachment: fixed;
	z-index: -1;
}

/* Font Awesome */
.fab,
.fas {
	font-family: "Font Awesome 6 Brands" !important;
}

.fas {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900;
}

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

/* Status Messages */
.status-message {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	display: none;
	font-size: 0.9rem;
	font-weight: 500;
}

.status-message.success {
	display: block;
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-message.error {
	display: block;
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.2);
}

#submit.loading {
	opacity: 0.6;
	pointer-events: none;
	cursor: not-allowed;
}

/* Navigation */
#navigationContainer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	background: rgba(10, 10, 10, 0.8);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.nav-left,
.nav-right {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cv-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: transparent;
	color: var(--text-secondary);
	border: 1px solid var(--border);
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all var(--transition);
}

.cv-button i {
	color: var(--accent);
	font-size: 0.85rem;
}

.cv-button:hover {
	color: var(--accent);
	border-color: var(--accent);
	background: rgba(255, 62, 62, 0.05);
}

#navigationContainer a {
	padding: 0.5rem 1rem;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	transition: color var(--transition);
	position: relative;
}

#navigationContainer a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 1px;
	background: var(--accent);
	transition: all var(--transition);
	transform: translateX(-50%);
}

#navigationContainer a:hover {
	color: var(--text-primary);
}

#navigationContainer a:hover::after {
	width: 60%;
}

#navigationContainer a[aria-current="page"] {
	color: var(--accent);
}

#navigationContainer a[aria-current="page"]::after {
	width: 60%;
}

/* Main Container */
.parent {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - 65px);
	padding: 3rem 2rem;
}

.container {
	background: rgba(21, 21, 21, 0.5);
	backdrop-filter: blur(20px);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 3rem;
	max-width: 900px;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

/* Form Styling */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

input,
textarea {
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.875rem 1rem;
	color: var(--text-primary);
	font-size: 0.95rem;
	font-family: "font2", sans-serif;
	transition: all var(--transition);
	width: 100%;
}

input {
	height: 48px;
}

textarea {
	resize: vertical;
	min-height: 140px;
	line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
	color: var(--text-tertiary);
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: rgba(255, 62, 62, 0.02);
}

#submit {
	background: var(--accent);
	color: white;
	border: none;
	border-radius: 6px;
	height: 48px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
	letter-spacing: 0.01em;
}

#submit:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 62, 62, 0.3);
}

/* Contact Info */
.contact-info {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.contact-info h2 {
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	letter-spacing: -0.02em;
	position: relative;
	display: inline-block;
}

.contact-info h2::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, var(--accent), #ff8c42);
	border-radius: 2px;
}

#email,
#location {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text-secondary);
	text-decoration: none;
	transition: color var(--transition);
	font-size: 0.95rem;
}

#email:hover {
	color: var(--accent);
}

#email svg,
#location svg {
	flex-shrink: 0;
	opacity: 0.7;
}

/* Social Buttons */
.social-buttons {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.social-btn {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	font-size: 1.1rem;
	text-decoration: none;
	transition: all var(--transition);
	border: 1px solid var(--border);
	background: transparent;
}

.social-btn:hover {
	transform: translateY(-2px);
}

.linkedin:hover {
	background: rgba(0, 119, 181, 0.1);
	border-color: rgba(0, 119, 181, 0.3);
	color: #0077b5;
}

.github:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.2);
	color: var(--text-primary);
}

.codeforces:hover {
	background: rgba(31, 138, 203, 0.1);
	border-color: rgba(31, 138, 203, 0.3);
	color: #1f8acb;
}

.leetcode:hover {
	background: rgba(255, 161, 22, 0.1);
	border-color: rgba(255, 161, 22, 0.3);
	color: #ffa116;
}

/* Responsive Design */
@media (max-width: 768px) {
	#navigationContainer {
		padding: 1rem;
		gap: 1rem;
	}

	.nav-left,
	.nav-right {
		flex-wrap: wrap;
		justify-content: center;
	}

	.parent {
		padding: 2rem 1rem;
	}

	.container {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		padding: 2rem 1.5rem;
	}

	.contact-form {
		order: 2;
	}

	.contact-info {
		order: 1;
	}

	.social-buttons {
		justify-content: flex-start;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.container {
		padding: 2.5rem;
	}
}
