:root {
    --primary: #0f172a;
    --secondary: #334155;
    --accent: #2563eb;
    --bg: #f8fafc;
    --text: #ffffff;
    --martin: #f89447;
}

/* Appearance */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-image: url("images/background.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100%;
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: -1;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.container {
    width: min(90%, 1000px);
	margin: auto;
}

header {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.subtitle {
    font-size: 1.2rem;
}

nav {
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
	box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    0 8px 16px rgba(0,0,0,0.3);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
}

section {
    padding: 1rem 0;
	scroll-margin-top: 50px;
}

article {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
	padding-left: 20px;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-right: 20px;
	border-radius: 10px;
	margin-bottom: 20px;
    box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    0 8px 16px rgba(0,0,0,0.3);
}

a {
    color: var(--accent);
}

a:focus,
button:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
}

.martin {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--martin);
}

.center {
    text-align: center;
}

/* Gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    filter: grayscale(100%);
    opacity: 0.85;
	border-radius: 6px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        filter 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    opacity: 1;
    filter: grayscale(0%);
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.85);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
	filter: none;
    border-radius: 10px;
    box-shadow:
	0 2px 4px rgba(0,0,0,0.4),
    0 8px 16px rgba(0,0,0,0.3);
}

.lightboxContainer {
	position: relative;
	text-align: center;
	justify-content: center;
	color: white;
	overflow: hidden;
}

.lightbox-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
	backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.7);
    color: white;
	text-align: justify;
    padding: 30px;
    box-sizing: border-box;
	max-width:100%;
	transform: translateY(100%);
    transition: transform 0.7s ease;
    z-index: 100000;
}

.lightbox.active .lightbox-overlay {
    transform: translateY(0);
}

/* Responsive settings */

@media (max-width: 800px) {
	section {
        scroll-margin-top: 150px;
    }
	.services-grid {
        grid-template-columns: 1fr;
	}	
	.gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	.lightbox-overlay {
		font-size: 0.8rem;
	}
}