/* Base Styles */
body {
	margin: 0;
	padding: 0;
	background-image: url("background.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-color: #0f1419;
	color: #ffb03a;
	font-family: "Fira Code", monospace;
	scroll-behavior: smooth;
	height: 100vh;
	overflow: hidden;
}

a {
	color: #eecb98;
}

/* Custom Scrollbar Styling */
.content::-webkit-scrollbar {
	width: 8px;
}

.content::-webkit-scrollbar-track {
	background: #1a2332;
	border-radius: 4px;
}

.content::-webkit-scrollbar-thumb {
	background: #ffa726;
	border-radius: 4px;
	border: 1px solid #1a2332;
}

.content::-webkit-scrollbar-thumb:hover {
	background: #ffb74d;
}

/* Firefox scrollbar */
.content {
	scrollbar-width: thin;
	scrollbar-color: #ffa726 #1a2332;
}

/* Laptop Frame Container */
.laptop-frame {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(95vw, 1200px);
	max-width: calc(100vw - 2rem);
	height: calc(100vh - 2rem);
	margin: 0;
	padding: clamp(15px, 3vw, 25px);
	background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
	border-radius: clamp(10px, 2vw, 15px) clamp(10px, 2vw, 15px) 0 0;
	box-shadow: 0 0 0 2px #333, 0 0 0 4px #444, 0 20px 40px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

/* Laptop Screen Bezel */
.laptop-screen {
	position: relative;
	background: #000;
	border-radius: clamp(6px, 1.5vw, 8px);
	padding: clamp(2px, 0.5vw, 3px);
	box-shadow: inset 0 0 0 1px #555, inset 0 2px 4px rgba(0, 0, 0, 0.8);
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* Terminal */
.terminal {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	max-width: 100%;
	border: 2px solid #ffa726;
	padding: clamp(0.75rem, 2vw, 1rem);
	box-shadow: 0 0 20px rgba(255, 167, 38, 0.3);
	border-radius: clamp(4px, 1vw, 6px);
	overflow: hidden;
	background: #0f1419;
	position: relative;
	box-sizing: border-box;
	min-height: 0;
}

/* Screen Glare Effect */
.terminal::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.1),
		transparent
	);
	pointer-events: none;
	z-index: 1;
}

/* Terminal Bar */
.terminal-bar {
	display: flex;
	align-items: center;
	padding: clamp(0.4rem, 1.5vw, 0.5rem);
	background-color: #1a2332;
	border-bottom: 1px solid #ffa726;
	position: relative;
	z-index: 2;
	flex-shrink: 0;
}

.terminal-bar .btn {
	width: clamp(10px, 2.5vw, 12px);
	height: clamp(10px, 2.5vw, 12px);
	border-radius: 50%;
	margin-right: clamp(6px, 1.5vw, 8px);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.red {
	background-color: #f25f5c;
}
.yellow {
	background-color: #ffe066;
}
.green {
	background-color: #69db7c;
}

.terminal-bar .title {
	margin-left: auto;
	font-weight: bold;
	color: #fff;
	font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Nav */
.nav {
	margin: clamp(0.75rem, 2vw, 1rem) 0;
	margin-bottom: 0;
	text-align: center;
	padding: clamp(0.75rem, 2vw, 1rem) 0;
	background: #1a2332;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	position: relative;
	z-index: 2;
	flex-shrink: 0;
}

.nav a {
	color: #ffb03a;
	text-decoration: none;
	margin: 0 clamp(0.5rem, 2vw, 1rem);
	font-weight: bold;
	transition: color 0.3s ease;
	font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.nav a:hover {
	color: #fff;
	text-decoration: underline;
}

.nav a.active {
	color: #fff;
	text-decoration: underline;
}

/* Content */
.content {
	overflow-y: auto;
	padding: clamp(0.75rem, 2vw, 1rem);
	flex: 1;
	position: relative;
	z-index: 2;
	min-height: 0;
	height: 0;
}

.section {
	margin-bottom: clamp(2rem, 5vw, 3rem);
	padding: clamp(0.75rem, 2vw, 1rem) 0;
	border-bottom: 1px solid #2d3748;
}

.section:last-child {
	border-bottom: none;
}

.section-header {
	margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.section-header h2 {
	margin: clamp(0.4rem, 1.5vw, 0.5rem) 0;
	color: #fff;
	font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.section-content {
	margin-left: clamp(0.75rem, 2vw, 1rem);
}

.command {
	font-weight: bold;
	margin-bottom: clamp(0.4rem, 1.5vw, 0.5rem);
	color: #ffb03a;
}

/* Blinking cursor */
.command::after {
	content: "_";
	animation: blink 1s step-start infinite;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

/* Project Items */
.project-item {
	margin-bottom: clamp(1.5rem, 4vw, 2rem);
	padding: clamp(0.75rem, 2vw, 1rem);
	background-color: #1a2332;
	border-left: 3px solid #ffb03a;
	border-radius: 4px;
}

.project-item h3 {
	margin: 0 0 clamp(0.4rem, 1.5vw, 0.5rem) 0;
	color: #fff;
	font-size: clamp(1rem, 3vw, 1.2rem);
}

.project-item p {
	margin: clamp(0.4rem, 1.5vw, 0.5rem) 0;
	line-height: 1.5;
}

.project-tech {
	font-size: clamp(0.8rem, 2.5vw, 0.9rem);
	color: #a0aec0;
	margin-top: clamp(0.4rem, 1.5vw, 0.5rem);
	font-style: italic;
}

/* Skills Grid */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(
		auto-fit,
		minmax(clamp(180px, 25vw, 200px), 1fr)
	);
	gap: clamp(1rem, 3vw, 1.5rem);
}

.skill-category {
	padding: clamp(0.75rem, 2vw, 1rem);
	background-color: #1a2332;
	border-radius: 4px;
	border: 1px solid #2d3748;
}

.skill-category h3 {
	margin: 0 0 clamp(0.4rem, 1.5vw, 0.5rem) 0;
	color: #fff;
	font-size: clamp(1rem, 3vw, 1.1rem);
}

.skill-category p {
	margin: 0;
	color: #ffb03a;
}

/* Contact Info */
.contact-info {
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 2vw, 1rem);
}

.contact-item {
	padding: clamp(0.4rem, 1.5vw, 0.5rem) 0;
}

.contact-item a {
	color: #ffb03a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.contact-item a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.laptop-frame {
		width: min(95vw, 1000px);
		max-width: calc(100vw - 1.5rem);
		height: calc(100vh - 1.5rem);
		margin: 0;
	}
}

@media (max-width: 768px) {
	.laptop-frame {
		width: min(98vw, 95vw);
		max-width: calc(100vw - 1rem);
		height: calc(100vh - 1rem);
		margin: 0;
		padding: clamp(10px, 2.5vw, 15px);
	}

	.nav a {
		margin: 0 clamp(0.3rem, 1.5vw, 0.5rem);
	}

	.skills-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.laptop-frame {
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		margin: 0;
		padding: clamp(8px, 2vw, 12px);
		border-radius: 0;
	}

	.terminal {
		padding: clamp(0.5rem, 1.5vw, 0.75rem);
	}

	.nav a {
		margin: 0 clamp(0.2rem, 1vw, 0.3rem);
		font-size: clamp(0.7rem, 2vw, 0.8rem);
	}

	.section-header h2 {
		font-size: clamp(1rem, 3.5vw, 1.2rem);
	}

	.project-item h3 {
		font-size: clamp(0.9rem, 2.5vw, 1rem);
	}
}
