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

/* BODY */
body {
	background-color: #fff0da;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-style: normal;
	color: #5b3728;
	line-height: 1.6;
}

/* WRAPPER */
.wrapper {
	max-width: 1200px;
	width: 90%;
	margin: 0 auto;
}

/* HEADINGS */
h1,
h2,
h3 {
	font-family: "Abril Fatface", serif;
	font-weight: normal;
}

/* HEADER */
header {
	background-image: url("../images/hero.png");
	background-size: cover;
	background-position: center;
	height: 400px;
	position: relative;
}

nav ul {
	list-style: none;
	text-align: right;
	padding: 20px;
}

nav li {
	display: inline-block;
	margin-left: 20px;
}

nav a {
	color: white;
	text-decoration: none;
	font-weight: bold;
	font-family: "Abril Fatface", serif;
	font-size: 20px;
	letter-spacing: 2px;
}

/* HERO */
.hero-content {
	text-align: center;
	color: white;
	margin-top: 100px;
}

.hero-content h1 {
	font-size: 50px;
	margin-bottom: 10px;
}

.hero-content p {
	letter-spacing: 4px;
	font-family: "Abril Fatface", serif;
}

/* ABOUT */
.about {
	display: flex;
	align-items: center;
	gap: 48px;
	margin: 48px 0;
	padding: 32px;
	border: 2px solid #ffbd59;
}

.about-image {
	flex: 0 0 300px;
	display: flex;
	justify-content: center;
}

.about-image img {
	width: 100%;
	display: block;
	border: 1px solid #ffbd59;
}

.about-text {
	flex: 1;
}

.about-text h2 {
	margin-bottom: 16px;
}

.about-text p {
	margin-bottom: 16px;
	line-height: 1.7;
}

/* PROJECTS */
.projects {
	margin: 64px 0;
}

.projects h2 {
	text-align: center;
	margin-bottom: 32px;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.card {
	display: flex;
	flex-direction: column;
	background-color: white;
	border: 1px solid #ffbd59;
	padding: 16px;
}

.card img {
	width: 100%;
	display: block;
	border-radius: 4px;
}

.card a {
	margin-top: 16px;
	text-align: center;
	text-decoration: none;
	background-color: #e7b24d;
	color: #5b3728;
	padding: 12px;
	width: 50%;
	align-self: center;
	font-weight: bold;
	border-radius: 4px;
	font-family: "Abril Fatface", serif;
}

.card a:hover {
	opacity: 0.9;
}

/* SKILLS */
.skills {
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 32px;
	border: 1px solid #ffbd59;
}

.skills-text h2 {
	margin-bottom: 16px;
}

.skills-text ul {
	padding-left: 20px;
}

.skills-text li {
	margin-bottom: 8px;
}

.skills-icon {
	flex: 0 0 180px;
	text-align: center;
}

.skills-icon img {
	width: 250px;
	display: block;
	margin: 0 auto;
}

/* FOOTER */
footer {
	background-color: #e7b24d;
	padding: 32px;
	text-align: center;
}

.footer-content h3 {
	margin-bottom: 8px;
}

.footer-content p {
	margin-bottom: 8px;
}

footer a {
	display: block;
	margin-top: 8px;
	color: #5b3728;
	font-weight: bold;
}

.cv-button {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 19px;
	background-color: #5b3728;
	color: #fff0da;
	text-decoration: none;
	border-radius: 4px;
}

/* PROJEKTDETALJER */

.project-details {
	margin-top: 20px;
}

.toggle-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px;
	border: none;
	border-bottom: 1px solid #ddd;
	background: transparent;
	cursor: pointer;
	text-align: left;
	color: #5b3728;
	font-size: 16px;
	font-weight: 600;
}

.arrow {
	font-size: 12px;
	transition: transform 0.3s ease;
}

.toggle-btn.active .arrow {
	transform: rotate(90deg);
}
.toggle-btn:hover {
	background-color: #fff6e8;
}

.hidden-content {
	display: none;
	padding: 15px;
	background-color: #fffaf2;
}

.hidden-content.show {
	display: block;
}
/* MEDIA QUERIES */

@media (max-width: 900px) {
	.project-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.about {
		flex-direction: column;
		text-align: center;
	}

	.skills {
		flex-direction: column;
		text-align: center;
	}

	.about-image {
		flex: none;
		width: 220px;
	}

	.skills-icon {
		flex: none;
	}

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