* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

html,
body {
	overflow-x: hidden;
}

.borders,
.content,
.services,
.gallery,
.byggen-container,
.footer-basic {
	overflow-x: hidden;
}


.header {
	position: relative;
	width: 100%;
	height: 100vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	opacity: 0;
	/* Starta osynligt */
	transition: opacity 1s ease-in-out;
	/* Fade in */
}

.header.loaded {
	opacity: 1;
	/* När bilden har laddats */
}

.text-box {
	color: #fff;
	padding: 20px;
}

.text-box h1 {
	font-size: 3em;
}

@media (max-width: 768px) {
	.text-box h1 {
		font-size: 2em;
	}
}


nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	position: fixed;
	/* Fixerad meny */
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(37, 37, 37, 0.5);
	z-index: 1000;
}

nav.hidden {
	transform: translateY(-100%);
	transition: transform 0.3s ease;
}


#logo img {
	width: 200px;
	margin-left: 50px;
}

/* Navigation links */
.nav-links {
	list-style: none;
	display: flex;
	gap: 20px;
}

.nav-links li a {
	color: white;
	text-decoration: none;
	font-size: 18px;
	transition: color 0.3s;
}

.nav-links li a:hover {
	color: #FF6700;
}

/* Hamburger icon */
.menu-icon {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 25px;
	height: 20px;
	margin-top: 10px;
	cursor: pointer;
	z-index: 1001;
}

.bar {
	height: 3px;
	width: 100%;
	background-color: white;
	transition: all 0.4s ease;
	border-radius: 2px;
}

.menu-icon.active .bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-icon.active .bar:nth-child(2) {
	opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobilanpassning */
@media (max-width: 767px) {
	nav {
		justify-content: center;
		/* Centrera logon */
	}

	#logo img {
		margin: auto;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		background-color: rgba(4, 9, 30, 0.9);
		position: absolute;
		top: 60px;
		right: 20px;
		padding: 20px;
		border-radius: 10px;
	}

	.nav-links.active {
		display: flex;
	}

	.menu-icon {
		display: flex;
		position: absolute;
		right: 20px;
		top: 15px;
	}
}

.start-row {
	margin-top: 8%;
	padding-top: 15%;
	display: flex;
	justify-content: space-evenly;
}

.start-col p {
	margin: 10px 0 10px;
	font-size: 18px;
	color: #ddd;
	border: 2px solid #FF6700;
}

.fa {
	color: #FF6700;
}

@media(max-width: 767px) {
	img {
		width: 80%;
		padding: 0;
	}

	body .line {
		margin-bottom: 12%;
	}

	.row {
		flex-direction: column;
	}

	body .start-row {
		flex-direction: column;
		padding-top: 110%;
	}
}

@media only screen and (min-width: 768px) and (max-width: 1280px) {
	img {
		width: 70%;
		padding: 0;
	}

	body .line {
		margin-bottom: 12%;
	}

	.row {
		flex-direction: column;
	}

	body p {
		font-size: 20px;
		line-height: 28px;
	}

	body .start-row {
		flex-direction: column;
		padding-top: 70%;
	}
}

/*---Content---*/
.borders {
	width: 100%;
	background-color: #1e1e1e;
}

.line-lang {
	width: 60%;
	margin: auto;
	margin-top: 0;
	margin-bottom: 5%;
	border: 1px solid #FF6700;
}

.line {
	width: 60%;
	margin: auto;
	margin-top: 5%;
	margin-bottom: 5%;
	border: 1px solid #FF6700;
}

.content {
	width: 80%;
	margin: auto;
	text-align: center;
	padding-top: 100px;
}

h1 {
	font-size: 36px;
	font-weight: 200;
	color: #fff;
	text-align: center;
}

h2 {
	font-size: 32px;
	font-weight: 200;
	color: #fff;
	text-align: center;
}

p {
	color: #ddd;
	font-size: 18px;
	font-weight: 300;
	line-height: 24px;
	padding: 10px;
}

.contentp {
	text-align: left;
}

.row {
	margin-top: 5%;
	display: flex;
	justify-content: space-evenly;
}

img {
	vertical-align: middle;
}

.active {
	z-index: 100;
}

/* Fading animation */
.fade {
	animation-name: fade;
	animation-duration: 1.5s;
}

