/* Font Face Declarations */
@font-face {
  font-family: 'Sofia Sans Semi Condensed';
  src: url('../fonts/sofia-sans/static/SofiaSansSemiCondensed-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Sans Semi Condensed';
  src: url('../fonts/sofia-sans/static/SofiaSansSemiCondensed-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Sans Semi Condensed';
  src: url('../fonts/sofia-sans/static/SofiaSansSemiCondensed-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Sans Semi Condensed';
  src: url('../fonts/sofia-sans/static/SofiaSansSemiCondensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Variable Font Option */
@font-face {
  font-family: 'Sofia Sans Semi Condensed';
  src: url('../fonts/sofia-sans/SofiaSansSemiCondensed-VariableFont_wght.ttf')
    format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  position: relative;
  background: url('../images/bg-collage-optimized.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: Sofia Sans Semi Condensed, sans-serif;
  margin: 0;
  padding: 0;
}

.background-collage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.background-collage img {
  min-height: 33.33vh;
  filter: brightness(0.7);
  transition: all 0.3s ease;
}

/* Gradient overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  backdrop-filter: blur(5px);
  z-index: -1;
}

.container {
  position: relative;
  z-index: 1;
}

header {
  /* background-color: rgba(33, 37, 41, 0.8) !important; */
  color: white;
  padding: 1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

main {
  padding: 2rem;
}

footer {
  color: white;
  text-align: center;
  padding: 1rem;
  position: relative;
  width: 100%;
  bottom: 0;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

.card {
  position: relative;
  overflow: hidden;
}

.card-hover {
  display: none; /* Completely hidden initially */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  color: white;
  padding: 1rem;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 10;
  opacity: 0; /* Ensure it's invisible */
  transition: opacity 0.3s ease; /* Smooth transition for the hover effect */
}

.card:hover .card-hover {
  display: flex; /* Show it when hovered */
  opacity: 1; /* Make it visible */
}

.card:hover .card-img-top,
.card:hover .card-body {
  opacity: 0; /* Hide the original content on hover */
  transition: opacity 0.3s ease; /* Smoothly fade out */
}

.enlarge-effect {
  transition: transform 0.3s ease-in-out;
  pointer-events: auto;
}

.enlarge-effect:hover {
  transform: scale(1.002);
}

.floating-logo {
  position: fixed;
  bottom: 0px;
  right: -82px;
  width: 82px;
  height: 25px;
  background: url('../images/tractor.png') no-repeat center center;
  background-size: contain;
  z-index: 1000;
  transform: translateX(calc(var(--scroll-position, 0) * -1vw));
  transition: transform 0.1s linear;
  opacity: 0.8;
}

.center-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}
