


:root {
    --bg-color: #383838;
    --text-color: #f5f3f3;
    --card-bg: #4b4b4b;
    --button-hover: #00693C;
    --section_bg: #494949;
    --h2_color: #00693C;
    --sidebar-width: 200px;
    --sidebar-collapsed-width: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    /*font-family: Arial, sans-serif;*/
    
}

body {
    
    line-height: 1.6;
    /*color: #333;*/
    color: var(--text-color);
    background-color: var(--bg-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header h1 {
    font-size: 1.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--button-hover);
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu li {
    position: relative;
}

.menu a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 0;
    display: block;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: rgba(17, 17, 17, 0.6);
    padding: 10px 0;
    min-width: 200px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    padding: 0;
}

.submenu a {
    padding: 10px 20px;
}

.submenu a:hover {
    background: rgba(255,255,255,0.1);
}

.hero {
    height: 90vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    color: white;
    /*padding: 20px;*/
    width: 100%;
}

/* WIDEO */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75%;
    object-fit: cover; /* kluczowe */
    z-index: 0;
    border-bottom: #00693C 3px solid;
}

/*.hero-image {

    position: flex;
    background-size: cover;
    background-position: center;
    width: 100%;
}*/

.hero-image {
    position: absolute; /* To sprawi, że wyjdzie z układu flex i zajmie tło */
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh; /* Dopasuj do wysokości .hero */
    object-fit: cover;
    z-index: 0;
    border-bottom: #00693C 3px solid;
}

.hero-img-1 {
    background-image: url("../images/test.JPG");
}

/* Treść nad wideo */
.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.096);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(2px);
}
.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
   
}

.hero p {
    font-size: 1.2rem;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.section-subtitle {
    font-size: 1rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.download-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--card-bg);
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  z-index: 9999;
  cursor: pointer;
}

/* Stan rozwinięty (dodany domyślnie w HTML) */
.download-widget.expanded {
  width: 280px;
  height: 180px;
  cursor: default;
}

/* Przycisk zamknij */
.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: none; /* Ukryty, gdy widget jest mały */
}

.download-widget.expanded  .close-btn {
  display: block;
}

/* Sekcja ikony i tekstu */
.widget-trigger {
  height: 60px;
  display: flex;
  align-items: center;
  padding-left: 18px;
}

.widget-trigger .text {
  margin-left: 10px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s;
}

.download-widget.expanded .widget-trigger .text {
  opacity: 1;
}

/* Zawartość */
.widget-content {
  padding: 0 20px 20px 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}

.download-widget.expanded .widget-content {
  opacity: 1;
  transform: translateY(0);
}

.download-btn {
  display: block;
  background: white;
  color: var(--h2_color);
  text-decoration: none;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 15px;
}

.about {
    padding: 4rem 2rem;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    /*max-width: 1200px;*/
    margin: auto;
}

.about-image img {
    width: 100%;
    max-width: 700px;
    border-radius: 15px;
}

.about-text {
    flex: 1;
}
.about-title h1{
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}
.about-title {
    text-align: center;

}
/*
.about-text h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}
*/


.about-text h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    /*color: var(--h2_color);*/
}

.about-text a {
    text-decoration: none;
    color: var(--button-hover)
}
.about-text a:hover {
    transform: scale(1.1);
    /*color: #FFFFFF;*/
    text-decoration: underline;
}

.about-text p {
    font-size: 1.25rem;
    text-align: justify;
    margin-bottom: 20px;
}

.about-text-2 p {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 20px;
}

.about-authors p {
    font-size: 1rem;
    color: var(--text-color);
    font-style: italic;
    text-align: justify;
}

.about-authors a {
    text-decoration: none;
    color: var(--button-hover);
}

.about-authors a:hover {
    /*color: var(--text-color);*/
    text-decoration: underline;
}

.about-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-animate.active {
    opacity: 1;
    transform: translateY(0);
}
.animated-header {
    position: relative;
    display: inline-block;
    text-align: center;
}


.animated-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 4px;
    background-color: #00693C;

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s ease;
}

/* Klasa dodawana przy scrollu */
.animated-header.active::after {
    transform: scaleX(1);
}


.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    gap: 30px;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 15px;
    background: var(--card-bg);
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.cards a {
    text-decoration: none;
    color: inherit;
    display: grid;
}

/* Warstwa z obrazem */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.6s ease, transform 0.8s ease;
    z-index: 0;
}

/* Przyciemnienie + blur */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

/* Tekst */
.card h3 {
    position: relative;
    z-index: 2;
    transition: 0.4s ease;
}

.card p {
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
    z-index: 3;
    transition: 
        opacity 0.5s ease,
        transform 0.5s ease,
        max-height 0.5s ease;
}


.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

/* Pojawienie się tła */
.card:hover::before {
    opacity: 1.0;
    transform: scale(1);
}

/* Pojawienie się overlay */
.card:hover::after {
    opacity: 0.8;
}

/* Animacja tekstu */
.card:hover h3 {
    transform: translateY(-10px);
    color: white;
}

.card:hover p {
    opacity: 1;
    transform: translateY(0);
    color: white;
    max-height: 200px; /* wystarczająco duża wartość */
}

/*.card:hover p {
    transform: translateY(10px);
    color: white;
}*/

.card1::before {
    background-image: url("../images/oman.jpg");
}

.card2::before {
    background-image: url("../images/islandia.jpg");
}

.card3::before {
    background-image: url("../images/tunicki.png");
}

.card4::before {
    background-image: url("../images/kamieniolom.jpg");
}
/*footer */
.footer {
    background: #111;
    color: white;
    padding: 2rem;
}

.footer-column a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--h2_color);
    border-radius: 50%;
    transition: all 0.3s 
ease;
}

.footer-column a svg {
    height: 16px;
    width: 16px;
    fill: #111
}

.footer-column a:hover {
    background-color: #FFFFFF;
    transform: scale(1.1);
}

.map-section {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap; /* na małych ekranach spadną pod siebie */
}

.map-item img {
    max-width: 400px;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.map-item-2 img {
    max-width: 300px;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.map-item img.active {
    transform: scale(1.6);
    z-index: 10;
}

.logo-link {
  display: inline-block;
  background-image: url('images/GT_logo_negative.png');
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

.logo-link:hover {
  background-image: url('images/GT_logo_negative_g.png');
}

.footer-container {
    max-width: 1200px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1;
}

/*O nas - sekcja zarządu*/
.leaders {
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.leaders-title {
    text-align: center;
    margin-bottom: 3rem;
}

.leader {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 2rem;
}

.leader-text {
    font-size: 1.1rem;
    flex: 1;
}

.leader-image {
    flex: 1;
    height: 50%;
    max-width: 300px
}

.leader-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
}

.reverse {
    flex-direction: row-reverse;
}



/*Karuzela zdjęć*/
.carousel-container {
  position: relative;
  max-width: 800px;
  height: 400px; /* Warto ustawić stałą wysokość, by nic nie skakało */
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-slide {
  position: absolute; /* Wszystkie slajdy leżą jeden na drugim */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Domyślnie niewidoczne */
  transition: opacity 0.8s ease-in-out; /* Tu dzieje się magia płynności */
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Zdjęcie wypełni kontener bez deformacji */
}

.carousel-slide.active {
  opacity: 1; /* Widoczny tylko ten aktywny */
  z-index: 2;
}

/* Przyciski */
button {
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 18px;
}

.prev { left: 0; }
.next { right: 0; }

button:hover { background: rgba(0,0,0,0.8); }

/* Responsywność */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
/*
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
}*/