/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-bottom: 3rem;
  color: #f7ebdd;
  background-color: #0F0F0F;
}

.logo {
  cursor: pointer;
}

.full span {
  opacity: 0;
  display: inline-block;
  transition: opacity 0.3s ease;
}

.full span.visible {
  opacity: 1;
}

#mainNav {
  z-index: 15;
  min-height: 3.5rem;
  background-color: #191919;
}

.mainNav {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

#mainNav .navbar-toggler {
  font-size: 95%;
  border: 0px;
}

#mainNav .navbar-toggler:focus {
  outline: none;
}

#mainNav .navbar-toggler-icon{
  border-color: #7a746e;
}

#mainNav .navbar-brand {
  font-family: "Poppins", Arial, sans-serif;
  text-transform: uppercase;
  color: #7a746e;
  font-weight: 700;
}
#mainNav .navbar-brand:hover {
  color: #1d613b;
  font-weight: 700;
}

#mainNav .navbar-brand img {
  height: 28px;
}

#mainNav .navbar-nav .nav-link:hover {
  color: #1d613b !important;
  outline: none;
  background-color: transparent;
  font-weight: 700;
}

#mainNav .navbar-nav .nav-link:active {
  color: #c7bdb2 !important;
}

#mainNav .navbar-nav .nav-item:active, #mainNav .navbar-nav .nav-item:focus {
  color: #c7bdb2;
  outline: none;
  background-color: transparent;
  font-weight: bold;
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    background-color: transparent;
    transition: opacity 1s ease;
  }

  .mainNav {
    opacity: 0;
  }

  #mainNav .navbar-brand, #mainNav .nav-link  {
    color: rgba(80, 80, 80, 0.6);
    transition: 0.3s ease-in-out;
  }
  #mainNav .navbar-brand:hover, #mainNav .nav-link:hover, #mainNav .nav-link:active {
    color: #1d613b;
    transition: 0.3s ease-in-out;
  }
  #mainNav.navbar-shrink {
    background-color: #191919;
  }
  #mainNav.navbar-shrink .navbar-brand,  #mainNav.navbar-shrink .nav-link {
    color: #7a746e;
  }
  #mainNav.navbar-shrink .navbar-brand:hover, #mainNav.navbar-shrink .nav-link:hover, #mainNav.navbar-shrink .nav-link:active {
    color: #D4CFC0;
  }
  #mainNav.navbar-shrink .nav-link.active {
    color: #F5EFDD;
    outline: none;
  }
}