@keyframes fade {
	from {
		opacity: .4
	}

	to {
		opacity: 1
	}
}

#myVideo {
	border: 1px solid #FF6700;
	width: 100%;
	height: auto;
}

.footer-basic {
	padding: 40px 20px;
	background-color: #1e1e1e;
	color: #fff;
	text-align: center;
}

.footer-basic h3 {
	font-size: 1.8em;
	color: #ddd;
	margin-bottom: 20px;
	font-weight: 300;
}

.footer-basic .contact-info {
	list-style: none;
	padding: 0;
	margin: 0 auto 20px auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 1em;
}

.footer-basic .contact-info a {
	color: #ddd;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-basic .contact-info a:hover {
	color: #ffa040;
}

.footer-basic .copyright {
	font-size: 0.85em;
	color: #aaa;
	margin-top: 10px;
}

.footer-basic .copyright a {
	color: #FF6700;
	text-decoration: none;
}

.footer-basic .copyright a:hover {
	text-decoration: underline;
}


.services {
	padding: 60px 20px;
	text-align: center;
	background-color: #1e1e1e;
	/* Mörk bakgrund för kontrast */
}

.services h2 {
	font-size: 2.5em;
	margin-bottom: 20px;
	color: #FF6700;
	/* Orange färg för rubrik */
}

.services p {
	max-width: 800px;
	margin: 0 auto 40px auto;
	color: #ddd;
	/* Ljusgrå text */
	font-size: 1.1em;
	line-height: 1.6;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.service-item {
	background-color: #151515;
	border-radius: 12px;
	padding: 20px;
	color: #fff;
	font-size: 1.1em;
	text-align: center;
	transition: transform 0.3s ease, background-color 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-item:hover {
	background-color: #FF6700;
	color: #fff;
	transform: translateY(-5px);
}

.service-item i {
	font-size: 40px;
	color: #FF6700;
	margin-bottom: 10px;
	display: block;
	transition: color 0.3s ease;
}

.service-item:hover i {
	color: #FFA040;
}

.service-item strong {
	display: block;
	margin-bottom: 5px;
	font-size: 1.1em;
}

.service-item p {
	color: #ddd;
	font-size: 0.9em;
	line-height: 1.4;
	margin-top: 5px;
}



@media (max-width: 1024px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.services-grid {
		grid-template-columns: 1fr;
	}
}


.services h2 {
	font-size: 2em;
}

.service-item {
	font-size: 1em;
	padding: 20px;
}


.gallery {
	padding: 60px 20px;
	text-align: center;
	background-color: #1e1e1e
}

.gallery h2 {
	color: #FF6700;
	margin-bottom: 30px;
	font-size: 2em;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	max-width: 1000px;
	margin: 0 auto;
}

.gallery-grid a {
	display: block;
	width: 100%;
	height: 150px;
	/* Fast höjd för alla bilder */
	overflow: hidden;
	/* Döljer delar som sticker ut */
	border-radius: 10px;
}

.gallery-grid a img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Ser till att bilden täcker hela utrymmet */
	transition: transform 0.3s ease;
}

.gallery-grid a img:hover {
	transform: scale(1.05);
}

.byggen-title {
	text-align: center;
	font-size: 2em;
	color: #FF6700;
	margin: 30px 0 10px 0;
}

.byggen-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.byggen-item {

	padding: 25px;
	border-radius: 12px;
	max-width: 750px;
	width: 100%;
}

.byggen-text {
	text-align: center;
	margin-bottom: 10px;
}

.byggen-text h3 {
	color: #ddd;
	margin-bottom: 8px;
	font-size: 1.4em;
	font-weight: 300;
}

.byggen-text p {
	color: #ddd;
	font-size: 1em;
	line-height: 1.4;
}

.byggen-media {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.byggen-video,
.byggen-image {
	flex: 1 1 300px;
	max-width: 48%;
	/* För att de ska ligga bredvid varandra */
	height: auto;
	border-radius: 8px;
}

@media (max-width: 768px) {
	.byggen-media {
		flex-direction: column;
		gap: 15px;
	}

	.byggen-video,
	.byggen-image {
		max-width: 80%;
		margin-left: 10%;
	}

}