/* reset css styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
}

body {
	line-height: 1.6;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
		Ubuntu, Cantarell, sans-serif;
}

ul,
ol {
	list-style: none;
}

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

img {
	max-width: 100%;
	display: block;
}

button,
input,
textarea,
select {
	font: inherit;
}

/* general styles */
:root {
	--max-width: 1024px;
	--header-bg: #000000;
	--primary-bg: #eaddff;
	--secondary-bg: #332d41;
	--primary-button: #6750a4;
	--secondary-button: #ccc2dc;
	--primary-font: #4a4459;
	--secondary-font: #ffffff;
}

body {
	font-family: "Roboto", sans-serif;
	background-color: var(--primary-bg);
	color: var(--primary-font);
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
}

header {
	background-color: var(--header-bg);
	height: 64px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}
header .logo {
	width: 72px;
	height: 64px;
	position: absolute;
	left: 0;
}

header .logo2 {
	width: 72px;
	height: 64px;
	position: absolute;
	right: 0;
	padding-right: 0;
}

header nav ul {
	display: flex;
	justify-content: space-around;
	align-items: center;
	width: 100%;
}
footer {
	background-color: var(--header-bg);
	position: fixed;
	width: 100%;
	bottom: 0;
}
footer p {
	color: var(--secondary-font);
	text-align: center;
	padding: 1rem;
}
header nav li a {
	color: var(--secondary-font);
	padding: 0.75rem 2.5rem;
	border-radius: 30px;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: background-color 0.3s ease;
	font-weight: 900;
}

header nav li a:hover,
header nav li a.active {
	background-color: #eaddff;
	color: #5e576d;
}

header nav li a svg,
header nav li a i {
	width: 20px;
	height: 20px;
}

button.primary {
	background-color: var(--primary-button);
	color: var(--secondary-font);
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
}
button.secondary {
	background-color: var(--secondary-button);
	color: var(--primary-font);
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
}
button.primary:hover {
	background-color: darken(var(--primary-button), 10%);
}
button.secondary:hover {
	background-color: darken(var(--secondary-button), 10%);
}
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 1rem;
	font-weight: 600;
}

section {
	padding: 2rem 0;
}
section:nth-child(even) {
	background-color: var(--primary-bg);
	color: var(--primary-font);
}
section:nth-child(odd) {
	background-color: var(--secondary-bg);
	color: var(--secondary-font);
}
section h2 {
	margin-bottom: 1.5rem;
	text-align: center;
}
header {
	max-height: 64px;
}
footer {
	height: 64px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 2rem;
}

footer p {
	background-color: var(--secondary-font);
	color: var(--header-bg);
	padding: 0.2rem 1.5rem;
	border-radius: 20px;
	font-size: 11px;
}
footer .contact-item {
	background-color: var(--secondary-font);
	color: var(--header-bg);
	padding: 0.2rem 1.5rem;
	border-radius: 20px;
	font-size: 14px;
}

footer .social-links {
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
	background-color: var(--secondary-font);
	padding: 0.2rem 1rem;
	border-radius: 20px;
}

footer .social-icons img {
	width: 26px;
	height: 26px;
}
/* Home Page Styles*/
section.projects {
	max-height: 616px;
}

.projectCards {
	display: flex;
	justify-content: space-around;
	align-items: center;
}
.project {
	background-color: #f7f2fa;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	height: 480px;
	width: 315px;
	display: flex;
	flex-direction: column;
}
.project h3 {
	margin-bottom: 0;
}
.project h5 {
	margin-top: 0;
}
.project h3,
h5 {
	padding: 0;
	margin-top: 15px;
	margin-left: 15px;
}
.project img {
	height: 188px;
	width: 310px;
	object-fit: contain;
	align-self: center;
}
.project p {
	font-size: 12px;
	padding: 10px;
}
.project button {
	width: 138px;
	height: 40px;
	border-radius: 90px;
	background-color: var(--primary-button);
	border: none;
	color: var(--secondary-font);
	font-size: 14px;
	align-self: flex-end;
	margin-right: 15px;
	margin-bottom: 15px;
}
.project button:hover {
	background-color: var(--secondary-button);
	color: var(--primary-font);
}
section.about {
	max-height: 413px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem;
}
.about-container {
	display: flex;
	flex-direction: row;
	gap: 4rem;
	max-width: var(--max-width);
	margin: 0 auto;
}
.about-content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: flex-start;
	max-width: var(--max-width);
	margin-top: 1rem;
}

