/* --- FontsSetup --- */
@font-face {
    font-family: 'OrgonBold';
    src: url('fonts/OrgonBold/font.woff2') format('woff2'),
         url('fonts/OrgonBold/font.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'OrgonThin';
    src: url('fonts/OrgonThin/font.woff2') format('woff2'),
         url('fonts/OrgonThin/font.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


/* --- MainSetup --- */
html {
	scroll-behavior: smooth;
}

body {
	margin: 0px;
	font-family: OrgonThin;
	color: #E7E7E7;
	background-color: #111111;
}

div {
	padding: 0px;
	border: 0px;
	margin: 0px;
}

a:link, a:visited, a:active {
	text-decoration: none;
	color: #E7E7E7;
}

a:hover {
	text-decoration: none;
	color: #ff6900;
}

a, img, .worksContainer, .serviceContainer {
    transition: all 0.4s ease-in-out;
}

p table tr th {
	padding: 0px;
	border: 0px;
	margin: 0px;
}

b {
	font-family: OrgonBold;
}

.responsive {
	width: 100%;
	height: auto;
}

#section {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;      /* Centruje całą treść strony */
    padding: 0 40px;     /* Bezpieczny margines na telefonach */
    padding-bottom: 25px;
    box-sizing: border-box;
    width: 100%;
}

#welcomeText {
	position: fixed;
	bottom: 50px;
	right: 150px;
	text-align: right;
}

#bgVideo{
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}
@media (min-aspect-ratio: 16/9){
    #bgVideo {
        width: 100%;
        height: auto;
    }
}
@media (max-aspect-ratio: 16/9) {
    #bgVideo {
        width: auto;
        height: 100%;
    }
}

#navbar {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
}

#logo img {
    height: 75px; /* Twoja obecna wysokość logo */
    width: auto;
    display: block;
    
    /* 1. Ustawienie płynności animacji */
    transition: filter 0.3s ease-in-out; 
    
    /* Opcjonalnie: jeśli logo jest czarne, warto dodać lekką jasność na start */
    filter: invert(1);
}

#logo img:hover {
    /* 2. Filtr zamieniający kolor PNG na pomarańczowy (#ff6900) */
    /* Wykorzystujemy kombinację filtrów, aby "przefarbować" czarny/szary obrazek */
    filter: invert(53%) sepia(91%) saturate(3054%) hue-rotate(1deg) brightness(102%) contrast(105%);
}

.menu-container {
    display: inline-block;
    cursor: pointer;
    z-index: 1005; /* Musi być najwyżej ze wszystkich */
    position: relative; 
}

/* Kreski hamburgera */
.bar1, .bar2, .bar3 {
    width: 35px;
    height: 2px;
    background-color: #FFFFFF;
    margin: 8px 0;
    transition: 0.4s;
}

/* Animacja w X - sprawdź czy te wartości transform Ci odpowiadają */
.change .bar1 { transform: translate(0, 10px) rotate(-45deg); }
.change .bar2 { opacity: 0; }
.change .bar3 { transform: translate(0, -10px) rotate(45deg); }

/* --- Overlay Menu (Wyjeżdżanie z góry) --- */
.overlay {
    height: 0;           /* Startujemy od zerowej wysokości */
    width: 100%;         /* Zawsze pełna szerokość */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: rgba(17, 17, 17, 0.98);
    overflow: hidden;    /* Ukrywa linki, gdy menu jest zamknięte */
    transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1); /* Płynny, "ekskluzywny" ruch */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stan otwarty - menu zjeżdża w dół */
.overlay.open {
    height: 100%;
}

.overlay-content {
    display: flex;       /* Ustawiamy Flexbox */
    flex-direction: column; /* Linki jeden pod drugim */
    align-items: center;
    width: 100%;
}

.overlay a {
    padding: 10px;
    text-decoration: none;
    font-size: 40px;
    color: #E7E7E7;
    display: block;      /* Każdy link zajmuje całą linię */
    transition: 0.3s;
    font-family: 'OrgonThin';
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 5px 0;       /* Odstęp między linkami */
}

