/* ==================== ANIMAÇÕES DE ENTRADA ==================== */
/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 900px) {
	.welcome-text {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 20px 0;
	}
	.hero-container {
		width: 100%;
		height: auto;
		align-items: center;
		text-align: center;
	}
	.hero-container h1, .typewriter {
		font-size: 40px;
		line-height: 1.1;
	}
	.image-hero-container img {
		width: 220px;
		height: 220px;
		max-width: 90vw;
	}
	nav {
		flex-direction: column;
		height: auto;
		gap: 5px;
		padding: 10px 0;
	}
	nav a {
		font-size: 18px;
		padding: 8px 12px;
	}
	.projects-container {
		flex-direction: column;
		gap: 20px;
	}
	.project-box {
		width: 95vw;
		margin: 0 auto;
	}
	.aboutme-container, .contact-container {
		flex-direction: column;
		align-items: center;
		padding: 10px;
	}
	.card-container {
		width: 95vw;
		margin: 0 auto 20px auto;
	}
	.skills-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

@media (max-width: 600px) {
	.hero-container h1, .typewriter {
		font-size: 28px;
		line-height: 1.2;
	}
	.image-hero-container img {
		width: 120px;
		height: 120px;
	}
	nav a {
		font-size: 15px;
		padding: 6px 8px;
	}
	.project-box, .card-container {
		width: 99vw;
		margin: 0 auto 10px auto;
	}
}
/* ==================== GLOBAL RESET & BASE STYLES ==================== */
html {
	scroll-behavior: smooth;
}

* {
	margin: 0;
	font-family: "Baloo Thambi 2", system-ui;
	font-optical-sizing: auto;
	box-sizing: border-box;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
	width: 16px;
}

::-webkit-scrollbar-track {
	background: #F5F5F5;
	border: 3px solid #000000;
	border-radius: 0;
}

::-webkit-scrollbar-thumb {
	background: #eb81c8;
	border: 3px solid #000000;
	border-radius: 0;
	box-shadow: 3px 3px 0px #000000;
}

::-webkit-scrollbar-thumb:hover {
	background: #C4C4C4;
	transform: translate(-1px, -1px);
	box-shadow: 4px 4px 0px #000000;
}

::-webkit-scrollbar-corner {
	background: #F5F5F5;
	border: 3px solid #000000;
}

a {
	text-decoration: none;
	color: black;
}

body {
	background-color: #F5F5F5;
	border: 10px solid black;
	margin: 5px;
	height: 100%;
}

/* ==================== NAVIGATION BAR ==================== */
nav {
	height: 40px;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 15px;
	background-color: #C4C4C4;
	border-bottom: 3px solid black;
	padding: 0 15px;
}

nav a {
	font-size: large;
	font-weight: 600;
	padding: 5px 10px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
}

nav a:hover {
	background-color: black;
	color: white;
}

nav a:first-child {
	padding: 1px;
}

nav a img {
	height: 30px;
}

/* ==================== HERO SECTION ==================== */
.welcome-text {
	display: flex;
	justify-content: space-around;
	border-bottom: 3px solid black;
	align-items: center;
}

.hero-container {
	width: 330px;
	height: 330px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	justify-content: center;
}

.hero-container h1 {
	text-align: left;
	font-size: 70px;
	line-height: 60px;
	margin-bottom: 0;
}

/* ==================== TYPEWRITER EFFECT ==================== */
.typewriter {
	overflow: hidden;
	border-right: .15em solid #eb81c8;
	white-space: nowrap;
	margin: 0;
	letter-spacing: 0.05em;
	text-align: left;
	font-size: 70px;
	line-height: 60px;
	width: 0;
	animation: 
		typing 4s steps(30, end) forwards,
		blink-caret 0.75s step-end 6;
}

/* The typing effect */
@keyframes typing {
	from { width: 0 }
	to { width: 100% }
}

@keyframes blink-caret {
	from, to { border-color: transparent }
	50% { border-color: #eb81c8; }
}

.hero-container p {
	text-align: left;
	font-size: 17px;
	line-height: 20px;
	font-weight: 500;
	margin-top: 10px;
}

.hero-container a {
	display: flex;
	color: black;
	font-size: 22px;
	line-height: 20px;
	font-weight: 700;
	text-align: center;
	justify-content: flex-start;
	margin-top: 50px;
	margin-left: 90px;
}

/* ==================== HERO IMAGE CONTAINER ==================== */
.image-hero-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.image-hero-container img {
	width: 405px;
	height: 400px;
	object-fit: cover;
	border-radius: 10px;
}

/* ==================== SOCIAL LINKS ==================== */
.links-container {
	display: flex;
	flex-direction: row;
	justify-content: center;
	position: absolute;
	left: 50%;
	top: calc(100vh / 2);
	transform: translateX(-50%) translateY(-50%);
	background-color: #F5F5F5;
	z-index: 10;
}

.links-container img {
	display: flex;
	width: 15px;
	height: 15px;
}

/* ==================== BUTTONS & INTERACTIVE ELEMENTS ==================== */
.btn {
	background-color: #C4C4C4;
	font-weight: 700;
	border: 2px solid black;
	padding: 10px 20px;
	width: fit-content;
	transition: all 0.3s ease;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	color: #000000;
	text-decoration: none;
}

.btn:hover {
	background-color: #eb81c8;
	color: white;
	transform: translateY(-4px);
	box-shadow: 0 6px 0 #000000;
}

.hiperlink-button {
	flex-direction: row;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #C4C4C4;
	font-weight: 700;
	border: 2px solid black;
	padding: 5px 10px;
	width: 180px;
	height: 50px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.hiperlink-button:hover {
	background-color: #eb81c8;
	color: white;
	transform: translateY(-4px);
	box-shadow: 0 6px 0 #000000;
}

.hiperlink-button:hover img {
	filter: invert(1);
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
	width: 100%;
	margin: 0;
	padding: 40px 20px;
	background: 
		linear-gradient(to right, #c4c4c4 1px, transparent 1px),
		linear-gradient(to bottom, #c4c4c4 1px, transparent 1px);
	background-size: 7px 7px;
	border-top: 3px solid black;
	border-bottom: 3px solid black;
}

.projects-container {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	max-width: 1000px;
	margin: 0 auto;
}

.projects-section h2 {
	font-size: 32px;
	margin-bottom: 20px;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.project-box {
	width: 48%;
	border: 2px solid #000;
	box-shadow: 3px 3px 0 #000;
	background-color: #f5f5f5;
	transition: all 0.3s ease;
	cursor: pointer;
	display: flex;
	flex-direction: column;
}

.project-box:hover {
	transform: translate(-2px, -2px);
	box-shadow: 5px 5px 0 #000;
}

.project-header {
	background-color: #ccc;
	padding: 6px 10px;
	font-family: monospace;
	font-size: 14px;
	border-bottom: 2px solid #000;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.project-header img {
	position: absolute;
	left: 10px;
	height: 26px;
}

.project-header span {
	text-align: center;
	font-weight: bold;
	font-size: 16px;
	flex-grow: 1;
}

.project-image {
	height: 107px;
	background-color: #333;
	color: #fff;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	letter-spacing: 2px;
}

.project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-content {
	padding: 15px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.project-content h3 {
	margin-top: 0;
	font-size: 20px;
}

.project-content p {
	font-size: 14px;
	margin-bottom: 15px;
	flex-grow: 1;
}

.project-content .hiperlink-button {
	margin-top: auto;
}

/* ==================== ABOUT ME SECTION ==================== */
.aboutme-section {
	width: 100%;
	margin: 0;
	padding: 40px 20px;
	border-top: 3px solid black;
	border-bottom: 3px solid black;
	position: relative;
	min-height: 400px;
}

.aboutme-section h2 {
	font-size: 32px;
	margin-bottom: 10px;
	font-weight: 700;
	text-align: left;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.aboutme-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	height: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.card-container {
	width: 520px;
	background: #F5F5F5;
	border: 4px solid #000000;
	box-shadow: 3px 3px #000000;
	position: relative;
	transition: all 0.3s ease;
	cursor: pointer;
}

.card-container:hover {
	transform: translate(-2px, -2px);
	box-shadow: 5px 5px 0 #000000;
}

.upper-container {
	height: 140px;
	background: #eb81c8;
	border-bottom: 4px solid #000000;
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

.image-container {
	width: 120px;
	height: 120px;
	background: #F5F5F5;
	border: 4px solid #000000;
	transform: translateY(50%);
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.image-container img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border: none;
}

.lower-container {
	padding: 60px 20px 30px;
	text-align: center;
}

.lower-container h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #000000;
}

.lower-container h4 {
	margin: 5px 0 15px;
	font-size: 14px;
	color: #333;
	font-weight: 600;
}

.lower-container p {
	font-size: 14px;
	color: #000000;
	border: 2px dashed #000000;
	padding: 10px;
	background: #C4C4C4;
	margin-bottom: 20px;
	line-height: 1.4;
}

/* ==================== SKILLS GRID ==================== */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(3, 80px);
	grid-template-rows: repeat(4, 80px);
	gap: 15px;
	margin-top: 20px;
	justify-self: center;
	align-self: center;
}

.skill-box {
	width: 80px;
	height: 80px;
	background-color: #C4C4C4;
	border: 3px solid #000000;
	box-shadow: 3px 3px 0 #000000;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	cursor: pointer;
}

.skill-box:hover {
	transform: translate(-2px, -2px);
	box-shadow: 5px 5px 0 #000000;
}

.skill-box img {
	max-width: 60px;
	max-height: 60px;
	object-fit: contain;
}

.skill-box i {
	font-size: 60px;
	color: #000000;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
	width: 100%;
	margin: 0;
	padding: 40px 20px;
	border-top: 3px solid black;
	border-bottom: 3px solid black;
	background: 
		linear-gradient(to right, #c4c4c4 1px, transparent 1px),
		linear-gradient(to bottom, #c4c4c4 1px, transparent 1px);
	background-size: 7px 7px;
}

.contact-section h2 {
	font-size: 32px;
	margin-bottom: 20px;
	font-weight: 700;
	text-align: left;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

.contact-container {
	display: flex;
	gap: 40px;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto;
}

.contact-form-container {
	flex: 1;
	background: #F5F5F5;
	border: 4px solid #000000;
	box-shadow: 5px 5px 0 #000000;
	padding: 30px;
	transition: all 0.3s ease;
}

.contact-form-container:hover {
	transform: translate(-2px, -2px);
	box-shadow: 7px 7px 0 #000000;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	font-weight: 700;
	font-size: 16px;
	color: #000000;
}

.form-group input,
.form-group textarea {
	padding: 12px;
	border: 3px solid #000000;
	background: #FFFFFF;
	font-family: "Baloo Thambi 2", system-ui;
	font-size: 14px;
	transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	transform: translate(-2px, -2px);
	box-shadow: 3px 3px 0 #000000;
}

.contact-btn {
	background-color: #eb81c8;
	color: #000000;
	border: 3px solid #000000;
	padding: 15px 25px;
	font-weight: 700;
	font-size: 16px;
	font-family: "Baloo Thambi 2", system-ui;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 3px 3px 0 #000000;
}

.contact-btn:hover {
	background-color: #000000;
	color: #FFFFFF;
	transform: translateY(-4px);
	box-shadow: 0 6px 0 #eb81c8;
}

.contact-info {
	flex: 1;
	display: flex;
	align-items: center;
}

.contact-card {
	background: #C4C4C4;
	border: 4px solid #000000;
	box-shadow: 5px 5px 0 #000000;
	padding: 30px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.contact-card:hover {
	transform: translate(-2px, -2px);
	box-shadow: 7px 7px 0 #000000;
}

.contact-card h3 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 15px;
	color: #000000;
}

.contact-card p {
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 25px;
	color: #000000;
}

.contact-details {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 10px;
	background: #F5F5F5;
	border: 2px solid #000000;
}

.contact-item strong {
	font-weight: 700;
	font-size: 14px;
}

.contact-item span {
	font-size: 14px;
}

/* ==================== FOOTER ==================== */
footer {
	height: 60px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #C4C4C4;
	border-top: 3px solid black;
	position: static;
}

footer p {
	font-size: 14px;
	font-weight: 600;
	color: black;
	margin: 0;
}

/* ==================== MOBILE RESPONSIVENESS ==================== */
@media (max-width: 768px) {
	/* Global mobile adjustments */
	body {
		margin: 2px;
		border: 5px solid black;
	}

	/* Navigation mobile */
	nav {
		height: auto;
		flex-wrap: wrap;
		padding: 10px 15px;
		gap: 10px;
	}

	nav a {
		font-size: 16px;
		padding: 8px 12px;
	}

	nav a:first-child {
		padding: 5px;
	}

	nav a img {
		height: 25px;
	}

	/* Hero section mobile */
	.welcome-text {
		flex-direction: column;
		padding: 30px 20px;
		gap: 30px;
		min-height: auto;
	}

	.hero-container {
		width: 100%;
		text-align: center;
		order: 1;
	}

	.hero-container h1 {
		font-size: 42px;
		line-height: 40px;
		margin-bottom: 15px;
	}

	.hero-container p {
		font-size: 16px;
		line-height: 22px;
		margin-bottom: 20px;
		text-align: center;
	}

	.hero-container a {
		margin-left: 0;
		justify-content: center;
		margin-top: 15px;
		font-size: 18px;
	}

	.image-hero-container {
		order: 2;
		display: flex;
		justify-content: center;
	}

	.image-hero-container img {
		width: 250px;
		height: 250px;
	}

	.btn {
		margin: 0 auto;
		display: block;
		width: fit-content;
		padding: 10px 20px;
		font-size: 16px;
	}

	/* Social links mobile */
	.links-container {
		position: static;
		transform: none;
		flex-direction: column;
		gap: 10px;
		margin: 20px 0;
	}

	.hiperlink-button {
		width: 100%;
		height: auto;
		padding: 15px;
	}

	/* Projects section mobile */
	.projects-section {
		padding: 20px 10px;
	}

	.projects-container {
		flex-direction: column;
		gap: 20px;
	}

	.project-box {
		width: 100%;
	}

	/* About me section mobile */
	.aboutme-section {
		padding: 20px 10px;
	}

	.aboutme-container {
		flex-direction: column;
		gap: 30px;
	}

	.card-container {
		width: 100%;
		max-width: 400px;
	}

	.skills-grid {
		grid-template-columns: repeat(3, 60px);
		grid-template-rows: repeat(4, 60px);
		gap: 10px;
		justify-self: center;
	}

	.skill-box {
		width: 60px;
		height: 60px;
	}

	.skill-box i {
		font-size: 40px;
	}

	/* Contact section mobile */
	.contact-section {
		padding: 20px 10px;
	}

	.contact-container {
		flex-direction: column;
		gap: 30px;
		align-items: stretch;
	}

	.contact-form-container,
	.contact-info {
		flex: none;
		width: 100%;
	}

	.contact-card {
		width: 100%;
	}

	/* Footer mobile */
	footer {
		height: auto;
		padding: 15px;
	}

	footer p {
		font-size: 12px;
	}
}