:root {
    --green-color: #00d62e;
    --green-color-hover: #00d62edc;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #10161b;
    color: white;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    background: rgb(0,0,0);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    border-bottom: 1px #6d6d6d solid;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.servername {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.servername h2 {
    margin: 0;
    padding: 0;
}

nav a {
    margin: 0 20px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--green-color);
}

/* nav a#active {
    text-decoration: underline !important;
    text-underline-offset: 15px;
} */

.hero {
    padding-top: 220px;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
}

.discord-icon {
    height: 18px;
    width: 18px;
    object-fit: contain;
}

.btn-main {
    background: var(--green-color);
    padding: 12px 35px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    transition: box-shadow 0.25s ease;
}

.btn-main:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 10px var(--green-color);
    cursor: pointer;
}

.btn-main:active {
    transform: scale(0.98);
}

.server-card {
    background: #171d25;
    border-radius: 16px;
    padding: 60px;
    margin: 100px auto 0 auto;
    max-width: 500px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.server-card h3 {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
}

.server-card p {
    margin: 5px 0;
    opacity: 0.85;
}

.fa-copy:hover, .fa-play:hover {
    cursor: pointer;
}

.server-progress {
    width: 100%;
    height: 12px;
    background: #2b2f36;
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #87ff4f, #1cd41c);
    transition: width 0.6s ease;
}

.section, header, footer {
    padding-left: 12%;
    padding-right: 12%;
}

.section {
    padding-top: 70px;
    padding-bottom: 80px;
    text-align: center;
}

#news-cards, #jobs-cards, #activities-cards {
    padding-left: 12%;
    padding-right: 12%;
    margin-top: 60px;
}

#news-cards, 
#jobs-cards, 
#activities-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1100px) {
    #news-cards, #jobs-cards, #activities-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    #news-cards, #jobs-cards, #activities-cards {
        grid-template-columns: repeat(1, 1fr);
    }
}

.card {
    background: #171d25;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 6px #3f3f3f;
    border: 1px #3f3f3f solid;
    transition: transform 1s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.03);
}

.card {
    perspective: 1000px;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 280px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #171d25;
    border-radius: 14px;
    box-shadow: 0 0 6px #3f3f3f;
    border: 1px #3f3f3f solid;
    overflow: hidden;
    padding: 15px;
    box-sizing: border-box;
}

.card-front img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    text-align: center;
}
/* flip + info karty */


.card img { width: 100%; height: 180px; object-fit: cover; }
.card h3 { margin: 12px 0 0 0; }
.card p { opacity: 0.7; padding-bottom: 5px; }

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: rgb(0,0,0);

    margin: 0 auto;
    z-index: 10;
    border-top: 1px #6d6d6d solid;

    font-family: 'Montserrat', sans-serif;
    color: lightgray;
}

.footer-socials i {
    height: 24px;
    width: 24px;
    margin: 0 8px 0 8px;
}

.footer-socials i:hover {
    cursor: pointer;
    color: var(--green-color);
}


/* GALERIE */
.gallery-section {
	max-width: 1200px;
	margin: 11vw auto 5.75vw auto;
	padding: 20px;
	color: white;
	text-align: center;
	background: #171d25;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	backdrop-filter: blur(6px);
}

.gallery-section h2 {
	font-size: 36px;
	/* margin-bottom: 40px; */
	color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-height: 645px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    position: relative;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-grid::-webkit-scrollbar {
	width: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
	background-color: #00d62e;
	border-radius: 5px;
}

.gallery-grid::-webkit-scrollbar-track {
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 5px;
}

.gallery-grid {
	scrollbar-color: #00d62e rgba(255,255,255,0.1);
	scrollbar-width: thin;
}

.gallery-grid img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 4px 16px rgba(0,0,0,0.6);
	cursor: pointer;
	transition: transform 0.3s ease;
}

.gallery-grid img:hover {
	transform: scale(1.04);
}

.lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
	visibility: visible;
	opacity: 1;
}

.lightbox-overlay img {
	max-width: 90%;
	max-height: 90%;
	border-radius: 10px;
	box-shadow: 0 0 40px rgba(0,0,0,0.6);
	cursor: zoom-out;
}

.lightbox-controls {
	position: absolute;
	top: 50%;
	width: 100%;
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
	padding: 0 40px;
	color: white;
	font-size: 48px;
	cursor: pointer;
	user-select: none;
}

.lightbox-caption {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 18px;
	background: rgba(0, 0, 0, 0.5);
	padding: 8px 16px;
	border-radius: 8px;
}

.lightbox-controls span:hover {
	color: #00d62e;
}