@media (max-width: 575px) {
  .container {
    width: 97%;
  }
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.subText, .mainText {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
  text-align: center;
  margin: 0;
}

.subText {
  color: #A2988F;
}

.intro h1 {
  font-size: 2.1em;
  font-weight: 700;
  margin-top: 2em;
}

.intro p {
  font-size: 0.7em;
  font-weight: 200;
  line-height: 1.3;
  margin-top: 0.7em;
}

.porsche {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  display: block;
  margin: 2.5em auto 0;
  width: 100vw;          /* fill the width */
  height: 40vh;         /* take full viewport height */
  object-fit: cover;     /* crop sides */
  object-position: center;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.scrollitem {
  display: block;
  position: relative;
  top: -5rem;
  visibility: hidden;  
}

.rowh {
  transition: transform .3s;
}

.rowh:hover {
  transform: scale(1.05);
}

.me-photo {
  object-fit: cover;
  justify-content: center;
  max-height: 80vw;
  width: 100%;
}

.bigtext {
  font-family: 'Playfair Display', Serif;
  font-weight: 700;
  font-style: italic;
}

.bigtext-about {
  position: inherit;
  font-size: 24.5vw;
}

.bigtext-films {
  font-size: 17vw;
  line-height: 0.95;
}

.bigtext-contact {
  font-size: 23.5vw;
  line-height: 0.95;
}

.bigtext span {
  line-height: 0.95;
  display: block;
  text-align: right;
}

.secondary-text {
  color: #f7ebdd;
  text-align: left;
}

.secondary-text-1 {
  line-height: normal;
}

.midtext {
  font-size: 5.4em;
  font-family: 'Playfair Display', Serif;
  font-weight: 700;
  font-style: italic;
  margin: 0;
  line-height: 1;
  margin-top: 5rem;
}

.mojezdjecia-text {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 1s ease, transform 1s ease;
}

.mojezdjecia-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.card {
  background-position: center;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 70%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
}

.card-text {
  z-index: 2;
}

.modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* 0.8 */
}

.modal-content-gallery {
  position: relative;
  margin: 7vh 0;
  padding: 0.7em;
  aspect-ratio: 2/2.95;
  max-height: 86vh;
  background-color: #1b1b1b;
  border-radius: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel {
  display: flex;
  border-radius: 0.5em;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-image {
  width: 100%;
  border-radius: 0.7em; /* Slight rounding of the image itself */
  object-fit: contain; /* Ensure both vertical and horizontal images fit within bounds */
  display: none;
  margin: 0 auto;
}

.carousel-image-1 {
  display: block;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.gallery-btn {
  cursor: pointer;
  border: none;
  background: none;
}

/* Navigation buttons */
.prev, .next {
  background: none;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
  font-size: 30px;
  border: none;
  cursor: pointer;
  padding: 0.5em; /* No padding needed now */
  z-index: 200;
}

/* Change hover effects to ensure visibility when hovered */
.prev:hover, .next:hover {
  transition: color 0.3s ease;
  color: #f7ebdd;
}

.text-link {
  text-decoration: none;
  color: #7a746e;
  transition: color 0.3s ease;
}

.text-link:hover {
  text-decoration: none;
  color: #1d613b;
  transition: color 0.3s ease;
}

.copyright {
  color: #e4cfba;
}

.go-up {
  color: #e4cfba;
  transition: color 0.3s ease;
  text-decoration: none;
}

.go-up:hover {
  color: #1d613b;
  transition: color 0.3s ease;
  text-decoration: none;
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.marketing h2 {
  font-weight: 400;
}
/* rtl:begin:ignore */
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}
/* rtl:end:ignore */


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 2rem 0; /* Space out the Bootstrap <hr> more */
  border: 1px solid #645850;
}

/* Thin out the marketing headings */
.featurette-heading {
  font-size: 2em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.05rem;
}

/* CONTACT 
------------------------- */

.contact-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.contact-link:hover {
  text-decoration: none;
  color: #1d613b;
  transition: color 0.3s ease;
}

.modal-mail {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 100; /* Stay on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dark background with transparency */
}

/* Modal content */
.modal-mail-content {
  background-color: #1b1b1b;
  margin: 3em auto;
  padding: 1em;
  border-radius: 1em;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #7a746e;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #88473a;
}

input[name="user_name"], input[name="user_email"], textarea[name="message"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #332f2d;
  background-color: transparent;
  padding: 0.5em 0.8em;
  font-size: 0.7em;
  color: #7a746e;
  outline: none;
  resize: none;
}

textarea[name="message"]{
  height: 5em;
}

input[name="user_name"]:hover, input[name="user_email"]:hover, textarea[name="message"]:hover {
  color: #f7ebdd;
  border-color: #c8a165;
}

input[name="user_name"]:focus {
  border-color: #c8a165;
}

button[type="submit"] {
  background: none;
  width: 100%;
  color: #7a746e;
  padding: 0.5em 1em;
  border-radius: 0.8em;
  margin: 0.5em auto 0;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #f7ebdd;
  color: #0F0F0F;
}

button[type="submit"]:active {
  transform: scale(0.98);
}

button[type="submit"]:disabled:hover {
  background: none;
  color: #7a746e;
}

#result-message {
  margin: auto;
  text-align: center;
}

/* RESPONSIVE CSS
-------------------------------------------------- */

/* sm */
@media (min-width: 576px) {
  .intro h1 {
    font-size: 2.3em;
  }

  .intro p {
    font-size: 0.85em;
  }

  .carousel-item {
    height: 20em;
  }

  .bigtext-about {
    font-size: 8.8em;
  }
  
  .bigtext-films {
    font-size: 6em;
  }
  
  .bigtext-contact {
    font-size: 8.65em;
  }

  .big-text-spacer {
    height: 0;
  }
}
/* md */
@media (min-width: 768px) {
  #mainNav .navbar-brand img {
    height: 40px;
  }

  .intro h1 {
    font-size: 2.3em;
  }

  .intro p {
    font-size: 0.85em;
  }

  .carousel-item {
    height: 30em;
  }

  .bigtext-about {
    font-size: 12em;
  }

  .bigtext-films {
    font-size: 8em;
  }

  .bigtext-contact {
    font-size: 11.75em;
  }

  .secondary-text {
    line-height: inherit;
    padding-left: 6em;
    padding-right: 1em;
    text-align: right;
  }

}
/* lg */
@media (min-width: 992px) {
  .intro h1 {
    font-size: 2.6em;
  }

  .intro p {
    font-size: 0.95em;
  }

  .porsche {
    width: clamp(40%, 95vw, 2000px);
    height: auto;
  }

  .side-card-text {
    font-size: 0.8em;
    line-height: 1.5;
  }
  
  .carousel-item {
    height: 100%;
  }

  .me-photo {
    max-height: 100%;
  }

  .bigtext-about {
    font-size: 18vw;
    right: 0;
    margin-right: 30px;
    white-space: nowrap;
    line-height: 0.8;
    position: absolute;
  }
  
  .bigtext-films {
    font-size: 10.6em;
    line-height: 0.9;
  }

  .bigtext-contact {
    font-size: 15.8em;
  }

  .big-text-spacer {
    height: 18vw;
  }

  .secondary-text-1 {
    line-height: 1;
  }

  .midtext {
    margin-top: 5rem;
    font-size: 6vw;
  }

  .featurette-heading {
    font-size: 3em;
  }
}
/* xl */
@media (min-width: 1200px) {
  .intro h1 {
    font-size: 3em;
  }

  .intro p {
    font-size: 1.11em;
  }

  .side-card-text {
    font-size: 1em;
    line-height: 1.3;
  }

  .bigtext-films {
    font-size: 12.6em;
    line-height: 0.85;
  }

  .bigtext-contact {
    font-size: 18.9em;
  }

}
/* xxl */
@media (min-width: 1400px) {
  .intro {
    height: 100vh;
  }

  .intro h1 {
    font-size: 3.5em;
  }

  .intro p {
    font-size: 1.33em;
  }

  .side-card-text {
    font-size: 1.2em;
    line-height: 1.3;
  }

  .bigtext-about {
    font-size: 16.5em;
  }
    
  .bigtext-films {
    font-size: 14.6em;
    line-height: 0.85;
  }

  .bigtext-contact {
    font-size: 21.85em;
  }

  .big-text-spacer {
    height: 16.5em;
  }

  .midtext {
    font-size: 6.4em;
  }

  .featurette-heading {
    font-size: 4em;
  }
}