@font-face {
  font-family: 'FS Industrie Wide';
  src: url("../fonts/FS-Industrie-Wd-Bold.ttf");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'FS Industrie Wide', sans-serif;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(51, 51, 51, 0.8), rgba(125, 10, 10, 0.4));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 0 2vh;
  margin-bottom: 7vh;
}

.hero-title {
  font-size: 10vh;
  font-weight: bold;
  margin-bottom: 1.5vh;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(50px);
}

.hero-subtitle {
  font-size: 3vh;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(50px);
}

/* Red Ribbon Section */
.red-ribbon-section {
  width: 100%;
  padding: 4vh 0;
  background: white;
  margin-top: 2vh;
}

.ribbon-container {
  margin: 0 auto;
  padding: 0 2vh;
}

.ribbon-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2vh;
}

.ribbon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.ribbon-item:hover {
  transform: translateY(-10px) scale(1.05);
}

.ribbon-item-image {
  width: 5vw;
  height: 5vw;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ribbon-item:hover .ribbon-item-image {
  box-shadow: 0 10px 30px rgba(229, 62, 62, 0.3);
}

.ribbon-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ribbon-item-title {
  font-size: 2.5vh;
  font-weight: 600;
  text-align: center;
  color: #333;
}


.partner-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Section Title Style */
.section-title {
  font-size: 4vh;
  font-weight: bold;
  color: #e53e3e;
  margin-bottom: 4vh;
  text-align: center;
}

/* Partners Section */
.partners-section {
  padding: 4vh 0;
  background: white;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.partner-logo {
  height: 8vh;
  width: auto;
  object-fit: contain;
  /* filter: grayscale(100%); Removed to show color by default */
  transition: all 0.3s ease;
  opacity: 1;
  display: block;
  margin: 0 auto;
}

.partner-logo:hover {
  /* filter: grayscale(0%); No longer needed */
  /* opacity: 1; Already 1 */
  transform: scale(1.1);
}

/* Facts Section */
.facts-section {
  padding: 6vh 10vw;
  background: white;
}

.facts-container {
  width: 80vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4vh;
  align-items: center;
}

.facts-left {
  width: 100%;
}

.facts-right {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2vh;
}

.chart-container {
  position: relative;
  height: 40vh;
  width: 100%;
}

.chart-title {
  font-size: 2.5vh;
  font-weight: bold;
  color: #333;
  margin-bottom: 2vh;
  text-align: center;
}

.vertical-fact-card {
  background: white;
  padding: 2vh;
  border-radius: 20px;
  border: 2px solid #e53e3e;
  text-align: center;
  transition: transform 0.3s ease;
}

.vertical-fact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(229, 62, 62, 0.2);
}

.fact-number {
  font-size: 3vh;
  font-weight: bold;
  color: #e53e3e;
  margin-bottom: 1vh;
}

.fact-label {
  color: #666;
  font-size: 2vh;
  line-height: 1.4;
}

/* Industries/Solutions Section */
.industries-section {
  padding: 6vh 10vw;
  background: white;
}

.industries-container {
  margin: 0 auto;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vh;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

.column.middle {
  margin-top: 3vh;
}

.industry-card {
  position: relative;
  height: 25vh;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e53e3e;
}

.industry-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
}

.fiber-bg {
  background-image: url('../media/img-fibre.jpeg');
}

.brickrefra-bg {
  background-image: url('../media/img-brickrefra.jpg');
}

.cement-bg {
  background-image: url('../media/img-beton.jpeg');
}

.ropework-bg {
  background-image: url('../media/img-ropework.jpeg');
}

.mechanical-bg {
  background-image: url('../media/img-mechanicalinstallation.jpg');
}

.mechanicalmaint-bg {
  background-image: url('../media/img-mechanicalmaint.jpg');
}

.supply-bg {
  background-image: url('../media/PE-5.jpg');
}

.dryout-bg {
  background-image: url('../media/PE-2.jpg');
}

.study-bg {
  background-image: url('../media/PE-6.jpg');
}

.training-bg {
  background-image: url('../media/PE-3.jpg');
}

.co2-bg {
  background-image: url('../media/co2.jpeg');
}

.industry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(229, 62, 62, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.industry-title {
  color: white;
  font-size: 2.5vh;
  font-weight: bold;
  text-align: center;
  padding: 0 1vh;
}

.industry-details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  padding: 2vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.industry-card:hover .industry-image {
  transform: scale(1.1);
}

.industry-card:hover .industry-overlay {
  opacity: 0;
}

.industry-card:hover .industry-details {
  opacity: 1;
}

.industry-details h3 {
  font-size: 2.5vh;
  font-weight: bold;
  color: #e53e3e;
  margin-bottom: 1vh;
}

.industry-details p {
  color: #666;
  line-height: 1.6;
  font-size: 1.8vh;
}

/* Container + base */
.container {
  margin-top: 10vh;
}

.co2-left {
  height: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.co2-left h2 {
  font-size: 4vh;
  font-weight: 700;
  color: #2d5530;
  margin-top: 2rem;
}

.co2-left h3 {
  font-size: 3vh;
  font-weight: 700;
  color: #28a745;
  margin-bottom: 1.5rem;
}

.co2-content {
  height: 40%;
}

.co2-content p {
  font-size: 2vh;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.co2-highlights {
  margin: 2rem 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid #28a745;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.highlight-icon {
  font-size: 1.5rem;
}

.highlight-text {
  color: #333;
}

/* Central title fade */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.central-element {
  opacity: 0;
  animation: fadeIn 1s ease-out .5s forwards;
}

.chart-arrow {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.chart-arrow svg {
  overflow: visible;
}

.arrow-line {
  stroke-width: 2;
  fill: none;
}

.arrow-percentage {
  font-size: 2vh;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: middle;
}

.positive-evolution {
  fill: #48e909ff;
}

.negative-evolution {
  fill: #e53e3e;
}

/* Responsive */
@media (max-width:768px) {
  .partners-swiper {
    padding: 0vh 0;
  }

  .main-section {
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    margin-top: 2rem;
  }

  .gear-center {
    display: none;
    /* Hide the central gear on mobile */
  }

  .clickable-element {
    position: relative !important;
    opacity: 1;
    margin: 1rem 0;
    width: 90%;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    animation: none;
    transform: none;
  }

  .clickable-element:hover {
    transform: scale(1.05) !important;
  }

  /* Mobile Optimizations */
  .partners-section {
    position: relative;
    margin-top: -5vh;
    left: 0;
    width: 90%;
    margin-left: 5%;
    margin-bottom: 5vh;
    border-radius: 15px;
  }

  .partner-logo {
    height: 80px;
    opacity: 1;
  }

  .facts-container {
    flex-direction: column;
  }

  .hero {
    height: 50vh;
  }

  .hero-title {
    font-size: 5vh;
  }

  .hero-subtitle {
    font-size: 2vh;
  }

  .co2-container {
    flex-direction: column;
    gap: 2rem;
  }

  .co2-left,
  .co2-right {
    width: 100%;
  }

  .co2-left h2 {
    font-size: 2rem;
  }

  .co2-content p {
    font-size: 1rem;
  }

  .highlight-item {
    flex-direction: column;
    text-align: center;
  }
}


/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 5vh;
  }

  .hero-subtitle {
    font-size: 2.2vh;
  }

  .ribbon-items {
    gap: 1vh;
  }

  .ribbon-item-image {
    width: 10vw;
    height: 10vw;
  }

  .facts-container {
    flex-direction: column;
    /* Reduce padding on mobile */
    padding: 0 2vh; 
  }

  .facts-left,
  .facts-right {
    width: 100%;
  }

  /* Fix for stats on mobile: 2 columns instead of squashed 4 */
  .facts-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vh;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .column.middle {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    margin-top: 12vh;
    height: 50vh;
  }

  .hero-content {
    padding: 0 4vw;
    /* Move text down a bit below header as requested */
    padding-top: 10vh; 
  }

  .red-ribbon-section {
    margin-top: 5vh;
  }

  .ribbon-items {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ribbon-item-image {
    width: 15vw;
    height: 15vw;
  }

  .ribbon-item-title {
    font-size: 2vh;
  }

  .partners-section {
    margin-top: 10vh;
    position: relative;
    left: 0;
  }

  .partner-logo {
    width: auto;
    height: 12vh;
    margin: 0 auto;
  }

  /* Fix for industries widget expansion */
  .industries-section {
    padding: 6vh 2vh; /* Reduced horizontal padding */
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .industry-card {
    height: 35vh;
  }
}

@media (min-width: 768px) {
  .container {
    grid-template-columns: repeat(12, 1fr);
    gap: 2vh;
  }

  .hero-content {
    grid-column: 2 / 12;
  }
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 2vh;
  margin-top: 3vh;
  z-index: 10;
  position: relative;
}

.hero-btn {
  display: inline-block;
  padding: 1.5vh 3vh;
  border: 2px solid #e53e3e;
  background: rgba(229, 62, 62, 0.1);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 2vh;
  border-radius: 5px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hero-btn:hover {
  background: #e53e3e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 62, 62, 0.3);
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero-btn {
    width: 80%;
    text-align: center;
  }
}