.profile-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 200px;
}

.profile-card img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1rem;
}

.profile-card h3 {
	color: var(--secondary-font);
	margin-bottom: 0.25rem;
	text-align: center;
}

.profile-card p {
	color: var(--secondary-font);
	font-size: 14px;
	text-align: center;
	margin: 0.25rem 0;
}

.about-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bio-box {
	background-color: transparent;
	border: 2px solid #6750a4;
	border-radius: 8px;
	padding: 1.5rem;
	color: var(--secondary-font);
	line-height: 1.6;
}

.view-work-btn {
	background-color: #ccc2dc;
	color: var(--primary-font);
	padding: 0.75rem 2rem;
	border-radius: 90px;
	border: none;
	font-size: 20px;
	font-weight: 900;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	align-self: center;
	margin-top: -50px;
}
.view-work-btn:hover {
	background-color: #7d7787;
	color: var(--secondary-font);
}

section.skills {
	max-height: 600px;
	margin-bottom: 170px;
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1rem;
}

.skill-column {
	border-radius: 8px;
	padding: 1rem;
}

.skill-column h3 {
	text-align: center;
	padding: 1rem;
	margin: 0;
	border-radius: 6px 6px 0 0;
	margin: -1rem -1rem 1rem -1rem;
}

.skill-column ul {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.skill-column li {
	padding: 1rem;
	text-align: center;
	border-bottom: 1px solid #ccc2dc;
}

.skill-column li:last-child {
	border-bottom: none;
}

/* End of Home Page Styles */

/* Case Study Page Styles */
main {
	margin-top: 64px;
	margin-bottom: 64px;
}

main h1 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 2rem;
	color: var(--primary-font);
}

.hero-image {
	position: relative;
	max-width: var(--max-width);
	margin: 0 auto 3rem;
}

.hero-image img {
	width: 100%;
	border-radius: 8px;
}

.hero-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: space-around;
	padding: 1rem;
	border-radius: 0 0 8px 8px;
}

.info-item {
	text-align: center;
}

.info-item .label {
	color: #ccc2dc;
	font-size: 14px;
	margin-bottom: 0.25rem;
}

.info-item .value {
	color: var(--secondary-font);
	font-weight: 600;
	font-size: 16px;
}

section.overview,
section.description,
section.process {
	max-width: 100%;
	margin-bottom: 3rem;
	padding: 2rem;
}

section.overview h2,
section.process h2 {
	text-align: center;
	margin-bottom: 1.5rem;
}
section.process p a {
	color: var(--primary-font);
	font-weight: 800;
	text-decoration: underline;
}

section.overview p,
section.description p,
section.process p {
	margin-bottom: 1rem;
	line-height: 1.8;
}

.screenshots-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	max-width: var(--max-width);
	margin: 0 auto 3rem;
	padding: 0 2rem;
}

.screenshot {
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
}

.screenshot img {
	width: 100%;
	height: auto;
}

.screenshot .caption {
	text-align: center;
	padding: 1rem;
	background-color: var(--secondary-bg);
	color: var(--secondary-font);
	font-size: 14px;
}

section.process h3 {
	color: var(--primary-font);
	margin-top: 1.5rem;
	margin-bottom: 1rem;
}

section.process ul {
	list-style: disc;
	padding-left: 2rem;
	margin-bottom: 1rem;
}

section.process ul li {
	margin-bottom: 0.75rem;
	line-height: 1.6;
}

section.process a {
	color: #ccc2dc;
	text-decoration: underline;
}

.buttons {
	display: flex;
	justify-content: center;
	gap: 2rem;
	max-width: var(--max-width);
	margin: 0 auto 7rem;
}