/* Responsywność dla mobile */
@media screen and (max-width: 1024px) {
    .overlay a {
        font-size: 26px;
        padding: 15px;
    }
}

/* --- Efekt najechania na linki w menu --- */
.overlay a:hover {
    color: #ff6900;       /* Zmiana koloru tekstu na pomarańczowy */
    letter-spacing: 10px; /* Opcjonalny efekt rozsuwania liter, który pasuje do Twojego stylu */
    transform: scale(1.1); /* Delikatne powiększenie tekstu */
}


/* --- Showreel --- */
/* Kontener główny */
.showreel-sexy-wrapper {
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 40px;
}

/* Okno Video */
.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
}

.video-frame iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* Nawigacja pod filmem */
.showreel-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px; /* Cienka linia między przyciskami */
    background: rgba(255,255,255,0.05);
    margin-top: 40px;
}

.reel-btn {
    background: #111;
    border: none;
    padding: 30px;
    cursor: pointer;
    text-align: left;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.reel-btn .num {
    font-family: 'OrgonThin';
    color: #444;
    font-size: 12px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.reel-btn .title {
    font-family: 'OrgonBold';
    color: #888;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stan aktywny i Hover */
.reel-btn:hover .title {
    color: #fff;
}

.reel-btn.active {
    background: #151515;
    border-top: 3px solid #ff6900; /* Twój pomarańczowy akcent */
    padding-top: 27px; /* Kompensacja ramki */
}

.reel-btn.active .num {
    color: #ff6900;
}

.reel-btn.active .title {
    color: #fff;
}

/* Mobile */
@media screen and (max-width: 768px) {
    .showreel-nav {
        grid-template-columns: 1fr;
    }
}


/* --- Works --- */
.worksContainer {
	position: relative;
	float: left;
	overflow: hidden;
}

@media (min-aspect-ratio: 16/9){
    .worksContainer {
         width: 33.3%;
    }
}
@media (max-aspect-ratio: 16/9) {
    .worksContainer {
        width: 100%;
    }
}

.worksImage {
	opacity: 1;
	display: block;
	width: 100%;
	height: auto;
	transition: .5s ease;
	backface-visibility: hidden;
}

.worksMiddle {
	transition: .5s ease;
	opacity: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	text-align: center;
}

.worksContainer:hover .worksImage {
	opacity: 0.3;
	transform: scale(1.05);
}

.worksContainer:hover .worksMiddle {
	opacity: 1;
}

@media (min-aspect-ratio: 16/9){
    .worksText {
         font-size: 1.5vw;
    }
}
@media (max-aspect-ratio: 16/9) {
    .worksText {
        font-size: 4vw;
    }
}

/* Kontener menu kategorii */
.worksTypeList {
    display: flex;
    justify-content: center; /* Centrowanie menu */
    flex-wrap: wrap;         /* Zawijanie na telefonach */
    gap: 25px;               /* Odstępy między linkami */
    margin: 40px auto;
    padding: 0 40px;
}

/* Podstawowy styl linku */
.worksType {
    font-family: 'OrgonThin', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: #666666;          /* Ciemnoszary dla nieaktywnych */
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

/* Efekt najechania i stan aktywny */
.worksType:hover, 
.worksType.active {
    color: #ff6900;          /* Twój pomarańcz */
    opacity: 1;
}

/* Opcjonalne: Delikatna linia pod aktywnym linkiem */
.worksType::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #ff6900;
    transition: width 0.3s ease;
}

.worksType:hover::after,
.worksType.active::after {
    width: 100%;
}

/* Responsywność dla mobile */
@media screen and (max-width: 768px) {
    .worksTypeList {
        gap: 15px;
        margin: 20px auto;
    }
    .worksType {
        font-size: 11px;
    }
}

/* Works Detail */
/* Kontener główny projektu */
.project-detail-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px 100px 40px; /* Wyrównanie 40px do logo */
    box-sizing: border-box;
}

/* Przycisk powrotu */
.back-nav {
    margin-bottom: 20px;
}

.back-link {
    font-family: 'OrgonThin';
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: #666;
    transition: 0.3s;
}

.back-link:hover {
    color: #ff6900;
}

/* Magiczny kontener na Video (zachowuje 16:9) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Detale projektu */
.project-info {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Podział na tytuł i opis */
    gap: 60px;
    margin-top: 40px;
}

.project-header h1 {
    font-family: 'OrgonBold';
    font-size: 42px;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
}

.project-meta {
    font-family: 'OrgonThin';
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    color: #888;
}

.project-meta span {
    margin-right: 25px;
}

.project-meta strong {
    color: #ff6900; /* Akcent w Twoim kolorze */
    font-weight: normal;
}

.project-description {
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
}

/* Responsywność dla mobile */
@media screen and (max-width: 1024px) {
    .project-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .project-header h1 {
        font-size: 30px;
    }
}

/* --- Project Detail Styles --- */
.project-detail-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px 100px 40px;
    box-sizing: border-box;
}

.back-nav { margin-bottom: 30px; }
.back-link {
    font-family: 'OrgonThin';
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: 0.3s;
}
.back-link:hover { color: #ff6900; }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
    margin-bottom: 50px;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.project-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}
.project-header h1 { font-family: 'OrgonBold'; font-size: 42px; margin: 0 0 15px 0; }
.project-meta { font-family: 'OrgonThin'; text-transform: uppercase; font-size: 13px; color: #888; }
.project-meta strong { color: #ff6900; font-weight: normal; }
.project-description { font-size: 17px; line-height: 1.7; color: #ccc; }

/* Galeria kadrów */
.project-gallery {
    border-top: 1px solid #222;
    padding-top: 20px;
}
.project-gallery h2 {
    font-family: 'OrgonThin';
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Trzy kadry obok siebie */
    gap: 20px;
}
.gallery-item {
    overflow: hidden;
    background: #000;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: brightness(0.9);
    transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Mobile */
@media screen and (max-width: 1024px) {
    .project-info { grid-template-columns: 1fr; gap: 30px; }
    .gallery-grid { grid-template-columns: 1fr; }
}


/* --- Services & Technology --- */
.serviceContainer {
	position: relative;
	float: left;
}

/* Ekran komputera (szeroki) */
@media screen and (min-width: 1025px) {
	.serviceContainer {
         width: 33.3%;
		 margin-top: -160px;
		 height: 1080px;
    }
	.serviceButton {
		font-size: 36px;
		margin-left: 100px;
		margin-right: 100px;
	}
	.serviceContainer p {
        font-size: 18px;
		margin-left: 100px;
		margin-right: 100px;
    }
}

/* Ekran telefonu i tabletu (wąski) */
@media screen and (max-width: 1024px) {
	.serviceContainer {
        width: 100%;
		height: 1400px;
    }
	.serviceButton {
		font-size: 20px;
		margin-left: 40px;
		margin-right: 40px;
	}
	.serviceContainer p {
        font-size: 18px;
		margin-left: 40px;
		margin-right: 40px;
    }
}

.serviceVideo {
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 50%;
}

.serviceContainer img{
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 50%;
}

.serviceContent {
	position: absolute;
	top: 40%;
	color: #f1f1f1;
	width: 100%;
}

.serviceButton {
	border-radius: 20px 20px 20px 0px;
	border-style: solid;
	border-width: 0px;
	padding: 10px 40px 10px 40px;
	background-color: #ff6900;
}

.serviceContainer p {
	background: rgba(0, 0, 0, 0.8);
	border-radius: 0px 20px 20px 20px;
	padding: 40px;
	opacity: 0;
}		


/* --- About: Slideshow --- */
.anniversaryLogo {
	position: absolute;
	width: 100%;
	top: 162px;
	text-align: center;
	z-index: 2;
}

.aboutSlides {
	display: none;
}

.aboutSlides img {
	vertical-align: middle;
    height: 400px;
	width: 100%;
    object-fit: cover;
}

.aboutSlidesText {
	position: relative;
	font-size: 15px;
	bottom: 40px;
	right: 30px;
	text-align: right;
}

.aboutSlidesFade {
	animation-name: fade;
	animation-duration: 6s;
	animation-timing-function: ease-in-out;
}

@keyframes fade {
	0%  	{opacity: 0%;}
	10%		{opacity: 100%;}
	90%		{opacity: 100%;}
	100%  	{opacity: 0%;}
}


/* --- About --- */
/* Ekran komputera (szeroki) */
@media screen and (min-width: 1025px) {
    .about p {
		font-size: 30px;
		line-height: 150%;
    }
}
/* Ekran telefonu i tabletu (wąski) */
@media screen and (max-width: 1024px) {
    .about p {
        font-size: 18px;
		line-height: 150%;
    }
}

/* --- About: Team --- */
.teamContainer {
	position: relative;
	float: left;
	margin-bottom: 50px;
}

/* Ekran komputera (szeroki) */
@media screen and (min-width: 1025px) {
    .teamContainer {
		width: 33%;
    }
}
/* Ekran telefonu i tabletu (wąski) */
@media screen and (max-width: 1024px) {
    .teamContainer {
        width: 100%;
    }
}

.teamImage {
	display: block;
	width: 100%;
	height: auto;
}

.teamOverlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	width: 100%;
	opacity: 0;
	transition: .5s ease;
	background: rgba(0, 0, 0, 0.8);
}

.teamContainer:hover .teamOverlay {
	opacity: 1;
}

.teamTextHead {
	font-size: 50px;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	text-align: center;
	line-height: 90%;
}

.teamText {
	color: #888888;
	font-size: 25px;
	position: absolute;
	top: 70%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	text-align: center;
}


/* --- Clients --- */
/* Ekran komputera (szeroki) */
@media screen and (min-width: 1025px) {
    .clients p {
		font-size: 30px;
		text-align: center;
    }
}
/* Ekran telefonu i tabletu (wąski) */
@media screen and (max-width: 1024px) {
    .clients p {
        font-size: 18px;
		text-align: center;
    }
}

/* --- Clients: Recommendations --- */
.recommendations {
	color: #888888;
}

.recommendationsItem {
	margin-bottom: 60px;
	border-left: 2px dotted grey;
}

.recommendationsAuthor {
	line-height: 150%;
	color: #FFFFFF;
}

/* Ekran komputera (szeroki) */
@media screen and (min-width: 1025px) {
    .recommendations {
		display: grid;
		grid: auto / auto auto auto;
		grid-row: 2;
		font-size: 18px;
    }
	.recommendationsItem {
		padding-left: 20px;
		padding-right: 100px;
		line-height: 200%;
	}
}
/* Ekran telefonu i tabletu (wąski) */
@media screen and (max-width: 1024px) {
    .recommendations {
		display: grid;
		grid: auto / auto;
		font-size: 18px;
		line-height: 150%;
    }
	.recommendationsItem {
		padding-left: 20px;
		padding-right: 0px;
	}
}

/* --- Contact --- */
/* Ustawienia wspólne */
.contact {
    max-width: 1600px;    /* Odpowiednik Twoich marginesów na dużym ekranie */
    margin: 0 auto;       /* Automatyczne centrowanie */
    padding: 0 40px;      /* Bezpieczny odstęp na telefonach */
    box-sizing: border-box;
}

.contactItem {
    line-height: 150%;
}

/* Ekran komputera (szeroki) */
@media screen and (min-width: 1025px) {
    .contact {
        display: grid;
        grid-template-columns: 20% 40% 40%;
        font-size: 16px;
        margin-top: 50px;
    }
    .contactItem {
        border-left: 2px dotted grey;
        padding-left: 20px;
        padding-right: 100px;
        margin-bottom: 100px;
    }
}

/* Ekran telefonu i tabletu (wąski) */
@media screen and (max-width: 1024px) {
    .contact {
        display: grid;
        grid-template-columns: 1fr; /* Jeden pod drugim */
        font-size: 18px;
    }
    .contactItem {
        border-top: 2px dotted grey;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 0;
        padding-right: 0;
    }
}

.socialLinks {
	float: left;
	display: block;
}

.socialLinks img {
	height: 20px;
	width: 20px;
	filter: invert(75%);
	margin-right: 10px;
}





