/* RESET & GLOBAL */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', sans-serif;
  background: #f4f8f4;
  color: #333;
  height: 100vh;
  margin: 0;
  overflow: hidden; /* If you want full screen, no scroll */
}

/* PRELOADER (Optional) */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.loader-logo img {
  width: 120px;
  margin-bottom: 10px;
}
.loader-bar {
  width: 120px;
  height: 4px;
  background: #18BC9C;
  animation: loading 2s infinite;
}
@keyframes loading {
  0% { transform: scaleX(0); transform-origin: left center; }
  50% { transform: scaleX(1); transform-origin: left center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}

/* BRAND BLOCK */
.brand-block {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 10;
}
.group-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-right: 20px;
  color: #fff; /* White text */
  align-items: center;
}
.big-logo {
  height: 80px;
  align-items: center;
  object-fit: contain;
}

/* TWO HALVES LAYOUT */
#full-layout {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}
.portal-half {
  flex: 1;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  z-index: 1;
}
.portal-half:hover {
  transform: scale(1.02);
}
.portal-overlay {
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.3);
  padding: 20px;
  border-radius: 8px;
}
.portal-overlay h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
}
.portal-overlay p {
  font-size: 1.1rem;
  max-width: 300px;
}

/* Left half (Energy) */
.left-half {
  background: url('images/industrial_portal.jpg') no-repeat center center / cover;
}

/* Right half (Shipping) */
.right-half {
  background: url('images/energy_portal.png') no-repeat center center / cover;
}

/* VERTICAL WHITE LINE down the center, behind the circle */
#center-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  z-index: 2;  /* behind the circle, above the halves */
  transform: translateX(-50%);
}

/* CIRCULAR BADGE in center with background image for perfect centering */
#center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  background-color: #000;       /* black fill */
  background-image: url('images/eurelmec_logo.png'); /* your circle logo or brand PNG */
  background-position: center center; 
  background-size: 80%;         /* adjust as needed */
  background-repeat: no-repeat;
  border: 2px solid #fff;       /* white border */
  border-radius: 50%;
  z-index: 3;                   /* above the divider line */
}

/* BACK TO TOP */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #18BC9C;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  transition: background 0.3s ease;
  z-index: 999;
}
#back-to-top:hover {
  background: #149e7e;
}

/* RESPONSIVE (Stack top/bottom) */
@media (max-width: 768px) {
  #full-layout {
    flex-direction: column;
  }
  .portal-half {
    width: 100%;
    height: 50%;
  }
  #center-divider {
    left: 50%; 
    width: 100%;  
    height: 2px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  #center-circle {
    width: 120px; 
    height: 120px;
    background-size: 70%;
  }
  .group-text {
    font-size: 1.5rem;
  }
  .big-logo {
    height: 60px;
  }
  .brand-block {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }
}