.buttons .btn {
	background-color: var(--primary-button);
	color: var(--secondary-font);
	padding: 0.75rem 2rem;
	border-radius: 90px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.buttons .btn:hover {
	background-color: #5343a0;
}
/* End Case Study Page Styles */

/* Mobile Responsive CSS */

/* Hamburger Menu Styles */
.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	padding: 0.5rem;
	position: absolute;
	right: 1rem;
	z-index: 1001;
}

.hamburger span {
	width: 25px;
	height: 3px;
	background-color: var(--secondary-font);
	margin: 3px 0;
	transition: 0.3s;
	border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
	transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: rotate(45deg) translate(-5px, -6px);
}

/* Tablet styles (iPad) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
	header nav li a {
		padding: 0.5rem 1.5rem;
		font-size: 14px;
	}

	header nav li a svg,
	header nav li a i {
		width: 16px;
		height: 16px;
	}
}

/* Phone styles */
@media screen and (max-width: 768px) {
	header {
		height: 64px;
		padding: 0;
	}

	header .logo {
		position: absolute;
		left: 1rem;
		margin: 0;
	}

	header .logo2 {
		display: none;
	}

	.hamburger {
		display: flex;
	}

	header nav {
		position: fixed;
		top: 64px;
		left: -100%;
		width: 100%;
		background-color: var(--header-bg);
		transition: left 0.3s ease;
		padding: 1rem 0;
	}

	header nav.active {
		left: 0;
	}

	header nav ul {
		flex-direction: column;
		gap: 0.5rem;
	}

	header nav li {
		width: 100%;
		text-align: center;
	}

	header nav li a {
		padding: 0.75rem 1rem;
		font-size: 14px;
		display: block;
		width: 90%;
		margin: 0 auto;
	}

	footer {
		flex-direction: row;
		height: auto;
		padding: 0.5rem 1rem;
		gap: 0.5rem;
		font-size: 12px;
	}

	footer p {
		font-size: 8px;
		padding: 0.2rem 0.75rem;
	}

	footer .contact-item {
		font-size: 11px;
		padding: 0.2rem 0.75rem;
	}

	footer .social-links {
		padding: 0.2rem 0.5rem;
		gap: 0.25rem;
	}

	footer .social-icons img {
		width: 20px;
		height: 20px;
	}

	main {
		padding: 1rem;
	}

	.projectCards {
		flex-direction: column;
		gap: 2rem;
	}

	.project {
		width: 100%;
		max-width: 315px;
		margin: 0 auto;
	}

	.about-container {
		flex-direction: column;
		gap: 2rem;
	}

	.profile-card {
		width: 100%;
	}

	.view-work-btn {
		margin-top: 1rem;
	}

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

	.hero-info {
		gap: 0.5rem;
		padding: 0.75rem;
	}

	.info-item .label {
		font-size: 12px;
	}

	.info-item .value {
		font-size: 14px;
	}

	.screenshots-grid {
		grid-template-columns: 1fr;
		padding: 0 1rem;
	}

	.buttons {
		flex-direction: column;
		gap: 1rem;
		padding: 0 1rem;
	}

	section {
		padding: 1.5rem 1rem;
	}

	section.about,
	section.projects,
	section.skills {
		max-height: none;
	}
}

@media screen and (max-width: 480px) {
	html {
		font-size: 14px;
	}

	header nav li a {
		padding: 0.2rem 0.5rem;
		font-size: 16px;
	}

	.project img {
		width: 100%;
	}

	main h1 {
		font-size: 1.75rem;
	}

	.buttons .btn {
		width: 100%;
	}

	footer {
		padding: 0.25rem 0.5rem;
	}

	footer p {
		font-size: 6px;
		padding: 0.15rem 0.5rem;
	}

	footer .contact-item {
		font-size: 9px;
		padding: 0.15rem 0.5rem;
	}

	footer .social-links {
		padding: 0.15rem 0.35rem;
	}

	footer .social-icons img {
		width: 16px;
		height: 16px;
	}

	.hero-info {
		gap: 0.25rem;
		padding: 0.5rem;
	}

	.info-item .label {
		font-size: 10px;
	}

	.info-item .value {
		font-size: 12px;
	}
}
